background image

 

 

Skywire 

®  

  LTE   NL-SW-LTE-S7xxx  

Modem   Family  
Sending   and   Receiving   Data   Using  
Socket   Dials 

 

NimbeLink   Corp  

Updated:   February   2020  

 

 

 

 
 
 
 
 
 
 
 
 

 

PN   30228   rev   8  

©   NimbeLink   Corp.   2020.   All   rights   reserved. 

 

Summary of Contents for Skywire LTE NL-SW-LTE-S7 Series

Page 1: ...Skywire LTE NL SW LTE S7xxx Modem Family Sending and Receiving Data Using Socket Dials NimbeLink Corp Updated February 2020 PN 30228 rev 8 NimbeLink Corp 2020 All rights reserved 1 ...

Page 2: ...ding to Dweet io 9 Overview 9 Get IMEI for the Thing Name 9 Enable Hardware Flow Control 9 Setup the Session Connection 9 Set HTTP Endpoint 10 Start the Connection 10 Read Response from Server 11 Close the Session and Delete the Session 12 Working Example Reading from Dweet io 13 Overview 13 Enable Hardware Flow Control 13 Setup the Session Connection 13 Set HTTP Endpoint 13 Start the Connection 1...

Page 3: ... NL SW LTE S7588 V B 4G LTE CAT4 with HSPA Fallback NimbeLink Verizon LTE NL SW UAV S7588 4G LTE CAT4 with HSPA Fallback NimbeLink Verizon LTE NL SW LTE S7588 T 4G LTE CAT4 with HSPA Fallback NimbeLink AT T T Mobile LTE GSM NL SW LTE S7588 T C 4G LTE CAT4 with HSPA Fallback NimbeLink AT T T Mobile LTE GSM NL SIM COM 3FF Commercial Temp Range SIM Card Verizon LTE NL SWDK Skywire Development Kit Nim...

Page 4: ...ompleted the initial setup of your modem and development kit If you have not completed those steps refer to the Skywire Development Kit User Manual and complete the modem setup before proceeding PN 30228 rev 8 NimbeLink Corp 2020 All rights reserved 4 ...

Page 5: ...s if you are using the UART connections To enable it enter the following command AT K3 and the terminal should respond with OK 2 3 Setup the Session Connection Next configure the session information Issue the following AT command AT KCNXCFG PDP CONTEXT NUMBER GPRS YOUR APN where PDP CONTEXT NUMBER is your PDP context and YOUR APN is your APN from above For AT T the PDP context is 1 For Verizon the...

Page 6: ... should use context 1 or the context specified by their carrier 2 4 Set HTTP Endpoint Next we will setup the server we are connecting to Issue the following command AT KTCPCFG PDP CONTEXT NUMBER 0 SERVER PORT where PDP CONTEXT NUMBER is your PDP context from above SERVER is your server s address and PORT is your server port number The terminal should respond with KTCPCFG x OK where x is the connec...

Page 7: ...ommand POST index php HTTP 1 0 the length is 23 plus 4 for the necessary carriage return line feed carriage return line feed combination for a total of 27 characters Issue the command AT KTCPSND 1 y where y is the length of your message The terminal will respond with CONNECT At this point when you type in the terminal it will not echo back Therefore it is recommended that you copy and paste your H...

Page 8: ...d 2 6 Read Response from Server To read the response from the server issue the following command AT KTCPRCV x z where x is the connection number and z is the length of the response from above The terminal will print the HTTP Response 2 7 Close the Session and Delete the Session To close the session issue the following command AT KTCPCLOSE x 1 where x is the connection number The terminal should re...

Page 9: ...your endpoint called a thing One good option is the Skywire s IMEI which is unique to each cellular device To get the IMEI issue the following command AT GSN and the terminal should respond with 111222333444555 OK where 111222333444555 is your unique IMEI Note this number 3 3 Enable Hardware Flow Control It is recommended that you use hardware flow control on your Skywire for Socket Dials To enabl...

Page 10: ...r the following command in the terminal program AT KTCPCNX 1 You will receive unsolicited codes in the following format KCNX_IND 3 4 1 KCNX_IND 3 4 0 KTCP_IND 1 1 You will need to calculate the length of the message you are going to send for the next command Please see www dweet io for information and formatting We will be using a HTTP POST to send data POST dweet for 111222333444555 hello world H...

Page 11: ...he terminal program followed by CTRL M CTRL J CTRL M CTRL J and finally the EOF sequence You will receive the following response from the terminal NO CARRIER KTCP_DATA 1 363 Note this length of the response 363 3 7 Read Response from Server To read the response from the server issue the following command AT KTCPRCV 1 363 The terminal will print the HTTP Response CONNECT HTTP 1 1 200 OK Access Cont...

Page 12: ...d3 4ce7 a24c df014c483d38 EOF Pattern OK 3 8 Close the Session and Delete the Session To close the session issue the following command AT KTCPCLOSE 1 1 The terminal should respond with OK To delete the session issue the following command AT KTCPDEL 1 The terminal should respond with OK PN 30228 rev 8 NimbeLink Corp 2020 All rights reserved 12 ...

Page 13: ...commended that you use hardware flow control on your Skywire for Socket Dials To enable it enter the following command AT K3 and the terminal should respond with OK 4 3 Setup the Session Connection Next configure the session information Issue the following AT command AT KCNXCFG 3 GPRS vzwinternet the terminal should respond with OK 4 4 Set HTTP Endpoint Next we will setup the server we are connect...

Page 14: ...4555 HTTP 1 0 where 111222333444555 is your IMEI from Section 3 3 The total length of this message is 50 characters long for the message above and 4 for the carriage return line feed carriage return line feed ending for 54 characters total Issue the command AT KTCPSND 1 54 The terminal will respond with CONNECT At this point when you type in the terminal it will not echo back Therefore it is recom...

Page 15: ...ntent Type application json Content Length 152 Date Mon 24 Oct 2016 20 31 00 GMT Connection close this succeeded by getting the dweets with thing 111222 333444555 created 2016 10 24T20 20 27 618Z content hello worl d EOF Pattern OK 4 7 Close the Session and Delete the Session To close the session issue the following command AT KTCPCLOSE 1 1 The terminal should respond with OK To delete the session...

Page 16: ...OK PN 30228 rev 8 NimbeLink Corp 2020 All rights reserved 16 ...

Reviews: