hehe, yeah, could be a power problem.
I didn't thought that the soundcard would draw that much power.
The router has slightly less amps available on the usb ports than a real pc, that's why I also use a powered usb hub
Sorry, my German is a bit poor, that's why we sort of switched to english.(keine Ahnung, warum ich das jetzt alles auf englisch geschrieben habe - naja es ist spät)
Reading German is ok, but I'm terrible at writing it
RT-N66U TomatoUSB 1.28.0000 MIPSR2-135 K26AC USB AIO-64K running Entware-NG
pyload 0.4.9
minidlna 1.1.2
samba 3.6.5
openvpn 2.3.10
̶W̶L̶5̶0̶0̶g̶P̶ ̶1̶.̶9̶.̶2̶.̶7̶-̶r̶t̶n̶-̶r̶4̶7̶5̶0 retired
I can read it without google translate
but you know just as well as I do that english (or any other language) to german in translate gives you the worst sentences ever
Just as english to dutch
in the end pheidrias asked for help, I tried to help him, that's what this forum is all about.
Which is really !
Apropos: Hoping, that the sound-quality problems will disappear with the delivery of a powered USB-Hub, I'd like to come back to the original problem.
Do you think, this (http://www.synology-forum.de/showthr...Fernbedienung&) could work on our ASUS-Routers as well?
You might understand a little more C than me - so maybe you could have a look at the (small ;-) ) source file...
In fact, I assume, the forward/etc. buttons do work just like multimedia keys on "modern" keyboards...
I'm not sure if they are multimedia keys like on keyboards
This C program uses libusb, which allows you to compile this directly on your router if you have the appropriate packages installed:
(takes some time to download)Code:ipkg install optware-devel ipkg install buildroot
that and the libusb library could do the trick
If it doesn't work out of the box, could you give me the output of these:
It gives info on your usb deviceslsusb
lsusb -v
Hi wpte!
mpdremote compiled without problems.
However, if I start it via
I only get:Code:cd /opt/bin ./mpdremote_check.sh
mpdremote (the compiled binary, also copied to /opt/bin) itself executed puts my ssh-terminal into nirvana - can't stop it via CTRL-D, CTRL-C or CTRL-X...sh: pts/0: unknown operand
lsusb gives:
lsusb -v is attached.lsusb
Bus 002 Device 001: ID 1d6b:0001
Bus 001 Device 004: ID 041e:30d1 Creative Technology, Ltd
Bus 001 Device 003: ID 0bc2:2101 Seagate RSS LLC
Bus 001 Device 002: ID 0424:2502 Standard Microsystems Corp.
Bus 001 Device 001: ID 1d6b:0002
hmmm yes, I just checked it myself
The implementation isn't that great either...
he is using signals, so you *could* shut it down, however... that doesn't really happen now does itCode:signal(SIGINT, endloop); signal(SIGHUP, endloop); signal(SIGTERM, endloop); while(loop) { memset(packet,0,sizeof(packet)); ret = hid_interrupt_read(hid,0x82,packet,PACKET_LEN,1000); if( ret == HID_RET_SUCCESS ){ if (packet[0] == 0x03) { // printPacket(packet,PACKET_LEN); if (handleKey(&packet[1]) == 0) break; } } }
why?
he waits for an interrupt... which doesn't happenCode:ret = hid_interrupt_read(hid,0x82,packet,PACKET_LEN,1000);
so either way, you stay in the loop as long as the interrupt doesn't return any answer.
so what needs to be done?
1. kick out the while loop and make the program fork into a "daemon mode"
2. probably some changes based on the usb data you gave me
I'll try to work on it in the weekend, is that ok for you?
hehe
It shows that the audio usb device also has a HID (human interface device).Code:Interface Descriptor: bLength 9 bDescriptorType 4 bInterfaceNumber 4 bAlternateSetting 0 bNumEndpoints 1 bInterfaceClass 3 Human Interface Device bInterfaceSubClass 0 No Subclass bInterfaceProtocol 0 None iInterface 0 HID Device Descriptor: bLength 9 bDescriptorType 33 bcdHID 1.11 bCountryCode 0 Not supported bNumDescriptors 1 bDescriptorType 34 Report wDescriptorLength 45 Report Descriptor: (length is 45) Item(Global): Usage Page, data= [ 0x01 ] 1 Generic Desktop Controls Item(Local ): Usage, data= [ 0x06 ] 6 Keyboard Item(Main ): Collection, data= [ 0x01 ] 1 Application Item(Global): Usage Page, data= [ 0x07 ] 7 Keyboard Item(Local ): Usage Minimum, data= [ 0xe0 ] 224 Control Left Item(Local ): Usage Maximum, data= [ 0xe7 ] 231 GUI Right Item(Global): Logical Minimum, data= [ 0x00 ] 0 Item(Global): Logical Maximum, data= [ 0x01 ] 1 Item(Global): Report Size, data= [ 0x01 ] 1 Item(Global): Report Count, data= [ 0x08 ] 8 Item(Main ): Input, data= [ 0x02 ] 2 Data Variable Absolute No_Wrap Linear Preferred_State No_Null_Position Non_Volatile Bitfield Item(Global): Report Count, data= [ 0x01 ] 1 Item(Global): Report Size, data= [ 0x08 ] 8 Item(Main ): Input, data= [ 0x01 ] 1 Constant Array Absolute No_Wrap Linear Preferred_State No_Null_Position Non_Volatile Bitfield Item(Global): Report Count, data= [ 0x06 ] 6 Item(Global): Report Size, data= [ 0x08 ] 8 Item(Global): Logical Minimum, data= [ 0x00 ] 0 Item(Global): Logical Maximum, data= [ 0x65 ] 101 Item(Global): Usage Page, data= [ 0x07 ] 7 Keyboard Item(Local ): Usage Minimum, data= [ 0x00 ] 0 No Event Item(Local ): Usage Maximum, data= [ 0x65 ] 101 Keyboard Application (Windows Key for Win95 or Compose) Item(Main ): Input, data= [ 0x00 ] 0 Data Array Absolute No_Wrap Linear Preferred_State No_Null_Position Non_Volatile Bitfield Item(Main ): End Collection, data=none
Now that HID seems to be a keyboard kind of thing with "Generic Desktop Controls" that I believe are those generic play, pause, next, back buttons
There are several examples on the internet how to read them, so it shouldn't be to hard to cook something up
Hello!
I finally tested the system with an active USB-Hub and the sound quality was drasticly increased (although it wasn't as good as when directly connected to my laptop/PC)!
Now it's just the multimedia-buttons fun missing. Any news on this?
Thanks a lot,
pheidrias
Cool stuff!
It's supposed to read out the buttons.
I have: volume up, volume down, next, previous, play/pause
Apart from that I didn't see any other buttons in the usb dump.
I also fixed that the process stayed alive... forever.
The problem now is... I don't think I will read out the soundcard correctly. It has been over a year that I used libusb, so I have to read up on that first.
I did however re-feel the anger of using libusb again... I just find it a horrible library (to work with)
So right now I'd say I'm on 75% of completing it
Hi wpte!
Any news on this?
Maybe you could post the 75% you were able to finish until here and someone else could try to finish 'em?
Thanks,
pheidrias