Stopped working after several years

6 replies [Last post]
DoubleSpeed
Offline
Bristol, United Kingdom
Joined: 31 Mar 2012

Hi All,

I've not been on for quite a while now, not had the time nor inclination to mess with my set-up. My HAH has been running fine for several years I primarily use it to monitor my solar and also immersion hot water temperature so I have a Current Cost EnviR and a wireless jeenode connected via USB to my HAH. Recently my powered USB hub failed so I've purchased a new one however I’m not getting any data from my CC or my wireless jeenode when connected.

Looking at /var/log/messages

I’m seeing…

hub.c: USB new device connect on bus1/1, assigned device number 2

usb.c: USB device not accepting new address=2 (error=-145)

Algorithmics/MIPS FPU Emulator v1.5

hub.c: USB new device connect on bus1/1, assigned device number 3

usb.c: USB device not accepting new address=3 (error=-145)

 

and /var/log/xap-currentcost.log says:

 

[crt][currentcost.c:580:setupSerialPort] errno 19 (No such device)

[crt][currentcost.c:580:setupSerialPort] Failed to open serial port /dev/ttyUSB1

 

 

Anyone know what is wrong?

derek
Offline
Glasgow, United Kingdom
Joined: 26 Oct 2009
A possible USB driver issue

Hi DoubleSpeed,

Yes, it has been a while ... like years.

When things 'just work' you kinda forget how it was put together all that time ago.

I'm guessing that the Busybox on the HAH is struggling to understand your new USB device. You probably reckoned this yourself from the logfile messages. 

Perhaps try an 'older' USB to serial adapter. Until you see the USB device being accepted cleanly, it's probably not going to work for you.

All the best.

Derek.

DoubleSpeed
Offline
Bristol, United Kingdom
Joined: 31 Mar 2012
Thanks for coming back to

Thanks for coming back to me Derek, I'm confused as to what is going on as I'm getting conflicting messages e.g.

Seems to like the USB HUB:

Freeing unused kernel memory: 60k freed

hub.c: USB new device connect on bus1/1, assigned device number 2

hub.c: USB hub found

hub.c: 4 ports detected

hub.c: USB new device connect on bus1/1/1, assigned device number 3

hub.c: USB hub found

hub.c: 4 ports detected

Algorithmics/MIPS FPU Emulator v1.5

However...

xap-currentcost.log now says:

Current Cost Connector for xAP v12

Copyright (C) DBzoo, 2009-2012

 

[crt][currentcost.c:580:setupSerialPort] errno 19 (No such device)

[crt][currentcost.c:580:setupSerialPort] Failed to open serial port /dev/ttyUSB1

Do you know why it wouldn't see the CC?
DoubleSpeed
Offline
Bristol, United Kingdom
Joined: 31 Mar 2012
Also if I remove the USB Hub

Also if I remove the USB Hub and connect the CC as the only USB device the logs say:

hub.c: USB new device connect on bus1/1, assigned device number 3

usb.c: USB device not accepting new address=3 (error=-145)

brett
Offline
Providence, United States
Joined: 9 Jan 2010
I seem to recall that

I seem to recall that different USB hubs may present the interfaces as /dev/ttyACM0 or something odd like that, you may find that is what is happening which is why /dev/ttyUSB1 not longer exists.  Do I define ttyACM0 device?  I don't recall.
A quick search on the forums tells me that I do.

Is the "lsusb" command available in the busybox?  What's its output.

Brett

DoubleSpeed
Offline
Bristol, United Kingdom
Joined: 31 Mar 2012
Thank you, Brett, I will give

Thank you, Brett, I will give this a try and report back!

DoubleSpeed
Offline
Bristol, United Kingdom
Joined: 31 Mar 2012
Sorry for the delay in trying

Sorry for the delay in trying this, only seem to have time on the weekends at the moment..

I've tried /dev/ttyACM0 (also /dev/ttyACM1 in case that might have worked) getting this in the logs:

Linux IP multicast router 0.06 plus PIM-SM

NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.

Ebtables v2.0 registered<6>NET4: Ethernet Bridge 008 for NET4.0

VFS: Mounted root (cramfs filesystem) readonly.

Freeing unused kernel memory: 60k freed

hub.c: USB new device connect on bus1/1, assigned device number 2

usb.c: USB device not accepting new address=2 (error=-145)

Algorithmics/MIPS FPU Emulator v1.5

hub.c: USB new device connect on bus1/1, assigned device number 3

usb.c: USB device not accepting new address=3 (error=-145)

[crt][currentcost.c:580:setupSerialPort] errno 22 (Invalid argument)

[crt][currentcost.c:580:setupSerialPort] Failed to open serial port /dev/ttyACM0

Hardware Info