Installation stuck at TCPIP over PPP

Guys, I am really really new at wavecom, and actually OPEN AT, AT commands, and modems in general. :blush: Actually even my C++ is sketchy :blush:
And LUA sorta could save me from hell of programming my Supreme 20 within a week. A week! :mrgreen:
So I got started with the LUA installation.

  1. Use Open AT Wizard to output the lua libraries and luasample(not the lightsample) to VC6, no problem.
  2. Use VC6 to compile, got one erorr, but wpb.dwl was generated.
    VC6 compiler said:
-------------------Configuration: oatlua - Win32 Wismo_Target--------------------
Loading Open AT IDE...
Done.
Loading project settings...
done.
Building gcc_oatlua project...
 
    Launch a full library or binary process
 
 
---------------------------------------
 
... Creating library gcc_oatlua.lib with gcc_arm parameter
 
---------------------------------------
 
 
---------------------------------------
Cleaning temporary files       (*.tmp / *.trc)
 
 
---------------------------------------
 Generation done with SGT v1.2.12oat
 Library generated    : gcc_oatlua.lib
 Compiler keyword     : gcc_arm
 Compiler release     : GCC ARM
 C compiler path      : C:/OpenAT/IDE/GCC/4.0.1.0/bin/arm-elf-gcc
 ASM compiler path    : C:/OpenAT/IDE/GCC/4.0.1.0/bin/arm-elf-gcc
 customer release      : gcc
 Name of the current directory : gcc
 Log file             : ../out/gcc_oatlua_status.log
 Release of the environement : CYGWIN_NT-5.1 FRANCISDC5D9R1S 1.5.23(0.156/4/2) 2006-12-19 10:52 i686 Cygwin
---------------------------------------
 
 
Done.
--------------------Configuration: luasample - Win32 Wismo_Target--------------------
Loading Open AT IDE...
Done.
Loading project settings...
done.
Building gcc_luasample_256KB project...
 
    Launch a full library or binary process
 
 
---------------------------------------
 
    Copy all needed library and object files
 
 Make links C:/OpenAT/OS/4.21.01/ADL/gcc_wmadl_4.21.0.0.0.lib ../out/gcc_wmadl_4.21.0.0.0.lib
 Make links ../../../oatlua/gcc/out/gcc_oatlua.lib ../out/gcc_oatlua.lib
 Make links C:/OpenAT/Plug-ins/WIP/3.00.09/WIP/gcc_wmwip_3.0.0.2.1.lib ../out/gcc_wmwip_3.0.0.2.1.lib
---------------------------------------
 
... Link step in progress ...
 
c:\OpenAT\IDE\MINGW\3.8.0.1\bin\make.exe: *** [make_single_bin] Error -1073741819
 
    Build an X-MODEM binary  : 'gcc_luasample_256KB.wpb.dwl'
 
 
... Convert gcc_luasample_256KB.wpb in X-MODEM format ...
 
genBin : Version v1a06 Copyright (c) WAVECOM
genBin : No Error
 
... Build gcc_luasample_256KB.wpb.dwl ...
 
---------------------------------------
 
AXFshrinker Version 1.0.0.1 ( Aug 23 2002 , 17:44:58 ) 
updating: backtraces.axf (176 bytes security) (deflated 74%)
Done.

luasample - 1 error(s), 0 warning(s)
  1. I downloade the wpb.dwl file with hyperterminal to my Fastrack Supreme 20, the screen on hyperterminal:
at  
OK  
at+wdwl       
+WDWL: 0

at+cfun=1
OK

+WIND: 13

+WIND: 12,0

+WIND: 1

+WIND: 16

+WIND: 7

+WIND: 15,4,"08/01/11,11:48:46+32",6,"0"

+WIND: 4

+WIND: 10,"SM",1,"FD",0,"ON",0,"EN",0

+WIND: 11,"EEC204EDB18ABF89AD57FE4C27B5C09B",,,,"FB2CC14ADA210403B1403E2427FB812
9","94423CC2660C922CA8EEEF6D86558DC6"
  1. Did all the setup for windows xp TCPIP over PPP client. Tried to connect with network connection but this message came out:
    ā€œerror 777: The connection attempt failed because the modem (or other connecting device) on the remote computer is out of orderā€
    Windows tried to redial a couple of times, no good.

  2. I checked my supreme 20 again with AT, and got a return of OK. My new and precious Supreme 20 should be fine.

