Hello! I have 2 apc220 wireless transceiver modules, but I can't transmit and receive faster than 1hz without getting weird complications. The moment I transmit faster than 1hz (say 950ms interval) the packets are received in bunches every 2 or 3 seconds, and if I put the delay even shorter, the packets are received only when I turn off the transmitting Arduino (and a good bit is getting lost). It also doesn't matter what the size of the package is, even if it's just a 1 or 0.
edit: Here is a datasheet to the module: https://image.dfrobot.com/image/data/TEL0005/APC220_Datasheet.pdf
The apc220s are configured as followes:
Frequency = 433MHz
RF data rate = 9600 bps
Output power = 9
UART rate = 9600bps, but I will change this to 1200bps to get more range later.
Series checkout = no check
For the transmitting code, I will give a simple example code because it doesn't matter really in what context the problem occurs:
#include <SoftwareSerial.h>
SoftwareSerial transmitter(3,4);
void setup() {
transmitter.begin(9600);
}
void loop() {
long time = millis();
transmitter.println(time);
delay(1000); //this can't be lower, it can be higher however
}
And for the receiving code, it's something like this: (I tried AltSoftSerial but it doesn't seem to allow it to be faster either, but it's basically software serial but more efficient and it only works for pin 8 and 9)
#include <AltSoftSerial.h>
AltSoftSerial receiver;
void setup() {
Serial.begin(9600);
receiver.begin(9600);
}
void loop() {
if(receiver.available() > 1){
String input = receiver.readString();
Serial.print(input);
}
Note that it does transmit and everything works, it just stops working on a shorter delay (even a few milliseconds shorter), and I also have the antennas connected if anyone is wondering.
Is there anyone else that has experience with this module? I would really like to know if there is a way to get it just a bit faster than 1hz, thanks in advance.