Hello.
I'm trying to implement the communication between two modules, using your sendFixedTransmission and receiveFixedTransmission on your E32 library. I have an Arduino Mega for both modules, with pins connected as:
* M0 ----- 30
* M1 ----- 31
* TX ----- Serial2
* RX ----- Serial2
* AUX ----- 32
* VCC ----- 5v
* GND ----- GND
Both RX and TX have a level shifter for the 3.3V communication.
I've tried using both the EBYTE software configuration and the arduino code.
With the EBYTE configuration, the result for receiver is:
18:03:55.439 -> RX MIC ---> -1
18:03:55.439 -> TX MIC ---> -1
18:03:55.487 -> AUX ---> 32
18:03:55.487 -> M0 ---> 30
18:03:55.487 -> M1 ---> 31
18:03:55.534 -> Init AUX pin!
18:03:55.534 -> Init M0 pin!
18:03:55.534 -> Init M1 pin!
18:03:55.534 -> Begin ex
18:03:55.534 -> Begin Hardware Serial
18:03:55.582 -> Begin
18:03:55.582 -> MODE NORMAL!
18:03:55.915 -> AUX HIGH!
18:03:55.962 -> Complete!
18:03:56.010 -> MODE PROGRAM/SLEEP!
18:03:56.057 -> AUX HIGH!
18:03:56.057 -> Complete!
18:03:56.105 -> AUX HIGH!
18:03:56.105 -> Complete!
18:03:56.151 -> MODE NORMAL!
18:03:56.199 -> AUX HIGH!
18:03:56.246 -> Complete!
18:03:56.295 -> MODE PROGRAM/SLEEP!
18:03:56.295 -> AUX HIGH!
18:03:56.341 -> Complete!
18:03:57.382 -> Available buffer: 0 structure size: 6
18:03:57.430 -> ----------------------------------------
18:03:57.477 -> HEAD : 111001 57 39
18:03:57.477 ->
18:03:57.477 -> AddH : 101
18:03:57.477 -> AddL : 21
18:03:57.524 -> Chan : 54 -> 916MHz
18:03:57.524 ->
18:03:57.524 -> SpeedParityBit : 10 -> 8E1
18:03:57.571 -> SpeedUARTDatte : 1 -> 2400bps
18:03:57.618 -> SpeedAirDataRate : 110 -> 19.2kbps
18:03:57.618 -> OptionTrans : 0 -> Transparent transmission (default)
18:03:57.713 -> OptionPullup : 0 -> TXD, RXD, AUX are open-collectors
18:03:57.760 -> OptionWakeup : 1 -> 500ms
18:03:57.807 -> OptionFEC : 1 -> Turn on Forward Error Correction Switch (Default)
18:03:57.902 -> OptionPower : 1 -> 17dBm
18:03:57.949 -> ----------------------------------------
18:03:57.949 -> MODE NORMAL!
18:03:57.996 -> AUX HIGH!
18:03:57.996 -> Complete!
18:03:57.996 -> ----------------------------------------
18:03:58.043 -> HEAD : 111001 57 39
18:03:58.090 ->
18:03:58.090 -> AddH : 101
18:03:58.090 -> AddL : 21
18:03:58.090 -> Chan : 54 -> 916MHz
18:03:58.090 ->
18:03:58.090 -> SpeedParityBit : 10 -> 8E1
18:03:58.137 -> SpeedUARTDatte : 1 -> 2400bps
18:03:58.184 -> SpeedAirDataRate : 110 -> 19.2kbps
18:03:58.231 -> OptionTrans : 0 -> Transparent transmission (default)
18:03:58.326 -> OptionPullup : 0 -> TXD, RXD, AUX are open-collectors
18:03:58.326 -> OptionWakeup : 1 -> 500ms
18:03:58.373 -> OptionFEC : 1 -> Turn on Forward Error Correction Switch (Default)
18:03:58.469 -> OptionPower : 1 -> 17dBm
18:03:58.516 -> ----------------------------------------
18:03:58.564 ->
18:03:58.564 -> Start listening!
As for the sender:
18:03:55.566 -> RX MIC ---> -1
18:03:55.566 -> TX MIC ---> -1
18:03:55.566 -> AUX ---> 32
18:03:55.566 -> M0 ---> 30
18:03:55.566 -> M1 ---> 31
18:03:55.614 -> Init AUX pin!
18:03:55.614 -> Init M0 pin!
18:03:55.661 -> Init M1 pin!
18:03:55.661 -> Begin ex
18:03:55.661 -> Begin Hardware Serial
18:03:55.661 -> Begin
18:03:55.661 -> MODE NORMAL!
18:03:56.041 -> AUX HIGH!
18:03:56.089 -> Complete!
18:03:56.136 -> MODE PROGRAM/SLEEP!
18:03:56.136 -> AUX HIGH!
18:03:56.183 -> Complete!
18:03:57.226 -> Available buffer: 0 structure size: 6
18:03:57.273 -> ----------------------------------------
18:03:57.319 -> HEAD : 1000111 71 47
18:03:57.319 ->
18:03:57.319 -> AddH : 84
18:03:57.319 -> AddL : 247
18:03:57.366 -> Chan : 235 -> 1097MHz
18:03:57.366 ->
18:03:57.366 -> SpeedParityBit : 11 -> 8N1
18:03:57.414 -> SpeedUARTDatte : 110 -> 57600bps
18:03:57.414 -> SpeedAirDataRate : 1 -> 1.2kbps
18:03:57.508 -> OptionTrans : 1 -> Fixed transmission (first three bytes can be used as high/low address and channel)
18:03:57.603 -> OptionPullup : 1 -> TXD, RXD, AUX are push-pulls/pull-ups
18:03:57.649 -> OptionWakeup : 100 -> 1250ms
18:03:57.698 -> OptionFEC : 1 -> Turn on Forward Error Correction Switch (Default)
18:03:57.792 -> OptionPower : 1 -> 17dBm
18:03:57.839 -> ----------------------------------------
18:03:57.886 -> MODE NORMAL!
18:03:57.886 -> AUX HIGH!
18:03:57.933 -> Complete!
18:03:57.933 -> ----------------------------------------
18:03:57.933 -> HEAD : 1000111 71 47
18:03:57.980 ->
18:03:57.980 -> AddH : 1010100
18:03:57.980 -> AddL : 11110111
18:03:58.028 -> Chan : 235 -> 1097MHz
18:03:58.028 ->
18:03:58.028 -> SpeedParityBit : 11 -> 8N1
18:03:58.074 -> SpeedUARTDatte : 110 -> 57600bps
18:03:58.121 -> SpeedAirDataRate : 1 -> 1.2kbps
18:03:58.168 -> OptionTrans : 1 -> Fixed transmission (first three bytes can be used as high/low address and channel)
18:03:58.263 -> OptionPullup : 1 -> TXD, RXD, AUX are push-pulls/pull-ups
18:03:58.310 -> OptionWakeup : 100 -> 1250ms
18:03:58.357 -> OptionFEC : 1 -> Turn on Forward Error Correction Switch (Default)
18:03:58.453 -> OptionPower : 1 -> 17dBm
18:03:58.501 -> ----------------------------------------
18:04:00.492 -> Send message to 00 03 04
18:04:00.492 -> AUX HIGH!
18:04:00.492 -> Complete!
18:04:00.492 -> Clear buffer...ok!
18:04:00.539 -> Success
If I use the arduino code, the receiver:
18:31:04.793 -> RX MIC ---> -1
18:31:04.793 -> TX MIC ---> -1
18:31:04.840 -> AUX ---> 32
18:31:04.840 -> M0 ---> 30
18:31:04.840 -> M1 ---> 31
18:31:04.888 -> Init AUX pin!
18:31:04.888 -> Init M0 pin!
18:31:04.888 -> Init M1 pin!
18:31:04.888 -> Begin ex
18:31:04.888 -> Begin Hardware Serial
18:31:04.935 -> Begin
18:31:04.935 -> MODE NORMAL!
18:31:05.313 -> AUX HIGH!
18:31:05.313 -> Complete!
18:31:05.361 -> MODE PROGRAM/SLEEP!
18:31:05.408 -> AUX HIGH!
18:31:05.408 -> Complete!
18:31:05.455 -> AUX HIGH!
18:31:05.502 -> Complete!
18:31:05.549 -> MODE NORMAL!
18:31:05.596 -> AUX HIGH!
18:31:05.596 -> Complete!
18:31:05.643 -> MODE PROGRAM/SLEEP!
18:31:05.691 -> AUX HIGH!
18:31:05.691 -> Complete!
18:31:06.778 -> Available buffer: 0 structure size: 6
18:31:06.778 -> ----------------------------------------
18:31:06.825 -> HEAD : 111001 57 39
18:31:06.872 ->
18:31:06.872 -> AddH : 117
18:31:06.872 -> AddL : 55
18:31:06.872 -> Chan : 54 -> 916MHz
18:31:06.872 ->
18:31:06.872 -> SpeedParityBit : 10 -> 8E1
18:31:06.919 -> SpeedUARTDatte : 11 -> 9600bps (default)
18:31:07.014 -> SpeedAirDataRate : 110 -> 19.2kbps
18:31:07.014 -> OptionTrans : 0 -> Transparent transmission (default)
18:31:07.109 -> OptionPullup : 0 -> TXD, RXD, AUX are open-collectors
18:31:07.156 -> OptionWakeup : 1 -> 500ms
18:31:07.203 -> OptionFEC : 1 -> Turn on Forward Error Correction Switch (Default)
18:31:07.250 -> OptionPower : 1 -> 17dBm
18:31:07.297 -> ----------------------------------------
18:31:07.345 -> MODE NORMAL!
18:31:07.345 -> AUX HIGH!
18:31:07.393 -> Complete!
18:31:07.439 -> MODE PROGRAM/SLEEP!
18:31:07.439 -> AUX HIGH!
18:31:07.487 -> Complete!
18:31:07.534 -> AUX HIGH!
18:31:07.581 -> Complete!
18:31:07.581 -> Clear buffer...ok!
18:31:07.581 -> ----------------------------------------
18:31:07.628 -> HEAD BIN INSIDE: 11000000 192 C0
18:31:07.676 -> ----------------------------------------
18:31:07.676 -> MODE NORMAL!
18:31:07.723 -> AUX HIGH!
18:31:07.723 -> Complete!
18:31:07.723 -> ----------------------------------------
18:31:07.771 -> HEAD : 111001 57 39
18:31:07.818 ->
18:31:07.818 -> AddH : 0
18:31:07.818 -> AddL : 3
18:31:07.865 -> Chan : 4 -> 866MHz
18:31:07.865 ->
18:31:07.865 -> SpeedParityBit : 10 -> 8E1
18:31:07.865 -> SpeedUARTDatte : 11 -> 9600bps (default)
18:31:07.959 -> SpeedAirDataRate : 110 -> 19.2kbps
18:31:07.959 -> OptionTrans : 1 -> Fixed transmission (first three bytes can be used as high/low address and channel)
18:31:08.101 -> OptionPullup : 0 -> TXD, RXD, AUX are open-collectors
18:31:08.149 -> OptionWakeup : 1 -> 500ms
18:31:08.196 -> OptionFEC : 1 -> Turn on Forward Error Correction Switch (Default)
18:31:08.290 -> OptionPower : 1 -> 17dBm
18:31:08.290 -> ----------------------------------------
18:31:08.337 ->
18:31:08.337 -> Start listening!
And the sender:
18:31:04.919 -> RX MIC ---> -1
18:31:04.919 -> TX MIC ---> -1
18:31:04.919 -> AUX ---> 32
18:31:04.919 -> M0 ---> 30
18:31:04.919 -> M1 ---> 31
18:31:04.966 -> Init AUX pin!
18:31:04.966 -> Init M0 pin!
18:31:05.014 -> Init M1 pin!
18:31:05.014 -> Begin ex
18:31:05.014 -> Begin Hardware Serial
18:31:05.014 -> Begin
18:31:05.014 -> MODE NORMAL!
18:31:05.392 -> AUX HIGH!
18:31:05.439 -> Complete!
18:31:05.486 -> MODE PROGRAM/SLEEP!
18:31:05.486 -> AUX HIGH!
18:31:05.533 -> Complete!
18:31:06.574 -> Available buffer: 0 structure size: 6
18:31:06.621 -> ----------------------------------------
18:31:06.668 -> HEAD : 1000111 71 47
18:31:06.668 ->
18:31:06.668 -> AddH : 84
18:31:06.668 -> AddL : 215
18:31:06.715 -> Chan : 235 -> 1097MHz
18:31:06.715 ->
18:31:06.715 -> SpeedParityBit : 11 -> 8N1
18:31:06.762 -> SpeedUARTDatte : 110 -> 57600bps
18:31:06.809 -> SpeedAirDataRate : 0 -> 0.3kbps
18:31:06.856 -> OptionTrans : 1 -> Fixed transmission (first three bytes can be used as high/low address and channel)
18:31:06.951 -> OptionPullup : 1 -> TXD, RXD, AUX are push-pulls/pull-ups
18:31:07.045 -> OptionWakeup : 110 -> 1750ms
18:31:07.045 -> OptionFEC : 1 -> Turn on Forward Error Correction Switch (Default)
18:31:07.140 -> OptionPower : 1 -> 17dBm
18:31:07.188 -> ----------------------------------------
18:31:07.235 -> MODE NORMAL!
18:31:07.235 -> AUX HIGH!
18:31:07.235 -> Complete!
18:31:07.282 -> MODE PROGRAM/SLEEP!
18:31:07.329 -> AUX HIGH!
18:31:07.329 -> Complete!
18:31:07.377 -> AUX HIGH!
18:31:07.424 -> Complete!
18:31:07.424 -> Clear buffer...ok!
18:31:07.424 -> ----------------------------------------
18:31:07.518 -> HEAD BIN INSIDE: 11000000 192 C0
18:31:07.518 -> ----------------------------------------
18:31:07.565 -> MODE NORMAL!
18:31:07.565 -> AUX HIGH!
18:31:07.612 -> Complete!
18:31:07.612 -> ----------------------------------------
18:31:07.659 -> HEAD : 1000111 71 47
18:31:07.707 ->
18:31:07.707 -> AddH : 0
18:31:07.707 -> AddL : 1
18:31:07.707 -> Chan : 2 -> 864MHz
18:31:07.707 ->
18:31:07.707 -> SpeedParityBit : 11 -> 8N1
18:31:07.754 -> SpeedUARTDatte : 110 -> 57600bps
18:31:07.802 -> SpeedAirDataRate : 0 -> 0.3kbps
18:31:07.802 -> OptionTrans : 1 -> Fixed transmission (first three bytes can be used as high/low address and channel)
18:31:07.943 -> OptionPullup : 1 -> TXD, RXD, AUX are push-pulls/pull-ups
18:31:08.038 -> OptionWakeup : 110 -> 1750ms
18:31:08.038 -> OptionFEC : 1 -> Turn on Forward Error Correction Switch (Default)
18:31:08.134 -> OptionPower : 1 -> 17dBm
18:31:08.180 -> ----------------------------------------
18:31:10.158 -> Send message to 00 03 04
18:31:10.158 -> AUX HIGH!
18:31:10.206 -> Complete!
18:31:10.206 -> Clear buffer...ok!
18:31:10.206 -> Success
18:31:12.190 -> Send message to 00 03 04
18:31:12.190 -> AUX HIGH!
18:31:12.237 -> Complete!
18:31:12.237 -> Clear buffer...ok!
18:31:12.237 -> Success
18:31:14.217 -> Send message to 00 03 04
18:31:14.217 -> AUX HIGH!
18:31:14.217 -> Complete!
18:31:14.217 -> Clear buffer...ok!
Both modules are receiving enough power from an external source, and I've used a ESP-05 in Serial2 to test it and it's working fine.
What else can I check?