Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
B

Bmlsx

@Bmlsx
About
Posts
13
Topics
2
Shares
0
Groups
0
Followers
0
Following
1

Posts

Recent Best Controversial

  • works fine with 1.4.1 but not with 2.3.2
    B Bmlsx

    problem solved by throwing away 5 yo+ NRF24 and buying new ones

    why 1.4.1 was working with those old NRFs remains a mystery

    Troubleshooting

  • works fine with 1.4.1 but not with 2.3.2
    B Bmlsx

    hi again

    had some progress

    i found one sensebender micro board i had from the early days

    and with the factory installed scketch I connected the NRF and it was working !!!

    when i deployed an example from 2.3.2 again the same error

    it must be something that changed over the years and now it is not compatible with my old RF24 HW

    Troubleshooting

  • works fine with 1.4.1 but not with 2.3.2
    B Bmlsx

    hi,

    I use the examples

    from 1.4.1 the humidity sensor and from 2.3.2 the mock sensor

    Troubleshooting

  • works fine with 1.4.1 but not with 2.3.2
    B Bmlsx

    hi all,

    long time no see :)

    have a strange issue that prbly is already answered somewhere but cannot find it

    i have a very simple setup with only an arduino Pro mini and an NRF24 (the famous 1242AF) that works fine with mysensors 1.4.1 but with the latest version does not (!RF24:INIT:SANCHK FAIL) with the below debug output

    any ideas ?

    many thanx in advance

    ////////////// 1.4.1
    sensor started, id 33
    send: 33-33-0-0 s=255,c=0,t=17,pt=0,l=5,st=ok:1.4.1
    send: 33-33-0-0 s=255,c=3,t=6,pt=1,l=1,st=ok:0
    send: 33-33-0-0 s=255,c=3,t=11,pt=0,l=18,st=ok:Temperature Sensor
    send: 33-33-0-0 s=255,c=3,t=12,pt=0,l=3,st=ok:1.0
    NumSensors:
    1
    send: 33-33-0-0 s=0,c=0,t=6,pt=0,l=5,st=ok:1.4.1
    send: 33-33-0-0 s=0,c=1,t=0,pt=7,l=5,st=ok:23.9

    ////////////////////////////2.3.2
    16 MCO:BGN:INIT NODE,CP=RNNNA---,FQ=8,REL=255,VER=2.3.2
    28 TSM:INIT
    30 TSF:WUR:MS=0
    32 RF24:INIT:PIN,CE=9,CS=10
    36 RF24:SBY
    36 RF24:WBR:REG=0,VAL=14
    45 RF24:WBR:REG=3,VAL=3
    47 RF24:WBR:REG=4,VAL=95
    49 RF24:WBR:REG=5,VAL=76
    53 RF24:WBR:REG=6,VAL=33
    55 RF24:WBR:REG=29,VAL=4
    57 RF24:RBR:REG=29,VAL=0
    61 RF24:WBR:REG=16,VAL=115
    63 RF24:WBR:REG=29,VAL=4
    65 RF24:RBR:REG=6,VAL=0
    69 !RF24:INIT:SANCHK FAIL
    71 !TSM:INIT:TSP FAIL
    73 TSM:FAIL:CNT=1
    75 TSM:FAIL:DIS
    77 TSF:TDI:TSL
    77 RF24:SLP
    79 RF24:WBR:REG=0,VAL=12

    Troubleshooting

  • Idea's ...Microview
    B Bmlsx

    Maybe use it to display motivational messages to quit smoking , I d buy it :)

    General Discussion

  • Code for beta-testing?
    B Bmlsx

    @ToSa thank you ...u saved my rpi;)

    Controllers

  • Code for beta-testing?
    B Bmlsx

    Can anyone pls help on this ...I'm about to eat the raspberry

    Controllers

  • Code for beta-testing?
    B Bmlsx

    Hi there again

    A quick question @jka I used the 1.4 branch on both arduino and rpi and all I get o rpi are messed up messages with crc errors, can u point me a direction on what I do wrong?

    Thanx
    G

    Controllers

  • Code for beta-testing?
    B Bmlsx

    @hek

    hi there,

    nagging time ...did all that (unsigned char on both ends arduino and rpi) but all i get in my rpi is below

    any ideas?!!

    thanx
    G

    Starting Gateway...
    Sensor-1Gateway created...
    SPI device = /dev/spidev0.0
    SPI speed = 8000000
    CE GPIO = 25
    STATUS = 0x0e RX_DR=0 TX_DS=0 MAX_RT=0 RX_P_NO=7 TX_FULL=0
    RX_ADDR_P0-1 \0 = 0xe7e7e7e7e7 0xc2c2c2c2c2
    RX_ADDR_P2-5 \0 = 0xff 0xc4 0xc5 0xc6
    TX_ADDR = 0xe7e7e7e7e7
    RX_PW_P0-6 \0 = 0x00 0x00 0x20 0x00 0x00 0x00
    EN_AA = 0x3f
    EN_RXADDR \0 = 0x07
    RF_CH = 0x4c
    RF_SETUP \0 = 0x07
    CONFIG = 0x0c
    DYNPD/FEATURE \0 = 0x3f 0x04
    Data Rate = 1MBPS
    Model = nRF24L01+
    CRC Length = 16 bits
    PA Power = PA_MAX
    Radio setup complete-0;0;4;11;Arduino startup complete.
    Begin called
    Dynamic payload size=11
    Received: from=16, to=18, childId=0, mtype=50, type=49, crc=120, '.7'
    Message crc error.
    header.type=49, header.to=18, radioId=0
    Dynamic payload size=11
    Received: from=16, to=2, childId=1, mtype=54, type=53, crc=231, '.2'
    Message crc error.
    header.type=53, header.to=2, radioId=0

    Controllers

  • a rf24 fork worth mentioning
    B Bmlsx

    https://github.com/TMRh20/RF24

    im not able to evaluate it but if the description is accurate u might want to have a look

    cheers

    General Discussion

  • Code for beta-testing?
    B Bmlsx

    please excuse the frivolity

    u mean like this both on arduino and Pi?

    // The message structure
    typedef struct {
    unsigned char crc; // uint8_t crc; // 8 bits crc
    unsigned char version; // (3 bits) protocol version
    unsigned char binary; // (1 bit). Data is binary and should be encoded when sent to sensor net gateway
    unsigned char from; // 8 bits. RadioId of sender node
    unsigned char to; // 8 bits. RadioId of destination node
    unsigned char last; // 8 bits. RadioId of last node this message passed
    unsigned char childId; // 8 bits. Up to MAX_CHILD_DEVICES child sensors per radioId
    unsigned char messageType; // (4 bits). Type of message. See messageType
    unsigned char type; // 8 bits. variableType or deviceType depending on messageType
    } header_s;

    Controllers

  • Code for beta-testing?
    B Bmlsx

    @hek ooooooh, I thought it was already done in the 1.4 branch... Silly me.

    Thanx

    Controllers

  • Code for beta-testing?
    B Bmlsx

    dont know if this should be on new subject but spare me this one

    i recompiled both arduino and rpi part with 1.4 branch

    but i get on the RPi side CRC errors

    Starting Gateway...
    Sensor-1Gateway created...
    SPI device = /dev/spidev0.0
    SPI speed = 8000000
    CE GPIO = 25
    STATUS = 0x0e RX_DR=0 TX_DS=0 MAX_RT=0 RX_P_NO=7 TX_FULL=0
    RX_ADDR_P0-1 \0 = 0xabcdabc000 0xabcdabc000
    RX_ADDR_P2-5 \0 = 0xff 0xc4 0xc5 0xc6
    TX_ADDR = 0xabcdabc000
    RX_PW_P0-6 \0 = 0x20 0x20 0x20 0x00 0x00 0x00
    EN_AA = 0x3f
    EN_RXADDR \0 = 0x07
    RF_CH = 0x4c
    RF_SETUP \0 = 0x07
    CONFIG = 0x0f
    DYNPD/FEATURE \0 = 0x3f 0x04
    Data Rate = 1MBPS
    Model = nRF24L01+
    CRC Length = 16 bits
    PA Power = PA_MAX
    Radio setup complete-0;0;4;11;Arduino startup complete.
    Begin called
    Dynamic payload size=12
    Received: from=9, to=0, childId=255, mtype=0, type=17, crc=47, '1.4'
    Message crc error.
    header.type=17, header.to=0, radioId=0
    Dynamic payload size=10
    Received: from=9, to=0, childId=255, mtype=4, type=7, crc=115, '0'
    Message crc error.
    header.type=7, header.to=0, radioId=0
    Dynamic payload size=12
    Received: from=9, to=0, childId=0, mtype=0, type=7, crc=15, '1.4'
    Message crc error.
    header.type=7, header.to=0, radioId=0
    Dynamic payload size=12
    Received: from=9, to=0, childId=1, mtype=0, type=6, crc=187, '1.4'
    Message crc error.
    header.type=6, header.to=0, radioId=0
    Dynamic payload size=13
    Received: from=9, to=0, childId=1, mtype=1, type=0, crc=228, '20.5'
    Message crc error.
    header.type=0, header.to=0, radioId=0
    Dynamic payload size=13
    Received: from=9, to=0, childId=0, mtype=1, type=1, crc=118, '50.3'
    Message crc error.

    while on the arduino just the failed send

    Started sensor.
    Relay=0, distance=1
    Relaying message back to gateway.
    Tx: fr=9,to=0,la=9,ne=0,ci=255,mt=0,ty=17,cr=47: 1.4
    Send failed.
    Relaying message back to gateway.
    Tx: fr=9,to=0,la=9,ne=0,ci=255,mt=4,ty=7,cr=115: 0
    Send failed.
    Relaying message back to gateway.
    Tx: fr=9,to=0,la=9,ne=0,ci=0,mt=0,ty=7,cr=15: 1.4
    Send failed.
    Relaying message back to gateway.
    Tx: fr=9,to=0,la=9,ne=0,ci=1,mt=0,ty=6,cr=187: 1.4
    Send failed.
    Relaying message back to gateway.
    Tx: fr=9,to=0,la=9,ne=0,ci=1,mt=1,ty=0,cr=228: 20.5
    Send failed.
    T: 20.50
    Relaying message back to gateway.
    Tx: fr=9,to=0,la=9,ne=0,ci=0,mt=1,ty=1,cr=118: 50.3
    Send failed.
    H: 50.30
    Relaying message back to gateway.
    Tx: fr=9,to=0,la=9,ne=0,ci=1,mt=1,ty=0,cr=195: 20.6
    Send failed.
    T: 20.60
    Relaying message back to gateway.
    Tx: fr=9,to=0,la=9,ne=0,ci=0,mt=1,ty=1,cr=81: 50.0
    Send failed.
    H: 50.00

    also changed the Data Rate = 1MBPS on arduino to match the RPI preet

    any ideas?

    thanx a mil

    Controllers
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular