Hi,
i wonder if anyone has any libraries for Enocean dolphin TCM515? I'm having troubles using those with my arduino mega and my nodemcu...
I've been reading datasheet linked here:
https://www.enocean.com/en/products/enocean_modules/tcm-515/TCM_515_Footprint.pdf
and doing things as it was mention but still getting no response from the module.
I've been trying to get a response from the module to read the frequency the module is using just to see if it is communicating with my arduino correctly...
I've put it in a while loop to be sure just to see that response is stable(i know very stupid :D)
#define proccrc8(u8CRC, u8Data) (u8CRC8Table[u8CRC ^ u8Data])
int incomingByte = 0; // for incoming serial data
void setup() {
// put your setup code here, to run once:
Serial.begin(57600);
Serial3.begin(57600);
//////////////////////////////////////
//set baudrate
Serial3.print(0x55);//sync
//header
Serial3.print(0x0002);//dolž d
Serial3.print(0x00);//dolž opc d
Serial3.print(0x05);//tip
//crc8H
//crc8L
//Serial3.print(0xCD);//Crc8L
//data
Serial3.print(0x24);//komanda baudrate
Serial3.print(0x00);//0-57600bps,4-460800bps
///Serial3.print(0xFA);//sync
//////////////////////////////////
//read freq.
Serial3.print(0x55);//sync
//header
Serial3.print(0x0001);//dolž d
Serial3.print(0x00);//dolž opc d
Serial3.print(0x05);//tip
//crc8H
//Serial3.print(0x70);//crc8H
//data
Serial3.print(0x25);//komanda CO_GET_FREQUENCY_INFO = 37
//crc8L
//Serial3.print(0xFB);//crc8L
if (Serial3.available() > 0) {
// read the incoming byte:
incomingByte = Serial3.read();
// say what you got:
Serial.print("I received: ");
Serial.print(incomingByte, HEX);
}
}
void loop() {
// put your main code here, to run repeatedly:
while(1){
//////////////////////////////////
//read freq.
Serial3.print(0x55);//sync
//header
Serial3.print(0x0001);//dolž d
Serial3.print(0x00);//dolž opc d
Serial3.print(0x05);//tip
//crc8H
//Serial3.print(0x70);//crc8H
//data
Serial3.print(0x25);//komanda CO_GET_FREQUENCY_INFO = 37
//crc8L
//Serial3.print(0xFB);//crc8L
if (Serial3.available() > 0) {
// read the incoming byte:
incomingByte = Serial3.read();
// say what you got:
Serial.print("I received: ");
Serial.println(incomingByte/*, HEX*/);
}
}
}