So, where went wrong ToT

I am not really sure(actually have no clue), could be because
a.Fastrack supreme isnā€™t wmp100?
b.The dwl has problems?
c. My network setting has problems?

ToT

Thanks.

Hi, here are a couple of random guesses:

  • have you asked the modem to auto-start the application? The AT command ā€œAT+WOPEN=1ā€ will do it. If youā€™ve kept the sample as distributed, with the net option ā€œWIP_NET_OPT_DEBUG_PORT, WIP_NET_DEBUG_PORT_UART1ā€, your UART1 port should be littered with debug traces until it switches to DATA mode, and I see none of those traces in your log.

  • have you followed the windows installation guidelines closely? Itā€™s quite tricky and unforgiving, e.g. you have to set the baud rate 3(!) times. Windows hates COM ports and handles them very poorly :frowning:

  • if you try to do PPP over UART2, and youā€™ve got a cheap serial port controller (as is often the case with no-name USB<->serial converters), you might have troubles: UART2 on devkits lack some signals, and it confuses some of these controllers. Fix: go back to UART1. If you insist on using UART2, make sure taht itā€™s enabled (ā€œAT+WMFM=0,1,2ā€ if I remember correctly). [well, thatā€™s probably not the case for a Fastrack, but Iā€™ll keep the remark anyway. One of my goals is to compile common error causes here, and the result will go to the Wiki].

  • have you closed the hyper terminal? if itā€™s got the COM portā€™s ownership, the cable modem pseudo-device wonā€™t be able to use it

Iā€™ve started a troubleshooting page on the Wiki: http://www.wavecom.com/lua/wiki/tiki-index.php?page=TroubleShooting

-I did AT+OPEN=1, and the below came out. The PC still cannot connect to my supreme 20.

I noticed this line ā€œ[UART2]: open: ā†’ DISCONNECTEDā€, should be UART1, right?

I didnā€™t change any codes in luasample, didnā€™t change any setting in my Supreme 20, and followed EXACTLY the procedure in OatLuaRefmanWinThirtyTwoSetup to setup TCPIP over PPP. Actually I looked through all the (many) manuals and donā€™t really understand what UART2 is (there is only one serial port on my modemā€¦ ). So I donā€™t have enough knowledge to change any settingsā€¦ :blush:

There is only one comm port in my PC and I configured it TCPIP over PPP for my modem.
I use another laptop which has one comm port only, to load the wpb.dwl to my modem with hyperterminal, and performed all the AT commands.

+WIND: 13         

