hex strings: uint8_t my_serial_init[5]={0x81, 0x51, 0xf1, 0x81, 0x44}; //INIT uint8_t my_serial_start[7]={0x83, 0x51, 0xf1, 0x31, 0x22, 0x01, 0x19}; //ON uint8_t my_serial_stop[7]={0x83, 0x51, 0xf1, 0x31, 0x22, 0xff, 0x17}; //heater stop uint8_t my_serial_keep1[7]={0x83, 0x51, 0xf1, 0x2a, 0x01, 0x01, 0xf1}; //keep alive1 uint8_t my_serial_keep2[7]={0x83, 0x51, 0xf1, 0x2a, 0x01, 0x02, 0xf2}; //keep alive2 uint8_t my_serial_keep3[7]={0x83, 0x51, 0xf1, 0x2a, 0x01, 0x05, 0xf5}; //keep alive3 uint8_t...
hex strings: uint8_t my_serial_init[5]={0x81, 0x51, 0xf1, 0x81, 0x44}; //INIT uint8_t my_serial_start[7]={0x83, 0x51, 0xf1, 0x31, 0x22, 0x01, 0x19}; //ON uint8_t my_serial_stop[7]={0x83, 0x51, 0xf1, 0x31, 0x22, 0xff, 0x17}; //heater stop uint8_t my_serial_keep1[7]={0x83, 0x51, 0xf1, 0x2a, 0x01, 0x01, 0xf1}; //keep alive1 uint8_t my_serial_keep2[7]={0x83, 0x51, 0xf1, 0x2a, 0x01, 0x02, 0xf2}; //keep alive2 uint8_t my_serial_keep3[7]={0x83, 0x51, 0xf1, 0x2a, 0x01, 0x05, 0xf5}; //keep alive3 uint8_t...
hex strings: uint8_t my_serial_init[5]={0x81, 0x51, 0xf1, 0x81, 0x44}; //INIT uint8_t my_serial_start[7]={0x83, 0x51, 0xf1, 0x31, 0x22, 0x01, 0x19}; //ON uint8_t my_serial_stop[7]={0x83, 0x51, 0xf1, 0x31, 0x22, 0xff, 0x17}; //heater stop uint8_t my_serial_keep1[7]={0x83, 0x51, 0xf1, 0x2a, 0x01, 0x01, 0xf1}; //keep alive1 uint8_t my_serial_keep2[7]={0x83, 0x51, 0xf1, 0x2a, 0x01, 0x02, 0xf2}; //keep alive2 uint8_t my_serial_keep3[7]={0x83, 0x51, 0xf1, 0x2a, 0x01, 0x05, 0xf5}; //keep alive3 uint8_t...
This is initialization script for pre w-bus webasto. Very rough code for arduino but tested working. void businit(){ Serial.println("init_w"); int i1 = 0; //clears variable for new input while(i1 != 1){ Serial1.end(); pinMode(1, OUTPUT); digitalWrite(1, LOW); // Send BREAK delay(300); // for 25ms digitalWrite(1, HIGH); delay(50); digitalWrite(1, LOW); // Send BREAK delay(25); Serial.println("25ms paus"); Serial1.begin(10400); Serial1.begin(10400,SERIAL_8N1); Serial.println("serial1 restart ok");...
void businit(){ Serial.println("init_w"); int i1 = 0; //clears variable for new input while(i1 != 1){ Serial1.end(); pinMode(1, OUTPUT); digitalWrite(1, LOW); // Send BREAK delay(300); // for 25ms digitalWrite(1, HIGH); delay(50); digitalWrite(1, LOW); // Send BREAK delay(25); Serial.println("25ms paus"); Serial1.begin(10400); Serial1.begin(10400,SERIAL_8N1); Serial.println("serial1 restart ok"); delay(25); Serial1.flush(); Serial.println("serial1 flush"); delay(3000); //kokku 3000 msek paus Serial1.write(my_serial_init,sizeof(my_serial_init));...