Skip to main content

Messages

This section allows you to view all Messages made by this member. Note that you can only see Messages made in areas you currently have access to.

Messages - Forage

16
USB Infrared Toy / Re: Toy not available after reboot on RPi
Thanks for the suggestion AndThen. I didn't get round to it to try it sooner, but the reset command is not usable.
When the Toy is in the "error state", there's no entry for it in lsusb, nor is it listed in /dev/bus/usb/001/.

I'll see if I can get my hand on a powered USB hub, just to test if it's a power issue to begin with.
17
USB Infrared Toy / Re: Usb ir toy dead?
I had the same issue one or two times. Try updating the firmware again (the jumper way). This brought it back in my case.
18
USB Infrared Toy / Re: Can't get it to work on Xubuntu 14.04
We can't do much if you aren't more accurate.
  • Did anything change after you updated the firmware?
  • Did you try the Mythbuntu 10.4 way as suggested earlier and did it change anything?
  • Please supply to output of the commands you are executing and don't work
  • Please supply the contents of /var/log/syslog after you tried the commands

Note to put output of commands and files contents between code tags in your post. This makes it easier to read.
19
USB Infrared Toy / Re: Can't get it to work on Xubuntu 14.04
[quote author="birdlayegg"]ble@ble-K43SJ:~/IRToy-fw_update$ sudo ./fw_update -e -w -v -m all -vid 0x04D8 -pid 0xFD0B -ix ../USBIRToy.v22.hex
U2IO flash erasing: DONE.
U2IO id programming: DONE.
U2IO eeprom programming: DONE.
Failed to open file "../USBIRToy.v22.hex"  for reading.
Operation aborted.

May i know this consider Done upgrade??[/quote]
Seriously, you are in way over your head.
Read the instructions given more carefully and try to understand what is happening before doing them.

You didn't supply the correct path of the firmware file it has to flash. Check the wiki for the download location of the firmware and try the update again with the correct path to the firmware file.
20
USB Infrared Toy / Re: Can't get it to work on Xubuntu 14.04
[quote author="birdlayegg"]May i know how to install the the build-essential package to be able to compile stuff??[/quote]
It would have saved you the time of typing and waiting, as well as ours, if you just did a quick look on your favourite search engine first:
Code: [Select]
sudo apt-get install build-essential
Also, there's a reason you should download the update tool from a different location, as I'm doing in my earlier post and as explained in the wiki.
22
USB Infrared Toy / Re: Can't get it to work on Xubuntu 14.04
Please post the output of the following, just to be sure:
Code: [Select]
groups
Also disconnect and reconnect you USB IR Toy and post the last 20 lines of the output of:
Code: [Select]
dmesg
And, why not, the output of the following two commands while you are at it, having the Toy connected:
Code: [Select]
lsusb
ls -lah /dev/tty*
23
USB Infrared Toy / Re: Toy not available after reboot on RPi
[quote author="AndThen"]Do you have an externally powered hub you can try hooking it to? A quick search indicates it is likely a power supply problem.[/quote]
Unfortunately I don't have a hub, no.
I found those mentions as well, but I don't believe that can be the cause with only the Toy as the only USB device connected and a 2A power supply for the RPi. It would be a bit strange that a power supply issue would only appear on reboot and not on a complete start-up.
Is the Toy using so much power anyway?
24
USB Infrared Toy / Re: Can't get it to work on Xubuntu 14.04
If you didn't restart or manually started LIRC after the installation than there wouldn't have been a reason to stop it first.
Try stopping it first, just to make sure it's not running with:
Code: [Select]
sudo killall -9 lircd
And start trying to record or whatever you want to do.
26
USB Infrared Toy / Re: Can't get it to work on Xubuntu 14.04
[quote author="birdlayegg"]HI, I'm having a same issue as well and I'm new to ubuntu. Please teach/guide how to solve this issue.

