Giter Club home page Giter Club logo

lorapacketforwarder's People

Contributors

zhgzhg avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

lorapacketforwarder's Issues

Use with Lora Pi hat

Hi i'm trying tu use this library with waveshare lora hat (https://www.waveshare.com/wiki/SX1268_433M_LoRa_HAT) based on sx1268 chip but unfortunately Pi does not recognize it - i've changed ic_model: to SX1268 but it does not work. This chip is based on UART interface - E22-400T22S consisting rx, tx, aux, m0 and m1 pins. Would you be so kind and give me some tips how to get it working?
Take care!

problem in making file

when I run the command make main.cpp, it shows nothing to be done for 'main.cpp'. i'm using sx1278 with pi3. please tell me the solution of it

Unreliable connection to chip

Three days ago, I came across this project, which is exactly what I needed, as I have an Orange Pi One and a 433MHz SX1278. I've been trying to get this working (with the default config), only partly successfully, because sometimes, randomly, the program suddenly fails with:

LoRa chip setup failed, code (65520) SPI write failed

It only works again when I manually reset the module (by disconnecting and connecting VDD) and rerun the program. I don't know why it is happening. It could be faulty wires (I did the soldering myself), some problem with spidev (/dev/spidev0.0 is present, though), or some problem with this project. I really don't know at this point.

There's another issue. I'm transmitting messages from another SX1278 module, using this board and this sketch, but the packet forwarder only receives the datagrams a few times (10 at most), and then nothing. I'm getting tired of trying. I tried with the sketch in this repository, but the packet forwarder never received anything at all.

Not receiving messages

First of all, I want to thank you for your great effort.

I have noticed some weird behavior. Using this library I am not able to receive any messages, the few that I receive are mostly corrupted. I played around with a lot of SPI values with no success.

The weird part is that by using this library I was able to receive messages without a problem.

Any suggestions on how to debug this?

Some extra information I am using EU433, set the frequency at 434, and the rest is the default for EU433. I tried different CR and bandwidth with no success.

I would realy love to use your library as there are more options for setting the CR, Bandwith and sync word.

Unable to execute the program

Hello,
So I found out that the ./LoRaPktFwrd should be the command to execute the program, not ./LoRaPktFwd. But even then it outputs "Unable to open SPI device: No such file or directory". I do have SPI enabled on my Raspberry Pi 3, can you help me find out why it's not working?
Here is the full output:

PlatformInfo:

ID (EUI-64): b8:27:eb:ff:ff:bc:f7:3a

(WiringPI) Pins:
nss_cs=4
dio0=5
dio1=6

LoRa SX127x Chip:
Freq=434.000000 MHz
BW=125.000000 KHz
SF=7
CR=4/5
SyncWord=0x34
PreambleLength=8

Meta Information:
Latitude=0.000000
Longtitude=0.000000
Altitude=10 meters
Name/Definition: 1chan_uplink_pkt_fwd
E-mail: [email protected]
Description: OPiPC LoRa 1-Ch GW

Unable to open SPI device: No such file or directory

Downlinks working ?

Hi,
Your package is a lifesaver as very few thing work on OrangePi out of the box. But it seems that there is no downlinks receives. I don't know if it receives Ack either. Can you confirm ?
Kind regrdas, Nicolas

Chirpstack v4

Hello

Can LoRaPacketForwarder be used by chirpstack v4?
The problem is that chirpstack v4 requires Gateway ID DevEUI 64.

UPLINK in our implementation don't work

Good afternoon,
I belong to an electronics and telecommunications student group, and we are making a lora gateway to chirpstack and we are using your packet forwarder.
I'm creating this issue since we couldn't receive any packets sent from the end-node with the SX1278 chip. We have no reception either on chirpstack or on the MQTT topic defined in the chirpstack-gateway-bridge configuration file. The chip used in the gateway is also the SX1278, implemented in a raspberry pi 3. What is giving us food for thought is this problem, since when running the packet forwarder we have the gateway appearing active in the chirpstack.

This is our config file, this configuration is the same that we use in end-node.
`{
"ic_model": "SX1278",

"spi_speed_hz": 2000000,
"spi_port": 0,
"spi_channel": 1,

"pin_nss_cs": 6,
"pin_dio0": 9,
"pin_dio1": 10,
"pin_rest": -1,

"spreading_factor": 7,
"carrier_frequency_mhz": 433.0,
"bandwidth_khz": 125.0,
"coding_rate": 5,
"sync_word": 99,
"preamble_length": 8,

"latitude": 42.0,
"longtitude": -8.0,
"altitude_meters": 10,

"platform_definition": "1chan_uplink_pkt_fwd",
"platform_email": "[email protected]",
"platform_description": "OPiPC LoRa 1-Ch GW",

"servers": [
{
"address": "192.168.137.246",
"port": 1700,
"recv_timeout_ms": 500,
"enabled": true
}
]
}`

Thank you for the help.

SPI Fail on OrangePi Zero 2

Hi,

