• 10 dec 2017: forum version update. In case of issues use this topic.
  • 30 nov 2017: pilight moved servers. In case of issues use this topic.
Hello There, Guest! Login Register


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
pilight Nano USB interface
(02-05-2017, 12:16 PM)curlymo Wrote: I'm of course not going to make losses. I sell nano's that have proven to work with a lot of pilight users. So not the ones with the CH20, but the ones with the right RS232 chip.
Sure, otherwise this would not make sense. Where does this influence the functioning when the arduino is not used in pilight? I was not able to find anything when googling "CH20 RS232".
 
Reply
I meant the CH340 chip. This requires additional drivers on windows and i think also on linux. The RS232 works OOTB.
 
Reply
That was the right hint. I googled it and indeed there is a driver problem with this chip. It can be repaired (see this link) and now everything works fine. So no need to use the other Windows PC, thanks.
 
Reply
You said you bought if from the pilight shop. Did i sent you one with a CH340?
 
Reply
I have no idea: Blue arduino and it says mega328 and FTDI (difficult to read). It is definitively from the shop, arrived Friday.
 
Reply
Ok. Just wanted to make sure.
 
Reply
Hi, I've successfully setup my pilight USB Nano Setup (I used the GPIO version before on my Raspberry Pi).

Unfortunately I need to send raw codes to control my Elro Flamingo Switches and I now have the following message in pilight.log:

ERROR: too many distinct pulses for pilight usb nano to send

I'm trying to send something like:
pilight-send -p raw --code="330 4940 330 1000 320 1010 970 360 320 1010 310 1010 970 370 320 1010 970 360 320 1010 970 370 960 370 960 360 320 1010 970 380 310 1020 300 1020 960 370 960 380 310 1020 960 370 310 1010 970 380 300 1030 950 380 300 1020 960 380 950 370 310 1020"

The same command did work perfect before with my GPIO setup.

Any advise or is this protocol implemented in pilight in the meantime? Thanks a lot Smile
Tim
 
Reply
You should normalize the values first. Between 300 and 400 become 350, between 900 and 1100 becomes 1000. That should do.

330 4940 330 1000 330 1010 970 330 330 1010 330 1010 970 330 330 1010 970 330 330 1010 970 330 960 330 960 360 330 1010 970 380 330 1020 330 1020 960 330 960 330 330 1020 960 370 310 1010 970 380 300 1030 950 380 300 1020 960 380 950 370 310 1020
 
Reply
I got problems with the arduino again (wasn't able to flash it with pilight) and so I put it into a windows machine. But I do not recognize the device, see the attached screenshot. Shouldn't the arduino show up there?


Attached Files
.png   Bildschirmfoto 2017-02-20 um 14.53.14.png (Size: 58.62 KB / Downloads: 15)
 
Reply
Can you post a photo from the serial chip?
 
Reply
  


Possibly Related Threads...
Thread Author Replies Views Last Post
  how to compile pilight with custom protocol code? am i missing something? stanwebber 2 89 07-05-2021, 03:49 AM
Last Post: stanwebber
  hardware info lost after pilight restart Rschnauzer 3 257 03-17-2021, 11:44 AM
Last Post: Rschnauzer
Question pilight stopped working sl4m01 3 957 11-26-2020, 09:17 PM
Last Post: PPacman
  pilight-raw changes output format from 7 to 8 Rschnauzer 1 641 11-26-2020, 01:52 PM
Last Post: curlymo
Question pilight nightly webgui offline after some hours fleisch 4 694 10-26-2020, 05:19 PM
Last Post: fleisch
  pilight bugs Ascenion 1 662 03-23-2020, 06:29 PM
Last Post: curlymo
  [Solved] pilight service crashing on first webserver access after reboot VrahoK 20 4,520 12-21-2019, 09:46 AM
Last Post: curlymo
  pilight-control modify values coolinx 16 3,629 11-13-2019, 08:02 PM
Last Post: curlymo
  Bug: double free or corruption in pilight-send blackzombie 12 3,104 10-07-2019, 08:15 PM
Last Post: blackzombie
  [Fixed] High CPU usage when pilight usb nano disconnects DieterK 1 986 08-13-2019, 05:43 PM
Last Post: curlymo

Forum Jump:


Browsing: 1 Guest(s)