+WIND: 12,0           
[GPRS]: initialized.                    
[GSM]: initialized.                   
[UART1]: initialized.                     
[UART2]: initialized.                     
[]: initialized.                
[LUAW][MEM] reserving 50KB for lua optimized memory pools                                                         
[LUAW][MEM] Reserving 1300 bytes out of 52080 for 8-blocks pool                                                               
[LUAW][MEM] Reserving 2580 bytes out of 50780 for 16-blocks pool                                                                
[LUAW][MEM] Reserving 9660 bytes out of 48200 for 20-blocks pool                                                                
[LUAW][MEM] Reserving 11580 bytes out of 38540 for 24-blocks pool                                                                 
[LUAW][MEM] Reserving 4500 bytes out of 26960 for 28-blocks pool                                                                
[LUAW][MEM] Reserving 10280 bytes out of 22460 for 32-blocks pool                                                                 
[LUAW][MEM] Reserving 12180 bytes out of 12180 for 76-blocks pool                                                                 
[LUAW][MEM] memory pools ready                              
[LUAW] load library base...uses 3246 bytes                                          
[LUAW] load library table...uses 756 bytes                                          
[LUAW] load library string...uses 1030 bytes                                            
[LUAW] load library package...uses 1753 bytes                                             
[LUAW] load library debug...uses 1396 bytes                                           
[LUAW] load library strict...uses 1270 bytes                                            
[LUAW] load library scheduling...uses 6210 bytes                                                
[LUAW] load library timer...uses 182 bytes                                          
[LUAW] load library options...uses 312 bytes                                            
[LUAW] load library channels...uses 7380 bytes                                              
[LUAW] load library bearers...uses 4140 bytes                                             
[LUAW] load library tcp...uses 1677 bytes                                         
[LUAW] load library flash_read...uses 1710 bytes                                                
[LUAW] load library flash_write...uses 3918 bytes                                                 
[LUAW] load library rawflash...uses 948 bytes                                             
[LUAW] load library shell...uses 7509 bytes                                           
[LUAW] load library misc...[LUAW] Flash get                                           
uses 2947 byt           
[LUAW] load library at...uses 2043 bytes                                        
[LUAW] load library mem...uses 64 bytes                                       
[LUAW] load library print...uses 1571 bytes
[LUAW] load library sms...uses 45 bytes
[LUAW] RUN [thread 0x180e7880]
[LUAW] Starting telnet server
[UART2]: open: -> DISCONNECTED
[UART2]: FCM subscribe: -8
[LUAW][ERROR] *** -29 ***
[LUAW] run(): error: -29
[LUAW] stack traceback:
        [C]: in function 'error'
        ?: in function 'bearer_server'
        [string "global ('LOCAL_ADDR', 'PEER_ADDR', 'PPP_UAR..."]:1: in main chu
nk
[LUAW] SIGNAL [thread 0x180e7880].die
[LUAW] SIGNAL at.WIND
[LUAW] SIGNAL at.CREG
[LUAW] SIGNAL at.WIND
[LUAW] SIGNAL at.WIND
[LUAW] SIGNAL at.CREG
[LUAW] SIGNAL at.WIND
[LUAW] SIGNAL at.WIND
[LUAW] SIGNAL at.WIND
[LUAW] SIGNAL at.WIND
  • Not really knowing what UART2 is, i did a test, with at+wmfm=0,1,2, and the below came out. But my PC still cannot communicate with the modemā€¦
at  
OK  
at+wmfm       
ERROR     
at+wmfm=0,1,2             
OK  
at  
OK  
at+wopen=1          
OK  
at+wopen=0          
OK  

+WIND: 13         

+WIND: 12,0           
at  
OK  
at+wopen=1          
OK  

+WIND: 13         

+WIND: 12,0           
[GPRS]: initialized.                    
[GSM]: initialized.                   
[UART1]: initialized.                     
[UART2]: initialized.                     
[]: initialized.                
[LUAW][MEM] reserving 50KB for lua optimized memory pools                                                         
[LUAW][MEM] Reserving 1300 bytes out of 52080 for 8-blocks pool                                                               
[LUAW][MEM] Reserving 2580 bytes out of 50780 for 16-blocks pool                                                                
[LUAW][MEM] Reserving 9660 bytes out of 48200 for 20-blocks pool                                                                
[LUAW][MEM] Reserving 11580 bytes ou                                  
[LUAW][MEM] Reserving 4500 bytes out of 26960 for 28-blocks pool                                                                
[LUAW][MEM] Reserving 10280 bytes out of 22460 for 32-blocks pool                                                                 
[LUAW][MEM] Reserving 12180 bytes out of 12180 for 76-blocks pool                                                                 
[LUAW][MEM] memory pools ready                              
[LUAW] load library base...uses 3246 bytes                                          
[LUAW] load library table...uses 756 bytes                                          
[LUAW] load library string...uses 1030 bytes                                            
[LUAW] load library package...uses 1753 bytes                                             
[LUAW] load library debug...uses 1396 bytes                                           
[LUAW] load library strict...uses 1270 bytes                                            
[LUAW] load library scheduling...uses 6210 bytes                                                
[LUAW] load library timer...uses 182 bytes                                          
[LUAW] load library options...uses 312 bytes                                            
[LUAW] load library channels...uses 7380 bytes                                              
[LUAW] load library bearers...uses 4140 bytes                                             
[LUAW] load library tcp...uses 1677 bytes                                         
[LUAW] load library flash_read...uses 1710 bytes                                                
[LUAW] load library flash_write...uses 3918 bytes                                                 
[LUAW] load library rawflash...uses 948 bytes                                             
[LUAW] load library shell...uses 7509 bytes                                     
[LUAW] load library misc...[LUAW] Flash get
uses 2947 bytes
[LUAW] load library at...uses 2043 bytes
[LUAW] load library mem...uses 64 bytes
[LUAW] load library print...uses 1571 bytes
[LUAW] load library sms...uses 45 bytes
[LUAW] RUN [thread 0x180e78e0]
[LUAW] Starting telnet server
[UART2]: open: -> DISCONNECTED
[UART2]: FCM subscribe: 0
[UART2]: startsrv: -> LISTENING
[LUAW] SIGNAL [thread 0x180e78e0].die
[UART2]: FCM EVENT FLOW OPENNED: switch to DATA
[UART2]: FCM EVENT V24 DATA MODE
[LUAW] SIGNAL at.WIND
[LUAW] SIGNAL at.CREG
[LUAW] SIGNAL at.WIND
[LUAW] SIGNAL at.WIND
[LUAW] SIGNAL at.CREG
[LUAW] SIGNAL at.WIND
[LUAW] SIGNAL at.WIND
[LUAW] SIGNAL at.WIND
[LUAW] SIGNAL at.WIND
  • Here is some of my commands to see what kind of UART is in my Supreme 20, and how the modem responds:
