Problem with BananaPI M2U and RFM69HW



  • Hello all !

    I have some troubles with my BPI M2U and RFM69HW 868... I don't understand where is the problem...
    My configuration :
    ./configure --my-transport=rfm69 --my-rfm69-frequency=868 --my-is-rfm69hw --my-gateway=ethernet --my-port=5003 --my-rfm69-irq-pin=22
    Here the log :

    Aug 17 15:53:32 INFO Starting gateway...
    Aug 17 15:53:32 INFO Protocol version - 2.3.1
    Aug 17 15:53:32 DEBUG MCO:BGN:INIT GW,CP=RPNGL---,REL=255,VER=2.3.1
    Aug 17 15:53:32 DEBUG TSF:LRT:OK
    Aug 17 15:53:32 DEBUG TSM:INIT
    Aug 17 15:53:32 DEBUG TSF:WUR:MS=0
    Aug 17 15:53:50 DEBUG !TSM:INIT:TSP FAIL
    Aug 17 15:53:50 DEBUG TSM:FAIL:CNT=1
    Aug 17 15:53:50 DEBUG TSM:FAIL:DIS
    Aug 17 15:53:50 DEBUG TSF:TDI:TSL

    And GPIO readall :
    +-----+-----+---------+------+---+---Pi ?---+---+------+---------+-----+-----+
    | BCM | wPi | Name | Mode | V | Physical | V | Mode | Name | wPi | BCM |
    +-----+-----+---------+------+---+----++----+---+------+---------+-----+-----+
    | | | 3.3v | | | 1 || 2 | | | 5v | | |
    | 53 | 8 | SDA.1 | OUT | 1 | 3 || 4 | | | 5v | | |
    | 52 | 9 | SCL.1 | OUT | 1 | 5 || 6 | | | 0v | | |
    | 35 | 7 | GPIO. 7 | OUT | 1 | 7 || 8 | 0 | OUT | TxD | 15 | 274 |
    | | | 0v | | | 9 || 10 | 0 | OUT | RxD | 16 | 275 |
    | 276 | 0 | GPIO. 0 | OUT | 1 | 11 || 12 | 0 | OUT | GPIO. 1 | 1 | 273 |
    | 277 | 2 | GPIO. 2 | OUT | 1 | 13 || 14 | | | 0v | | |
    | 249 | 3 | GPIO. 3 | OUT | 1 | 15 || 16 | 0 | OUT | GPIO. 4 | 4 | 272 |
    | | | 3.3v | | | 17 || 18 | 0 | OUT | GPIO. 5 | 5 | 250 |
    | 64 | 12 | MOSI | OUT | 1 | 19 || 20 | | | 0v | | |
    | 65 | 13 | MISO | OUT | 1 | 21 || 22 | 0 | OUT | GPIO. 6 | 6 | 251 |
    | 66 | 14 | SCLK | OUT | 0 | 23 || 24 | 0 | OUT | CE0 | 10 | 87 |
    | | | 0v | | | 25 || 26 | 0 | OUT | CE1 | 11 | 248 |
    | 257 | 30 | SDA.0 | ALT3 | 0 | 27 || 28 | 0 | ALT3 | SCL.0 | 31 | 256 |
    | 224 | 21 | GPIO.21 | OUT | 0 | 29 || 30 | | | 0v | | |
    | 225 | 22 | GPIO.22 | OUT | 0 | 31 || 32 | 0 | OUT | GPIO.26 | 26 | 116 |
    | 226 | 23 | GPIO.23 | OUT | 0 | 33 || 34 | | | 0v | | |
    | 227 | 24 | GPIO.24 | OUT | 0 | 35 || 36 | 0 | OUT | GPIO.27 | 27 | 231 |
    | 228 | 25 | GPIO.25 | OUT | 0 | 37 || 38 | 0 | OUT | GPIO.28 | 28 | 230 |
    | | | 0v | | | 39 || 40 | 0 | OUT | GPIO.29 | 29 | 229 |
    +-----+-----+---------+------+---+----++----+---+------+---------+-----+-----+
    | BCM | wPi | Name | Mode | V | Physical | V | Mode | Name | wPi | BCM |
    +-----+-----+---------+------+---+---Pi ?---+---+------+---------+-----+-----+

    Thanks a lot.



  • Nobody 😞 ?


  • Mod

    @freedomnx Did you follow the wiring scheme for RPi? https://www.mysensors.org/build/raspberry#wiring
    What RFM breakout do you use? Post pictures of your setup.



  • A photo could not help you, but my wiring is okay ! I connect :
    3.3V to pin 17
    GND to 20
    DI00 to 22
    MISO to 21
    MOSI to 19
    SCK to 23.
    No breakout, I soldered directly my wire on RFM69HW, and I tested it on Arduino, it's okay... maybe it's because it's a bananapi ?


  • Mod

    @freedomnx said in Problem with BananaPI M2U and RFM69HW:

    !TSM:INIT:TSP FAIL

    Indicates a communication problem with the radio. As you state your wiring is correct, it can be a faulty radio or indeed the bananapi. I can't help you on that...



  • The problem is within the bpi SPI implementaion.
    I once tried almost everything to make it work but no success.
    I advice you to switched to a serial gateway as a more robust installation.



  • @lood29 Thanks for you reply ! I think too it's the SPI implementation on the BPI. I will add a Arduino nano on serial GPIO pin. Or buy a real raspberry pi.


Log in to reply
 

Suggested Topics

  • 3
  • 15
  • 2
  • 10
  • 3
  • 2

0
Online

11.2k
Users

11.1k
Topics

112.5k
Posts