Skip to main content
Modiot Modiot
Associate
April 3, 2018
Question

[STM32L073RZT6] Read USB pins from GPRS modem

  • April 3, 2018
  • 2 replies
  • 1673 views
Posted on April 03, 2018 at 13:33

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,

    This topic has been closed for replies.

    2 replies

    waclawek.jan
    Super User
    April 3, 2018
    Posted on April 03, 2018 at 16:41

    You want to connect the module to STM32 as if the STM32 would be a PC?

    JW

    Modiot Modiot
    Associate
    April 3, 2018
    Posted on April 03, 2018 at 17:00

    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!

    Tesla DeLorean
    Guru
    April 3, 2018
    Posted on April 03, 2018 at 16:56

    >>

    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.

    Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
    Modiot Modiot
    Associate
    April 3, 2018
    Posted on April 03, 2018 at 17:04

    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.

    Tesla DeLorean
    Guru
    April 3, 2018
    Posted on April 03, 2018 at 17:17

    Find a modem supporting CMUX protocol

    Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..