509
Programmable Hardware Manual (PHM)
© Tibbo Technology Inc.
To allow the proper communications with the WA2000, configure the following lines
as outputs: GPIO7 (CS), GPIO6 (CLK), and GPIO5 (DI/DO).
The wln. object works with these three interface lines: CS, CLK, and DI/DO. The
RST line is not directly controlled by the wln. object, so providing a proper hardware
reset is your application's responsibility. Here is how to reset the WA2000 from the
EM510:
·
Set GPIO7 (CS) LOW
·
Set GPIO5 (DI/DO) HIGH
·
Wait 1 ms
·
Set GPIO7 (CS) HIGH
Status LED
The WA2000 has a single red status LED:
·
When the WA2000 is idle (no BLE or Wi-Fi connection), the status LED is blinking
once every second.
·
The LED is on when:
o
There is a BLE connection;
o
The Wi-Fi interface is in the station mode and is associated with an access
point; or
o
The Wi-Fi interface is in the access point ("own network") mode and there is a
station associated with it.
Firmware Upgrades
Unlike the
add-on, the WA2000 stores its firmware in an onboard flash
memory and does not require the firmware to be sent into the WA2000 on every
boot. The WA2000 carries two distinct firmware files: the application firmware and
the internal Monitor/Loader (M/L) of the WA2000. Both firmware files can be
updated using the following methods:
·
Over-the-air (OTA), from an iOS or Android device, using a Bluetooth Low-Energy
(BLE) link. This is covered by the
BLE (Bluetooth Low-Energy) Updates
topic. As
the topic states, "BLE updates can be used to upload new TiOS firmware, Tibbo
BASIC/C application,
and even the internal firmware and the internal
Monitor/Loader of the
!" What's more, all of this is accomplished using a
single update file.*