This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

RAK4600 (nRF52832+SX1276 LoraWan Chip) last resort GW via bluetooth

Looking around to develop hardware/software using the RAK4600 module!

RAK4600 (lora Node) uses Lora as its main way to communicate with my Lora server (normal flow).

Consider the hardware (lora node) will be almost always near a cell phone!

The question is if is it feasible use the nrf52 (backup flow) as a backup to connect to a lora server when lora is unavailable ?

Any suggestions/examples are welcome.

Parents
  • HI there,

    let me try another approach, because I am lost. Of course I need to read more about ble :)

    lets suppose one way communication! Node to Server (thru cell phone)

    - Can I initiate communication from node to cell phone (phone listening for connections)?

    - Can I remove the payload from the bluetooth frame attach to an http POST request and call a REST API?

    the payload is 50 bytes MAX in length, I could implement a queue and call the rest api in once in a minute.

    at the beginning its all I intent.

    I am in void here, any sample code implementing any of this?

  • mvcorrea said:
    - Can I initiate communication from node to cell phone (phone listening for connections)?

     Assuming you are talking about BLE communication. You can start BLE advertising from the node. If the phone sees these advertisements, you can (typically from a custom application) initiate a connection from the phone.

     

    mvcorrea said:
    - Can I remove the payload from the bluetooth frame attach to an http POST request and call a REST API?

     I don't know. I am no expert in HTTP, but HTTP is not used in BLE. You can send whatever data you want over BLE, so perhaps you can pack your payload (REST command? I don't know what that is) and send it over BLE.

    I suggest you look into the ble_app_uart example from our SDK, and look at how this works. Then it should be clearer for you how you send data from the nRF to the phone.

    BR,

    Edvin

Reply
  • mvcorrea said:
    - Can I initiate communication from node to cell phone (phone listening for connections)?

     Assuming you are talking about BLE communication. You can start BLE advertising from the node. If the phone sees these advertisements, you can (typically from a custom application) initiate a connection from the phone.

     

    mvcorrea said:
    - Can I remove the payload from the bluetooth frame attach to an http POST request and call a REST API?

     I don't know. I am no expert in HTTP, but HTTP is not used in BLE. You can send whatever data you want over BLE, so perhaps you can pack your payload (REST command? I don't know what that is) and send it over BLE.

    I suggest you look into the ble_app_uart example from our SDK, and look at how this works. Then it should be clearer for you how you send data from the nRF to the phone.

    BR,

    Edvin

Children
No Data
Related