After you do that, the serial port should show as mbed Serial Port (COMx) on your Device Manager. On Windows, you will probably need to install drivers. Usbcore: registered new interface driver cdc_acmĬdc_acm: v0.26:USB Abstract Control Model driver for USB modems and ISDN adapters On most recent Linux distros the device should show something similar to the following kernel messages: cdc_acm 5-2:1.1: ttyACM0: USB ACM device You should not have to transform anything or mess with the USB product_id or vendor_id, an mbed serial port should show as any other serial port so if it doesn't for you it means you are having driver issues. How would i transform this in hexa adresses - is this what i have to do? The problem is that on Windows the ports are represented in Device Manager with COMxx and on Linux like ttyACMxx. And i think i need to modify some of this adresses. USBSerial (bool connect_blocking=true, uint16_t vendor_id=0x1f00, uint16_t product_id=0x2012, uint16_t product_release=0x0001). I would like to do all the above(even thogh i don't know what does emulate a serial port over USB. It also communicates between Mbed and a computer. You can use this serial port as an extra serial port or as a debug solution. You can use the USBSerial interface to emulate a serial port over USB. Serial.printf("I am a virtual serial port\r\n") The problem is that i don't know how to set the port for the connection. E.g: led1 results in LED ON, led2 results in LED OFF. I want to send via serial a char sequence to the board. I am using Mbed library for setting up a conexion from STM32 to PC.
0 Comments
Leave a Reply. |