question

Stefanie (Victron Energy Staff) avatar image
Stefanie (Victron Energy Staff) asked

GX Tank 140 missing in Device List (RPi4 Venus OS 2.80)

I've connected a GX Tank 140 to a Rpi4 4GB (Venus OS 2.80 and 2.81), but can't seem to get it display in the device list and thus not able to set it up.

The device is showing properly in the I/O menu. All 4 outputs are enabled and the the device is also properly registered (see log output). Changing firmware back to 2.80 makes no difference. I should mention that the GX Tank 140 is brand new, so I can't tell if it worked before.

From dmesg:

[    3.650761] cp2112 0003:10C4:EA90.0001: hidraw0: USB HID v1.01 Device [Victron Energy BV GX Tank 140] on usb-0000:01:00.0-1.2/input0
[    3.678708] usbcore: registered new interface driver usbserial_generic
[    3.685482] usbserial: USB Serial support registered for generic
[    3.714820] usbcore: registered new interface driver ftdi_sio
[    3.720737] usbserial: USB Serial support registered for FTDI USB Serial Device
[    3.728507] ftdi_sio 1-1.4:1.0: FTDI USB Serial Device converter detected
[    3.735654] usb 1-1.4: Detected FT-X
[    3.739316] cp2112 0003:10C4:EA90.0001: Part Number: 0x0C Device Version: 0x03
[    3.747248] usb 1-1.4: FTDI USB Serial Device converter now attached to ttyUSB0


And usb-devices:

T:  Bus=01 Lev=02 Prnt=02 Port=01 Cnt=02 Dev#=  4 Spd=12  MxCh= 0
D:  Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=10c4 ProdID=ea90 Rev=00.00
S:  Manufacturer=Victron Energy BV
S:  Product=GX Tank 140
S:  SerialNumber=HQ2133G66V2
C:  #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=500mA
I:  If#=0x0 Alt= 0 #EPs= 2 Cls=03(HID  ) Sub=00 Prot=00 Driver=usbhid


Somehow it does not show up a USB-Serial device. Maybe it should not?

root@raspberrypi4:~# dmesg | grep tty
[    0.000000] Kernel command line: coherent_pool=1M 8250.nr_uarts=1 cma=64M bcm2708_fb.fbwidth=800 bcm2708_fb.fbheight=480 bcm2708_fb.fbswap=1 smsc95xx.macaddr=DC:A6:32:49:10:CF vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000  dwc_otg.lpm_enable=0 console=ttyS0,115200 root=/dev/mmcblk0p3 rootwait
[    0.405194] fe201000.serial: ttyAMA0 at MMIO 0xfe201000 (irq = 34, base_baud = 0) is a PL011 rev2
[    0.408421] console [ttyS0] disabled
[    0.408459] fe215040.serial: ttyS0 at MMIO 0x0 (irq = 36, base_baud = 62500000) is a 16550
[    1.572355] console [ttyS0] enabled
[    3.747248] usb 1-1.4: FTDI USB Serial Device converter now attached to ttyUSB0
[    3.792174] usb 1-1.1.1: FTDI USB Serial Device converter now attached to ttyUSB1
[    4.444241] usb 1-1.1.4: FTDI USB Serial Device converter now attached to ttyUSB2
[ 2338.125892] usb 1-1.2: FTDI USB Serial Device converter now attached to ttyUSB3

ttyUSB0 = MK3 Interface / MultiPlus
ttyUSB1 = VE.Direct device
ttyUSB2 = VE.Direct device
ttyUSB3 = VE.Direct device

Any ideas how to troubleshoot?

edit: PackageManager/SetupHelper/RpiDisplaySetup and GuiMods uninstalled made no difference.

Venus OSRaspberry Pitank monitor
2 comments
2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

mvader (Victron Energy) avatar image mvader (Victron Energy) ♦♦ commented ·
What serial number is the gx tank @Stefanie ?
0 Likes 0 ·
Stefanie (Victron Energy Staff) avatar image Stefanie (Victron Energy Staff) ♦♦ mvader (Victron Energy) ♦♦ commented ·
HQ2133G66V2
0 Likes 0 ·
3 Answers
Wayne avatar image
Wayne answered ·

Hi Stefanie, I cant comment on RPi, however on my Cerbo GX the Tank 140 does not show on the Device List either, as you configure in the I/O menu the resulting tank then shows in the Device List, may be useful information for you..

Cheers

Wayne

6 comments
2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

Hi Wayne and thanks.

There is no submenu in I/O where I can configure the GX Tank. Only options to enable or disable the 4 input. So maybe there is a difference between a Raspberry Pi and a real GX device.

bildschirmfoto-2022-02-03-um-205936.png

0 Likes 0 ·
Show more comments
Kevin Windrem avatar image
Kevin Windrem answered ·

I checked a GX Tank 140 on my RPI4 and the I/O / Analog inputs menu appeared and showed the GX Tank inputs as soon as I plugged in the GX Tank 140. This is on Venus OS v2.81.


1 comment
2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

Thanks Kevin. That's what I would expect.

My Pi had a USB Hub Hat installed (external power supply). Today I removed the Hat to make sure it doesn't cause any problems plus I disconnected all other devices from the Pi.

This didn't help either.

Interestingly I can see everything in dbus-spy:

com.victronenergy.adc
Devices/adc_gxtank_HQ2133G66V2_0/Function 1
Devices/adc_gxtank_HQ2133G66V2_0/Label GX Tank HQ2133G66V2 input 4
Devices/adc_gxtank_HQ2133G66V2_1/Function 1
Devices/adc_gxtank_HQ2133G66V2_1/Label GX Tank HQ2133G66V2 input 3
Devices/adc_gxtank_HQ2133G66V2_2/Function 0
Devices/adc_gxtank_HQ2133G66V2_2/Label GX Tank HQ2133G66V2 input 2
Devices/adc_gxtank_HQ2133G66V2_3/Function 0
Devices/adc_gxtank_HQ2133G66V2_3/Label GX Tank HQ2133G66V2 input 1

