• 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
#61
Because I have it working with the RemoteSwitch library https://github.com/hjgode/homewatch/tree...moteSwitch

As far as I can tell these devices use the Bye-bye standby protocol.
 
Reply
#62
How did you flash the firmware?
 
Reply
#63
Exactly like the instructions on github

avr-gcc -Os -Wall -DF_CPU=16000000UL -mmcu=atmega328p -c -o usbto433.o usbto433.c -lm I.
avr-gcc -mmcu=atmega328p usbto433.o -o usbto433
avr-objcopy -O ihex -R .eeprom usbto433 usbto433.hex
avrdude -b 57600 -p atmega328p -c arduino -P COM5 -U flash:w:usbto433.hex

No errors reported. It looked exactly like every other flash I've done over the years.
 
Reply
#64
Are you able to receive data and not send, or does both not work?
Did you check with a LED if the Nano actually sent something?
 
Reply
#65
I'll check with an LED tonight. I'm not receiving, only transmitting.

Thanks, I'll report back
 
Reply
#66
Please add a receiver so you can be sure you are transmitting the right codes.
 
Reply
#67
Hi don't have a receiver but I have a saleae logic analyser. The pilight is indeed sending out signals Smile but sadly not the same as the working library.

I don't really know how to analyse this further without instruction but two screen grabs shows the working and then the pilight transmission. pilight is significantly shorter with smaller pulse widths

[Image: Arduino_Remote_Switch.jpg]

[Image: Pilight_usb_nano.jpg]

So am a bit confused, it's not likely to be a timing issue in the nano is it, given the clock speed is the same for you and I?

Also I'm presuming that this protocol is working for people with GPIO hardware?
 
Reply
#68
The time spent analysing this is just not worth not buying a receiver.
 
Reply
#69
I should say that I'm not convinced I have the mapping of the groups / unit to unit / ids correct, but the pulse width looks totally off anyway.

(04-22-2015, 11:12 PM)curlymo Wrote: The time spent analysing this is just not worth not buying a receiver.

Ok - what will I get from using the receiver?

Are you suggesting I analyze what is being put out by the working library? I don't have an original transmitter for the devices.
 
Reply
#70
Found a receiver, pilight-recieve is identifying arctech_switch_old but not the unit and group codes correctly

receiver is connected to the nano.

this is L1 on and H1 off sent one after the other

http://sprunge.us/UbIV

I can maybe connect this up to a raspberry pi to see whether it's just an issue with the nano?

Output of pilight-raw from the working transmitter sending L1
http://sprunge.us/AfBZ

pilight-daemon log when sending (11,0):
Quote:[Apr 23 00:31:21:911307] pilight-daemon: DEBUG: **** RAW CODE ****
[Apr 23 00:31:21:911335] pilight-daemon: DEBUG: socket write succeeded: {"action":"control","code":{"device":"LampTV","state":"off"}}

335 1005 1005 335 335 1005 1005 335 335 1005 335 1005 335 1005 1005 335 335 1005 335 1005 335 1005 335 1005 335 1005 335 1005 335 1005 335 1005 335 1005 335 1005 335 1005 1005 335 335 1005 1005 335 335 1005 335 1005 335 11390
 
Reply
  


Possibly Related Threads...
Thread Author Replies Views Last Post
  hardware info lost after pilight restart Rschnauzer 3 199 03-17-2021, 11:44 AM
Last Post: Rschnauzer
Question pilight stopped working sl4m01 3 882 11-26-2020, 09:17 PM
Last Post: PPacman
  pilight-raw changes output format from 7 to 8 Rschnauzer 1 604 11-26-2020, 01:52 PM
Last Post: curlymo
Question pilight nightly webgui offline after some hours fleisch 4 620 10-26-2020, 05:19 PM
Last Post: fleisch
  pilight bugs Ascenion 1 624 03-23-2020, 06:29 PM
Last Post: curlymo
  [Solved] pilight service crashing on first webserver access after reboot VrahoK 20 4,252 12-21-2019, 09:46 AM
Last Post: curlymo
  pilight-control modify values coolinx 16 3,452 11-13-2019, 08:02 PM
Last Post: curlymo
  Bug: double free or corruption in pilight-send blackzombie 12 2,979 10-07-2019, 08:15 PM
Last Post: blackzombie
  [Fixed] High CPU usage when pilight usb nano disconnects DieterK 1 949 08-13-2019, 05:43 PM
Last Post: curlymo
  problems compiling pilight on Odroid C2 WitchDoctor 101 28,453 03-14-2019, 09:01 PM
Last Post: curlymo

Forum Jump:


Browsing: 1 Guest(s)