CongducPham / LowCostLoRaGw

Low-cost LoRa IoT & gateway with SX12XX (SX1261/62/68; SX1272/76/77/78/79; SX1280/81), RaspberryPI and Arduino boards
699 stars 352 forks source link

Raspberry Pi Node support? #232

Open Wingjam opened 5 years ago

Wingjam commented 5 years ago

Do you plan to support Raspberry Pi Node?

That would be nice to have a Raspberry Pi Node communicating with a Raspberry Pi Gateway.

Thank you for your amazing work on the Raspberry Pi Gateway!

CongducPham commented 5 years ago

What do you mean by PI Node? A device built with a Raspberry? If so, you probably can program such a device as our lib runs on the RPI.

regards,

Wingjam commented 5 years ago

Hi, Currently there are only samples for Arduino (Node/Client) communicating with a Raspberry Pi (Gateway/Server). Are there any chance to have samples of Raspberry Pi (Node/Client) communicating with a Raspberry Pi (Gateway/Server)?

In other words, there is only a folder Arduino with samples and no folder Raspberry Pi with samples.

Thank you for your time.

CongducPham commented 5 years ago

OK, no, we do not plan to provide examples using the PI as end-devices. However, since the SX1272.cpp lib runs on top of the RPI on top of arduPI, you can use the same layer to program your RPI as an arduino node. Hope that helps.

surr2025 commented 5 years ago

Would you please provide ping pong code of Arduino on Raspberry. It will be helpful. I tried the ping code (Raspberry Pi as a node). Error: Could not open the serial port: null (arduPi.cpp)

CongducPham commented 5 years ago

In the ping-pong code, you have to remove everything that is not related to Arduino boards. Take example on the lora_gateway.cpp program that runs on the RPI.

surr2025 commented 5 years ago

I already tried it similar to lora_gateway.cpp. it was throwing an error.

Unable to open the serial port (null) -

All ports are open. I used the spi connection to connect tx-node.