Stopped working after several years

13 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

DoubleSpeed
Offline
Bristol, United Kingdom
Joined: 31 Mar 2012
Hi All,Can anyone help me

Hi All,


Can anyone help me with the above?

derek
Offline
Glasgow, United Kingdom
Joined: 26 Oct 2009
Older kit

I recall trying a few powered USB hubs with my HAH. More by way of testing to check that the built-in drivers would support a couple of different hubs.

Will go have a dig in my basement to see if I can find one (I rarely throw anything out). If I find one that works with my HAH, I'll send it on.

Derek.

DoubleSpeed
Offline
Bristol, United Kingdom
Joined: 31 Mar 2012
Thank you, Derek, I'd very

Thank you, Derek, I'd very much appreciate that!

DoubleSpeed
Offline
Bristol, United Kingdom
Joined: 31 Mar 2012
Hello again, I've just

Hello again, I've just purchased a new Belkin powered USB hub connected everything up however still getting a similar log/error message in /var/log/xap-currentcost.log

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

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

 

/var/log/messages says:

arcs_cmdline: boot_loader=RedBoot root=1F01 mem=16M

Boot loader : REDBOOT

 prom init

CPU revision is: 00029107

Primary instruction cache 16kb, linesize 16 bytes (2 ways)

Primary data cache 8kb, linesize 16 bytes (2 ways)

Linux version 2.4.17 (brett@v02) (gcc version 3.2.2) #2 Wed May 15 10:42:50 GMT 2013

Determined physical RAM map:

 memory: 00fc0000 @ 00000000 (usable)

User-defined physical RAM map:

 memory: 00fc0000 @ 00000000 (usable)

On node 0 totalpages: 4032

zone(0): 4032 pages.

zone(1): 0 pages.

zone(2): 0 pages.

Kernel command line: boot_loader=RedBoot root=1F01 mem=16M

bcm_console_setup

Calibrating delay loop... 254.77 BogoMIPS

Memory: 13896k/16128k available (1462k kernel code, 2232k reserved, 100k data, 60k init, 0k highmem)

Dentry-cache hash table entries: 2048 (order: 2, 16384 bytes)

Inode-cache hash table entries: 1024 (order: 1, 8192 bytes)

Mount-cache hash table entries: 512 (order: 0, 4096 bytes)

Buffer-cache hash table entries: 1024 (order: 0, 4096 bytes)

Page-cache hash table entries: 4096 (order: 2, 16384 bytes)

Checking for 'wait' instruction...  unavailable.

POSIX conformance testing by UNIFIX

mpi: No Card is in the PCMCIA slot

PCI: Fixing up bus 0

Linux NET4.0 for Linux 2.4

Based upon Swansea University Computer Society NET3.039

Initializing RT netlink socket

Starting kswapd

JFFS2 version 2.1. (C) 2001 Red Hat, Inc., designed by Axis Communications AB.

pty: 256 Unix98 ptys configured

brcmboard: brcm_board_init entry

New led 8, mask : 0x00000001

New led 0, mask : 0x00000002

New led 9, mask : 0x00000004

New led 6, mask : 0x00000008

New led 1, mask : 0x00000010

Module bcm63xx_cons.c v1.0

date: Mar 16 2013 time: 03:52:03 - FPERIPH:50000000

block: 64 slots per queue, batch=16

SCSI subsystem driver Revision: 1.00

request_module[scsi_hostadapter]: Root fs not mounted

DBW flash: probing 16-bit flash bus

Physically mapped flash: Probing for AMD compatible flash...

mfr_id 0x00000001, dev_id 0x0000227E, dev_id2 0x00002210, dev_id3 0x00002200

Found AMD AM29BDS643D

table[i] : mfr_id 0x00000001, dev_id 0x0000227E, dev_id2 0x00002202, dev_id3 0x00002200, long_dev_id 1

Found AMD AM29LV640MB

table[i] : mfr_id 0x00000001, dev_id 0x0000227E, dev_id2 0x00002210, dev_id3 0x00002200, long_dev_id 1

