bobrathbone / piradio

Raspberry PI internet radio
GNU General Public License v3.0
40 stars 31 forks source link

Lirc problem with Piface #3

Open ericzen opened 8 years ago

ericzen commented 8 years ago

Hello, I've installed your software in a raspi model B with a piface module with ir. I've followed all the instruction and i've a problem with ir. Indeed, if i try ir with mode2 or Irw, i've some data. But when i use my remote with radiod, nothing happen. lircrc have informations but nothing. Have you an idea of the problem ? Thanks for your help.

bobrathbone commented 8 years ago

Hi Ericzen,

Is the remote control daemon running?

Run

sudo service pifacercd status

You should see something like:

Remote control running pid 2657

Switch on DEBUG logging (See manual).

Stop the radio

Clear the log file

sudo rm /var/log/radio.log

Reboot the radio

Try using the remote control.

Send me the /var/log/radio.log file

Regards

Bob

Bob Rathbone

https://u2080615.ct.sendgrid.net/wf/click?upn=MhVkzrjI2MAeQPcE26eUotYFWnzu0JGoveKEM4rkihqPpK5dBJTOi-2FdUhqFmTFCv_s5UH8bhnBaopYjthcNSRcXnPwB0jkDGrG6ZULqIIvuk0ZR1sbRHIkpYjiCvJDMUTwRnRl4EQY1SZc6xepfJOdSG2v1nbYeUq1-2F6gfZqtWMDxwWTK2Aao5MN5VgugZ1eALWoiuLr9smANxccw5WsRmmWxKz-2FFadJqrnQeEvvclINqK-2FgYCemikPL8RSrhNHbMykieQcvArzAumdxHojK10L1aQcQ8x9wPCg1P-2Fb9ELasVnb6ri5rGPNfklvvJEjMctKbcQFViufDx6grBA6fExXmdAVzM2gN-2Fj7b0p8l-2FPnhR8gG3zz-2BzebJ3OUDTNEfg4qsGqoEhWhena3sdvkaSRg-3D-3D https://u2080615.ct.sendgrid.net/wf/click?upn=MhVkzrjI2MAeQPcE26eUotYFWnzu0JGoveKEM4rkihqwkVYF1PFpDrykBbtZmZvU_s5UH8bhnBaopYjthcNSRcXnPwB0jkDGrG6ZULqIIvuk0ZR1sbRHIkpYjiCvJDMUTwRnRl4EQY1SZc6xepfJOdSG2v1nbYeUq1-2F6gfZqtWMDxwWTK2Aao5MN5VgugZ1eALWoiuLr9smANxccw5WsRmmWxKz-2FFadJqrnQeEvvclINqK-2FgYCemikPL8RSrhNHbMP79JFtooelSLA0K5JExcM1CUCxZy7Y-2FwAZPa-2FWCq4sXNfOHl-2BmaHd0Umn-2FdJ7kQlp5gL5iOcvvOxPGydnoRQO5B-2BEg8xO6HZW81HyGba3fh0b0zj32G-2FuVSzTn7-2Bp31nGXP0Eb7qL7eza42qUYFnVw-3D-3D

