Sensor Code By Jorge Troncoso
Dependencies: Sensor2 MAX31855-1 libmDot-1
Fork of 0A101_mDot_Sensor_Rev3_AUS by
Revision 2:0417c5cdceaf, committed 2018-06-13
- Comitter:
- jortronm2
- Date:
- Wed Jun 13 11:31:15 2018 +0000
- Parent:
- 1:2d0abfac692b
- Commit message:
- Sensor Code by Jorge Troncoso
Changed in this revision
radio_sensor.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 2d0abfac692b -r 0417c5cdceaf radio_sensor.cpp --- a/radio_sensor.cpp Thu Jan 04 03:44:09 2018 +0000 +++ b/radio_sensor.cpp Wed Jun 13 11:31:15 2018 +0000 @@ -20,14 +20,31 @@ mDot* dot = NULL; -// Network settings. -static uint8_t radio_network_address[] = {0x65, 0x34, 0x03, 0x04}; -static uint8_t radio_network_session_key[] = {0x23, 0x45, 0x03, 0x04, 0x01, 0x02, 0x03, 0x04, 0x01, 0x02, 0x03, 0x04, 0x01, 0x02, 0x03, 0x04}; -static uint8_t radio_data_session_key[] = {0xF0, 0x34, 0x03, 0x04, 0x01, 0x02, 0x03, 0x04, 0x01, 0x02, 0x03, 0x04, 0x01, 0x02, 0x03, 0x04}; + +// Radio settings. + +/* Singapore JTRON2 +uint8_t radio_network_address[] = {0x65, 0x34, 0x03, 0x03}; +uint8_t radio_network_session_key[] = {0x23, 0x45, 0x03, 0x04, 0x01, 0x02, 0x03, 0x04, 0x01, 0x02, 0x03, 0x04, 0x01, 0x02, 0x03, 0x04}; +uint8_t radio_data_session_key[] = {0xF0, 0x34, 0x03, 0x04, 0x01, 0x02, 0x03, 0x04, 0x01, 0x02, 0x03, 0x04, 0x01, 0x02, 0x03, 0x04}; +*/ + +/* USA Tom JTRON4 +uint8_t radio_network_address[] = {0x65, 0x34, 0x03, 0x02}; +uint8_t radio_network_session_key[] = {0x23, 0x45, 0x03, 0x04, 0x01, 0x02, 0x03, 0x04, 0x01, 0x02, 0x03, 0x04, 0x01, 0x02, 0x03, 0x04}; +uint8_t radio_data_session_key[] = {0xF0, 0x34, 0x03, 0x04, 0x01, 0x02, 0x03, 0x04, 0x01, 0x02, 0x03, 0x04, 0x01, 0x02, 0x03, 0x04}; +*/ + +/* Australia JTRON6 +uint8_t radio_network_address[] = {0x65, 0x34, 0x03, 0x04}; +uint8_t radio_network_session_key[] = {0x23, 0x45, 0x03, 0x04, 0x01, 0x02, 0x03, 0x04, 0x01, 0x02, 0x03, 0x04, 0x01, 0x02, 0x03, 0x04}; +uint8_t radio_data_session_key[] = {0xF0, 0x34, 0x03, 0x04, 0x01, 0x02, 0x03, 0x04, 0x01, 0x02, 0x03, 0x04, 0x01, 0x02, 0x03, 0x04}; +*/ static uint8_t radio_packet_current_id; + extern int8_t radio_sensor_init(enum mts::MTSLog::logLevel logging_level) { uint8_t radio_data_rate, radio_power, radio_frequency_band; uint32_t radio_frequency;