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
eporocrailE

eporocrail

@eporocrail
About
Posts
12
Topics
3
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Inserting custom data into payload bytes
    eporocrailE eporocrail

    @mfalkvidd

    I did some tests.
    I put a byte counter I a loop without delay.
    The nano was able to publish every fourth number. So the network is functioning but for not a very high speed requirement.

    I did the same with a MQTT client on a Wemos D1 mini module. The difference in speed was dramatic. No gaps between numbers and much faster.

    Because of the envisioned use for controlling a model railroad track layout I decided to go for the higher performance of the Wemos with all negative consequences as far s complexity of decoder composition is concerned.

    Thanks for the support!

    Development

  • Inserting custom data into payload bytes
    eporocrailE eporocrail

    @mfalkvidd

    Somebody has to make that mistake again!
    This time it was me!

    Thanks.

    Development

  • Inserting custom data into payload bytes
    eporocrailE eporocrail

    @mfalkvidd

    I again need your advice

    } void loop() { data1 = data1 + 1; bericht[1] = data1; send(msg.set(data1)); send(msg.set(bericht, 1)); }

    data1 is transferred to Mosquito with a changing value.
    bericht[1] is transferred with the originally assigned value.
    it is not updated to the new value.
    what could be causing this?

    Development

  • Inserting custom data into payload bytes
    eporocrailE eporocrail

    @mfalkvidd It works!
    Bytes put into the message are transferred in Hex. They show up in the Mosquitto toppic!

    Thanks a lot.

    Development

  • Inserting custom data into payload bytes
    eporocrailE eporocrail

    Thanks for your very fast reply!

    Up to the next step!

    Development

  • Inserting custom data into payload bytes
    eporocrailE eporocrail

    I succeeded to transfer one single byte. It is not clear to me how I can construct a message in the payload which contains ten bytes.
    The normal concatenation seems not to work.
    I tried several things but no luck.

    Development

  • Inserting custom data into payload bytes
    eporocrailE eporocrail

    Thanks for your reaction!!!
    I am going to experiment with it and post proceedings later!

    Development

  • Inserting custom data into payload bytes
    eporocrailE eporocrail

    I installed the ESP8266 MQTT gateway. When I close a switch on a NANO client I see the message being published on Mosquitto. Thus sofar so good.
    What I am looking for is a description of how to insert BYTE type data into several payload bytes.
    It would be most helpful to be able to construct in the Arduino sketch the complete message in accordance with the protocol description, coded by myself.

    As far as I can understand the MyMessage.h and MyMessage.ccp it should be possible. But my knowledge is not sufficient to come up with a procedure myself.

    Development

  • MQTT gateway on Raspi
    eporocrailE eporocrail

    I installed the MySensors gateway on Rasp3. I attached two clients, one on Nano and one on Mega.
    Both clients are incorporated into the radio network correctly. I have a simple "door" sketch on the clients. By closing a contact a simple message is transmitted. Using the gateway in debug mode before install shows that these messages arrive at the gateway correctly.

    After install I do not know how to see if messages are still arriving at the gateway.
    I assume this will be OK.
    Configuring MQTT gateway with IP-Address 172,0,0,1 and debug.
    Testing with two separate terminal sessions shows that mosquito is working OK. In Terminal window 1 type:
    mosquitto_sub -t -v rocnet/rs.

    In Terminal window 2 type:
    mosquitto_pub -d -t rocnet/rs -m "Hello from Terminal window 2!"

    The message pops up in the first terminal.

    Now closing the contact on a client should provoke the gateway to publish a message in topic rocnet/rs.
    No message pops up on the subscription terminal.

    I do not see where the Logfile of the gateway resides. So I am stuck debugging. Some body any idea how to proceed?

    Development

  • MQTT gateway on Raspi
    eporocrailE eporocrail

    I would like to test the interaction between the gateway on a Raspi and mosquito on a separate Raspi.
    Where resides the "gateway log" of the gateway on the Raspi?

    Development

  • Arduino Mega to control sensors
    eporocrailE eporocrail

    Thanks for the reply.
    With me it ONLY WORKS if CE is connected to pin D2 of the Arduino Mega.
    Several other pins did not work.
    Took quite some time to figure this out.

    Development

  • Arduino Mega to control sensors
    eporocrailE eporocrail

    Dear mysensor users.

    I am looking into the possibility to use mysensors for controlling a model railroad track layout. I need to hook up many sensors, servos and relais. The Mega would be my Arduino of choice. To one Mega 32 Servos via 2 PWM driver boards, 32 relais and I would like to use the remaining pins for 32 occupation sensors like reed switch or hall sensors. At the end I would be transferring non standard messages but that is not the point at the moment.

    A second choice would be the Arduino Nano to hook up 16 sensors.

    I succeeded to get the Nano running, not the Mega.
    Than I realised that the Mega is using different pins for SPI.

    How would it be possible to use the Mega?

    Ellard

    Development
  • Login

  • Don't have an account? Register

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