mDot Peer to Peer communication

Home Forums mDot/xDot mDot Peer to Peer communication

Tagged: 

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #23121
    Yi Wei
    Participant

    Hi everyone,

    I’ve been successfully let mDot and Conduit talk to each other and get peer to peer communication work on 3 mDots(2 sender node and 1 receiver node). However I don’t know how to grab the rx data out in peer to peer mode. Seems like the mDot can print out the rx data to the serial port automatically but I can’t get access the rx_data in code. Is there a way that I can access the rx_data in code and do something with it on mDot? I used dot->recv(buffer) but looks like nothing gets filled into the buffer.

    Thanks in advance.

    • This topic was modified 6 years, 11 months ago by Yi Wei.
    • This topic was modified 6 years, 11 months ago by Yi Wei.
    #23129
    Yi Wei
    Participant

    OK, the problem is caused by running 3 nodes at the same time. I could read the received data from serial port but when access it from code, it becomes empty.

    #23133
    Jason Reiss
    Keymaster

    Add a custom radio event handler to accept the received packets.
    Here is an example. The handler code is at the top of main.cpp file.

    https://os.mbed.com/teams/MultiTech/code/mDot_LoRa_CLASS_C_P2P/

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.