Author Topic: PnP Install Broken for Phoenix USB Solo Mic  (Read 2657 times)

phenigma

  • LinuxMCE God
  • ****
  • Posts: 1722
    • View Profile
Re: PnP Install Broken for Phoenix USB Solo Mic
« Reply #15 on: March 17, 2017, 07:50:22 pm »
So that's returning the correct value, that script should be working with your change.  We need to see if lsusb output matches the ids in the database, again this is working here for me but i have a duet which will have a different USB id's.  What is the output of 'lsusb -l'?

Sent from my Nexus 5 using Tapatalk


cafedumonde

  • Veteran
  • ***
  • Posts: 112
    • View Profile
Re: PnP Install Broken for Phoenix USB Solo Mic
« Reply #16 on: March 17, 2017, 09:06:11 pm »


lsusb did not like the -l option. Here is default output as well as what -t returns. I have a usbuirt and a thumb drive plugged in in addition to the phoenix.

Code: [Select]
root@moon82:~# lsusb
Bus 002 Device 004: ID 0556:0004 Asahi Kasei Microsystems Co., Ltd
Bus 002 Device 003: ID 05dc:c75c Lexar Media, Inc.
Bus 002 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 0403:f850 Future Technology Devices International, Ltd USB-UIRT (Universal Infrared Receiver+Transmitter)
Bus 001 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
root@moon82:~# lsusb -t
/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/2p, 480M
    |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/8p, 480M
        |__ Port 1: Dev 3, If 0, Class=Mass Storage, Driver=usb-storage, 480M
        |__ Port 2: Dev 4, If 0, Class=Audio, Driver=snd-usb-audio, 12M
        |__ Port 2: Dev 4, If 1, Class=Audio, Driver=snd-usb-audio, 12M
        |__ Port 2: Dev 4, If 2, Class=Audio, Driver=snd-usb-audio, 12M
        |__ Port 2: Dev 4, If 3, Class=Human Interface Device, Driver=usbhid, 12M
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/2p, 480M
    |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/6p, 480M
        |__ Port 2: Dev 3, If 0, Class=Vendor Specific Class, Driver=ftdi_sio, 12M
root@moon82:~#

phenigma

  • LinuxMCE God
  • ****
  • Posts: 1722
    • View Profile
Re: PnP Install Broken for Phoenix USB Solo Mic
« Reply #17 on: March 17, 2017, 09:15:12 pm »
Usb id is correct,please check that it's not been added to the ignore list.  Advanced configuration unknown devices in webadmin.  Make sure that the HAL device is not disabled and that it is running.  Then watch the dcerouter log and the HAL log while pluging in and out the solo.  It should show immediately in the logs and give a pop up on orbiters. 

Sent from my Nexus 5 using Tapatalk
« Last Edit: March 17, 2017, 09:26:54 pm by phenigma »

phenigma

  • LinuxMCE God
  • ****
  • Posts: 1722
    • View Profile
Re: PnP Install Broken for Phoenix USB Solo Mic
« Reply #18 on: March 17, 2017, 09:16:03 pm »
And check if you have a solo device in your device tree on that md

Sent from my Nexus 5 using Tapatalk
« Last Edit: March 17, 2017, 09:26:14 pm by phenigma »

cafedumonde

  • Veteran
  • ***
  • Posts: 112
    • View Profile
Re: PnP Install Broken for Phoenix USB Solo Mic
« Reply #19 on: March 17, 2017, 10:37:34 pm »

I have also just tried unboxing a brand new solo mic and plugging it into my system, in order to try a previously unseen device. Same result.

The tail of dcerouter.log shows activity related to plugging in the device, but it still has not registered and there are no notifications on the orbiters. This is shown below:

Code: [Select]
07 03/17/17 17:25:32.779 Event #65 has no handlers <0xad99db40>
07 03/17/17 17:25:32.779 Received Message from 16 (HAL / Bedroom (Master)) to -1001 (unknown / ), type 2 id 65 Event:Device Detected, retry none, parameters: <0xad99db40>
07 03/17/17 17:25:32.779   Parameter 5(Mac Address):  <0xad99db40>
07 03/17/17 17:25:32.779   Parameter 13(Text):  <0xad99db40>
07 03/17/17 17:25:32.779   Parameter 28(IP Address):  <0xad99db40>
07 03/17/17 17:25:32.779   Parameter 49(PK_DeviceTemplate): 0 <0xad99db40>
07 03/17/17 17:25:32.779   Parameter 51(VendorModelID): 05560004 <0xad99db40>
07 03/17/17 17:25:32.779   Parameter 52(PK_CommMethod): 4 <0xad99db40>
07 03/17/17 17:25:32.779   Parameter 53(PK_PnpProtocol): 0 <0xad99db40>
07 03/17/17 17:25:32.779   Parameter 54(PNP Serial Number): /org/freedesktop/Hal/devices/usb_device_556_4_AKM_AK4571 <0xad99db40>
07 03/17/17 17:25:32.779   Parameter 55(DeviceData):  <0xad99db40>
07 03/17/17 17:25:32.779   Parameter 56(Category):  <0xad99db40>
07 03/17/17 17:25:32.779   Parameter 59(Signature): 16,HAL <0xad99db40>