at+wmfm=0,2,1             
+WMFM: 0,2,1,1              

OK  
at+wmfm=1,2           
+WMFM: 1,2,4,0              
+WMFM: 1,2,4,1              

OK  
at+wmfm=0,2
+WMFM: 0,2,1,1
+WMFM: 0,2,2,1
+WMFM: 0,2,3,0

OK
at+wmfm=0,0,2
ERROR
at+wmfm=0,0,1
ERROR
at+wmfm=?
+WMFM: 0,(0-2),(1-3)
+WMFM: 1,(0-2),(80,1,2),(0-1)

OK
at+wmfm?
+WMFM: 0,2,1,1
+WMFM: 0,2,2,1
+WMFM: 0,2,3,0
+WMFM: 1,2,4,0
+WMFM: 1,2,4,1

OK
  • Yes, I did follow the installation guildline closely and set the baud rate 3 times.
  • I donā€™t know how to PPP over UART2, I just followed the instructions on OatLuaRefmanWinThirtyTwoSetup.

-Yes I did

OK. The Lua VM is designed to work on all wavecom platforms, and many of them have several UARTs; fastrack modems only have UART1, though.

FIX: in the sampleā€™s appli.c, replace all occurences of UART2 into UART1, recompile, redownload.

Iā€™ll add the ā€œmy platform has no UART2ā€ error in the troubleshooting section, thanks for your feedback.

Alternatively, if you donā€™t want to recompile, you can fix the UART from Lua, by:

  • creating a flash table of objects to load at boot time:
AT+LUA="flash.create 'wiplua.boot' "
  • reboot, to take that table into account. From now, everything thatā€™s saved in this table will be reloaded in the module at boot time. the command save() automates the writing of a variableā€™s content into that table.

  • storing a different value for PPP_UART, the name of the default PPP port:

AT+LUA="PPP_UART='UART1'; save 'PPP_UART' "
  • reboot one last time, so that PPP_UARTā€™s new value is actually taken into account when starting the PPP server.

(reboots could have been avoided, but itā€™s probably simpler to do that way, before you had an occasion to get more familiar with the system).

Notice that creating the ā€˜wiplua.bootā€™ table needs to happen only once, unless you wipe out the flash objects memory with the appropriate AT command, or voluntarily destroy it from Lua.

In the next release of Open AT Lua, the default port will be set to UART1, to avoid the kind of problem you experienced.

Got the ping after changing UART2 to UART1 in appli.c. Many thanks! :smiley:

On to the FTP!

Since this thread went wildly out of topic in various ways, Iā€™ve split it in several more focused threads:

Please try to either stay within the topic of the thread, or open a new thread.