sui77 / rc-switch

Arduino lib to operate 433/315Mhz devices like power outlet sockets.
1.93k stars 663 forks source link

Can't send with Arduino DUE #266

Open ic32k opened 5 years ago

ic32k commented 5 years ago

Hello, I'm testing this library with ESP32, Mega2560 and DUE with the same sketches (the example ones) I can receive with the three devices, but only send with ESP32 and Mega... Don't know why or what is happening with due that Im unable to send data... When compiling/updating the sketch I receive this warning: ATENCIÓN: la librería rc-switch-master pretende ejecutarse sobre arquitectura(s) (avr, esp8266, esp32) y puede ser incompatible con tu actual tarjeta la cual corre sobre arquitectura(s) (sam). I get this even with the receive sketch, and this is working fine, so I don't know if the problem is in my due or in the library 'per se' Thank you

ic32k commented 5 years ago

I want to give more info, as in the ESP32 the built-in led glows when it receives data, i can tell you that the DUE is transmitting something, but it is unable to show anything in the serial monitor nor the mega... the same happens when I use my cars remotes, the led glows as it was receiving something but the serial monitor shows nothing, so I think that the due is transmitting but maybe the other devices cannot understand the data.... (in the sketch of transmitter I sent some binary numbers, the same in al boards)

Martin-Laclaustra commented 5 years ago

Get raw data (https://github.com/sui77/SimpleRcScanner) and compare what is transmitted by each chip. Search truncations. First guess is that the problem origin could be differences in the size of integers for each platform.