Użytkownik Joe napisał:
> On 2/8/2013 4:43 PM, Joe wrote:
>> On 2/7/2013 4:03 PM, Ben Drawbaugh wrote:
>>> I've spent countless hours trying to figure out why I'm able to emit
>>> IR using my USB-UIRT connected to my Raspberry Pi that is running
>>> Raspbian Wheezy(3.2.27+ #250 PREEMPT). Successfully tested the
>>> hardware on another computer.
Hi people, I am working on transmitter / receiver that is based on
ATMega328P, now it has serial interface. (it is planned to be USB).
But it is expected to work with ANY serial port, including USB->serial
dongles.
If the time is not pressing, in a week or two, I'll have "alpha" version
of firmware to test. (sending "side"). (need an Atmel ISP programmer).
[on hardware side it will be extremely simple, so anyone with soldering
skills will be able to make it. - 1uC, 1IR diode, 1NPN transistor, 7805
(or not, if You have 5V supply), some resistors. MAX232+4capacitors OR
RS-232->TTL serial micro board], 1x24C256/512 eeprom.
Now I am on a stage, that I can send (Space-encoded) codes, hardcoded in
internal EEPROM (one remote only as there is 1024bytes). RC5/6 not yet
implemented (as my primary concern is to replace dead Yamaha RAV-12).
And it is controlled very simple way: just issue "send remote_name
key_name" to serial port... :) [limited irsend syntax]
Please write if You are interested.
Wawrzyniec (Laurent) Piotrzkowski,
Poland.
>>>
>>> I installed lirc via "sudo apt-get install lirc" and can verify
>>> receive IR is working by creating a remote config file using irrecord
>>> and then using irw to verify that the learned commands are detected.
>>> But I'm not able to emit IR, instead irsend returns:
>>> irsend: command failed: SEND_ONCE NewRemote KEY_UP
>>> irsend: transmission failed
>>>
>>>
>>> If I run lircd with the --nodameon command, there are some errors,
>>> but I haven't found a solution online.
>>> lircd-0.9.0-pre1[5562]: accepted new client on /var/run/lirc/lircd
>>> lircd-0.9.0-pre1[5562]: uirt2_raw: checksum error
>>> lircd-0.9.0-pre1[5562]: uirt2_raw: UIRT version 0905 ok
>>> lircd-0.9.0-pre1[5562]: uirt2_raw: UIRT version 0905
>>> lircd-0.9.0-pre1[5562]: uirt2_send: remote not supported
>>> lircd-0.9.0-pre1[5562]: error processing command: SEND_ONCE NewRemote
>>> KEY_UP
>>> lircd-0.9.0-pre1[5562]: transmission failed
>>> lircd-0.9.0-pre1[5562]: removed client
>>>
>>>
>>> The best thing I've come up with is that there is something wrong
>>> with the kernel driver that is preventing this from working. But all
>>> the posts that lead me to believe that are very old and I'm not sure
>>> how to verify the problem.
>>>
>>> Any help would be appreciated. Thanks!
>>> Ben
>>>
>>>
>>> ------------------------------------------------------------------------------
>>>
>>> Free Next-Gen Firewall Hardware Offer
>>> Buy your Sophos next-gen firewall before the end March 2013
>>> and get the hardware for free! Learn more.
>>> http://p.sf.net/sfu/sophos-d2d-feb
>>
>> try to run lircd with strace.
>>
>> ex.
>>
>> "strace lircd --device=/dev/lirc0 --output=/var/run/lirc/lircd
>> --pidfile=/var/run/lirc/lircd.pid --logfile=/var/log/lircd.log"
>>
>> then run irsend using your remote name
>>
>> ex "irsend -d /var/run/lirc/lircd SEND_ONCE NewRemote KEY_UP"
>>
>> Please reference my experience with USB drivers with a new z77 chipset
>>
>> https://www.centos.org/modules/newbb/viewtopic.php?topic_id=40935&forum=55
>>
>>
>> My end solution was going back to a serial blaster from irblaster.info
>>
>> With any luck the strace will show you where it's failing.
>>
>> Joe
>>
>>
>>
>>
>>
>>
>
>
>
>
> ------------------------------------------------------------------------------
> Free Next-Gen Firewall Hardware Offer
> Buy your Sophos next-gen firewall before the end March 2013
> and get the hardware for free! Learn more.
> http://p.sf.net/sfu/sophos-d2d-feb
>
|