[STM32L073RZT6] Read USB pins from GPRS modem
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-04-03 4: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,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-04-03 7:41 AM
You want to connect the module to STM32 as if the STM32 would be a PC?
JW
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-04-03 7: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.
Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎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!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-04-03 10:17 AM
Find a modem supporting CMUX protocol
Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-04-04 2:23 AM
Thanks so much!
I did not know this protocol and it seems to be the best solution.
Thanks!
Best regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-04-04 3: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!
A complex system designed from scratch never works and cannot be patched up to make it work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-04-10 1:37 AM
Yes, it is, but using another interface I could monitor all those unsolicited messages.
Thanks for you reply!