------------------------------------------------------------------

Settings/Devices/adc_gxtank_HQ2133G66V2_0/Alarms/High/Active 90
Settings/Devices/adc_gxtank_HQ2133G66V2_0/Alarms/High/Delay 5
Settings/Devices/adc_gxtank_HQ2133G66V2_0/Alarms/High/Enable 0
Settings/Devices/adc_gxtank_HQ2133G66V2_0/Alarms/High/Restore 80
Settings/Devices/adc_gxtank_HQ2133G66V2_0/Alarms/Low/Active 10
Settings/Devices/adc_gxtank_HQ2133G66V2_0/Alarms/Low/Delay 30
Settings/Devices/adc_gxtank_HQ2133G66V2_0/Alarms/Low/Enable 0
Settings/Devices/adc_gxtank_HQ2133G66V2_0/Alarms/Low/Restore 15
Settings/Devices/adc_gxtank_HQ2133G66V2_0/Capacity 0.2
Settings/Devices/adc_gxtank_HQ2133G66V2_0/ClassAndVrmInstance analog:23
Settings/Devices/adc_gxtank_HQ2133G66V2_0/CustomName
Settings/Devices/adc_gxtank_HQ2133G66V2_0/FilterLength 10
Settings/Devices/adc_gxtank_HQ2133G66V2_0/FluidType2 0
Settings/Devices/adc_gxtank_HQ2133G66V2_0/Function 1
Settings/Devices/adc_gxtank_HQ2133G66V2_0/RawValueEmpty 0
Settings/Devices/adc_gxtank_HQ2133G66V2_0/RawValueFull 0
Settings/Devices/adc_gxtank_HQ2133G66V2_0/SenseType 1
Settings/Devices/adc_gxtank_HQ2133G66V2_0/Shape
etc.
0 Likes 0 ·
Stefanie (Victron Energy Staff) avatar image
Stefanie (Victron Energy Staff) answered ·

Update on my issues with GX Tank 140 and Raspberry Pi4 v1.2 4GB:

Apparently my Raspberry Pi4 has a problem with the USB ports. Maybe a power problem. Unfortunately, I can't find the exact cause.

I had initially used an active USB hub hat and to rule out that it was the problem I removed the hat and flashed a completely new and clean image. Unfortunately also without success. On the dbus I can see that the GX Tank 140 is connected, but the module does not appear in the overview.

At the same time I also connected an energy meter ET112 via RS485. This works so far, but the connection to the ET112 drops from time to time. This leads me to believe that my Pi 4 really has a problem with its USB ports because there don't seem to be any problems on other Pi 4s. Less power-hungry VE.Direct/USB devices on the other hand did not cause any problems.

However, I don't think it's worth the effort to track down the source of the error.

Both devices work fine on a Raspberry Pi 3 b+. Of course, the same applies to the Cerbo GX.


Thanks everyone for the input.

7 comments
2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

johnny-brusevold avatar image johnny-brusevold commented ·

Hi @Stefanie

If you have the time and opportunity, it would be nice if you could test out the latest images with the latest kernel. 5.10-94

It has some updated drivers for usb and some bluetooth fixes, also patched with some venus-os patches

Based on this git repo https://github.com/nmbath/linux.git served by @Bathnm

Note that there are complete Large images with rootfs, so you do not need to install standard image and then upgrade to large

Imager for most pi's is located here based on the latest venus-os

Google Disk

0 Likes 0 ·
Stefanie (Victron Energy Staff) avatar image Stefanie (Victron Energy Staff) ♦♦ johnny-brusevold commented ·

Will definitely try it next weekend. Wonder if these USB drivers make a difference. I haven't had any problems with Bluetooth so far.

0 Likes 0 ·
Stefanie (Victron Energy Staff) avatar image Stefanie (Victron Energy Staff) ♦♦ johnny-brusevold commented ·
Hi Johnny,

just wanted to let you know that the image is running quite happily on my RPi4 since a couple of hours. I've seen no problems so far. dmesg is showing a error free boot.

0 Likes 0 ·
johnny-brusevold avatar image johnny-brusevold Stefanie (Victron Energy Staff) ♦♦ commented ·

Thank you for taking the time to test this out @Stefanie

0 Likes 0 ·
lennycb avatar image lennycb johnny-brusevold commented ·

should that solve my problem too?

Had problems with my two RS485 adapters (latest org. Victron).

What I have already noticed is that it works if I change the ModBus ID of the ET112 from 1 to 2 and use the image 2.73.

At 2.80 the PI4 only finds the ET112 and leaves out the JBD BMS.

It's just stupid that the 2.73 JBD and ET112 work, but the Ruuvis don't run (only work from 2.80)

0 Likes 0 ·
Marcel avatar image Marcel commented ·
May I ask: will the tank level data also be available in Node-red if you use this gx tank 140 device in combination with Venus os large?
0 Likes 0 ·
Marcel avatar image Marcel Marcel commented ·
I can answer my own question now. It suddenly dawned to me that I could check Node-red for a "tank" node. And yes....its there. So I assume tank level data is available in Node-red. Nice! Ordered a gx tank 140 and sensor.


Thanks anyway!

0 Likes 0 ·

Related Resources

Victron Venus OS Open Source intro page

Venus OS GitHub (please do not post to this)

Additional resources still need to be added for this topic

Raspberry Pi running Victron’s Venus firmware - Blog Post

Venus OS Large image: Signal K and Node-RED - Install

raspberrypi install venus image


Additional resources still need to be added for this topic