The Pi Alexa X10 Hub

Started by Tuicemen, August 27, 2018, 07:14:42 AM

Previous topic - Next topic

Would you be interested in such a thing?

Yes
5 (62.5%)
No, I'll build it my self or would never use it
0 (0%)
Don't care one way or the other
3 (37.5%)

Total Members Voted: 8

brobin

Here's the new dmesg file that I ran after unplugging and plugging in the CM-19A to the OTG hub. I really appreciate the time and help.

brobin

Until I need to use the KB/mouse again I've replaced the OTG hub with a simple adapter. I'd run dmesg again without the hub but I can't do that till I set up SSH  B:(

I might be able to do that later tonight.

petera

It's late here so I'm finishing now.

What I do suggest is that you disconnect the hub and plug the CM19a directly into the Pi Zero and run dmesg and paste the output. Do all the unplugging when the Pi Zero is powered off.

Clearly with your current setup the USB Vendor ID is not correctly identified and will not bind to a valid COM port. In fact its reporting as a mouse which clearly is useless. You are now up to 7 USB devices connected which is a sure sign of problems.

Hubs do work but they need to have reliable chipsets and that hub you are using doesn't act like one of them. Keep things simple until you have a reliable connection and operation of your CM19a

brobin

Ah HA! I have NOT been powering down when plugging/unplugging into the USB hub. Perhaps that's causing some confusion.  On the bright side, it's now been running and working without issue for 24 hours without a hiccup.  Next up: learn how to add SSH/VNC and implement so I can put the KB, mouse and hub away for good and then run dmesg again.  I have a book and will try it tonight.  I do have a backup of everything as is.

brobin

Well, getting VNC and SSH working was easier than I thought it would be. Just 15 minutes to do both.  :)% Still a LOT more to learn but it's easier than learning Fortran was in 1968!  ::)

I've attached the latest dmesg file after a fresh reboot with the CM-19A plugged into an OTG adapter without the hub.  Thanks again for looking at it.

dhouston

Quote from: brobin on October 07, 2018, 01:15:48 AM...it's easier than learning Fortran was in 1968!  ::)

The hardest part was shuffling all those punch cards.
This message was composed entirely from recycled letters of the alphabet using only renewable, caffeinated energy sources.
No twees, wabbits, chimps or whales died in the process.
https://www.laser.com/dhouston

petera

Quote from: brobin on October 07, 2018, 01:15:48 AM
Well, getting VNC and SSH working was easier than I thought it would be. Just 15 minutes to do both.  :)% Still a LOT more to learn but it's easier than learning Fortran was in 1968!  ::)

I've attached the latest dmesg file after a fresh reboot with the CM-19A plugged into an OTG adapter without the hub.  Thanks again for looking at it.

Ok you're CM19a has been detected and correctly identified

[ 1.521744] usb 1-1: New USB device found, idVendor=0bc7, idProduct=0002
[ 1.521769] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 1.521782] usb 1-1: Product: USB Transceiver
[ 1.521792] usb 1-1: Manufacturer: X10 wireless Technology Inc

The kernel OTG device driver being used by the USB hub is struggling to manage the i/o of your USB devices. There is quite a few errors in the dmesg to this effect. I reckon the hub chipset is not properly supported by the kernel

What you really need to do is power off, remove the hub completely, plug the CM19a directly into the Pi Zero and then power up the Pi Zero. No keyboards and no mouse. Then paste the results of the dmesg and the lsusb. Also type lspci and paste the results of this too.

brobin

The 'report3' file that I attached was done withOUT the OTG hub but I saw that too and wasn't sure what to make of it. I did that after rebooting with nothing but the CM19, power and HDMI cable plugged in but I'll run it again without the HDMI cable which I don't need now. Photo shows current setup with my trusted assistant, Mr. Bill.  Also I received the OTG hub w/Ethernet as shown in the ZDnet article so I'll run dmesg with that config too for comparison. 

petera

Ok. So you have a new hub now.

Do you have an image taken of your SD card before you started experimenting with it. The reason I ask is that you have a number of kernel drivers registered with your system that may need to be removed manually in order to get your system working normally.


brobin

I haven't plugged in the new hub yet but will in a few minutes. The last dmesg (report3) and this one attached, report4, are both with NO hub as pictured in my last post. I noticed that while a hub is still reported, it is a 1 port rather than a 4 port. It appears the OTG cable pictured is seen as a 1 port hub.  I'll try with a different OTG cable too.

petera

Quote from: brobin on October 07, 2018, 03:02:41 PM
I haven't plugged in the new hub yet but will in a few minutes. The last dmesg (report3) and this one attached, report4, are both with NO hub as pictured in my last post. I noticed that while a hub is still reported, it is a 1 port rather than a 4 port. It appears the OTG cable pictured is seen as a 1 port hub.  I'll try with a different OTG cable too.

See my post above about manually removing kernel drivers/modules.

This type of behaviour is a result of how the kernel was handling your USB devices via your OTG hub. It's possible that you will have to manually remove the offending drivers/modules if they are still showing on boot up.

Could you confirm if you have an image taken of your SD card before you started experimenting.

brobin

The attached dmesg, Report5, is with a different brand OTG cable and no hub.  Next up will be with the new hub.

brobin

I did take an image two nights ago but that image was with the 4 port hub in place.

brobin

And now, Report6, taken with the new powered 3 port hub w/Ethernet.  This hub will not work without power (I tried).  I am powering the hub with the same power supply as before. The pi's power cord is unplugged and the hub is powering the pi.  BTW, the CM19a is working with all configurations so far.

brobin

Quote from: dhouston on October 07, 2018, 06:17:25 AM
Quote from: brobin on October 07, 2018, 01:15:48 AM...it's easier than learning Fortran was in 1968!  ::)

The hardest part was shuffling all those punch cards.

...and waiting two days to see the results!  The punch cards were replaced by paper tape in the following and my final year of HS. Still a two day wait though.

SMF spam blocked by CleanTalk