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

Raspberry gateway with 2 sx1278 #312

Open
zaiplanet opened this issue Aug 12, 2021 · 7 comments
Open

Raspberry gateway with 2 sx1278 #312

zaiplanet opened this issue Aug 12, 2021 · 7 comments

Comments

@zaiplanet
Copy link

zaiplanet commented Aug 12, 2021

Hi sir!
I running this project on raspberry 3B+ gateway with 1 sx1278 and 2 node also use sx1278.
But while 2 node transmit same time to gateway, gw only received 1 packet from 1 node.
Can we set one more sx1278 on second spi on raspberry, sir?
Sorry about my english

@CongducPham
Copy link
Owner

It is theoretically possible but managing both radio modules is very tricky. In your scenario, you may have packet collision. You may need to implement simple listen-before-mechanism with random back-off procedure to limit packet collision.

regards,

@zaiplanet
Copy link
Author

Ok sir. Thank u sir

@zaiplanet
Copy link
Author

How i can enable LBT at nodes with sx1278, sir?

@CongducPham
Copy link
Owner

You have to implement it yourself using LoRa's CAD mechanism. You can have a look at our modified SX12XX lib and look at the CarrierSense function:

void SX127XLT::CarrierSense(uint8_t cs, bool extendedIFS, bool onlyOnce) {

@zaiplanet
Copy link
Author

Thank you very much, sir
I'll check it 👍

@zaiplanet
Copy link
Author

hi sir,
gateway can send request then node reply?

@CongducPham
Copy link
Owner

That can be done through a downlink message from the gateway, then the node would decide to send something following the reception of the downlink. regards,

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

2 participants