Hello, I'm trying to get a GPRS PPP connection going in eCos using the LwIP stack, but no luck so far. It seems that my provider and the LwIP PPP code do not understand each other. I', trying to find examples of correct communication but have had no luck so far and RFC1661 is a bit hard to decode.
Using NetBeans and Gnu ARM tools, I was able to build and run the ChibiOS/RT demos for the STM32F4 discovery board. I downloaded the zip file containing the of ChibiOS/RT and extracted it to my NetBeansProjects folder.
To build a project:. File - New Project - C/C - C/C Project with Existing Sources. Browse to the appropriate directory e.g:./NetBeansProjects/ChibiOS2.6.7/demos/ARMCM4-STM32F407-DISCOVERY. Select Tool Collection as GNU ARM. Select Automatic Configuration ModeThat’s it, the project is imported and automatically builds!
Hello,I'm trying to get a GPRS PPP connection going in eCos using the LwIPstack, but no luck so far.It seems that my provider and the LwIP PPP code do not understand eachother. I', trying to find examples of correct communication but havehad no luck so far and RFC1661 is a bit hard to decode. Does anyoneknow good links to information on this subject?
Google has not comeup with many insightfull links for me.For experts in debugging PPP communication, can you make any sense of thefollowing log data? I had to capture sending and receiving to the modemseparately, so the below parts should be intermixed.There seems to be some communication and even user/pass sending and I geta 'Welcome!' , but after that it dies somewhere.If I turn on LWIP debugging, I see lots of 'invalid' FCS messages.
In article,Stef wrote:Hello,I'm trying to get a GPRS PPP connection going in eCos using the LwIPstack, but no luck so far.It seems that my provider and the LwIP PPP code do not understand eachother. I', trying to find examples of correct communication but havehad no luck so far and RFC1661 is a bit hard to decode. Does anyoneknow good links to information on this subject? Google has not comeup with many insightfull links for me.For experts in debugging PPP communication, can you make any sense of thefollowing log data? I had to capture sending and receiving to the modemseparately, so the below parts should be intermixed.The information below looks like a normal basic negotiation. First LCPis negotiated.
Rising Kingdoms is a real-time strategy PC game developed by Haemimont Games and published by Black Bean Games.It was released June 17, 2005. Rising Kingdoms is a realtime strategy game set in a fantasy world, which focuses on empire development and dynamic tactical battles and features both strategy and adventure modes in the fantasy world of Equiada. Full game pc. If you’re looking for originality and depth in your action-strategy games, then Rising Kingdoms won’t be to your liking. In fact, it’s the sort of RTS game that rips off everything from its betters, riding on a ‘safety in familiarity’ approach that is so common with mainstream entries in this genre.
Then the peer is authenticated with PAP. Then IPCP isnegotiated. Your client first asks for several options that the 'server'doesn't care for, but they finally swap IP addresses and should be readyto send IP traffic.
Then for some unknown reason, the 'server' simplysends a Terminate-Request to the 'client'. How long does the whole processtake??There seems to be some communication and even user/pass sending and I geta 'Welcome!' , but after that it dies somewhere.If I turn on LWIP debugging, I see lots of 'invalid' FCS messages. Butdebugging uses diagprintf, which turns off interrupts and thereforemight introduce character loss.Where is the LWIP output log? In comp.arch.embedded,Patrick Klos wrote:In article,Stef wrote:For experts in debugging PPP communication, can you make any sense of thefollowing log data? I had to capture sending and receiving to the modemseparately, so the below parts should be intermixed.The information below looks like a normal basic negotiation. First LCPis negotiated.
Then the peer is authenticated with PAP. Then IPCP isnegotiated. Your client first asks for several options that the 'server'doesn't care for, but they finally swap IP addresses and should be readyto send IP traffic. Then for some unknown reason, the 'server' simplysends a Terminate-Request to the 'client'. How long does the whole processtake??Thanks, but how can you tell? If I look at RFC1661 and my data, about theonly thing I can make sense of is the 'C021' and 'C023', but the datafollowing those does not look like what I expect from RFC1661. If you canpoint me to a site that explains the data, I'd be very thankfull.The whole process takes about 5 seconds.This Terminate-request' is one of last data packets before I get 'ERROR'?There seems to be some communication and even user/pass sending and I geta 'Welcome!'
, but after that it dies somewhere.If I turn on LWIP debugging, I see lots of 'invalid' FCS messages. Butdebugging uses diagprintf, which turns off interrupts and thereforemight introduce character loss.Where is the LWIP output log? I can't check the FCS by hand so I'llhave to trust the LWIP debug output.With the debug on, there is data loss because it turns off interruptswhile printing the messages over another serial port. But when turnedon, it mostly complains about invalid FCS for 'C023' and 'C021'packets. But due to the data loss, I do not trust it that much.Is there a way to calculate the FCS manually (or programmatically inmy debuggging code)? A page discribing how it is calculated would bevery welcome.We now also tried to get this modem (multitech MTSMC-G-F1) to work withwindows, but the results are a bit simular.
Only thing is that there isabout twice as much data between 'Welcome!' But also hangsup after a few seconds.So maybe there is a problem with the mode settings?
Looking for GPRSsettings on the net provides me with many different answers, but thisis what I'm using now:ATZAT S0=0 E0AT+CGDCONT=1,'IP','web.vodafone.nl'ATDT.99#But there are many more settings to GPRS.-Stef (remove caps, dashes and.invalid from e-mail address to reply by mail)We just joined the civil hair patrol! In article,Stef wrote:In comp.arch.embedded,Patrick Klos wrote:In article,Stef wrote:The information below looks like a normal basic negotiation. First LCPis negotiated. Then the peer is authenticated with PAP.
Then IPCP isnegotiated. Your client first asks for several options that the 'server'doesn't care for, but they finally swap IP addresses and should be readyto send IP traffic. Then for some unknown reason, the 'server' simplysends a Terminate-Request to the 'client'. How long does the whole processtake??Thanks, but how can you tell?Years of experience looking at PPP packets!;^)If I look at RFC1661 and my data, about theonly thing I can make sense of is the 'C021' and 'C023', but the datafollowing those does not look like what I expect from RFC1661. If you canpoint me to a site that explains the data, I'd be very thankfull.The RFC is the primary source. The frames are pretty straightforwardonce you get used to the FLAG and ESCAPE mechanisms.The whole process takes about 5 seconds.This Terminate-request' is one of last data packets before I get 'ERROR'?Are you aware of any system or device that works with this device andISP correctly? If so, can you get a trace of what it's doing?With the debug on, there is data loss because it turns off interruptswhile printing the messages over another serial port.
But when turnedon, it mostly complains about invalid FCS for 'C023' and 'C021'packets. But due to the data loss, I do not trust it that much.Can you modify the debug output to go to a memory buffer instead of theserial port (or severely abbreviate the debug messages)??Is there a way to calculate the FCS manually (or programmatically inmy debuggging code)? A page discribing how it is calculated would bevery welcome.This page looks reasonable, but I haven't tried it myself:We now also tried to get this modem (multitech MTSMC-G-F1) to work withwindows, but the results are a bit simular. Only thing is that there isabout twice as much data between 'Welcome!' But also hangsup after a few seconds.As others know better than I, GPRS modems can act a little strange.Maybe someone else will have some insight on that aspect of your problem?So maybe there is a problem with the mode settings? Looking for GPRSsettings on the net provides me with many different answers, but thisis what I'm using now:ATZAT S0=0 E0AT+CGDCONT=1,'IP','web.vodafone.nl'ATDT.99#But there are many more settings to GPRS.Are you sure you have the correct user ID and password for the ISP??
It'sa thought.Patrick For LAN/WAN Protocol Analysis, check out PacketView Pro! Patrick Klos Email: patrick@klos.comKlos Technologies, Inc. Web:. In comp.arch.embedded,Patrick Klos wrote:In article,Stef wrote:In comp.arch.embedded,Patrick Klos wrote:In article,Stef wrote:The information below looks like a normal basic negotiation.
First LCPis negotiated. Then the peer is authenticated with PAP. Then IPCP isnegotiated.
Your client first asks for several options that the 'server'doesn't care for, but they finally swap IP addresses and should be readyto send IP traffic. Then for some unknown reason, the 'server' simplysends a Terminate-Request to the 'client'. How long does the whole processtake??Thanks, but how can you tell?Years of experience looking at PPP packets!;^)Ah, that explains it! My experience in this field is a few days.;-)If I look at RFC1661 and my data, about theonly thing I can make sense of is the 'C021' and 'C023', but the datafollowing those does not look like what I expect from RFC1661.
If you canpoint me to a site that explains the data, I'd be very thankfull.The RFC is the primary source. The frames are pretty straightforwardonce you get used to the FLAG and ESCAPE mechanisms.OK, just keep going then.The whole process takes about 5 seconds.This Terminate-request' is one of last data packets before I get 'ERROR'?Are you aware of any system or device that works with this device andISP correctly? If so, can you get a trace of what it's doing?Yes, and it is. This modem!I've had a talk with our local distributor today and it turns out thatthere is another AT command set manual for this modem. The one for theinternal IP stack! The datasheet fails to mention the 'minor' fact thatthe modem has an IP stack built in. So I can do FTP comms using ATcommands and serial data.
No need for IP stack and PPP on the target.I'm not sure I can do all I need with the internal IP stack, but theFTP is the most important right now.So just now I downloaded a file from an ftp server using onlyhyperterminal to type a few AT commands.For now I will continue with the internal stack, but I would like toget the PPP stuff working at a later stage.With the debug on, there is data loss because it turns off interruptswhile printing the messages over another serial port. But when turnedon, it mostly complains about invalid FCS for 'C023' and 'C021'packets. But due to the data loss, I do not trust it that much.Can you modify the debug output to go to a memory buffer instead of theserial port (or severely abbreviate the debug messages)??That is what I've already done to log the serial data you saw earlier.I logged it to a buffer and spit it out in a hex-dump like format whenthe connection dies. I've also redirected one debug function to use anormal serial port that does not stop interrupts, but debug data keepscoming on that blocking channel from other places in LWIP when debugis turned on. So I would have to go through all the LWIP sourcesto find out where it's coming from.Is there a way to calculate the FCS manually (or programmatically inmy debuggging code)? A page discribing how it is calculated would bevery welcome.This page looks reasonable, but I haven't tried it myself:That looks very good indeed. And pressing 'previous' gets me to a pagethat I've been looking for for the last few days: A detailed PPP packetexample.
Thanks for that link.We now also tried to get this modem (multitech MTSMC-G-F1) to work withwindows, but the results are a bit simular. Only thing is that there isabout twice as much data between 'Welcome!' But also hangsup after a few seconds.As others know better than I, GPRS modems can act a little strange.Maybe someone else will have some insight on that aspect of your problem?Yes, this one seems to need an AT+CGATT=1 to get on the network. And i'vefound at least 4 AT commands/dial strings to start the actual connection,but which is 'right'?OK, I can do my FTP for now and come back to the PPP when that is done.Thanks for your help.-Stef (remove caps, dashes and.invalid from e-mail address to reply by mail)Cutler Webster's Law:There are two sides to every argument, unless a personis personally involved, in which case there is only one.
On Thursday, in article pklos@osmium.mv.net 'Patrick Klos' wrote:In article,Stef wrote:In comp.arch.embedded,Patrick Klos wrote.ATZAT S0=0 E0AT+CGDCONT=1,'IP','web.vodafone.nl'ATDT.99#But there are many more settings to GPRS.Are you sure you have the correct user ID and password for the ISP?? It'sa thought.From the info I have not tried personally there is a username and passwordexpected, I suggest you test it and check for capital letters.If you go to this page for a GPRS modem and get the zip file of alltechnical documents, it contains a web page listing of lots of known settingsfor user, password, APN, DNS for various operators and countries. In comp.arch.embedded,Paul Carpenter wrote:On Thursday, in article pklos@osmium.mv.net 'Patrick Klos' wrote:Are you sure you have the correct user ID and password for the ISP?? It'sa thought.From the info I have not tried personally there is a username and passwordexpected, I suggest you test it and check for capital letters.Always a posibility, but I have got the correct ones. For our vodafonenetwork it's user:vodafone pass:vodafone.
This works with modem in IP mode.If you go to this page for a GPRS modem and get the zip file of alltechnical documents, it contains a web page listing of lots of known settingsfor user, password, APN, DNS for various operators and countries. Lots of datasheets there, downloading now, thanks.-Stef (remove caps, dashes and.invalid from e-mail address to reply by mail)The little town that time forgot,Where all the women are strong,The men are good-looking,And the children above-average.- Prairie Home Companion. Lots of datasheets there, downloading now, thanks.To keep it simple:As a customer of Round Solutions you will enjoy a huge community basedon the biggest GSM module user forum in the Internet with FAQ and a lotof postings. You will get factory support and you will see that usershelp users as well.
You will stay in a community with more then 2100members around the world. A big 'technical family' that grows each day.RegardsMeffwww.gsm-modem.deP.S: I am the admin of the Round Solutions forum.