EngineersGarage

  • Engineers Garage Main Site
  • Visit our active EE Forums
    • EDABoard.com
    • Electro-Tech-Online
  • Projects & Tutorials
    • Circuits
    • Electronic Projects
    • Tutorials
    • Components
  • Digi-Key Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Advertise
You are here: Home / Topics / USB GSM Modem Interface with Hyperterminal/Embedded Controller

USB GSM Modem Interface with Hyperterminal/Embedded Controller

|

Electronics › Electronics › USB GSM Modem Interface with Hyperterminal/Embedded Controller

  • This topic has 14 replies, 4 voices, and was last updated 12 years, 11 months ago by Anonymous.
Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • May 21, 2012 at 3:38 pm #1811
    Chen Jun Jie
    Participant

    Hello everyone,

     

    I am in need of some help, please allow me some of your time.

     

    I have gotten myself a Huawei E1750 GSM USB Modem and a usb to serial RS232 adapter.

     

    I will need to interface the rx and tx/gnd pin of my USB Modem – RS232 Adapter to the rx tx Pins of my LPC1769.
     

    Problem 1) i am not able to send AT commands via hyper terminal as the modem has an USB interface, any alternatives to this ?

     

    Problem 2)The modem requires a usb connection to achieve powered on status,  how can i achieve this without connecting directly to my laptop’s usb connection ? Is it possible to connect the USB modem to a self powered USB hub and connect the output of the Self-Powered Hub with the RS232 adapter to allow me to use the rx and  tx pins ?

     

     

    Thank you for your time

     

     

    May 21, 2012 at 5:51 pm #7861
    AJISH ALFRED
    Participant

     

    1) Did you mean that you are not able to access usb port through hyperterminal?

         Well, there are softwares like MTTY, PUTTY etc. , through which you can send data to usb ports.

    2) I’m not sure about power the modem using self powered usb hub, it will probably work.

        But RS232 is a serial to ttl converter and you need a different thing; usb to ttl converter !!

    May 21, 2012 at 7:18 pm #7864
    Chen Jun Jie
    Participant

    Hi Ajish, 

    I have managed to send AT Commands via USB (PC to modem) now.

    I was thinking, perhaps i could get myself a USB to Uart converter(FT232)  ? This way, i could make use of the existing USB GSM modem and interface it easily with LPC’s existing Uart pins.

     

    Do you think the way i suggested will work with LPC 1769 ?

    May 22, 2012 at 5:22 am #7868
    Amrith
    Participant

     

    Hi Chen,

     

    Smart thinking. FT232 will help you to connect USB to your LPC17XX UART pins. This is the best solution.

    May 22, 2012 at 4:52 pm #7874
    AJISH ALFRED
    Participant

     

    Yes, it should work ! Please try the same and update.

    May 22, 2012 at 5:06 pm #7875
    AJISH ALFRED
    Participant

     

    And don’t forget to use a max232 (uart to ttl) between FT232 and the uart pins of the controller.

    Its like,

                             usb<


    >uart<


    >ttl<


    >mcu

    May 23, 2012 at 4:36 am #7877
    Chen Jun Jie
    Participant

    Amrith

    Thank You for the confirmation.

     

    Ajish,
    What you are suggesting is that the USB to Uart(ttl) outputs are not sufficient to drive communication between the USB modem and the LPC 1769 ?

     

    I/O pins of the LPC 1769 are 3.3/5 volts tolerant, are you saying that the output volltage of the USb to Uart converter maybe too high and cause damage the MCU ?
     

     

     

    Apologies, as i am new to this assignment.

    May 23, 2012 at 6:25 pm #7885
    AJISH ALFRED
    Participant

     

    I was actually worried about the communication standards, and not about the voltage tolerence!

     

    I think you are talking about the kind of device found on the following link, right?

     

    http://www.ftdichip.com/Products/ICs/FT232BM.htm

     

    It is actually a USB to RS232 converter. USB is one communication standard and RS232 is another one. RS232 is the standard that we use in serial port (DB9 connector) of computers. Whenever we try to interface such a serial port with mcu, we use max232, don’t we?

    max232 converts RS232 serial data standard to ttl serial data standard.

    I hope it is clear now!

     

    And that is the knowledge I have, if I’m wrong readers please share your thoughts.

     

     

    May 24, 2012 at 6:30 am #7891
    Chen Jun Jie
    Participant

    Hi Aijish,

     

     

    Is there a problem using FT232 ?

     

    One of the PHD assistants told me that a USB Host/Slave issue might be present in my solution.

     

     

    May 24, 2012 at 6:37 am #7892
    Amrith
    Participant

    Hi All,

    I found some info on internet. Hope this may help you

    Refer the link for data sheet: http://www.sparkfun.com/datasheets/IC/FT232R_v104.pdf

     

    wysiwyg_imageupload:4770:

     

    wysiwyg_imageupload:4771:

    May 24, 2012 at 5:15 pm #7894
    AJISH ALFRED
    Participant

     

    Oh YES, he is rightsmileysad

     

    USB is a master/slave or host/slave communication. Suppose you are connecting your GSM USB modem to the PC’s USB port. Here the PC is the host (and always will be) and the modem is the slave. Host initiate the communication by sending some data (requesting about hardware details) into the slave and the slave should reply to it properly before the actual communication begins. Thats how the host decide what kind of driver should be loaded to communicate with that particular slave.

     

    In all USB devices that is meant to be communicated with a PC have a hardware inside it called SIE (Serial Interface Engine). It manages all the communication between PC and the USB device. So in order to communicate with such a USB device you should have drivers written for it.

     

    In your case your simple microcontroller should act like a master and the modem as slave. So you can connect the modem only if you can code for a driver in your mcu

     

    It is like,

                                                                                           |

                          GSM USB                                                 |

                           modem     <— connecting circuits


    >  |  USB driver

                            (slave)                                                     |    code

                                                                                            |

                                                                                            |        MCU

                                                                                            |

     

    For more details about USB host/slave communication find this useful link

    http://www.maxim-ic.com/app-notes/index.mvp/id/3803

     

    May 24, 2012 at 5:48 pm #7897
    Chen Jun Jie
    Participant

    This was the data sheet that gave me the idea.

     

    Renewed confidence, thanks Amrith !

     

    May 25, 2012 at 4:50 am #7900
    Chen Jun Jie
    Participant

    edit – I saw the post. 

     

    Hmm, this is interesting.

    May 26, 2012 at 4:50 pm #7898
    AJISH ALFRED
    Participant

     

    Chen,

     

    I’m sorry, but it just won’t work out that easily! Your PHD friend is right.

     

    June 6, 2012 at 5:26 am #7972
    Anonymous
    Guest

    i want some help on your engineesgarage wedsite so i hope you clarify our doubts

  • Author
    Posts
Viewing 15 posts - 1 through 15 (of 15 total)
  • You must be logged in to reply to this topic.
Log In

RSS Recent Posts

  • Need Help Figuring Out the Schematics Of Circuit Board May 13, 2025
  • Wish to buy Battery, Charger and Buck converter for 12V , 2A router May 12, 2025
  • applying solder paste from a jar May 12, 2025
  • Question i-nears headphones magnetic drivers May 12, 2025
  • An Update On Tarrifs May 12, 2025

Stay Up To Date

Newsletter Signup
EngineersGarage

Copyright © 2025 WTWH Media LLC. All Rights Reserved. The material on this site may not be reproduced, distributed, transmitted, cached or otherwise used, except with the prior written permission of WTWH Media
Privacy Policy | Advertising | About Us

Search Engineers Garage

  • Engineers Garage Main Site
  • Visit our active EE Forums
    • EDABoard.com
    • Electro-Tech-Online
  • Projects & Tutorials
    • Circuits
    • Electronic Projects
    • Tutorials
    • Components
  • Digi-Key Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Advertise