Wireless Practice; Wlan (802.11B) - Practice - Metrologic Optimus S Programming Manual

"c" programming guide
Table of Contents

Advertisement

178
"C" Programming Guide For Optimus S/R

3.13 Wireless Practice

3.13.1 WLAN (802.11b) - Practice

TCP/IP Application
a) Before sending data to the network, call socket_cansend() to check if there is
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#
WLAN
Bluetooth PAN
Bluetooth DUN-GPRS
PPP via IR
PPP via RS-232
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
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 S
Optimus R
---
---
NetInit()
NetInit()
NetInit (3)
NetInit (3)
NetInit (4)
NetInit (4)
---
NetInit (5)
NetInit()
---
---
NetInit (4)
NetInit (5)

Advertisement

Table of Contents
loading

This manual is also suitable for:

Optimus r

Table of Contents