sandeepmistry / node-sx127x

Node.js driver for Semtech SX1276/77/78/79 based LoRa radios
MIT License
62 stars 21 forks source link

Invalid version 0 #11

Open sekisek opened 6 years ago

sekisek commented 6 years ago

Hi have Raspberry Pi 3b.

I am trying to connect sx1278.

The radio module

I get the same error for the sender and reciver

node sender.js open Error: Invalid version 0, expected 0x12 at SX127x. (/home/pi/node-sx127x/lib/sx127x.js:124:23) at /home/pi/node_modules/async/dist/async.js:3874:9 at /home/pi/node_modules/async/dist/async.js:473:16 at replenish (/home/pi/node_modules/async/dist/async.js:993:25) at iterateeCallback (/home/pi/node_modules/async/dist/async.js:983:17) at /home/pi/node_modules/async/dist/async.js:958:16 at /home/pi/node_modules/async/dist/async.js:3871:13 at SX127x. (/home/pi/node-sx127x/lib/sx127x.js:472:5) /home/pi/node-sx127x/examples/sender.js:14

any Idea?

lakewik commented 6 years ago

Hi Module probably isn't connected properly or you don't enabled SPI interface in Raspberry Pi configuration (sudo raspi-config).

aylashiv commented 6 years ago

Also provide sufficient power to the LoRa Module as it draws good power, Better to provide external power supply 3.3V rather than feeding it from the raspberrypi's 3.3v.

lorenzoromagnoli commented 5 years ago

Hey @sandeepmistry!

I'm also experiencing the same issue using the Dragino lora pi hat v 1.4 with a raspberry pi 3

I also tried modifying the pins used inside the library but had no better luck.

I managed to have the communication between the pi and the lora module working using this script https://github.com/tftelkamp/single_chan_pkt_fwd, So I don't think there is a power or a configuration issue.

Any other suggestion on how to solve this?

epasinetti commented 3 years ago

Hey @sandeepmistry!

I'm also experiencing the same issue using the Dragino lora pi hat v 1.4 with a raspberry pi 3

I also tried modifying the pins used inside the library but had no better luck.

I managed to have the communication between the pi and the lora module working using this script https://github.com/tftelkamp/single_chan_pkt_fwd, So I don't think there is a power or a configuration issue.

Any other suggestion on how to solve this?

Same problem here ...have you solved ?