Demo using a Nimbelink Skywire cellular modem paired with ST Nucleo. This demo reads several sensors and reports them to a Freeboard dashboard using dweet.io from Buglabs
Dependencies: LIS3DH LM75B LPS331 hts221 mbed
Fork of Skywire_Demo by
Getting Started Guide
- Set the JP5 jumper to E5V on the Nucleo
- Place the Skywire Shield onto the Nucleo as pictured
- Place the Skywire modem onto the Shield as picture and attach the antenna U.FL coax cable as pictured
- Plug the 12V wall supply into the Skywire Shield
- Go to https://freeboard.io/ and create a user account
- Once you are logged into your Freeboard account, go to https://freeboard.io/board/PJI272 and clone the dashboard by clicking the CLONE link in the lower right corner
- Old Revision of dashboard is here https://freeboard.io/board/jqlneI
- The new dashboard will show up on you account list under My Freeboards, you can then edit the name to whatever you like
- Under the Datasources tab on the dashboard, click the skywire link
- Change the THING NAME field to a unique string, we recommended using the MEID or IMEI on the Skywire Modem, but it could be anything you want.
- Next, Import the Skywire_Demo program into the online compiler
- Open main.cpp. Starting at Line 58, there is a list of Skywire Modems. Uncomment the Skywire Modem that you are using. Make sure only one Skywire Modem is uncommented:
main.cpp
/* * DEFINE THE SKYWIRE MODEM * Uncomment only the modem that you are using. * Make sure only one modem is uncommented! */ //#define NL_SW_1xRTT_V // Verizon 2G Modem - CE910-DUAL //#define NL_SW_1xRTT_S // Sprint 2G Modem - CE910-DUAL //#define NL_SW_1xRTT_A // Aeris 2G Modem - CE910-DUAL //#define NL_SW_GPRS // AT&T/T-Mobile 2G Modem //#define NL_SW_EVDO_V // Verizon 3G Modem //#define NL_SW_EVDO_A // Aeris 3G Modem //#define NL_SW_HSPAP // AT&T/T-Mobile 3G Modem //#define NL_SW_HSPAPG // AT&T/T-Mobile 3G Modem w/ GPS //#define NL_SW_HSPAPE // GSM 3G Modem, EU //#define NL_SW_LTE_TSVG // Verizon 4G LTE Modem //#define NL_SW_LTE_TNAG // AT&T/T-Mobile 4G LTE Modem //#define NL_SW_LTE_TEUG // GSM 4G LTE Modem, EU //#define NL_SW_LTE_GELS3 // VZW LTE Cat 1 Modem
- Next, to Line 73 in main.cpp, and change the DeviceID to the THING NAME you entered into your Freeboard:
main.cpp
/* --CHANGE THIS FOR YOUR SETUP" -- */ #define DeviceID "DweetIODeviceName" //Freeboard DweetIO unique ID
- If applicable, go to Line 77 in main.cpp and change the APN to your specific APN:
main.cpp
/* --CHANGE THIS FOR YORU SETUP (IF APPLICABLE)-- */ #if defined NL_SW_HSPAP || defined NL_SW_HSPAPG || defined NL_SW_HSPAPE || defined NL_SW_LTE_TSVG || defined NL_SW_LTE_TNAG || defined NL_SW_LTE_TEUG || defined NL_SW_LTE_GELS3 std::string APN = "yourAPNhere"; #endif
- Compile and upload to the Nucleo, cycle power to the shield and the sensor data should start to upload to your new Freeboard.
History
Support for HE910, LE910, GE910, DE910, ELS31 (CAT1); Added support for new sensors
2016-03-29, by kholland [Tue, 29 Mar 2016 20:03:13 +0000] rev 10
Support for HE910, LE910, GE910, DE910, ELS31 (CAT1); Added support for new sensors
Changed device ID to default
2015-07-29, by kholland [Wed, 29 Jul 2015 21:31:19 +0000] rev 9
Changed device ID to default
Added code for humidity sensor.
2015-07-29, by kylerodgers [Wed, 29 Jul 2015 16:11:41 +0000] rev 8
Added code for humidity sensor.
Added humidity sensor information
2015-07-24, by kylerodgers [Fri, 24 Jul 2015 17:59:06 +0000] rev 7
Added humidity sensor information
Fixed missing LPS331 library
2015-03-03, by kholland [Tue, 03 Mar 2015 18:32:03 +0000] rev 6
Fixed missing LPS331 library
Updated mbed library
2015-03-03, by kholland [Tue, 03 Mar 2015 18:23:30 +0000] rev 5
Updated mbed library
Changed default Dweet IO to something generic
2015-01-20, by kholland [Tue, 20 Jan 2015 19:47:03 +0000] rev 4
Changed default Dweet IO to something generic
Code to wait for correct response from skywire
2015-01-12, by kholland [Mon, 12 Jan 2015 23:27:12 +0000] rev 3
Code to wait for correct response from skywire
Modified for CE910
2015-01-12, by kholland [Mon, 12 Jan 2015 17:43:04 +0000] rev 2
Modified for CE910
Initial Publish
2015-01-05, by kholland [Mon, 05 Jan 2015 23:01:48 +0000] rev 1
Initial Publish