MySensors Serial GW trough RasPi tty instead of USB

Issue #12 invalid
bu sa
created an issue

Hi

There is a Project ongoing which is porting MySensors SerialGw to the Raspberry Pi. It offers a Serialport on the Pi for all the communication and it is possible to connect the Radio directly to the Pi without an Arduino.

As Pidome allready supports the MySensors Serial Gateway, but only over an USB Port, would it be possible to directly choose the /dev/ttyMySensorsGateway from the Pi instead the USB-Serial Port from an Arduino?

Greetings sbusa

Comments (18)

  1. John Sirach

    That would be a nice feature to be build in in the server. Before i start with creating support for this it would be nice if there is an usable use case. Would you know if this is already provided?

  2. bu sa reporter

    As far as i know, most of it should work. I just tried for a few Minutes, but had Problems getting the Radio connected. But i will have a bit more Time over the next few Days to get it up and running and let you know if it works with the mySensors Network.

  3. bu sa reporter

    After a few Test today, i can confirm that MySensors Lib V1.4 runs without issues on my RasPi with a NRF24L01 directly attached to the Pi. Here a small Output of the Tests with one of my Room Sensors:

    pi@raspberrypi ~ $ sudo mysensors/PiGateway       
    Starting Gateway...
    ================ SPI Configuration ================
    CSN Pin      = CE0 (PI Hardware Driven)
    CE Pin       = Custom GPIO25
    Clock Speed  = 8 Mhz
    ================ NRF Configuration ================
    STATUS       = 0x0e RX_DR=0 TX_DS=0 MAX_RT=0 RX_P_NO=7 TX_FULL=0
    RX_ADDR_P0-1     = 0xa8a8e1fc00 0xa8a8e1fc00
    RX_ADDR_P2-5     = 0xff 0xc4 0xc5 0xc6
    TX_ADDR      = 0xe7e7e7e7e7
    RX_PW_P0-6   = 0x20 0x20 0x20 0x00 0x00 0x00
    EN_AA        = 0x3b
    EN_RXADDR    = 0x06
    RF_CH        = 0x4c
    RF_SETUP     = 0x23
    CONFIG       = 0x0e
    DYNPD/FEATURE    = 0x3f 0x06
    Data Rate    = 250KBPS
    Model        = nRF24L01+
    CRC Length   = 16 bits
    PA Power     = PA_LOW
    [CALLBACK]0;0;3;0;14;Gateway startup complete.
    [CALLBACK]22;255;0;0;17;1.4.1
    [CALLBACK]22;255;3;0;6;0
    [CALLBACK]22;255;3;0;11;Room Sensor
    [CALLBACK]22;255;3;0;12;1.0
    [CALLBACK]22;1;0;0;1;1.4.1
    [CALLBACK]22;2;0;0;7;1.4.1
    [CALLBACK]22;3;0;0;6;1.4.1
    [CALLBACK]22;4;0;0;16;1.4.1
    [CALLBACK]22;1;1;0;16;1
    [CALLBACK]22;3;1;0;0;21.0
    [CALLBACK]22;2;1;0;1;58.8
    [CALLBACK]22;4;1;0;23;1107296307
    [CALLBACK]22;255;0;0;17;1.4.1
    [CALLBACK]22;255;3;0;6;0
    [CALLBACK]22;255;3;0;11;Room Sensor
    [CALLBACK]22;255;3;0;12;1.0
    [CALLBACK]22;1;0;0;1;1.4.1
    [CALLBACK]22;2;0;0;7;1.4.1
    [CALLBACK]22;3;0;0;6;1.4.1
    [CALLBACK]22;4;0;0;16;1.4.1
    [CALLBACK]22;1;1;0;16;1
    [CALLBACK]22;3;1;0;0;21.0
    [CALLBACK]22;2;1;0;1;58.7
    [CALLBACK]22;4;1;0;23;1107296307
    [CALLBACK]22;1;1;0;16;0
    [CALLBACK]22;3;1;0;0;21.1
    [CALLBACK]22;2;1;0;1;59.9
    [CALLBACK]22;4;1;0;23;1107296310
    [CALLBACK]22;1;1;0;16;1
    [CALLBACK]22;3;1;0;0;21.1
    [CALLBACK]22;2;1;0;1;59.9
    [CALLBACK]22;4;1;0;23;1107296309
    

    Just let me know if you need more Information.

    Greetings

  4. John Sirach

    Very cool!

    Currently i'm busy with RFXCom, when the most is done with this, i need to do some changes in the server and will pick this up. Gimme a week or so? If possible, would you mind to keep in close contact like email so this can be thoroughly tested?

    John.

  5. bu sa reporter

    Hi John. No stress at all. The Network works with the Arduino Serial Gateway. The tty would just be cool to save one Arduino-Board and have all on the same Hardware.

    Will send you a PM with my Mail.

  6. John Sirach

    We have made room in our planning to include this functionality.

    It is scheduled to be ready at: may the 8th. Do not pin me hard on this date as we are on a very tight schedule. It would be very nice if one of you guys is willing to volunteer in testing.

  7. John Sirach

    It is not there yet. Our clients are being rebuild at the moment, we are busy with wired keypads/nfc implementations, and after this we will start with z-wave and the raspi pin mysensors. We have tons of work to do and will try to fit it in asap. It is somewhat lower on the prio list because it is working on serial. but not forgotten!

  8. Log in to comment