Found AMD AM29LV640MB

Physically mapped flash: Found 1 x 8MiB AMD AM29LV640MB at 0x0

mtd_info :

type 3, size 0x00800000, erasesize 0x00010000, name Physically mapped flash, index 0, numeraseregions 3

mtd_info->priv : amd_flash_private : device_type 2, interleave 1, numchips 1, chipshift 23<5> mymtd is : 80f67220

Support for extended flash memory size : 0x00800000 ; ONLY 64MBIT SUPPORT

RedBoot partition for 64MBit non aligned Flash

RedBoot partition for 64MBit non aligned Flash

RedBoot partition for 64MBit non aligned Flash

RedBoot partition for 64MBit non aligned Flash

RedBoot partition for 64MBit non aligned Flash

Using RedBoot partition definition

Creating 5 MTD partitions on "Physically mapped flash":

0x00000000-0x00030000 : "RedBoot"

0x00030000-0x00750000 : "user_fs"

0x00750000-0x007f0000 : "jffs_system"

0x007f0000-0x007ff000 : "FIS directory"

0x007ff000-0x00800000 : "RedBoot config"

usb.c: registered new driver usbdevfs

usb.c: registered new driver hub

PCI: Enabling device 00:09.0 (0000 -> 0002)

usb-ohci.c: USB OHCI at membase 0xc007db00, IRQ 20

usb-ohci.c: usb-00:09.0, PCI device 14e4:6300

usb.c: new USB bus registered, assigned bus number 1

hub.c: USB hub found

hub.c: 2 ports detected

usb.c: registered new driver acm

acm.c: v0.21:USB Abstract Control Model driver for USB modems and ISDN adapters

usb.c: registered new driver serial

usbserial.c: USB Serial support registered for Generic

usbserial.c: USB Serial Driver core v1.4

usbserial.c: USB Serial support registered for FTDI SIO

usbserial.c: USB Serial support registered for FTDI 8U232AM

ftdi_sio.c: v1.2.0:USB FTDI RS232 Converters Driver

usbserial.c: USB Serial support registered for PL-2303

pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.91

Initializing USB Mass Storage driver...

usb.c: registered new driver usb-storage

USB Mass Storage support registered.

NET4: Linux TCP/IP 1.0 for NET4.0

IP Protocols: ICMP, UDP, TCP, IGMP

IP: routing cache hash table of 512 buckets, 4Kbytes

TCP: Hash tables configured (established 512 bind 1024)

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

hub.c: USB hub found

hub.c: 4 ports detected

Algorithmics/MIPS FPU Emulator v1.5

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

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

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

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

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

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

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

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

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

 

Any idea what is wrong?

kema01
Offline
MAIDSTONE, United Kingdom
Joined: 8 Jul 2013
I tried a lot of different USB hubs

DoubleSpeed just a line to say that I tried a number of USB hubs before I found one that worked, I am currently using an un-powered one, which was a gift from an airline I flew with many years ago. All I can say is try one of the cheap ones you can find on ebay.

One thing to take into consideration if you are using a un- powered USB HUB is the HAH available power. I only have 2 connections.

Best of luck.

kema..

DoubleSpeed
Offline
Bristol, United Kingdom
Joined: 31 Mar 2012
Just to ask again if anyone

Just to ask again if anyone can help me with this issue?

allanayr
Offline
Ayr, United Kingdom
Joined: 25 Sep 2011
I'm afraid I'm not going to

I'm afraid I'm not going to be too helpful either, just to say your messages output looks pretty much identical to mine up to

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

which is presumably the point at which it encounters the new hub. Mine then does this and ends.

usbserial.c: PL-2303 converter detected
usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs)
Algorithmics/MIPS FPU Emulator v1.5

If I plug in a 4 port unpowered hub it says this:

 

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
Algorithmics/MIPS FPU Emulator v1.5

 

Sorry I can't be any more help.

Hardware Info