invandy / Oregon_NR

Arduino library for Oregon Scientific and Explore Scientific wireless sensors decode and simulate
Other
31 stars 21 forks source link

Error on RTGN318 identification #7

Open mad-jack opened 4 years ago

mad-jack commented 4 years ago

There's an trouble on identification of RTGN318 sensor. You're looking for sensor ID=0xDCC3 with "(sens_type & 0x0FFF) == RTGN318" but in this way you find only 0x0CC3 and not 0xDCC3 so it not works with RTGN318 = 0xDCC3. Change file Oregon_NR.h line 18 from "#define RTGN318 0xDCC3 ..." into "#define RTGN318 0xCC3 ...". It works. More, that sensor has an other function with sensor ID 0x0CE3, it seems that the data packet is longher than ID 0xXCC3, with radio time data received from atomic clock. The format should be century instead the postamble, month into the CRC then day, hour, minutes and seconds. Thanks for your work very usefull bye

invandy commented 3 years ago

Fixed XCC3. And added of XCE3 sensor also. However I ve a trouble with encoding that time packets. Can you send me the several examples of that XCF3 packet?