|
Booting Up the Hardware |
Top Previous Next |
Booting up the Wi-Fi hardware is done with the wln.boot method. The Wi-Fi hardware does not have a ROM or flash memory and its internal processor executes its firmware from RAM. Before the Wi-Fi module can start working, you need to upload this firmware into the Wi-Fi module, and this is what wln.boot really does.
The firmware file is called "wln_fwar.bin" (the file can be downloaded from Tibbo website). The file must be added to your Tibbo Basic project as a binary resource file. (see also Add File to Project).
Access to resource files is through the romfile object. First, you open the "wln_fwar.bin" file with the romfile.open method, then pass the pointer to this file (value of the romfile.offset R/O property) to the wln.boot method:
'boot it up romfile.open("wln_fwar.bin") If wln.boot(romfile.offset)=NG Then 'something is wrong, react to this ... End If
|
The boot takes less than 0.4 second to complete. The method will return 0- OK if the boot was completed successfully, or 1- NG if the boot failed. The boot may fail for several reasons. The Wi-Fi hardware may not be connected, connected improperly, or malfunction. Additionally, the boot will fail if the Wi-Fi hardware is already booted.