Electronics › Electronics › USB GSM Modem Interface with Hyperterminal/Embedded Controller
- This topic has 14 replies, 4 voices, and was last updated 10 years, 10 months ago by Anonymous.
May 21, 2012 at 3:38 pm #1811
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 timeMay 21, 2012 at 5:51 pm #7861
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
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 #7868AmrithParticipant
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
Yes, it should work ! Please try the same and update.May 22, 2012 at 5:06 pm #7875
And don’t forget to use a max232 (uart to ttl) between FT232 and the uart pins of the controller.
>mcuMay 23, 2012 at 4:36 am #7877
Thank You for the confirmation.
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
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?
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
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 #7892AmrithParticipant
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.pdfMay 24, 2012 at 5:15 pm #7894
Oh YES, he is right
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
For more details about USB host/slave communication find this useful link
http://www.maxim-ic.com/app-notes/index.mvp/id/3803May 24, 2012 at 5:48 pm #7897
This was the data sheet that gave me the idea.
Renewed confidence, thanks Amrith !May 25, 2012 at 4:50 am #7900
edit – I saw the post.
Hmm, this is interesting.May 26, 2012 at 4:50 pm #7898
I’m sorry, but it just won’t work out that easily! Your PHD friend is right.June 6, 2012 at 5:26 am #7972AnonymousGuest
i want some help on your engineesgarage wedsite so i hope you clarify our doubts
- You must be logged in to reply to this topic.