Download TCM 130 Step Code BA Software API User Manual V2
Transcript
Returns: 0 Maturity value correctly written. 1 Maturity value correctly written. Value under 100ms. 2 Error code. Maturity value not written. Input value <2ms or >254ms Error code. Maturity value not written. Value under 60ms not allowed when 3 repeater active char setSerialSpeed(unsigned char SpeedCode) With this command the serial speed may be set. The default value is 9600 bit/s. Code 1 2 3 4 Serial speed (bit/s) 9600 19200 38400 57600 Returns: 0 Serial speed correctly set 1 Error code. Invalid input value. char clearRadioFilter() No radio telegram IDs are filtered Returns 0 filter cleared char setIDBase(unsigned long IDBase) With this command the user can rewrite its ID range base number. The information of the 25 most significant bits is stored in EEPROM. This command can only be used a maximum number of 10 times to avoid misuse. Please note that this command needs ~20ms for execution. Therefore in _CONFIG 1 and 4 a reset will be performed by the WDT. If one of these configurations is used please switch off the WDT during execution of this command. 32 0 25 most significant bits Returns 0 1 2 0 0 0 0 0 0 0 ID range base new ID base set ID base < 0xFF800000. ID base not allowed. New ID not set ID programmed more than 10 times. New ID not set Important note: When the module is programmed with your application the ID originally written to the TCM 120 module at production time is erased. The default value of the ID after programming is “FFFFFF80”. Therefore the ID has to be changed after programming. It is recommended to read the ID from the TCM 120 module before programming using the serial interface as described in the TCM 120 user manual and write this ID back to the module after programming (see Sample 2 in Appendix C). ©EnOcean GmbH Page 18 of 30 TCM 130 User Manual V2.04