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 memoryexit\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 kitclear nets\r
Remove all saved Wi-Fi configuration informationexit\r
Goes back to normal operational mode#data\r
Retrieves sensor readings stored in memory