-
-
Notifications
You must be signed in to change notification settings - Fork 896
PJON based wired transport layer #1230
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
Conversation
Nice work! To keep consistency with the rest of the library, helping users understand how to use the MySensors features, it would be nice if the debug flag (PJON_DEBUG) could be renamed to MY_DEBUG_VERBOSE_PJON (similar to the other transports, for example RF24)
|
I added |
MySensors is designed to work without additional dependencies (install the MySensors library through the Arduino IDE Library Manager and all features and examples will work without additional libraries). I see you removed the PJON library in an earlier commit. What was your reasoning behind the removal? Would it be a bad idea to include the library in MySensors (except that we'd need to keep it updated, just like we have to do with the rest of the drivers)? |
This comment is not directly related to this pull request, but I am adding it here for reference. To make the PJON transport easy to use for MySensors users, we should create a page similar to https://www.mysensors.org/build/rs485 The name of the page could be something like Wired (PJON). Not sure if we should plan ahead for the other PJON "strategies" (which includes AnalogRead which uses visible light or IR so not wired). |
PJON library has include directive with |
Ciao @mfalkvidd and @4ib3r I see the If help is required I am available. |
Ciao @4ib3r I have pushed the inclusion change see: gioblu/PJON@6fcfd75 |
Thank you for your change @gioblu. |
Ciao @4ib3r can I help you in any way? |
Closed due to inactivity |
is there a way to speed up the PJON integration in MySensors? |
I would also be happy to contribute @tekka007 to make this functional and part of the next release. |
Ok, I'll create a follow-up PR that includes the work done in this PR and the required changes for MySensors CI. Since I have no experience with PJON and limited bandwith for testing and troubleshooting, I'd appreciate if @4ib3r, @gryzli133 and @gioblu could step in for Q&As. |
Ciao @tekka007 thank you very much. Another thing may have sense to be changed is the name of the transport, being expressly dedicated to the As far as it seems it is probably unfeasible to try to make a single transport configurable to use any supported strategy. The code seems fine, I see here:
transportSanityCheck is not true that is not implemented, it is already done by PJON on a lower level, if the packet is received it means it passed the 2 crcs and the packet "sanity check" of PJON.
|
I wrote transport based on PJON library, it can operate without any additional hardware (simple wire from pin to pin). External PJON library is required to use this.