inital draft
Dependencies: mbed LoRaWAN-lib SX1272Liby
Fork of LoRaWAN-demo-72_tjm by
Revision 9:b70f8b97176a, committed 2016-08-09
- Comitter:
- tmulrooney
- Date:
- Tue Aug 09 14:38:07 2016 +0000
- Parent:
- 8:7af52843c8a9
- Commit message:
- production board
Changed in this revision
diff -r 7af52843c8a9 -r b70f8b97176a app/SerialDisplay.cpp --- a/app/SerialDisplay.cpp Mon Mar 21 17:51:35 2016 +0000 +++ b/app/SerialDisplay.cpp Tue Aug 09 14:38:07 2016 +0000 @@ -350,7 +350,7 @@ // "+-----------------------------------------------------------------------------+" ); SerialDisplayDrawFirstLine( ); // "¦ LoRaWAN Demonstration Application ¦" ); - SerialDisplayDrawTitle( " LoRaWAN Demonstration Application " ); + SerialDisplayDrawTitle( " LoRaWAN Production Demonstration Application " ); // "+------------+----------------------------------------------------------------¦" ); SerialDisplayDrawTopSeparator( ); // "¦ Activation ¦ [ ]Over The Air ¦" ); @@ -442,3 +442,15 @@ { return vt.GetChar( ); } + +void SerialDisplayMessage1(char *str) +{ + vt.SetCursorPos( 45, 0 ); + vt.printf("%s",str); +} + +void SerialDisplayMessage2(char *str) +{ + vt.SetCursorPos( 46, 0 ); + vt.printf("%s",str); +}
diff -r 7af52843c8a9 -r b70f8b97176a app/main.cpp --- a/app/main.cpp Mon Mar 21 17:51:35 2016 +0000 +++ b/app/main.cpp Tue Aug 09 14:38:07 2016 +0000 @@ -30,6 +30,8 @@ #define MINOR 1 char versionTimeDate[40]; +void SerialDisplayMessage1(char *str); +void SerialDisplayMessage2(char *str); /*! * Join requests trials duty cycle. @@ -457,7 +459,7 @@ } else { - DeviceState = DEVICE_STATE_JOIN; + DeviceState = DEVICE_STATE_JOIN; } } } @@ -748,6 +750,8 @@ */ int main( void ) { + char str[80]; + LoRaMacPrimitives_t LoRaMacPrimitives; LoRaMacCallback_t LoRaMacCallbacks; MibRequestConfirm_t mibReq; @@ -763,6 +767,9 @@ // vt.printf("5"); // } DeviceState = DEVICE_STATE_INIT; /* set initial state to initilzation */ + + sprintf(str,"SystemCoreClock: %d",SystemCoreClock); + SerialDisplayMessage1(str); while( 1 ) {
diff -r 7af52843c8a9 -r b70f8b97176a app/vt100.h --- a/app/vt100.h Mon Mar 21 17:51:35 2016 +0000 +++ b/app/vt100.h Tue Aug 09 14:38:07 2016 +0000 @@ -54,7 +54,8 @@ VT100( PinName tx, PinName rx ): SerialBase( tx, rx ) { - this->baud( 115200 ); +// this->baud( 115200 ); + this->baud( (115200 * 2)/3 ); /* 8 MHZ/12 MHZ) */ // initializes terminal to "power-on" settings // ESC c this->printf( "\x1B\x63" );
diff -r 7af52843c8a9 -r b70f8b97176a radio/SX1272Lib.lib --- a/radio/SX1272Lib.lib Mon Mar 21 17:51:35 2016 +0000 +++ b/radio/SX1272Lib.lib Tue Aug 09 14:38:07 2016 +0000 @@ -1,1 +1,1 @@ -https://developer.mbed.org/users/tmulrooney/code/SX1272Liby/#352d0947f887 +https://developer.mbed.org/users/tmulrooney/code/SX1272Liby/#e6a3f05e4743