Posts: 12
Threads: 1
Joined: Oct 2015
Reputation:
0
I did notice some weird behaviour with my fake arduino. If I connect the arduino and then start the pilight service everything works as expected, but restarting the pilight service results in only being able to send, just like you described. As sending does still work I did not suspect the arduino. It seems the CH340 might be to blaim after all.
I'm going to try to connect my arduino straight to the tx/rx header on the pi, bypassing the CH340 chip all together. If this fixes anything I will report back
Posts: 7,238
Threads: 92
Joined: Aug 2013
Reputation:
76
Please notice that the 232 chips are also rebranded and not official ones. But these rebranded chips work better in my experience then the CH540's.
Posts: 12
Threads: 1
Joined: Oct 2015
Reputation:
0
I tried connecting the arduino directly to the Pi's TX/RX pins, but that didn't work (high cpu usage) (yes I connected RX to TX and vice versa). I did not investigate further as I remembered I actually have an original Arduino Nano lying around. The original Arduino seems to work a lot more reliably as pilight receiver.
Interesting issue. I never had issues with fake Arduinos in the past. I tested a few other Arduino clones that I own, and all use the CH340 chip (unfortunately?). I hope I won't run into this issue again in other projects. I'll probably ordersome fake FTDI Nanos.
Posts: 2
Threads: 0
Joined: Nov 2015
Reputation:
0
Hi,
I have a small issue with the Arduino from the Shop.
If it is connected during boot of the Raspberry Pi 2 it does not get recognized as ttyUSB0 (or any other tty device). If I unplug it and plug it in again it works fine.
Is that normal?
Posts: 7,238
Threads: 92
Joined: Aug 2013
Reputation:
76
This is a linux thing, not the Nano.
Posts: 2
Threads: 0
Joined: Jan 2016
Reputation:
0
I flashed a "fake" nano (CH340) with the latest firmware. Running pilight on either a raspberry pi 2 or Windows 10 (x64) I am getting different protocols (signals) from pilight-Receive. Running my setup directly on the GPIO pins of the Pi it works as expected (simple setup at the moment with cheap Impuls receivers). Sending with my current setup works OOTB on the Pi, but not on my windows laptop.
I could run the setup just on the GPIO pins, but I would like to run pilight on a windows media server using the nano and another instance of pilight on the Pi2 on the other end of my house to get full coverage.
Where should I start troubleshooting?
Posts: 7,238
Threads: 92
Joined: Aug 2013
Reputation:
76
Try a Nano with a RS232 instead of the CH340.