2018-04-03 04:33 AM
Hello everybody,
I would like to read the USB_DM and USB_DP pins from a GPRS module (it only works in Device mode) with the STM32L073RZT6 microcontroller which has also USB pins available. However, I realized that it only works as device mode too, so I do not know if there is any way to implement my idea with this microcontroller.
I would appreciate any help.
Thanks!
Best regards,
2018-04-03 07:41 AM
You want to connect the module to STM32 as if the STM32 would be a PC?
JW
2018-04-03 07:56 AM
>>
However, I realized that it only works as device mode too, so I do not know if there is any way to implement my idea with this microcontroller.
No, reading and deciphering a 12Mbps signal on the USB pins is not a practical task for you to undertake. Think about using a different part. Or a GPRS modem that uses a USART.
2018-04-03 10:00 AM
Yes, I do.
The module dumps traces in this USB interface, so I would like to read these traces using the microcontroller. Under my understanding, it is needed an OTG USB in order to configure it as 'host' (this microcontroller has not OTG USBs), is not it?
Thanks!
2018-04-03 10:04 AM
Thanks for your answer.
This module has one UART which I use to transfer data during TCP connections, but I would like to have another interface to monitor unsolicited module messages (for example error connections, SIM remove...) and only a USB interface is available. For this reason, I was trying to find that solution.
Thanks.
2018-04-03 10:17 AM
Find a modem supporting CMUX protocol
2018-04-04 02:23 AM
Thanks so much!
I did not know this protocol and it seems to be the best solution.
Thanks!
Best regards,
2018-04-04 03:16 AM
Modiot Modiot wrote:
monitor unsolicited module messages (for example error connections, SIM remove...)
But, in any of those cases, the TCP connection will drop anyhow - so you will be back in AT Command mode!
2018-04-10 01:37 AM
Yes, it is, but using another interface I could monitor all those unsolicited messages.
Thanks for you reply!