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

Enable RPi gateway wth RFM69 #728

Closed

Conversation

PhracturedBlue
Copy link

This patch enables the use of the RFM69W modules directly connected to the Raspberry Pi headers (no arduino gateway needed)

Note that we use software chip-select because we need to query the 1st byte to determine how many bytes to read without de-asserting chip-select, and the hardware chip-select does not support this. I have code to do this reusing the CS0 pin, but it required less change to use a separate pin, so I've started with that.

the configure command I used is:
./configure --my-gateway=mqtt --my-controller-ip-address=127.0.0.1 --my-mqtt-publish-topic-prefix=mysensors-out --my-mqtt-subscribe-topic-prefix=mysensors-in --my-mqtt-client-id=mygateway1 --my-transport=rfm69 --my-is-rfm69hw --my-rfm69-frequency=433 --my-rf69-irq-pin=10 --my-rf69-spi-cs=22 --my-rf69-spi-clock-div=250

This puts the IRQ pin on header-pin 10 and the chip-select on header pin 22 and uses a 1MHz clock (May be 1.6MHz on RPi3 depending on bus frequency)

@mysensors-jenkins
Copy link

Git commit message(s) look good!

@mysensors-jenkins
Copy link

I found warnings (compiler or Doxygen related) in the MySensors core library when building the core library verification sketches. Please rebuild your changes locally with all warnings enabled in the Arduino IDE and make sure it compiles cleanly and resubmit your changes. You do not need to resolve warnings that are unrelated to your change.
You can see the result of the build(s) here: http://ci.mysensors.org/job/Verifiers/job/MySensorsArduinoLibPR/828/
Compiler warnings exist in the Subproject Builds marked with yellow. Click the yellow dot and then on "Arduino/AVR warnings" to review the warnings reported.
Doxygen warnings are reported here: http://ci.mysensors.org/job/Verifiers/job/MySensorsArduinoLibPR/828/warnings14Result
A member of the MySensors core team can retrigger a build on this exact commit by telling me "jenkins, build this please".
But remember that I will only listen if you name me with a capital 'J'.
If the PR is updated I will rebuild it automatically.

@gmarti
Copy link

gmarti commented Jan 11, 2017

Duplicate ? #624

@marceloaqno
Copy link
Member

#823

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

Successfully merging this pull request may close these issues.

None yet

4 participants