Site icon Renzo Mischianti

E220 900T30D and E220 900T22D

I am trying to make a simple communication (send a string) between the two modules cited in the topic title. However, unfortunately, I can't seem to make it work. I am using two Arduino UNOs powered by a laptop USB. Both antennas are < 30cm apart and well suited for 915MHz. My connections are the same cited here: circuit for both modules. However, i didn't have 4.7k resistors, so i used 10k resistors for pullup When fetching the configuration (using the example code) of the 22D module (connecting M1 and M0 to 3.3) I get:

Success
1
----------------------------------------
HEAD : C1 0 8
 
AddH : 0
AddL : 3
 
Chan : 23 -> 433MHz
 
SpeedParityBit     : 0 -> 8N1 (Default)
SpeedUARTDatte     : 11 -> 9600bps (default)
SpeedAirDataRate   : 10 -> 2.4kbps (default)
 
OptionSubPacketSett: 0 -> 200bytes (default)
OptionTranPower    : 0 -> 22dBm (Default)
OptionRSSIAmbientNo: 0 -> Disabled (default)
 
TransModeWORPeriod : 11 -> 2000ms (default)
TransModeEnableLBT : 0 -> Disabled (default)
TransModeEnableRSSI: 0 -> Disabled (default)
TransModeFixedTrans: 0 -> Transparent transmission (default)
----------------------------------------
Success
1
----------------------------------------
HEAD: C1 8 3
Model no.: 20
Version  : B
Features : 16
----------------------------------------

I get the same thing for the 30D module as well (only "Features" is different) Once i put M1 and M0 on both modules to GND again (Normal mode), I try to use the example code "02_sendTransparentTransmission", but separating transmission and reception so that i can use one module for transmitting and the other for receiveing. One of them is just receiving with:

// If something available
if (e220ttl.available()>1) {
    Serial.println("[*] Message received")
    // read the String message
    ResponseContainer rc = e220ttl.receiveMessage();
    // Is something goes wrong print error
    if (rc.status.code!=1){
	  Serial.println(rc.status.getResponseDescription());
	  }else{
	  // Print the data received
		  Serial.println(rc.status.getResponseDescription());
		  Serial.println(rc.data);
	  }
}
And the other is just transmitting with:

    ResponseStatus rs = e220ttl.sendMessage("TEST TEST");
    Serial.println(rs.getResponseDescription());
    delay(500);
My problem is that I can't see the received messages on the receiver (It seems that e220ttl.available() is never > 1, because nothing gets printed on Serial). However, the transmitter side always return Success on rs.getResponseDescription(); I've been working on this for almost a week and tried so many things, but nothing works! Do you know what could be happening? Thanks in advance. zac
Exit mobile version