I have an older (r1.1) sensor, that I never ran live as I was renovating the house. Now I have the perfect place for it, but need to set it up.
So I install chrome, the SC chrome setup extension which seems to open up pages in my default browsers. So I paste URIs back to a chrome tab) and struck what may be a firmware issue:
Entered the node details for the website, sensor’s mac address, eg (xx:xx:xx:xx:xx:xx, where xx is hex values) and followed the link to setup the sensor. This ‘terminal page’ shows the correct serial port (via local USB). The page prompts to:
✓ Please reset your kit
✓ Press the reset button or switch it off-on.
✓ Select your kit Serial Port
✓ And click Start process…
✓ We can’t open the serial port!!!
✓ Make sure no application is using the serial port (ex. Arduino IDE)
✓ Please try reloading this page
✓ And resetting your kit.
I did this, with similar results:
✓ Please reset your kit
✓ Press the reset button or switch it off-on.
✓ Select your kit Serial Port
✓ And click Start process…
✓ Still working, looking for older firmware…
✓ We can’t open the serial port!!!
✓ Make sure no application is using the serial port (ex. Arduino IDE)
✓ Please try reloading this page
✓ And resetting your kit.
✓ Unrecognized board!
✓ Make sure you have selected the right port!
✓ If you are sure, click Install Firmware
I am not sure. Did not click ‘Install Firmware’
Tried the above again with Chrome set as default browser. Makes no difference, in the config tool app extension, after pressing Login, the app links the browser to login.html. Browser just finds:
404 Not Found
The current resource could not be found on Smart Citizen
Same thing happens whether chrome has a current, authenticated session or not.
What to do now?
Is this just because of the 404 or is it that the old firmware is not being recognised?
I have two configurations saved under my profile in the website, one shows as ‘Never published’, the other ‘Not configured’.
Perhaps there is a way to configure the WiFi and other sensor config manually, push the firmware via tftp or ssh? << Just found the documentation. Will try getting in via serial console
I left it connected whilst having dinner and it looks like things have progressed quite well within the browser-
SmartCitizen Ambient Kit 1.1 - “Kickstarter Board”
Firmware version 0.9.4 (latest)
Reinstall Firmware
Mac Address: xx:xx:xx:xx:xx:xx
Wi-Fi Networks
Add +
SSID
Password
Update interval
Sensor reading every 1 minute
Publishing 1 post every 1 minute
Reading interval
Number of posts
Sync settings.
But alas, the next challenge is the password/phrase dialogue will only allow 19 or 20 chars…
Hmmmm… Firmware is latest! Yes!
OK so I setup a SSID net with <20 char passphrase. Then added the credentials into the Babelfish terminal and pressed sync settings. Restarted sensor as prompted. Boom, updated and online!
✓ And click Start process…
✓ Your kit is a:
✓ SmartCitizen Ambient Kit 1.1 - “Kickstarter Board”
✓ Your kit is running 0.9.4 firmware.
✓ This is the latest version.
✓ You can skip the firmware update!
✓ SCK >> Wifi conection failed!!! Using ssid: removed: removed
✓ SCK >> Try restarting your ✓ SCK >> kit!!✓ You can skip the firmware update!
✓ SCK >> Wifi conection failed!!! Using ssid: removed and pass: removed
✓ SCK >> Try restarting your ✓ SCK >> kit!!
✓ SCK >> RTC not updated!!!
✓ SCK >> With no valid time it’s useless to take readings!!
✓ SCK >> Trying to get valid time…
✓ SCK >> Wifi conection failed!!! Using ssid: removed and pass: removed
✓ SCK >> Try restarting your kit!!
✓ SCK >> RTC not updated!!!
✓ SCK >> With no valid time it’s useless to take readings!!
✓ SCK >> Trying to get valid time…
✓ SCK >> Wifi conection failed!!! Using ssid: removed and pass: removed
✓ SCK >> Try restarting your kit!!✓ SCK >>
✓ SCK >> RTC not updated!!!
✓ SCK >> With no valid time it’s useless to take readings!!
✓ SCK >> Trying to get valid time…
✓ Saving wi-fy network settings…
✓ Update interval haven’t change!
✓ Settings synced!
✓ For your kit to work properly
✓ Please push the RESET button or simply turn your kit ON/OFF
✓ Your kit is connected to WI-Fi!
✓ SCK >> SCK Connected to Wi-Fi!!
✓ SCK >> RTC Update Failed!!
✓ SCK >> RTC not updated!!!
✓ SCK >> With no valid time it’s useless to take readings!!
✓ SCK >> Trying to get valid time…
✓ Your kit is connected to WI-Fi!
✓ SCK >> SCK Connected to Wi-Fi!!
✓ Your kit is connected to WI-Fi!
✓ SCK >> SCK Connected to Wi-Fi!!
✓ Wi-fy networks haven’t changed!
✓ Update interval haven’t change!
✓ Nothing to sync!!
✓ Wi-fy networks haven’t changed!
✓ Update interval haven’t change!
✓ Nothing to sync!!
✓ Your kit is connected to WI-Fi!
✓ SCK >> SCK Connected to Wi-Fi!!
✓ SCK >> SCK Connected to Wi-Fi!!
✓ Wi-fy networks haven’t changed!
✓ Update interval haven’t change!
✓ Nothing to sync!!
✓ Wi-fy networks haven’t changed!
✓ Update interval haven’t change!
✓ Nothing to sync!!
✓ Your kit is connected to WI-Fi!
✓ SCK >> SCK Connected to Wi-Fi!!
✓ Your kit has updated his clock!
✓ SCK >> RTC Updated!!
✓ SCK >> Error in connection!! Data saved in memory
✓ SCK >> Pending updates: 3
✓ SCK >> *******************
✓ SCK >> Temperature: 26176 C RAW
✓ SCK >> Humidity: 31816 % RAW
✓ SCK >> Light: 114.90 lx
✓ SCK >> Battery: 100.00 %
✓ SCK >> Solar Panel: 0 mV
✓ SCK >> Carbon Monxide: 84092.55 kOhm
✓ SCK >> Nitrogen Dioxide: 5.32 kOhm
✓ SCK >> Noise: 0 mV
✓ SCK >> Wifi Spots: 0
✓ SCK >> UTC: 2018-10-29 12:43:54
✓ SCK >> *******************
OK, so the device is up to date, but chrome is still saying the site is ‘Waiting for your kit’s data’. The sensor has a local IP. Perhaps I just have to get the outbound data through the firewall- but there is no blocking on TCP:80 and 443.
After waiting a few hours, the Profile is yet to see any data.
The only packets the firewall is stopping are broadcasts to 255.255.255.255 on UDP:55555 and the request to rn.microchip.com (198.175.253.161) on TCP:21
Why? Who are Microchip Technology Inc. (MICROC)? Why is the sensor sending data there?
I opened TCP:21 (but why should is it needed?).
Will leave it a long time again, see if it heals itself…
Allowing TCP:21 made no difference
Now opening access to any host, on any port, for the Sensor. Seemingly this makes no difference too, except for the UDP:5555 broadcasts.
P.S.
From the start, valid data from the sensor showed in the terminal window in the setup tab. It shows my old Wifi password from 2 years ago, and stream of ‘healthy’ data:
✓ SCK >> 4✓ SCK >> **wifi_password_was_here✓ SCK >> Temperature: 24.7 C
✓ SCK >> Humidity: 46.0 %
✓ SCK >> Light: 0 lx
✓ SCK >> Battery: 71.4 %
✓ SCK >> Solar Panel: 0 V
✓ SCK >> Carbon Oxide: 92206.336 kOhm
✓ SCK >> Nitrogen Dioxide: 4.974 kOhm
✓ SCK >> Noise: 56.49 dB
✓ SCK >> Wifi Spots: 0
✓ SCK >> UTC: 2000-00-00 00:00:00
✓ SCK >> *******************
✓ SCK >> Temperature: 24.8 C
✓ SCK >> Humidity: 45.7 %
✓ SCK >> Light: 35.4 lx
✓ SCK >> …