I was working on a project where we are designing the application in which the data will be sent over USB Device Virtual Com Port at the same time we are using UART0 lines to send data over RS232. For example, after receiving the temperature data it will forward to the host via USB Device Virtual Com Port also will be sent over RS232 using UART0 lines. So initially I tried the usb_dev_serial.c example.
Now in my project the temperature data I'm receiving from the sensor I wanted send over the USB to the host. Before that, I have few doughts regarding usb_dev_serial.c.
1)Can we send the data to the host via USB without using UART? I'm asking this question because I tried to remove the UART initialization from the code(usb_dev_serial.c) but in that case, USB was not detected by the PC.
2)What will be the best way to just send the sensor data to the HOST via USB?
I'm working on USB first ever so any help will be really appreciated!. Thank you.
Regards
Omkar