The Smart Citizen Kit can be managed over a basic serial protocol. You just need the Arduino IDE Serial Monitor or any other Serial Utility like Screen in order to use it.
- Connect to your kit using any serial utility, any baud-rate should work but
115200
is recommendable. - Send the starting commands.
- Notice all the commands except the starting commands require a carriage return at the end:
CR
or\r
. - Call any command you want, change
XXX
with the corresponding value.
This commands are commands to talk directly to the Wi-Fi module (RN-XV WiFly) own interface.
$$$
Wake up the module and enter WiFly commands modeset wlan ssid XXX\r
Add a new SSID to memoryset wlan phrase XXX\r
Add a new phrase to memoryset wlan key XXX\r
Add a new key to memoryset wlan auth XXX\r
Add an authentication method into memoryset wlan ext_antenna XXX\r
Add an antenna type into memoryset sys iofunc 0x7
Disable the Wi-Fi module blue LED'sexit\r
Go back to normal operational mode
This commands are commands to talk talk to the SCK configuration interface.
###
Wake up the module and enter SCK commands modeget mac\r
Get the MAC address of the kitget time update\r
Retrieve the sensor update intervalset time update XXX\r
Update the sensor update intervalget number updates\r
Retrieve the max number of bulk updates allowedset number updates XXX\r
Update the max number of bulk updates allowedget apikey\r
Retrieve the kit APIKEYset apikey XXX\r
Update the kit APIKEYget wlan ssid\r
Retrieve the SSID saved on the kitget wlan phrase\r
Retrieve the phrase and KEY saved on the kitget wlan auth\r
Retrieve the authentication methods saved on the kitget wlan ext_antenna\r
Retrieve the antenna types saved on the kitget all\r
Retrieve all config saved on the kit in a single line (|version|MAC|ssid1 ssid2,pass1 pass2,auth1 auth2,ant1 ant2|hardcodedNets|timeUpdate|numPosts|
)post data\r
Retrieve sensor readings and post them to server if network connection is available.clear nets\r
Remove all saved Wi-Fi configuration information (except hardcoded)clear memory\r
Remove all configuration informationexit\r
Goes back to normal operational mode#data\r
Retrieves sensor readings stored in memory