How to receive Sigfox data from QNAP QIoT Suite Lite


 

In this tutorial, you will learn how to receive Sigfox data from QNAP QIoT Suite Lite.

 

Setting QIoT Suite Lite



1

2

 


  • If your NAS is on extranet (no firewall) or your router has set up port transmission already, then you can refer to Resource HTTP and HTTPS page and you do not need to follow this step and also can go to next section for "Setting Sigfox".


           (* Note 1: If you use router port transmission, please use router extranet Ip)             

           (* Note 2: CloudLink can not use self-defined port transmission now, so it can not support for this service, but you can use myqnapcloud DDNS service to bind your extranet IP and cooperate with router settings to use.)              

  • If your NAS  can not acquire actual IP and also can not setup the firewall, then you may refer to the following page to use ngrok service: https://ngrok.com/



  • The following steps (Step A to F)  is for your reference only and is provided by third party. After installing application, we will not be responsible for any consequences.



  1. In Container Station > "Create Container" > searching for "wernight/ngrok"  and click "create"3

  2. Click "Next"

    4

  3. Click "Advanced Settings" > "Environment", click "Add" and enter the following information

    5*Note 1: Value of NGROK_PORT will be a port transmission, because ngrok is in container station so the IP address have to set up as docker nat gateway IP then can be connect to your Host.  (Default value: 10.0.3.1). PORT setting please refer to "HTTP resourceinfo.json" info, and the default value:23000.

    *Note 2: Other reference, please refer to: 
     https://hub.docker.com/r/wernight/ngrok/

     

  4. Go to "Network", and click "Add":
           Host: 4040
           Container: 4040
           Protocol: TCP

  5. Click "Create"6

  6. Go to browser, enter " http://your NAS IP:4040/ " and you can acquire your tunnel URLs7


 

Setting Sigfox




8


 

  • Go to "DEVICE TYPE", click the device name you want


9

 

  • Choose "CALLBACKS" and click the upper right corner  "NEW" to establish a Callback


10

 

  • Click "Custom callback"


11

 

  • Enter the following information and click ok then can finish the setting




    • Type : DATA, UPLINK

    • Channel : URL

    • Url pattern :  URL from QIoT Suite Lite HTTP (If you use Router NAT port transmission or ngrok service then you have to use the URL from them)

    • Use HTTP Method : POST

    • Send SNI : If you use SSL/TLS and you have to click it

    • Headers : Filling in the information from your  QIoT Suite Lite HTTP (refer to the followings two links:

    • How to connect to QIoT Suite Lite using HTTP?

    • How to connect to QIoT Suite Lite using HTTPS?

    • Content type : application/json





    • Body : Refer to the screenshot with yellow color (There are two example as below)




        • Example 1:
            {
                 "device" : "{device}",
                 "data" : "{data}",
                 "time" : "{time}",
                 "snr" : {snr},
                 "rssi" : {rssi},
                 "station" : "{station}",
                 "lat" : {lat},
                 "lng" : {lng}
             }

        •  Example 2:  (If your QIoT Suite Lite version is before "1.0.XX" (included) then you have to add a value key at first)



                 { “value”:  
                      {
                          "device" : "{device}",
                          "data" : "{data}",
                          "time" : "{time}",
                          "snr" : {snr},
                          "rssi" : {rssi},
                          "station" : "{station}",
                          "lat" : {lat},
                          "lng" : {lng}
                              }
                        }



 

12

 

  • After setting, you can receive the sigfox data from QIoT Suite Lite


13
arrow
arrow
    全站熱搜

    tttt 發表在 痞客邦 留言(0) 人氣()