Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

open Error: Invalid version 2, expected 0x12 #5

Open
skoky opened this issue Dec 7, 2017 · 7 comments
Open

open Error: Invalid version 2, expected 0x12 #5

skoky opened this issue Dec 7, 2017 · 7 comments

Comments

@skoky
Copy link

skoky commented Dec 7, 2017

Please advice why example does not work on my Raspi / Dragino board

pi@raspberrypi:~/node-sx127x/examples $ nodejs sender.js
open Error: Invalid version 2, expected 0x12
    at SX127x.<anonymous> (/home/pi/node-sx127x/lib/sx127x.js:124:23)
    at /home/pi/node-sx127x/node_modules/async/dist/async.js:3874:9
    at /home/pi/node-sx127x/node_modules/async/dist/async.js:473:16
    at replenish (/home/pi/node-sx127x/node_modules/async/dist/async.js:993:25)
    at iterateeCallback (/home/pi/node-sx127x/node_modules/async/dist/async.js:983:17)
    at /home/pi/node-sx127x/node_modules/async/dist/async.js:958:16
    at /home/pi/node-sx127x/node_modules/async/dist/async.js:3871:13
    at SX127x.<anonymous> (/home/pi/node-sx127x/lib/sx127x.js:472:5)
/home/pi/node-sx127x/examples/sender.js:14
    throw err;
    ^

Error: Invalid version 2, expected 0x12
    at SX127x.<anonymous> (/home/pi/node-sx127x/lib/sx127x.js:124:23)
    at /home/pi/node-sx127x/node_modules/async/dist/async.js:3874:9
    at /home/pi/node-sx127x/node_modules/async/dist/async.js:473:16
    at replenish (/home/pi/node-sx127x/node_modules/async/dist/async.js:993:25)
    at iterateeCallback (/home/pi/node-sx127x/node_modules/async/dist/async.js:983:17)
    at /home/pi/node-sx127x/node_modules/async/dist/async.js:958:16
    at /home/pi/node-sx127x/node_modules/async/dist/async.js:3871:13
    at SX127x.<anonymous> (/home/pi/node-sx127x/lib/sx127x.js:472:5)```
@sandeepmistry
Copy link
Owner

@skoky what chip is your Dragino board based on? Could you share a photo of your setup and explain the wires you connected?

@Lyliya
Copy link

Lyliya commented Dec 18, 2017

ive got same error with dragino v1.4

`open Error: Invalid version 192, expected 0x12
at SX127x. (/home/pi/node_lora/lora/node_modules/sx127x/lib/sx127x.js:120:23)
at /home/pi/node_lora/lora/node_modules/async/dist/async.js:3874:9
at /home/pi/node_lora/lora/node_modules/async/dist/async.js:473:16
at replenish (/home/pi/node_lora/lora/node_modules/async/dist/async.js:993:25)
at iterateeCallback (/home/pi/node_lora/lora/node_modules/async/dist/async.js:983:17)
at /home/pi/node_lora/lora/node_modules/async/dist/async.js:958:16
at /home/pi/node_lora/lora/node_modules/async/dist/async.js:3871:13
at SX127x. (/home/pi/node_lora/lora/node_modules/sx127x/lib/sx127x.js:468:5)
/home/pi/node_lora/lora/index.js:14
throw err;
^

Error: Invalid version 192, expected 0x12
at SX127x. (/home/pi/node_lora/lora/node_modules/sx127x/lib/sx127x.js:120:23)
at /home/pi/node_lora/lora/node_modules/async/dist/async.js:3874:9
at /home/pi/node_lora/lora/node_modules/async/dist/async.js:473:16
at replenish (/home/pi/node_lora/lora/node_modules/async/dist/async.js:993:25)
at iterateeCallback (/home/pi/node_lora/lora/node_modules/async/dist/async.js:983:17)
at /home/pi/node_lora/lora/node_modules/async/dist/async.js:958:16
at /home/pi/node_lora/lora/node_modules/async/dist/async.js:3871:13
at SX127x. (/home/pi/node_lora/lora/node_modules/sx127x/lib/sx127x.js:468:5)
`

image

@rgillan
Copy link

rgillan commented Dec 27, 2017

Hi,
was having trouble also with my v1.3. You will see that the Dragino hat wires NSS (SPI CE) out to pin 22 (a GPIO) and not to either CE0 (24) or CE1 (26). If you solder a jumper wire between pins 22 and 24 on the hat it should solve the issue I expect. Further info in:
https://www.hackster.io/idreams/getting-started-with-lora-fd69d1

@vynci
Copy link

vynci commented Jan 7, 2018

hi is this board supported?

http://wiki.dragino.com/index.php?title=Lora_Shield

i'm getting this error:

open Error: Invalid version 2, expected 0x12
at SX127x. (/home/pi/first-ocean/backend/node_modules/sx127x/lib/sx127x.js:120:23)
at /home/pi/first-ocean/backend/node_modules/sx127x/node_modules/async/dist/async.js:3874:9
at /home/pi/first-ocean/backend/node_modules/sx127x/node_modules/async/dist/async.js:473:16
at replenish (/home/pi/first-ocean/backend/node_modules/sx127x/node_modules/async/dist/async.js:993:25)
at iterateeCallback (/home/pi/first-ocean/backend/node_modules/sx127x/node_modules/async/dist/async.js:983:17)
at /home/pi/first-ocean/backend/node_modules/sx127x/node_modules/async/dist/async.js:958:16
at /home/pi/first-ocean/backend/node_modules/sx127x/node_modules/async/dist/async.js:3871:13
at SX127x. (/home/pi/first-ocean/backend/node_modules/sx127x/lib/sx127x.js:468:5)
/home/pi/first-ocean/backend/lora.js:14
throw err;
^

Error: Invalid version 2, expected 0x12
at SX127x. (/home/pi/first-ocean/backend/node_modules/sx127x/lib/sx127x.js:120:23)
at /home/pi/first-ocean/backend/node_modules/sx127x/node_modules/async/dist/async.js:3874:9
at /home/pi/first-ocean/backend/node_modules/sx127x/node_modules/async/dist/async.js:473:16
at replenish (/home/pi/first-ocean/backend/node_modules/sx127x/node_modules/async/dist/async.js:993:25)
at iterateeCallback (/home/pi/first-ocean/backend/node_modules/sx127x/node_modules/async/dist/async.js:983:17)
at /home/pi/first-ocean/backend/node_modules/sx127x/node_modules/async/dist/async.js:958:16
at /home/pi/first-ocean/backend/node_modules/sx127x/node_modules/async/dist/async.js:3871:13
at SX127x. (/home/pi/first-ocean/backend/node_modules/sx127x/lib/sx127x.js:468:5)

thanks

@vynci
Copy link

vynci commented Jan 7, 2018

nevermind, i made it to work my lowering the SPI frequency from 12E6 to 10E6

var SPI_OPTIONS = {
mode: spi.MODE0,
maxSpeedHz: 10E6
};

@sandeepmistry
Copy link
Owner

Has anyone tried using the options to pass in the pins the board uses: https://github.com/sandeepmistry/node-sx127x/blob/master/API.md#create-device

@epasinetti
Copy link

nevermind, i made it to work my lowering the SPI frequency from 12E6 to 10E6

var SPI_OPTIONS = {
mode: spi.MODE0,
maxSpeedHz: 10E6
};

I have modified these options but not solved the problem, have you got some suggestions ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants