Coder Social home page Coder Social logo

Slave Select pin about lorawangateway HOT 6 CLOSED

jaapbraam avatar jaapbraam commented on August 28, 2024
Slave Select pin

from lorawangateway.

Comments (6)

JaapBraam avatar JaapBraam commented on August 28, 2024

Did you actually upload LoRaWanGW.lc and SX1276.lc? Normally LoRaWanGW.lua and SX1276.lua should be uploaded. The script in init.lua will compile them after a restart and throw away the lua files...

If you see 'ntp synced using ...' in the console, your connection to internet should be fine.
Next line you should see is 'router ip: ....' indicating the LoraWAN router that you are connected to.

I think that your changes regarding Slave Select are ok: if they were wrong you would see 'Unknown radio: ' in the console.

Next you should see only received packages in the console (with a line 'ntp synced using ... ' every five minutes.

It looks like you can communicate with the sx1276 chip, but you don't receive any messages.
Things to check:
Are there really messages to receive on channel 0?
Are the pins DIO0 and DIO1 connected correctly and configured in init.lua?

from lorawangateway.

zoutepopcorn avatar zoutepopcorn commented on August 28, 2024

Thanks for quick reply. I will double check pin connection. I'm sure transmitting something on channel 0 ( i can receive with the arduino gateway from @platenspeler)

Then i will put some print() in to find out whats happening...

I uploaden only .lua files :), and they compile fine with your init script.

from lorawangateway.

JaapBraam avatar JaapBraam commented on August 28, 2024

Did you get it working?

from lorawangateway.

zoutepopcorn avatar zoutepopcorn commented on August 28, 2024

Nope. Got the message Unknown radio now.... Will check it later with another board.

In Lua is pin D8 -> 8 right?. Sometimes confusing the esp pinout...

from lorawangateway.

JaapBraam avatar JaapBraam commented on August 28, 2024

The mapping between the nodemcu pin numbers and the ESP's gpio's can be found on http://nodemcu.readthedocs.io/en/dev/en/modules/gpio/. The nodemcu pin numbers are based on the numbering on the nodemcu boards. I use wemos d1 mini boards which have the same numbering.

from lorawangateway.

JaapBraam avatar JaapBraam commented on August 28, 2024

I have added the parameter GW_NSS to init.lua. This parameter defines the NSS pin to use.

from lorawangateway.

Related Issues (20)

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.