Trying to get my RAK7391 talking with my RAK5146 USB version via Basicstation.
I can see the RAK5146 using lsusb where I’m told it appears as: Bus 003 Device 003: ID 0483:5740 STMicroelectronics Virtual COM Port
rak@rakpios:~/bs/basicstation/examples/aws $ lsusb
Bus 003 Device 007: ID 1a86:7523 QinHeng Electronics CH340 serial converter
Bus 003 Device 006: ID 1a86:7523 QinHeng Electronics CH340 serial converter
Bus 003 Device 005: ID 1a40:0101 Terminus Technology Inc. Hub
Bus 003 Device 004: ID 2c7c:0125 Quectel Wireless Solutions Co., Ltd. EC25 LTE modem
Bus 003 Device 003: ID 0483:5740 STMicroelectronics Virtual COM Port
Bus 003 Device 002: ID 1a40:0101 Terminus Technology Inc. Hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 002: ID 2109:3431 VIA Labs, Inc. Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
I’ve confirmed that the STMicroelectronics is assigned to /dev/ttyACM0:
rak@rakpios:~/bs/basicstation/examples/aws $ udevadm info -a -n /dev/ttyACM0 | grep ATTRS{manufacturer}
ATTRS{manufacturer}=="STMicroelectronics"
ATTRS{manufacturer}=="Linux 5.15.74-v8+ dwc2_hsotg"
But unfortunately running sudo RADIODEV=usb:/dev/ttyACM0 ../../build-rpi-std/bin/station -f
Throws the error:
2023-01-25 17:47:16.765 [RAL:INFO] Station device: /dev/ttyACM0 (PPS capture disabled)
2023-01-25 17:47:16.766 [HAL:ERRO] [lgw_start:742] FAIL TO CONNECT BOARD
2023-01-25 17:47:16.767 [RAL:ERRO] Concentrator start failed: lgw_start
2023-01-25 17:47:16.767 [RAL:ERRO] ral_config failed with status 0x08
Now I’m not sure if this is a configuration error on my part, a missing setting in Basicstation, or if I’m wrong and the STMelectronics device is not in fact my RAK5146.
Also, a follow on question… When I run dmesg I can see the [ 10.168867] usb 1-1.3: Manufacturer: STMicroelectronics come up successfully (I think), but now I’m noticing [ 9.980140] usb usb2-port4: Cannot enable. Maybe the USB cable is bad? [ 9.980386] usb usb2-port4: attempt power cycle
Which repeats indefinitely.
[ 8.347559] bcmgenet fd580000.ethernet: configuring instance for external RGMII (RX delay)
[ 8.349781] bcmgenet fd580000.ethernet eth0: Link is Down
[ 8.432162] RTL8226B_RTL8221B 2.5Gbps PHY r8169-0-300:00: attached PHY driver (mii_bus:phy_addr=r8169-0-300:00, irq=MAC)
[ 8.592279] r8169 0000:03:00.0 eth1: Link is Down
[ 9.980140] usb usb2-port4: Cannot enable. Maybe the USB cable is bad?
[ 9.980386] usb usb2-port4: attempt power cycle
[ 10.060107] usb 1-1.3: new full-speed USB device number 3 using xhci_hcd
[ 10.168841] usb 1-1.3: New USB device found, idVendor=0483, idProduct=5740, bcdDevice= 2.00
[ 10.168854] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 10.168861] usb 1-1.3: Product: STM32 Virtual ComPort
[ 10.168867] usb 1-1.3: Manufacturer: STMicroelectronics
[ 10.168873] usb 1-1.3: SerialNumber: 203A36654231
[ 10.212362] cdc_acm 1-1.3:1.0: ttyACM0: USB ACM device
[ 10.212440] usbcore: registered new interface driver cdc_acm
[ 10.212446] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
[ 12.452266] bcmgenet fd580000.ethernet eth0: Link is Up - 1Gbps/Full - flow control off
[ 12.452309] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[ 14.384199] usb usb2-port4: Cannot enable. Maybe the USB cable is bad?
[ 43.452130] usb usb2-port4: Cannot enable. Maybe the USB cable is bad?
[ 47.688198] usb usb2-port4: Cannot enable. Maybe the USB cable is bad?
[ 51.776226] usb usb2-port4: Cannot enable. Maybe the USB cable is bad?
[ 51.776688] usb usb2-port4: attempt power cycle
[ 56.180222] usb usb2-port4: Cannot enable. Maybe the USB cable is bad?
[ 60.268192] usb usb2-port4: Cannot enable. Maybe the USB cable is bad?
[ 60.268658] usb usb2-port4: unable to enumerate USB device
[ 64.340200] usb usb2-port4: Cannot enable. Maybe the USB cable is bad?
[ 68.572193] usb usb2-port4: Cannot enable. Maybe the USB cable is bad?
[ 72.660012] usb usb2-port4: Cannot enable. Maybe the USB cable is bad?
[ 72.660479] usb usb2-port4: attempt power cycle
[ 77.063775] usb usb2-port4: Cannot enable. Maybe the USB cable is bad?
[ 81.151598] usb usb2-port4: Cannot enable. Maybe the USB cable is bad?
[ 81.152063] usb usb2-port4: unable to enumerate USB device
[ 85.223446] usb usb2-port4: Cannot enable. Maybe the USB cable is bad?
[ 89.455399] usb usb2-port4: Cannot enable. Maybe the USB cable is bad?
[ 93.543310] usb usb2-port4: Cannot enable. Maybe the USB cable is bad?
[ 93.543773] usb usb2-port4: attempt power cycle
[ 97.947330] usb usb2-port4: Cannot enable. Maybe the USB cable is bad?
[ 102.035227] usb usb2-port4: Cannot enable. Maybe the USB cable is bad?
[ 102.035688] usb usb2-port4: unable to enumerate USB device
[ 106.107205] usb usb2-port4: Cannot enable. Maybe the USB cable is bad?
[ 110.339145] usb usb2-port4: Cannot enable. Maybe the USB cable is bad?
[ 114.427124] usb usb2-port4: Cannot enable. Maybe the USB cable is bad?
[ 114.427582] usb usb2-port4: attempt power cycle
[ 118.831152] usb usb2-port4: Cannot enable. Maybe the USB cable is bad?
[ 122.919147] usb usb2-port4: Cannot enable. Maybe the USB cable is bad?
[ 122.919555] usb usb2-port4: unable to enumerate USB device
[ 126.991137] usb usb2-port4: Cannot enable. Maybe the USB cable is bad?
[ 131.223018] usb usb2-port4: Cannot enable. Maybe the USB cable is bad?
[ 135.311079] usb usb2-port4: Cannot enable. Maybe the USB cable is bad?
[ 135.311542] usb usb2-port4: attempt power cycle
[ 139.715018] usb usb2-port4: Cannot enable. Maybe the USB cable is bad?
[ 143.802980] usb usb2-port4: Cannot enable. Maybe the USB cable is bad?
[ 143.803440] usb usb2-port4: unable to enumerate USB device
@barryjump I get the same error usb usb2-port4: Cannot enable. Maybe the USB cable is bad? when I plug a M.2 to Sata Adapter to M.2 socket in the back of RAK7391, this issue should be releated to the M.2, the usb2-port4 should be the USB2.0 in the M.2, but I can not find the root reason, just want to know, did you plug some device in the M.2 socket when you find this error?