EDIT: solved... before facing others issues, scroll to
this post for solution.
Hi everyone !
At first, sorry for my poor english...
For testing purpose, I buyed 2 motineo R4 (with and without PCB antenna) and a RFM69W to Felix and I'm trying to deal with them.
What I want to do, is a gateway with the teensy (more power to do some other calculation, and fast USB serial included), and moteino as remote sensor node.
It's easy with Felix's example code to make moteino talking each other, but when I try to put the teensy in the game, it's game over !
I adapted the receiver.ino for teensy to make it working (removing flash and assigned PIN 14 to SCK instead of PIN 13), and I was happy to see some answer on my serial monitor... until I remark than my teensy receiving well moteino's message, but no one could hear it...
In fact, the teensy receives 3 times the same message, and got no answer when trying to ping moteino. It's like moteino send with retry 3 times (default behavior) without receiving ACK from teensy, and never reply to the ping request as they probably never received it...
Then I try to send a struct to see if I can encapsulate what I want, and as it worked like a charm beetween both moteino, teensy was not able te receive the correct message : my data are a struct with a size of 40 bytes, and when the receiver moteino receives correctly this 40 bytes, the teensy receives 60 bytes ! So it's not able to deal with them...
I tried to change the size of my struct, and when I send 12 bytes, the teensy received 16...
I used the 3.3V from teensy (250mA max), PIN 10;11;12 and 14 (instead of 13 for LED) for SPI communication. I didn't see any changes with or without DIO0 forme RFM69 connected to a teensy pin...
I use the standard SPI library (i tried the special SPI library for teensy without any difference) and the RFM69 library + RFM69_ATC library.
Do any of you have an idea where I can dig to solve my problem ?
Did someone success to use RFM69 with teensy 3.2 and Felix's RFM69 library ?
Thanks for your help !