Page 2 of 2

USB OTG ?

Posted: Thu Oct 25, 2018 6:47 am
by Vitasam
According to ST datasheet, devices do support USB OTG:

Code: Select all

USB OTG 2.0 full-speed, LPM and BCD
Am I correct that, in theory, DM42 can act as an USB host? So one can plug e.g. usb-2-uart adapter if needed SW support will be done to DM42 firmware?

Re: USB OTG ?

Posted: Thu Oct 25, 2018 8:22 am
by ijabbott
Vitasam wrote:
Thu Oct 25, 2018 6:47 am
According to ST datasheet, devices do support USB OTG:

Code: Select all

USB OTG 2.0 full-speed, LPM and BCD
Am I correct that, in theory, DM42 can act as an USB host? So one can plug e.g. usb-2-uart adapter if needed SW support will be done to DM42 firmware?
Perhaps, but it wouldn't be able to supply any power to the USB device.

Re: USB OTG ?

Posted: Thu Oct 25, 2018 10:20 am
by Vitasam
ijabbott wrote:
Thu Oct 25, 2018 8:22 am
Vitasam wrote:
Thu Oct 25, 2018 6:47 am
According to ST datasheet, devices do support USB OTG:

Code: Select all

USB OTG 2.0 full-speed, LPM and BCD
Am I correct that, in theory, DM42 can act as an USB host? So one can plug e.g. usb-2-uart adapter if needed SW support will be done to DM42 firmware?
Perhaps, but it wouldn't be able to supply any power to the USB device.
Yes, but form-factor of that USB-otg device may look like this with additional AAA batteries.

Re: DM42 : What a beauty !

Posted: Wed Nov 07, 2018 1:00 pm
by Vitasam
Here is the NumWorks calculator is controlling a modified elegoo rover over a serial port.
The calculator is connected to robot with the USB cable, but not using the USB protocol. The data lines of the USB port are remapped to an uart by the firmware.

Could be a very useful feature (if it doable) for DM42 too.

Re: DM42 : What a beauty !

Posted: Thu Nov 08, 2018 6:44 pm
by ijabbott
Vitasam wrote:
Wed Nov 07, 2018 1:00 pm
Here is the NumWorks calculator is controlling a modified elegoo rover over a serial port.
The calculator is connected to robot with the USB cable, but not using the USB protocol. The data lines of the USB port are remapped to an uart by the firmware.

Could be a very useful feature (if it doable) for DM42 too.
I don't think it's doable for DM42 because the USB data pins are not multiplexed with any UART TX or RX pins on the STM32L476RG. They are multiplexed with the CAN bus controller, so perhaps that's an option.