I'm using a OrangePi Zero2 board and wiringPi already installed, with gpio readall command working. See bellow

image

But when I tried to start, you can see this error bellow:

image

In config.json I tried to set SPI channel to 1 but SPI don't open.

image

I think is everything is ok with my SPI, I tested with gpio write

image

image

Thanks in advance with you have any idea of the issue.

SX 1262

How are you?

I used heltec HT-RA62 /SX 1262/. SX1276 was normal.
The following error occurred.

LoRa chip setup failed, code (64829) Failed to execute an SPI command. Make sure the module is not using TCXO while still having its XTAL connected.

What did I do wrong? Help me.

Is it correct to assume that the SX1262 will receive data from further away?

Make stuck on RaspberryPi Zero W

I´m trying to install it on a RaspberryPi Zero W but Make get stuck on:

g++ -o LoRaPktFwrd RadioLib/src/linux-workarounds/SPI/SPI.cpp RadioLib/src/linux-workarounds/dummy.cpp RadioLib/src/protocols/PhysicalLayer/PhysicalLayer.cpp RadioLib/src/modules/RF69/RF69.cpp RadioLib/src/modules/RFM9x/RFM96.cpp RadioLib/src/modules/RFM9x/RFM95.cpp RadioLib/src/modules/RFM9x/RFM97.cpp RadioLib/src/modules/SX127x/SX1276.cpp RadioLib/src/modules/SX127x/SX1273.cpp RadioLib/src/modules/SX127x/SX1278.cpp RadioLib/src/modules/SX127x/SX1279.cpp RadioLib/src/modules/SX127x/SX1277.cpp RadioLib/src/modules/SX127x/SX127x.cpp RadioLib/src/modules/SX127x/SX1272.cpp RadioLib/src/modules/SX126x/SX1262.cpp RadioLib/src/modules/SX126x/SX126x.cpp RadioLib/src/modules/SX126x/SX1268.cpp RadioLib/src/modules/SX126x/SX1261.cpp RadioLib/src/ISerial.cpp RadioLib/src/Module.cpp smtUdpPacketForwarder/base64/base64.c smtUdpPacketForwarder/gpsTimestampUtils/GpsTimestampUtils.cpp smtUdpPacketForwarder/Radio.cpp smtUdpPacketForwarder/TimeUtils.cpp smtUdpPacketForwarder/UdpUtils.cpp smtUdpPacketForwarder/ConfigFileParser.cpp main.cpp -std=c++14 -Wall -DLINUX -DARDUINO=999 -IRadioLib/src/ -IRadioLib/src/modules/ -IRadioLib/src/protocols/ -IRadioLib/src/modules/RF69/ -IRadioLib/src/modules/RFM9x/ -IRadioLib/src/modules/SX127x/ -IRadioLib/src/modules/SX126x/ -IRadioLib/src/linux-workarounds/ -IRadioLib/src/linux-workarounds/SPI/ -O3 -lwiringPi -lm -lpthread -lrt -lcrypt
Putting child 0x1aa7f90 (all) PID 1168 on the chain.
Live child 0x1aa7f90 (all) PID 1168

LoRa chip setup failed, code 65524

Hello I get this error when trying to execute the program.

LoRaPktFwrd: smtUdpPacketForwarder/rapidjson/document.h:1053: rapidjson::GenericValue<Encoding, Allocator>& rapidjson::GenericValue<Encoding, Allocator>::operator[](const rapidjson::GenericValue<Encoding, SourceAllocator>&) [with SourceAllocator = rapidjson::MemoryPoolAllocator<>; Encoding = rapidjson::UTF8<>; Allocator = rapidjson::MemoryPoolAllocator<>]: Assertion `false' failed.
Aborted

I also used to get this error

LoRa chip setup failed, code 65524

I'm using a Dragino Lora/Gps HAT

my config.json

{
  "spi_speed_hz": 2000000,
  "spi_channel": 0,

  "pin_nss_cs": 6,
  "pin_dio0": 7,
  "pin_dio0": 0,
  "pin_rest": 0,

  "spreading_factor": 12,
  "carrier_frequency_mhz": 868.1,
  "bandwidth_khz": 125.0,
  "coding_rate": 5,
  "sync_word": 52,
  "preamble_length": 8,

  "latitude": 55.07140615,
  "longtitude": 24.27896652,
  "altitude_meters": 20,

  "platform_definition": "1chan_uplink_pkt_fwd",
  "platform_email": "[email protected]",
  "platform_description": "OPiPC LoRa 1-Ch GW",

  "servers": [
    {
      "address": "52.169.76.203",
      "port": 1700,
      "enabled": true
    },
    {
      "address": "router.us.thethings.network",
      "port": 1700,
      "enabled": false
    }
  ]
}

RFM96: "LoRa chip setup failed, code 65520"

I'm currently using this code on my RbPI together with an RFM96, configured the pins correctly, updated WiringPi ect...
Getting error code "65520" (LoRa chip setup failed, code 65520). Any suggestions on what this could be?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.