drivers for waveshare RS 485 usb serial converter for huangyang vfd

More
28 Nov 2023 21:42 - 29 Nov 2023 11:57 #286731 by SvenH
I/my goto linux guy installed the debian 12 live cd last weekend. We could not get the spindle going, apparently because of drivers for the old rs 486 usb to serial converter.I bought one made by waveshare which aparantly should work. However, it wants to install some drivers but cannot find them.Is there a way I can get them working without the help of my linuxcnc guy?

This is the converter: www.waveshare.com/wiki/USB_TO_RS485  

 
Attachments:
Last edit: 29 Nov 2023 11:57 by SvenH.

Please Log in or Create an account to join the conversation.

More
28 Nov 2023 21:45 #286732 by tommylight
In a terminal
lsusb
before and after inserting the waveshare, post results here.

Please Log in or Create an account to join the conversation.

More
28 Nov 2023 23:30 #286736 by dm17ry
is should not require any additional driver. just dismiss that stupid popup...
check dmesg after plugging it in. /dev/ttyUSB0 or /dev/ttyACM0 should appear - that's the device to use

Please Log in or Create an account to join the conversation.

More
29 Nov 2023 01:54 #286747 by tommylight


 

That raises a lot of questions, mostly not related, but:
Do not install any of those, none.
-brltty is for keyboards with braille for visually challenged people
-cgminer and pcgminer are miners, as in crypto miners for several algos
-no idea what the rest is, but i am sure you do not need those, for now
Your adapter is FTDI for programing STM and stuff, no idea if it works as RS485

Please Log in or Create an account to join the conversation.

More
29 Nov 2023 07:34 #286757 by rodw
Britty and speech-dispatcher was installed by default on Debian 12.2 or similar. One of my associates complained about it until he ended up removing it with apt.
The Linuxcnc ISO should not install it as I (hopefully) supressed their installation
Ref: github.com/LinuxCNC/linuxcnc-live-build/...sts/desktop.list#L18
In a therminal window, Try typing
sudo apt remove britty speech-dispatcher

Please Log in or Create an account to join the conversation.

More
29 Nov 2023 07:36 #286758 by dm17ry
i've found the exact same waveshare dongle. and it behaves as expected in debian12, without suggesting any weird software install

[346226.385084] usb 3-2: new full-speed USB device number 25 using xhci_hcd
[346226.516670] usb 3-2: New USB device found, idVendor=0403, idProduct=6001, bcdDevice= 6.00
[346226.516674] usb 3-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[346226.516675] usb 3-2: Product: FT232R USB UART
[346226.516676] usb 3-2: Manufacturer: FTDI
[346226.516677] usb 3-2: SerialNumber: A10OGKOK
[346226.564023] usbcore: registered new interface driver ftdi_sio
[346226.564038] usbserial: USB Serial support registered for FTDI USB Serial Device
[346226.564060] ftdi_sio 3-2:1.0: FTDI USB Serial Device converter detected
[346226.564081] usb 3-2: Detected FT232R
[346226.564554] usb 3-2: FTDI USB Serial Device converter now attached to ttyUSB0

Please Log in or Create an account to join the conversation.

More
29 Nov 2023 07:41 #286759 by SvenH
Thanks guys, I'll give it a try later today.

In the mean time:

The new adapter has a connector for ground, the old one did not. Can this be part of the problem?
 

Please Log in or Create an account to join the conversation.

More
29 Nov 2023 09:14 - 29 Nov 2023 10:25 #286767 by SvenH

In a terminal
lsusb
before and after inserting the waveshare, post results here.
Results:

sven@svencnc:~$ lsusb
Bus 002 Device 002: ID 8087:8000 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 8087:8008 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 005: ID 10ce:eb70 Silicon Labs
Bus 003 Device 003: ID 046d:c408 Logitech, Inc. Marble Mouse (4-button)
Bus 003 Device 004: ID 0ac8:3420 Z-Star Microelectronics Corp. Venus USB2.0 Camera
Bus 003 Device 002: ID 05e3:0608 Genesys Logic, Inc. Hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
sven@svencnc:~$ lsusb
Bus 002 Device 002: ID 8087:8000 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 8087:8008 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 005: ID 10ce:eb70 Silicon Labs
Bus 003 Device 003: ID 046d:c408 Logitech, Inc. Marble Mouse (4-button)
Bus 003 Device 006: ID 0403:6001 Future Technology Devices International, Ltd FT232 Serial (UART) IC
Bus 003 Device 004: ID 0ac8:3420 Z-Star Microelectronics Corp. Venus USB2.0 Camera
Bus 003 Device 002: ID 05e3:0608 Genesys Logic, Inc. Hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

So this is the new device:
Bus 003 Device 006: ID 0403:6001 Future Technology Devices International, Ltd FT232 Serial (UART) IC

I found where the ttyusb0 and ttyusb1 for the inverter are called, changing these to the usb port in use did not make a difference.
EDIT: seems to need to be at ttyusb0 or linuxcnc will not start.

Last edit: 29 Nov 2023 10:25 by SvenH.

Please Log in or Create an account to join the conversation.

More
29 Nov 2023 10:59 #286772 by SvenH
Adding to existing posts makes a mess, continuing...

It seems that if linuxcnc cannot find the device, it closes with an error, calling out the missing device.

Does this mean that the device is defective or connected wrong?

Please Log in or Create an account to join the conversation.

More
29 Nov 2023 13:11 #286779 by tommylight
Might be permissions issue, search google for "arduino permission denied" for a way to add user to dialout group and maybe might also need to set permissions to USB port.

Please Log in or Create an account to join the conversation.

Time to create page: 0.253 seconds
Powered by Kunena Forum