A screenshot of my advanced->configuration->unknown devices page is attached. I cannot correlate it with the device information in lsusb. Perhaps you can help.

Also, I checked the HAL devices for both the core/hybrid and diskless MD and the disabled box is unchecked for both.

Finally there are no solo mics in my devices trees for either the hybrid or MD.

CDM




phenigma

  • LinuxMCE God
  • ****
  • Posts: 1722
    • View Profile
Re: PnP Install Broken for Phoenix USB Solo Mic
« Reply #20 on: March 17, 2017, 11:04:34 pm »
Ok, so the device detection is working, something is deciding not to add the device.  For some reason. 

Sent from my Nexus 5 using Tapatalk


phenigma

  • LinuxMCE God
  • ****
  • Posts: 1722
    • View Profile
Re: PnP Install Broken for Phoenix USB Solo Mic
« Reply #21 on: March 17, 2017, 11:06:54 pm »
We may need to wipe the pnpqueue table in the database, if the device is in there it may not recreate it, iirc

Sent from my Nexus 5 using Tapatalk


cafedumonde

  • Veteran
  • ***
  • Posts: 112
    • View Profile
Re: PnP Install Broken for Phoenix USB Solo Mic
« Reply #22 on: March 17, 2017, 11:29:08 pm »

OK. Please suggest the right sql commands. Will this trigger detection for all of my currently installed devices?

CDM

phenigma

  • LinuxMCE God
  • ****
  • Posts: 1722
    • View Profile
Re: PnP Install Broken for Phoenix USB Solo Mic
« Reply #23 on: March 17, 2017, 11:33:42 pm »
I'm still pondering.  It will trigger detection of anything not in unknown devices, but existing devices will just be detected and then be happy.  It's been a while since I touched all that code so I'm trying to recall anything else that may affect this part of the process.  Everything up to creating the device is working... The only reason it didn't create devices is if they're already dealt with, which pnpqueue table tracks... 

Sent from my Nexus 5 using Tapatalk


phenigma

  • LinuxMCE God
  • ****
  • Posts: 1722
    • View Profile
Re: PnP Install Broken for Phoenix USB Solo Mic
« Reply #24 on: March 19, 2017, 04:48:50 pm »
Launch mysql from the command line and 'delete from PnpQueue' should do it, the table name needs to match.

Sent from my Nexus 5 using Tapatalk


posde

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 3618
  • Wastes Life On LinuxMCE Since 2007
    • View Profile
    • My Home
Re: PnP Install Broken for Phoenix USB Solo Mic
« Reply #25 on: March 19, 2017, 08:05:26 pm »
If removal of the records is the thing that helps,

TRUNCATE from PnpQueue

might be the better option.

cafedumonde

  • Veteran
  • ***
  • Posts: 112
    • View Profile
Re: PnP Install Broken for Phoenix USB Solo Mic
« Reply #26 on: March 20, 2017, 12:36:31 am »

Still no luck with the microphone, though it did ask about some other devices that I had previously told it to ignore. I extrapolated your recommendations somewhat in terms of the exact sql command, but I think I did what you suggested. A transcript is below:

Code: [Select]
mysql> SHOW DATABASES;
+--------------------+
| Database           |
+--------------------+
| information_schema |
| asterisk           |
| mysql              |
| mythconverg        |
| performance_schema |
| pluto_main         |
| pluto_media        |
| pluto_myth         |
| pluto_security     |
| pluto_telecom      |
+--------------------+
10 rows in set (0.00 sec)

mysql> TRUNCATE TABLE pluto_main.PnpQueue;
Query OK, 0 rows affected (0.00 sec)

mysql>


Please confirm that I did this correctly.

Digging a little deeper, I see the following in the PnpQueue table after doing the truncate:

