Electronics › Electronics › USB GSM Modem Interface with Hyperterminal/Embedded Controller
- This topic has 14 replies, 4 voices, and was last updated 12 years, 4 months ago by Anonymous.
-
AuthorPosts
-
May 21, 2012 at 3:38 pm #1811Chen Jun JieParticipant
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 #7861AJISH ALFREDParticipant1) 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 #7864Chen Jun JieParticipantHi 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 #7868AmrithParticipantHi 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 #7874AJISH ALFREDParticipantYes, it should work ! Please try the same and update.
May 22, 2012 at 5:06 pm #7875AJISH ALFREDParticipantAnd don’t forget to use a max232 (uart to ttl) between FT232 and the uart pins of the controller.
Its like,
usb<
>uart<
>ttl<
>mcuMay 23, 2012 at 4:36 am #7877Chen Jun JieParticipantAmrith
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 #7885AJISH ALFREDParticipantI 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 #7891Chen Jun JieParticipantHi 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 #7892AmrithParticipantHi 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
May 24, 2012 at 5:15 pm #7894AJISH ALFREDParticipantOh 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
|
| 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 #7897Chen Jun JieParticipantThis was the data sheet that gave me the idea.
Renewed confidence, thanks Amrith !
May 25, 2012 at 4:50 am #7900Chen Jun JieParticipantedit – I saw the post.
Hmm, this is interesting.
May 26, 2012 at 4:50 pm #7898AJISH ALFREDParticipantChen,
I’m sorry, but it just won’t work out that easily! Your PHD friend is right.
June 6, 2012 at 5:26 am #7972AnonymousGuesti want some help on your engineesgarage wedsite so i hope you clarify our doubts
-
AuthorPosts
- You must be logged in to reply to this topic.