i already keep trying but still cant stop the licd service. I really dont have any idea what to do right now.[/quote]
You're really not giving us much to go on (what are you trying how where and what is the result), but if it's just stopping LIRC you are after:
Code: [Select]
sudo service lircd stop
27
USB Infrared Toy / Re: Toy not available after reboot on RPi
[quote author="Zillode"]I'm having good results by using firmware v23 for the IRToy and prefixing /boot/cmdline.txt with dwc_otg.speed=1[/quote]
Unfortunately this is not the case for me. Updating to firmware v23 and setting the cmdline.txt option gives me the following after a reboot:
Code: [Select]
[   17.870048] usb 1-1.2: device descriptor read/64, error -110
[  18.002262] bcm2708_rng_init=d8a34000
[  19.165919] lirc_dev: IR Remote Control driver registered, major 248
[  19.290937] lirc_rpi: module is from the staging directory, the quality is unknown, you have been warned.
[  20.230145] lirc_rpi: auto-detected active high receiver on GPIO pin 18
[  20.231539] lirc_rpi lirc_rpi.0: lirc_dev: driver lirc_rpi registered at minor = 0
[  20.231594] lirc_rpi: driver registered!
[  27.267947] systemd-udevd[197]: starting version 214
[  28.584821] Console: switching to colour dummy device 80x30
[  33.053391] usb 1-1.2: device descriptor read/64, error -110
[  33.240054] usb 1-1.2: new full-speed USB device number 5 using dwc_otg
[  33.948096] bcm2708-i2s bcm2708-i2s.0: Failed to create debugfs directory
[  34.093299] pcm512x 1-004c: Failed to reset device: -5
[  34.094211] pcm512x: probe of 1-004c failed with error -5
[  39.946847] smsc95xx 1-1.1:1.0 eth0: hardware isn't capable of remote wakeup
[  39.949244] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[  41.457850] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[  41.473470] smsc95xx 1-1.1:1.0 eth0: link up, 100Mbps, full-duplex, lpa 0x45E1
[  43.543507] input: lircd as /devices/virtual/input/input0
[  48.330090] usb 1-1.2: device descriptor read/64, error -110
[  63.513491] usb 1-1.2: device descriptor read/64, error -110
[  63.697334] usb 1-1.2: new full-speed USB device number 6 using dwc_otg
[  74.103269] usb 1-1.2: device not accepting address 6, error -110
[  74.183492] usb 1-1.2: new full-speed USB device number 7 using dwc_otg
[  84.589797] usb 1-1.2: device not accepting address 7, error -110
[  84.590149] hub 1-1:1.0: unable to enumerate USB device on port 2

Just updating the firmware, not setting the option, gives me the same errors as in my initial post.
28
USB Infrared Toy / Re: Toy not available after reboot on RPi
Thank you for your suggestion. I'd like to avoid firmware v23 because it has other issues again and going back to USB 1.1 is not something I prefer.

Your suggestion reminded me of the recently introduced FIQ_FSM USB driver. Since there where quite some issues with that one at first I tried disabling it with "dwc_otg.fiq_fsm_enable=0" but it made no difference.

I set out to try just "dwc_otg.speed=1" but that one fails with a different USB error code.

After searching some more, trying "usbcore.old_scheme_first=Y" or "usbcore.use_both_schemes=Y" is suggested as well but this made no difference either.

The same issue was present with the Arduino Nano, which turned out the be a hardware issue. Maybe this is really the case for the Toy as well?

In the mean time I will try firmware v23 anyway and see what happens.
30
USB Infrared Toy / Re: Can't get it to work on Xubuntu 14.04
[quote author="protorob"]Ok, i managed to activate the root account.[/quote]
You really shouldn't need to be root to use it. Just make sure you are in the 'dialout' group (as non-root):
Code: [Select]
sudo adduser $USER dialout
Next make sure you have the latest firmware installed on your Toy.
In order to do this you'll have to manually compile the firmware tool. To summarize from the wiki:
Code: [Select]
sudo apt-get install libusb-dev
wget https://github.com/dpavlin/fw_update/archive/master.tar.gz
tar xf master.tar.gz
cd fw_update-master/
LIBS=-lusb ./configure --with-usb-includes=/usr/include
make
sudo ./fw_update -e -w -v -m all -vid 0x04D8 -pid 0xFD0B -ix ../USBIRToy.v22.hex
Make ABSOLUTELY SURE you got no spaces in the path of the firmware tool source code, i.e. the location of the fw_update folder, before you run configure. Otherwise you'll be spending a lot of time figuring out what's going wrong using completely unrelated error messages, just like me.
I also recommend you to use the jumper method for flashing the firmware. Activating the bootloader with a terminal command did not function for me.
Replace the last part of the sudo ./fw_update command with the actual location of the firmware file.

Now on to LIRC.
There's no need to do the Mythbuntu 10.04 trickery as explained in the wiki. If you did, revert the changes and reboot.
Next disconnect your Toy, check what /dev/ttyACM* entries your have (where * is a single number), reconnect the Toy, and check again.
You should have a new /dev/ttyACM* entry listed in the /dev/ folder. This is your Toy.

To take full advantage of your Toy you would want to use LIRC with the usb_irtoy driver for the Toy instead of the general irman LIRC driver.
I've created a PPA with a version of LIRC with the driver included. This will safe you the time of having to compile LIRC yourself. https://launchpad.net/~forage/+archive/ubuntu/lirc

Continue with the LIRC instructions in the wiki and other LIRC documentation to do whatever you intended to do with your Toy. Just make sure you replace irman with usb_irtoy wherever the driver is specified and use the correct /dev/ entry to specify your device.

( ! ) Fatal error: Uncaught exception 'Elk_Exception' with message 'Please try again. If you come back to this error screen, report the error to an administrator.' in /var/www/dangerousprototypes/forum/sources/database/Db-mysql.class.php on line 696
( ! ) Elk_Exception: Please try again. If you come back to this error screen, report the error to an administrator. in /var/www/dangerousprototypes/forum/sources/database/Db-mysql.class.php on line 696
Call Stack
#TimeMemoryFunctionLocation
10.01752456344session_write_close ( )...(null):0
20.01782587968ElkArte\sources\subs\SessionHandler\DatabaseHandler->write( )...(null):0
30.01782588744Database_MySQL->query( ).../DatabaseHandler.php:119
40.06422727504Database_MySQL->error( ).../Db-mysql.class.php:273