Code: [Select]
mysql> select * from pluto_main.PnpQueue;
+-------------+---------------------+---------------+------+-----------+------------+----------+--------------------------------------+---------------+----------------+-------------------+-------------------+--------------------+-----------+---------+-------+-----------+------------------------------------------------------+------------------------------------------------+--------+-----------+----------+------------+---------------------+--------------+
| PK_PnpQueue | DetectedDate        | VendorModelId | Path | IPaddress | MACaddress | Category | SerialNumber                         | FK_CommMethod | FK_PnpProtocol | FK_DeviceTemplate | FK_Device_Created | FK_Device_Reported | Signature | Removed | Stage | Processed | Parms                                                | Description                                    | psc_id | psc_batch | psc_user | psc_frozen | psc_mod             | psc_restrict |
+-------------+---------------------+---------------+------+-----------+------------+----------+--------------------------------------+---------------+----------------+-------------------+-------------------+--------------------+-----------+---------+-------+-----------+------------------------------------------------------+------------------------------------------------+--------+-----------+----------+------------+---------------------+--------------+
|           1 | 2017-03-19 19:30:02 |               |      |           |            |          | 7e878e2a-336e-4a53-bf97-9c0e25878f18 |             8 |              0 |              1790 |                74 |                  1 |           |       0 |    19 |         1 | 267|7e878e2a-336e-4a53-bf97-9c0e25878f18|277|1.82 TB | 1.82 TB [sdb1] ST2000DL003-9VT166 on dcerouter |   NULL |      NULL |     NULL |          0 | 2017-03-19 19:30:02 |         NULL |
+-------------+---------------------+---------------+------+-----------+------------+----------+--------------------------------------+---------------+----------------+-------------------+-------------------+--------------------+-----------+---------+-------+-----------+------------------------------------------------------+------------------------------------------------+--------+-----------+----------+------------+---------------------+--------------+
1 row in set (0.00 sec)

mysql>


The microphone is absent. Now, plugging in the microphone..

Code: [Select]

mysql> select * from pluto_main.PnpQueue;
+-------------+---------------------+---------------+------+-----------+------------+----------+----------------------------------------------------------+---------------+----------------+-------------------+-------------------+--------------------+-----------+---------+-------+-----------+------------------------------------------------------+------------------------------------------------+--------+-----------+----------+------------+---------------------+--------------+
| PK_PnpQueue | DetectedDate        | VendorModelId | Path | IPaddress | MACaddress | Category | SerialNumber                                             | FK_CommMethod | FK_PnpProtocol | FK_DeviceTemplate | FK_Device_Created | FK_Device_Reported | Signature | Removed | Stage | Processed | Parms                                                | Description                                    | psc_id | psc_batch | psc_user | psc_frozen | psc_mod             | psc_restrict |
+-------------+---------------------+---------------+------+-----------+------------+----------+----------------------------------------------------------+---------------+----------------+-------------------+-------------------+--------------------+-----------+---------+-------+-----------+------------------------------------------------------+------------------------------------------------+--------+-----------+----------+------------+---------------------+--------------+
|           1 | 2017-03-19 19:30:02 |               |      |           |            |          | 7e878e2a-336e-4a53-bf97-9c0e25878f18                     |             8 |              0 |              1790 |                74 |                  1 |           |       0 |    19 |         1 | 267|7e878e2a-336e-4a53-bf97-9c0e25878f18|277|1.82 TB | 1.82 TB [sdb1] ST2000DL003-9VT166 on dcerouter |   NULL |      NULL |     NULL |          0 | 2017-03-19 19:30:02 |         NULL |
|           2 | 2017-03-19 19:33:12 | 05560004      |      |           |            |          | /org/freedesktop/Hal/devices/usb_device_556_4_AKM_AK4571 |             4 |              0 |                 0 |                 0 |                 16 | 16,HAL    |       0 |    19 |         1 |                                                      |                                                |   NULL |      NULL |     NULL |          0 | 2017-03-19 19:33:13 |         NULL |
+-------------+---------------------+---------------+------+-----------+------------+----------+----------------------------------------------------------+---------------+----------------+-------------------+-------------------+--------------------+-----------+---------+-------+-----------+------------------------------------------------------+------------------------------------------------+--------+-----------+----------+------------+---------------------+--------------+
2 rows in set (0.00 sec)

mysql>


The microphone is there, but there is still no activity on the orbiter. Should I expect this to take some time?

Thanks for helping me out with this so far...

CDM

phenigma

  • LinuxMCE God
  • ****
  • Posts: 1722
    • View Profile
Re: PnP Install Broken for Phoenix USB Solo Mic
« Reply #27 on: March 20, 2017, 01:47:44 am »
It should be pretty quick to pop up, it also goes away quickly.  Big Q is did it show in your device tree.

Sent from my Nexus 5 using Tapatalk


cafedumonde

  • Veteran
  • ***
  • Posts: 112
    • View Profile
Re: PnP Install Broken for Phoenix USB Solo Mic
« Reply #28 on: March 20, 2017, 02:24:47 am »

There is no reference to the microphone in the devices tree. See screenshot attached.

posde

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 3618
  • Wastes Life On LinuxMCE Since 2007
    • View Profile
    • My Home
Re: PnP Install Broken for Phoenix USB Solo Mic
« Reply #29 on: March 20, 2017, 03:04:34 pm »
Click on Show Devices on the left hand side to get a tree of all devices.