Page 1 of 1

GSM Driver

Posted: Fri May 24, 2013 10:30 am
by Tabulous
Hi thought i would just ask the question

Anyone implemented a GSM modem driver using ChibiOS and if so did you use UART or SERIAL driver for the implementation.

I'm asking as i need to do this, and normally when using GSM modem you have two states, AT command mode and Online data mode.

Any advice would be welcome :-)

Cheers

Re: GSM Driver

Posted: Fri May 24, 2013 10:39 am
by DrunkenDonkey
I may need to do it later this year. Uart/serial - does it matter really? Uart had less overhed I think, serail will be easier for the commands, but unless you are shooting for some very high transfer speeds...

Re: GSM Driver

Posted: Fri May 24, 2013 10:52 am
by Tabulous
Transfer speed is not an issue, also worth nothing, i'll be using the TCP/IP stack of the module.

My concern is pumping 10KByte XML files out to the modem when in online mode

Re: GSM Driver

Posted: Fri May 24, 2013 12:32 pm
by DrunkenDonkey
Then it really does not matter, go for serial and have fun.

Re: GSM Driver

Posted: Fri May 24, 2013 2:58 pm
by Tabulous
mmmm not sure serial driver is way to go here, it seems all the serial driver receive calls you need to specify number of bytes to read.............

Re: GSM Driver

Posted: Fri May 24, 2013 6:13 pm
by DrunkenDonkey
Dunno, I'll go for it when time comes :)
I mean it does cache data, so in command mode you read byte by byte to get the line end and command response, in data mode... well depends, some modems notify you about leaving data mode with ETX, so you again read byte by byte and interrupt when ETX is received, or... well, aint difficult either way