From: ericzen [mailto:notifications@github.com] Sent: Monday, February 1, 2016 4:38 PM To: bobrathbone/piradio Subject: [piradio] Lirc problem with Piface (#3)

Hello, I've installed your software in a raspi model B with a piface module with ir I've followed all the instruction and i've a problem with ir Indeed, if i try ir with mode2 or Irw, i've some data But when i use my remote with radiod, nothing happen lircrc have informations but nothing Have you an idea of the problem ? Thanks for your help

— Reply to this email directly or view it on GitHub https://u2080615.ct.sendgrid.net/wf/click?upn=MXN4QRAPb3vIIz6JZNBqAWtHEf2hAnW4B5HXOgp4suMreqNepTV7LBx0nJLNt9JCSmbaXilUljHvKJlkZjvtCQ-3D-3D_s5UH8bhnBaopYjthcNSRcXnPwB0jkDGrG6ZULqIIvuk0ZR1sbRHIkpYjiCvJDMUTwRnRl4EQY1SZc6xepfJOdSG2v1nbYeUq1-2F6gfZqtWMDxwWTK2Aao5MN5VgugZ1eALWoiuLr9smANxccw5WsRmmWxKz-2FFadJqrnQeEvvclINqK-2FgYCemikPL8RSrhNHbMkCq-2F3QKLunOZcVjp9iGrGySazrVAGXqZvJxyiXjjP-2FwFaD5wQM9VwoDepQW1nRzwuceEByGZRdh4Q8bLEdBNTx9-2FmDfPFHUqBvnQNYWi7O-2BOc2ZfzXX8SYc3c5ZuKXYlZmFPL633Uhv92TPdwnhyTg-3D-3D . https://u2080615.ct.sendgrid.net/wf/click?upn=MXN4QRAPb3vIIz6JZNBqAQKSDRmCdmcR2TxIYfmKhOMAGZSW268G4i6l8C7J28UOc0tZs95MwBeJB1V8AsovfBNxWWHUtIaNyWUun6Pwf8RSpbPqvkn1Yu9THg1wAlY-2BF1ls7SaMcW-2FrAn-2BVmp2dfw-3D-3D_s5UH8bhnBaopYjthcNSRcXnPwB0jkDGrG6ZULqIIvuk0ZR1sbRHIkpYjiCvJDMUTwRnRl4EQY1SZc6xepfJOdSG2v1nbYeUq1-2F6gfZqtWMDxwWTK2Aao5MN5VgugZ1eALWoiuLr9smANxccw5WsRmmWxKz-2FFadJqrnQeEvvclINqK-2FgYCemikPL8RSrhNHbMHpezV6B4APzQnY62aqE6l1Rt98gm395rh0a5WcQky2vc4QLUN5NFT1v5NaVeNQn6Wa8y71Jakj7R0-2BmUXPgK2Jm7VcCcZDnEWhChqQ39qxrGfQdKtQKrTRs2QfBHCty91Dr2AWF2ywjMr-2BBnE0yMOw-3D-3D

No virus found in this message. Checked by AVG - www.avg.com Version: 2016.0.7357 / Virus Database: 4522/11529 - Release Date: 01/31/16

ericzen commented 8 years ago

Yes. Lirc is running. That's why i don't understand. An idea ?

bobrathbone commented 8 years ago

Hi Ericzen,

That isn’t what I asked. Nor did you send me the information I asked for (log files etc)

I asked:

Is the remote control daemon running?

Run

sudo service pifacercd status

You should see something like:

Remote control running pid 2657

If not try

sudo service pifacercd start

If that still fails

Switch on DEBUG logging (See manual).

Stop the radio

Clear the log file

sudo rm /var/log/radio.log

Reboot the radio

Try using the remote control.

Send me the /var/log/radio.log file

I can only help you if you send me this information

Regards

Bob

Bob Rathbone

https://u2080615.ct.sendgrid.net/wf/click?upn=MhVkzrjI2MAeQPcE26eUotYFWnzu0JGoveKEM4rkihqPpK5dBJTOi-2FdUhqFmTFCv_s5UH8bhnBaopYjthcNSRccIXXTdbIqTxC6nceXDrdZbq1jqI50dRzKkr5SeBWyhmY8YtWQVrnZfLkXna1hFgPajIaPuYD6iwQmFXAy0sqXDa1AWSaB2ZJIZUgV7aKUu9lZ7Gkwo16s1q1qNakYKT2ZYRasvy9edGR2NmljfUyGrYYY8bO77NnS3fPsP0yVbDM6rl4GVFZH-2FutJC-2F2EEmHMEBEeSb01CIRY1wF9Vx2Yd5fPkpkSUEkWhMGyBrpyhfdUvY8WZhD8P8fOeXVn0z0kkXaOcwSxtPqRrSmZPB1kgokIa6xN0DGKyWqhQR7aVouBKqurKU4FFBOt2jbspAyQ-3D-3D https://u2080615.ct.sendgrid.net/wf/click?upn=MhVkzrjI2MAeQPcE26eUotYFWnzu0JGoveKEM4rkihqwkVYF1PFpDrykBbtZmZvU_s5UH8bhnBaopYjthcNSRccIXXTdbIqTxC6nceXDrdZbq1jqI50dRzKkr5SeBWyhmY8YtWQVrnZfLkXna1hFgPajIaPuYD6iwQmFXAy0sqXDa1AWSaB2ZJIZUgV7aKUu9lZ7Gkwo16s1q1qNakYKT2ZYRasvy9edGR2NmljfUyGrYYY8bO77NnS3fPsP0yVbDVC75oZDscLgeHusKaOqUg5cp8jpHngyopPClf95YQLAvu86HgFDRcYB2oAe43Ewofwer-2Fe4RRrRGFLOelrJBqT6WkgZ9h-2Bh74SAHyYHw-2FvUbTimOs7q8yqq2SSwty7qcVdMwVUmVgvueK9SYEr4NyQ-3D-3D

From: ericzen [mailto:notifications@github.com] Sent: Monday, February 1, 2016 8:52 PM To: bobrathbone/piradio Cc: Bob Rathbone Subject: Re: [piradio] Lirc problem with Piface (#3)

Yes. Lirc is running. That's why i don't understand. An idea ?

— Reply to this email directly or view it on GitHub https://u2080615.ct.sendgrid.net/wf/click?upn=MXN4QRAPb3vIIz6JZNBqAWtHEf2hAnW4B5HXOgp4suMreqNepTV7LBx0nJLNt9JCraBXhMpOMme19q0iNFIwLyq7ZAMFr5pRH6VjZMjr-2BO0-3D_s5UH8bhnBaopYjthcNSRccIXXTdbIqTxC6nceXDrdZbq1jqI50dRzKkr5SeBWyhmY8YtWQVrnZfLkXna1hFgPajIaPuYD6iwQmFXAy0sqXDa1AWSaB2ZJIZUgV7aKUu9lZ7Gkwo16s1q1qNakYKT2ZYRasvy9edGR2NmljfUyGrYYY8bO77NnS3fPsP0yVbDFhJXHyJZps69T1nx0gSpHjoR7TwgQ9l99JfXheDWEioTdOQcr-2B616jztU4EmR-2BnU5AiWT-2FcygkD9uHhHTgj3pIiFiBSv0y7j01l18GVIdPpsj2VT-2Fg5Wd5aPdRjA7WQrVSZokwr9wqukL64PgoJtWQ-3D-3D . https://u2080615.ct.sendgrid.net/wf/click?upn=MXN4QRAPb3vIIz6JZNBqAQKSDRmCdmcR2TxIYfmKhOMAGZSW268G4i6l8C7J28UOtE2dIpwfuck0MeKL-2B7Ofku0wzy9IWasPWxRvWPwZuKebDltloT0aU9czMuddHPmso-2Fa0nnqhF-2Fk8b3o8tmxI-2Fw-3D-3D_s5UH8bhnBaopYjthcNSRccIXXTdbIqTxC6nceXDrdZbq1jqI50dRzKkr5SeBWyhmY8YtWQVrnZfLkXna1hFgPajIaPuYD6iwQmFXAy0sqXDa1AWSaB2ZJIZUgV7aKUu9lZ7Gkwo16s1q1qNakYKT2ZYRasvy9edGR2NmljfUyGrYYY8bO77NnS3fPsP0yVbDfiEL-2BidVVPy9TYsJ3OEFv51vE9DBN11tzBbbuIvfdSlk9rrSBcSatP-2FpRPlmS7niAQptbxkI1vdRH8O6OFv-2Bnj-2BcSFlPVR8EjFXQrTNQpL-2BDxPdbrYx8x4vr6WJOhGbRf-2B3JOBhQVnCKCOXG-2BMlAaA-3D-3D

No virus found in this message. Checked by AVG - www.avg.com Version: 2016.0.7357 / Virus Database: 4522/11541 - Release Date: 02/02/16

ericzen commented 8 years ago

Hello,

Thanks for your answer.

I've found where is the problem. Your sevice pifacercd used /home/pi/radio/piface_remote.py but i don't have this file in my directory.

How can i install it ?

Thanks for you help

Regards

Ericzen

PS : For the installation i used radiod_4.7_armhf.deb

ericzen commented 8 years ago

So i tested to add manually piface_remote.py on my pi. when i started pifacercd, the pi shuted alone down. If i stop pifacercd, nothing happen, radiod don't start. If i rename piface_remote.py and reboot, radiod start. I think there is a problem with the deb file. Can you compile a new one with all modifications for piface and send it me ? Regards Ericzen

bobrathbone commented 8 years ago

Hi Ericzen,

I could not follow what you have done but the fault is in the select_daemon.sh program.

It is incorrectly setting up /etc/init.de/pifacercd with the wrong file name.

The file should be remote_control.py and not piface_remote.py (This was the old file name).

Edit /etc/init.d/pifacercd

Find the line

NAME=piface_remote.py

And change to

NAME=remote_control.py

Save the file

Restart the radio

Start the remote control with the following line

service pifacercd start

This will be corrected in the next release (5.0)

Sorry for the inconvenience.

Regards

Bob

Bob Rathbone

https://u2080615.ct.sendgrid.net/wf/click?upn=MhVkzrjI2MAeQPcE26eUotYFWnzu0JGoveKEM4rkihqPpK5dBJTOi-2FdUhqFmTFCv_s5UH8bhnBaopYjthcNSRcTMi-2B29pYUssIxk6eheG0x5m7D-2F0hkWLJH-2BuJeMZtRrBkNm1FjWtR-2FnobmRqHsR7F26GZgIrq6jbiHskxGk5z4kx4pLjYZG8K51RxBuTkfWcdQWWX86R-2FEcW9GRSP2mqrdGPuIK-2FkeRahqYEJg4p73VJGysOUOeY5OQJFoVBX7kM23qzS-2Foq4MWVWv-2BJyd7QKDkHoug5A4m6xOhZkw3eERHfcacMynPf-2F-2FxsBKEjsvZwMJCXq1lo4kehun8Vp-2BFib34APHfXPp1P-2BVpsUtUlg3InebftnIomSSlPYnxS6JC1WLhhmjZ9SBQH3ilgaq2uQQ-3D-3D https://u2080615.ct.sendgrid.net/wf/click?upn=MhVkzrjI2MAeQPcE26eUotYFWnzu0JGoveKEM4rkihqwkVYF1PFpDrykBbtZmZvU_s5UH8bhnBaopYjthcNSRcTMi-2B29pYUssIxk6eheG0x5m7D-2F0hkWLJH-2BuJeMZtRrBkNm1FjWtR-2FnobmRqHsR7F26GZgIrq6jbiHskxGk5z4kx4pLjYZG8K51RxBuTkfWcdQWWX86R-2FEcW9GRSP2mqrdGPuIK-2FkeRahqYEJg4p73VJGysOUOeY5OQJFoVBX7kMgyIN8Hs-2FsTgA-2FyFiYOWpZ9VmoUfZq-2BM-2FWHdjnqrWL-2FOX-2F7J-2B3hXPLUJNO6jDdcT8XFtEfReRuMsmQ60OggXkGY-2Fty274gmIuPk1A-2FcVcmxZcXNZwybzHPEx3QTma799peIxa9Girtyta-2BI46kQelZQ-3D-3D

From: ericzen [mailto:notifications@github.com] Sent: Wednesday, February 3, 2016 7:04 PM To: bobrathbone/piradio Cc: Bob Rathbone Subject: Re: [piradio] Lirc problem with Piface (#3)

So i tested to add manually piface_remote.py on my pi. when i started pifacercd, the pi shuted alone down. If i stop pifacercd, nothing happen, radiod don't start. If i rename piface_remote.py and reboot, radiod start. I think there is a problem with the deb file. Can you compile a new one with all modifications for piface and send it me ? Regards Ericzen

— Reply to this email directly or view it on GitHub https://u2080615.ct.sendgrid.net/wf/click?upn=MXN4QRAPb3vIIz6JZNBqAWtHEf2hAnW4B5HXOgp4suMreqNepTV7LBx0nJLNt9JCraBXhMpOMme19q0iNFIwL1QB-2Bf2mlQq6nWndL61f-2Ftw-3D_s5UH8bhnBaopYjthcNSRcTMi-2B29pYUssIxk6eheG0x5m7D-2F0hkWLJH-2BuJeMZtRrBkNm1FjWtR-2FnobmRqHsR7F26GZgIrq6jbiHskxGk5z4kx4pLjYZG8K51RxBuTkfWcdQWWX86R-2FEcW9GRSP2mqrdGPuIK-2FkeRahqYEJg4p73VJGysOUOeY5OQJFoVBX7kML5E-2By8kJJ4V-2BduVpKDNYtTWlcG5LaE5cBAYR0P92DFaAL5YsGB9Ga0VykUQI-2Bg-2BCbMPt6cLFrAMT5VENjNL4mABW8ls4NS0M6nnY9H0M5V-2Fmzgy3Jp7PUUr10g-2BfnedNqNJjaaYmSo6AZh7jjwL-2BKA-3D-3D . https://u2080615.ct.sendgrid.net/wf/click?upn=MXN4QRAPb3vIIz6JZNBqAQKSDRmCdmcR2TxIYfmKhOMAGZSW268G4i6l8C7J28UOoVLoGlGuDfsSJXg85HxkU-2BQhTv-2Fy8um9uAVii77FsRwxe3X51pDLVtvyKWuxlTqq0JYn1-2Fb9Hg-2Fl-2BQSp27ToUA-3D-3D_s5UH8bhnBaopYjthcNSRcTMi-2B29pYUssIxk6eheG0x5m7D-2F0hkWLJH-2BuJeMZtRrBkNm1FjWtR-2FnobmRqHsR7F26GZgIrq6jbiHskxGk5z4kx4pLjYZG8K51RxBuTkfWcdQWWX86R-2FEcW9GRSP2mqrdGPuIK-2FkeRahqYEJg4p73VJGysOUOeY5OQJFoVBX7kMKmrYhIX-2BayGzltvYtdsT-2Btb4p38d7EZqXh-2Buu-2BBHThMXbioWPCSZx9BVE6gO9-2BrC7p5xNITlP4WIW4tI4GkuRhBumtCgjYM4YixX1n07s13OfEkR41Pek44C1mPHDihMG6wOGdoGWm43AXwOfrl-2F0A-3D-3D

No virus found in this message. Checked by AVG - www.avg.com Version: 2016.0.7357 / Virus Database: 4522/11550 - Release Date: 02/03/16

ericzen commented 8 years ago

Hi Bob,

That's solve the problem.

Thanks for your help and no problem for this. You 've made a great job.

I will see if it's possible to make easiest the addition of radio link with a web screen instead of change the file manually and launch the script.

Ericzen