-
-
Notifications
You must be signed in to change notification settings - Fork 650
About CAD implementation #221
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
Comments
I had the same question (issue #212) and actually reached out to the Semtech community forum. I was told that implementing CAD is easy but unclear if the following solution can be done with Sandeep's Lora.h library. Not sure if this makes sense but this is the Semtech representative suggested: An then you have to declare the On CadDone callback as following : // Radio initialization /* Implement you callback / and after that you just have to call the SX1276StartCad(); function (sx1276.c line 1098) when you want perform a CAD. |
Hi @3Dtj, thanks for the fast response. Actually, I'm kinda new for the LoRa technology, so I have more question about writing the register for the cad mode than writing the cad function. And please correct me if I'm wrong. |
Great question and I'm struggling with the same thing. I've gotten Sandeep's library to work for my SX1279 chips to create a duplex communication but haven't figured out how to implement the built-in CAD functionality. It seems odd that we have to call out each register and I'm hoping Sandeep or others will chime in on this topic. |
I accidentally found out that someone had modified and implemented the CAD function using sandeep's library (https://github.com/szotsaki/arduino-LoRa/blob/master/examples/LoRaCADDetectionWithInterrupt/LoRaCADDetectionWithInterrupt.ino). |
Hi just wanted to chime in so you know someone is paying attention. We've had at least one attempt at implementing CAD detection but the PR fell apart due to having too many other things included. CAD detection is top of my current priority list as I very much need it in my projects, I just don't have time to dig into it again right now (end of next month, likely) I would happily work with anyone who submits a PR to get it implemented, thought presently I only have hardware to verify the |
I'm still a novice at the coding but certainly want to assist in the CAD functionality. I'm trying to round up a few other folks that can assist on it before submitting a PR. I'll contact my coworkers again and see about making this happen. |
Nice find sobehard. I'll program the sketch this weekend and test it out. |
You might find some good info in #50 I'll dig into that myself this weekend if I get a bit of free time. |
@sandeepmistry any thoughts here ? ... CAD is a very important feature |
I would happily merge a pull request. I've started looking into this myself and it looks fairly straight forward, I just don't have time to thoroughly test. A complete PR should include.
PR #50 has most of this but was too complex, though it should provide all the needed detail for anyone who wants to take this PR on. |
Thinking to do a new PR with cad() and onCadDetected() |
Hey @3Dtj I am struggling with CAD implementation on my Arduino pro mini. Radiohead library only supports it in Reliable mode & not unreliable mode( the library has 2 modes). So I thought of building the cad function using driver given from semtech github page. However, I see in the ping pong example "radio.h" is invoked which contains pointers to different functions but I couldn't find where these functions are written. Can you help me out with that? |
@unbracedcat500 What is your use case for CAD? Then I realized that CAD still takes around 1.8mA. So I can not use CAD to wake up MCU during deep sleep. So I feel CAD is quite pointless. To listen before talk, I use RSSI() to measure noises from other nodes. |
Hi sandeepmistry, are there any chances that you will implement CAD function for the LoRa receiving side so that it can support multiple spreading factors on a single channel?
The text was updated successfully, but these errors were encountered: