Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Save to My Library
Look up keyword
Like this
2Activity
0 of .
Results for:
No results containing your search query
P. 1
Open at Dynamic Programming With Lua Tutorial

Open at Dynamic Programming With Lua Tutorial

Ratings: (0)|Views: 66 |Likes:
Published by Mikhail Miguel

More info:

Published by: Mikhail Miguel on Feb 12, 2012
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

11/19/2012

pdf

text

original

 
 
confidential ©
 
WM_PLC_F039Level001 Page : 1 / 2
This document is the sole and exclusive property of WAVECOM. Not to be distributed or divulgedwithout prior written agreement. Ce document est la propriété exclusive de WAVECOM. Il ne peutêtre communiqué ou divulgué à des tiers sans son autorisation préalable.Printed document not updated – Document imprimé non tenu à jour
 
OPEN AT
®
DYNAMIC PROGRAMMINGWITH LUA Tutorial
Supprimé :
F038
 
 
Lua on WMP – Tutorial28
th
June 2007confidential ©
 
WM_PLC_F039Level002Page : 2 / 2
This document is the sole and exclusive property of WAVECOM. Not to be distributed or divulgedwithout prior written agreement. Ce document est la propriété exclusive de WAVECOM. Il ne peutêtre communiqué ou divulgué à des tiers sans son autorisation préalable.Printed document not updated – Document imprimé non tenu à jour
1
 
Session #1: Setup, Discovering the development environment...3
 
1.1
 
Setting up Windows for TCP/IP over PPP................................................3
 
1.1.1
 
Configure the serial port..................................................................3
 
1.1.2
 
Add the devkit as a modem.......................ErreurErreurErreurErreur ! Signet non défini.! Signet non défini.! Signet non défini.! Signet non défini.
 
1.1.3
 
Create the connection................................ErreurErreurErreurErreur ! Signet non défini.! Signet non défini.! Signet non défini.! Signet non défini.
 
1.2
 
Other Windows software........................................................................9
 
1.3
 
First program..........................................................................................9
 
1.3.1
 
FTP download...............................................................................10
 
1.3.2
 
Threads and signals......................................................................11
 
1.3.3
 
Threads and resources..................................................................12
 
2
 
Session #2 Networking: play with a web server.......................14
 
2.1
 
My first web page.................................................................................14
 
2.2
 
Resources.............................................................................................15
 
2.3
 
Dynamic pages......................................................................................16
 
3
 
Dynamically generated content.................................................17
 
3.1
 
Beyond dynamism: interactivity............................................................17
 
3.2
 
A Quick overview of Lua/C bindings......................................................19
 
4
 
Session #3 Overview of some sample applications....................21
 
4.1
 
Rapid implementation of network protocols..........................................21
 
4.2
 
 XML, RSS, AT parsing, in a WEB application.........................................22
 
4.2.1
 
Logging and serving hardware-gathered data...............................24
 
4.3 24
 
4.4
 
AJAX WebPhone...................................................................................24
 
5
 
Readings..................................................................................25
 
6
 
--- Notes ---...............................................................................26
 
 
Supprimé :
F038
Supprimé :
1
 
 
Lua on WMP – Tutorial28
th
June 2007p.3
1
 
Session #1:Setup, Discovering the development environment
The devkits have been fitted with an OpenAT application running:
 
Wavecom’s porting of Lua interpreter and virtual machine
 
WIP, Wavecom’s TCP/IP stack, set up with a PPP server over UART2.By default, the devkit takes address192.168.1.4, and gives address192.168.1.5to the PC. PPP user is
wipuser
, its password is
123456
.
 
A telnet server, serving a Lua interactive shell. You can find the binary, the sample’s sources and the library on the USB key.This first session’s goal will be to set up your PC, so that you can start developingand running Lua programs on WMP100.
1.1
 
Setting up Windows for TCP/IP over PPP
We assume that you have at least one, ideally two serial ports on your developmentcomputer. One of them is to be linked to the devkit’s UART2: it will bear the TCP/IPlink. If you have a second serial port, you can hook it to UART1: it will give you aneasy way to send AT commands and to survey Lua traces.We assume you have connected UART1 to your computer’s COM1.
Start > Parameters > Control Panel > System > Hardware > Device Manager > Ports (COM & LPT) > Communication Port (COM1) > right-click > Properties > Port Settings 

You're Reading a Free Preview

Download
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->