I am hammering away at the development of the firmware for the micro on the SubPos Node. I currently have it talking to the ESP module via UART2 and have a user interface with UART1. Implemented as well is a setup wizard and EEPROM storage.
First boot (notice the CRC error at the start; data is stored with a CRC):
SubPos Node - http://www.subpos.org fw ver 0.9.5 2015-06-27 error: eeprom data crc check failed, data not loaded. error: settings data crc check failed, settings not loaded. initialising esp module. menu: help - display this menu message. wizz - guided configuration wizard. show - show current settings. hexd - enter pre coded hex data. dbcn - disable beacons. ebcn - enable beacons. norm - set beacon mode normal. acut - set beacon mode accurate timing. freq - set beacon mode freq hopping (cyclic). slat - set latitude. slng - set longitude. salt - set altitude. clre - clear eeprom. wree - write settings to eeprom. chan - change beacon channel. > show device id : 0 latitude : 0 longitude : 0 altitude : 0 tx power : 0 alt mapping : 0 3d mapping : 0 path loss : 0 reserved : 0 app id : 0 freq hopping : 0 beacon timing: 0 > wizz pressing enter sets 0 enter device id: > 1 enter latitude (-+ to 7 dp): > 10 enter longitude (-+ to 7 dp): > 10 enter altitude (-+ cm relative to sealevel): > 10 enter tx power (-+ dBm to 1 dp): > 10 enable offset mapping (1 or 0): > 0 enable 3d mapping (1 or 0): > 0 enter reserved data (as decimal): > 0 enter application id: > 0 enter path loss co-efficient selection: > 0 done. > show device id : 1 latitude : 100000000 longitude : 100000000 altitude : 10 tx power : 100 alt mapping : 0 3d mapping : 0 path loss : 2 reserved : 0 app id : 0 freq hopping : 0 beacon timing: 0 > wree data written to eeprom. >
Reboot device (CRC check is sucessful and data is loaded into memory):
SubPos Node - http://www.subpos.org fw ver 0.9.5 2015-06-27 eeprom data loaded successfully. settings loaded successfully. initialising esp module. menu: help - display this menu message. wizz - guided configuration wizard. show - show current settings. hexd - enter pre coded hex data. dbcn - disable beacons. ebcn - enable beacons. norm - set beacon mode normal. acut - set beacon mode accurate timing. freq - set beacon mode freq hopping (cyclic). slat - set latitude. slng - set longitude. salt - set altitude. clre - clear eeprom. wree - write settings to eeprom. chan - change beacon channel. > show device id : 1 latitude : 100000000 longitude : 100000000 altitude : 10 tx power : 100 alt mapping : 0 3d mapping : 0 path loss : 2 reserved : 0 app id : 0 freq hopping : 0 beacon timing: 0 > test the thing command_error >
Discussions
Become a Hackaday.io Member
Create an account to leave a comment. Already have an account? Log In.