APC220 The problem of reading the configuration data

I was given several APC220 modules, but RF Magic does not see them. When trying to read the settings using the arduino, the module responds, but the answer is not the same as in the documentation. Example from the documentation: PARA 434000 3 9 0 0, In my case: PARA 434000 12345 123456789087. I do not know why the answer looks like this and how do I set up the module. Sketch for arduino:

#include <SoftwareSerial.h>
const int pinRX = 12;
const int pinTX = 11;
const int pinSET= 13;
SoftwareSerial apc220(pinRX, pinTX); // Crt softserial port and bind
void setupSoftAPC(void){
pinMode(pinSET, HIGH);
apc220.begin(9600);
}
void setSettings(void){
Serial.write("\nSetting Settings\n");
digitalWrite(pinSET, LOW); // pulling SET to low will put apc220 in config mode
delay(10); // stabilize please
apc220.println("WR 434000 12345 111111111111"); // ask for data
delay(200);
while (apc220.available()) {
Serial.write(apc220.read());
}
digitalWrite(pinSET, HIGH); // put apc220 back in operation
delay(200);
}
void getSettings(void) {
Serial.write("Getting Settings\n");
digitalWrite(pinSET, LOW); // pulling SET to low will put apc220 in config mode
delay(10); // stabilize please
apc220.println("RD"); // ask for data
delay(500);
while (apc220.available()) {
Serial.write(apc220.read());
}
digitalWrite(pinSET, HIGH); // put apc220 back in operation
delay(200);
}
void setup(){
Serial.begin(9600);
setupSoftAPC();
Serial.write("Started settings\n");
delay(200);
getSettings();
}
void loop(){
Serial.write("Hello World!");
apc220.println("Hello World!");
delay(2000);
}

Output to the port monitor:
image

Help please.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.