CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Help required for interfacing 18f4550 with usb gprs modem

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
zeeshan ahmed



Joined: 02 Dec 2010
Posts: 22

View user's profile Send private message

Help required for interfacing 18f4550 with usb gprs modem
PostPosted: Wed Dec 08, 2010 10:30 am     Reply with quote

Hi all,
I'm new to ccs forum. I need help regarding AT command for GPRS modem. I want to transmit data. I have to interface gprs modem through USB. I know how to program microcontroller for usb interfacing. Right now I need help regarding AT command set. Plz help..ASAP.

regards
Zeeshan
bkamen



Joined: 07 Jan 2004
Posts: 1615
Location: Central Illinois, USA

View user's profile Send private message

PostPosted: Wed Dec 08, 2010 11:17 am     Reply with quote

First question:


Is the GPS a USB DEVICE or HOST.

See... You can't hook a PIC in the USB DEVICE mode to another USB DEVICE. It's how USB was designed.

So to fix the problem of the PDA (as an example) that might be a DEVICE or maybe a HOST.. they came up with USB OTG. (On-The-Go).

If your USB GPS is a DEVICE, then you'd need a PIC with USB OTG ability.

So select a PIC with that knowledge once you've figured out which type of USB device your GPS is.

Also, consider getting a Serial (RS232) based GPS. Interfacing is MUUUUUCCCCHHH easier.

Are you required to use that USB based GPS?

-Ben
_________________
Dazed and confused? I don't think so. Just "plain lost" will do. :D
zeeshan ahmed



Joined: 02 Dec 2010
Posts: 22

View user's profile Send private message

PostPosted: Sat Dec 11, 2010 2:33 am     Reply with quote

Thanks for your reply.

Actually gprs is a usb device... and I want to use pic 18f4550 as a host device and will implement TCP/IP stack in pic...but you mention that PIC18f4550 does not have hosting capability. So please let me know which PIC18 series controller has OTG capability. I searched for the PIC controllers which have OTG capability. PIC32 Series have this feature. But I can't use pic32 series in my project.

Again thanks for your time.
Ttelmah



Joined: 11 Mar 2010
Posts: 19504

View user's profile Send private message

PostPosted: Sat Dec 11, 2010 3:01 am     Reply with quote

Understand that a USB host, requires quite a lot of work, and a lot of code. This is (in part) why it is reserved for larger/faster chips.
There are several 24J chips with this ability, rather than PIC32.
Why do you talk about TCP/IP stack?. A USB stack, is not a TCP/IP stack, and is a lot more complex.
Alternatively, you can add an external host controller to just about any PIC (you don't need a USB PIC), by using the FTDI 'Vinculum'. Advantage here is that the stack is already written for you.
Be aware, that quite a few USB GPRS devices, will also talk using serial connections (they detect one pin of the USB connector being pulled to a different level, and switch to a serial emulation - similar to how most modern keyboards work, switching to USB, or PS/2 connections). Alternatively, there are several serial GPRS devices on the market. Using serial will probably be several _weeks_ quicker, in terms of code development....

Best Wishes
zeeshan ahmed



Joined: 02 Dec 2010
Posts: 22

View user's profile Send private message

PostPosted: Sat Dec 11, 2010 4:28 am     Reply with quote

Thanks for your reply....
First i correct u that i will implement TCP/IP stack for GPRS module...here i m seeking help regarding interfacing a USB GPRS modem(device) with PIC(host).
i go through the data sheet of PIC24FJ256GB110 ...and it has OTG feature.

Thanks Smile
zeeshan ahmed



Joined: 02 Dec 2010
Posts: 22

View user's profile Send private message

PostPosted: Sat Dec 11, 2010 7:25 am     Reply with quote

Is it possible to make a usb device e.g pic18f4550; a usb host,
by changig the driver file?
please let me know....ASAP
thanks
bkamen



Joined: 07 Jan 2004
Posts: 1615
Location: Central Illinois, USA

View user's profile Send private message

PostPosted: Sat Dec 11, 2010 1:53 pm     Reply with quote

zeeshan ahmed wrote:
Is it possible to make a usb device e.g pic18f4550; a usb host,
by changig the driver file?
please let me know....ASAP


To my knowledge, no.

If it was just a simple matter of programming, you would not find PIC's with differentiating USB ports.

In fact, the need for a standard for devices that can switch back and forth wouldn't have been necessary.

From the 20,000m view, there must be critical differences to warrant all the hype. So it's going to be up to you to determine the details.

You will want to download Microchip's USB application library as it has sample code for HOST and DEVICE modes of operation.

I'm sure you'll find your answers there.

Cheers,

-Ben
_________________
Dazed and confused? I don't think so. Just "plain lost" will do. :D
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group