
178
"C" Programming Guide For Optimus S/R
3.13 Wireless Practice
3.13.1 WLAN (802.11b) - Practice
TCP/IP Application
Network Configuration:
Generally, network configuration has to be done in advance by calling
GetNetParameter()
and
SetNetParameter()
.
Initialization of Networking Protocol Stack & Wireless Module:
The wireless module, 802.11b or Bluetooth, will not be powered until
NetInit()
is
called.
Model#
Optimus S
Optimus R
WLAN
---
---
NetInit()
Bluetooth PAN
NetInit()
NetInit()
---
Bluetooth DUN-GPRS
NetInit (3)
NetInit (3)
---
PPP via IR
NetInit (4)
NetInit (4)
NetInit (4)
PPP via RS-232
---
NetInit (5)
NetInit (5)
Network Status:
Once the initialization process is done, the status of the network status can be
retrieved from the system. It will be periodically updated by the system. The
application program must explicitly call
CheckNetStatus()
to get the latest status.
Open a Connection:
Before reading and writing to the remote host, a connection must be established
(opened). Call
Nopen()
to open a connection. For example,
conno = Nopen ("*", "TCP/IP", 2000, 0, 0);
Data Transmission
a)
Before sending data to the network, call
socket_cansend()
to check if there is
enough buffer size to write out the data immediately. It also can be used to check if
the data being sent is more than 4 packets when there is no response from the remote
host. Then, call
Nwrite()
to send data on the network.
Содержание Optimus R
Страница 1: ...Printed on 20 March 2006 C Programming Guide Version 3 04 02 Optimus S Optimus R...
Страница 6: ......
Страница 8: ...2 C Programming Guide For Optimus S R...
Страница 12: ...6 C Programming Guide For Optimus S R The flow is illustrated as shown below...
Страница 23: ...Chapter 2 Development Environment 17 Different types signed unsigned Different types same size...
Страница 24: ...18 C Programming Guide For Optimus S R...
Страница 220: ...214 C Programming Guide For Optimus S R See Also FlashSize free_memory...
Страница 232: ...226 C Programming Guide For Optimus S R 4 11 Implementation defined Limits limits h float h Refer to limit h and float h...
Страница 238: ...232 C Programming Guide For Optimus S R...