- Hardware & Machines
- Computers and Hardware
- Issues with RS485 adapter after update using archive.debian apt source
Issues with RS485 adapter after update using archive.debian apt source
24 Apr 2019 23:09 - 24 Apr 2019 23:15 #131805
by stelicho
Hi all this is my first post here.
I have a huanyang vfd inverter and have been controlling it on the linuxcnc side with a FTDI RS485 adapter off of amazon.
I was in the process of building an interface board with an ardiuno nano so that I could have limit switches and extra emergency buttons. I was unable to install pyserial without updating the base system, But I was unable to update because the debian repos for wheezy have been moved to archive.debian.org. I went ahead and addedto my apt/sources.list, and updated, and was able to update and install pyserial and other python modules. The linuxcnc repos went untouched. Everything works with my bot still except for the RS485 adapter, which is showing up in dmesg and /dev/ttyUSB0 but it is not blinking or flashing. Its not giving me issues about custom.hal when launching my stepconf, but is not sending anything out or receiving anything from the vfd anymore, where is had been working just fine. No settings were changed on the vfd since the update.
Has anyone had similar issues? Do I need to rollback somehow?
Thanks in advance
Edit: This is the adapter in question.
I have a huanyang vfd inverter and have been controlling it on the linuxcnc side with a FTDI RS485 adapter off of amazon.
I was in the process of building an interface board with an ardiuno nano so that I could have limit switches and extra emergency buttons. I was unable to install pyserial without updating the base system, But I was unable to update because the debian repos for wheezy have been moved to archive.debian.org. I went ahead and added
deb http://archive.debian.org/debian wheezy main
Has anyone had similar issues? Do I need to rollback somehow?
Thanks in advance
Edit: This is the adapter in question.
Last edit: 24 Apr 2019 23:15 by stelicho. Reason: added link to exact model of adapter
Please Log in or Create an account to join the conversation.
- InMyDarkestHour
- Offline
- User is blocked
Less
More
- Posts: 701
- Thank you received: 111
24 Apr 2019 23:43 #131811
by InMyDarkestHour
Replied by InMyDarkestHour on topic Issues with RS485 adapter after update using archive.debian apt source
Have you tried communicating with your adapter outside of the linuxcnc environment ?
Do you have the means to do a simple loopback test ?
Do you have the means to do a simple loopback test ?
Please Log in or Create an account to join the conversation.
25 Apr 2019 00:35 #131819
by stelicho
Replied by stelicho on topic Issues with RS485 adapter after update using archive.debian apt source
I dont have anything else to hook it up to really, but I could try a loopback test thats a good idea thank you
Please Log in or Create an account to join the conversation.
- tommylight
- Away
- Moderator
Less
More
- Posts: 19198
- Thank you received: 6436
25 Apr 2019 03:39 #131833
by tommylight
Replied by tommylight on topic Issues with RS485 adapter after update using archive.debian apt source
That looks ( and has written ) as a serial port, there is no FTDI pinout or RS485 anywhere to be found.
RS485 has 2 or 3 pins, the third being the shield or ground.
RS485 has 2 or 3 pins, the third being the shield or ground.
Please Log in or Create an account to join the conversation.
25 Apr 2019 06:04 #131838
by stelicho
Replied by stelicho on topic Issues with RS485 adapter after update using archive.debian apt source
ummm, i dont think thats true... ftdi is the usb chip and it comes with a breakout for the RS485(and RS422). pinout mentioned in the link matches the breakout board. can confirm that it worked very well before the update.
loopback test didnt work on linuxcnc but did work on debian 9 live for a bit then stopped. hope its not a fault adapter haha.
loopback test didnt work on linuxcnc but did work on debian 9 live for a bit then stopped. hope its not a fault adapter haha.
Please Log in or Create an account to join the conversation.
25 Apr 2019 08:57 #131841
by pl7i92
Replied by pl7i92 on topic Issues with RS485 adapter after update using archive.debian apt source
what does dmesg say is the adapter there and in dialout group
as the live iso responds you may see a simple user not alowed as you updated
as the live iso responds you may see a simple user not alowed as you updated
Please Log in or Create an account to join the conversation.
- tommylight
- Away
- Moderator
Less
More
- Posts: 19198
- Thank you received: 6436
25 Apr 2019 21:13 #131891
by tommylight
Then you can try the PL7i92 advice, that should do it, i have to do the same thing on new installations of Linux to be able tu use Arduinos or ESP32.
Replied by tommylight on topic Issues with RS485 adapter after update using archive.debian apt source
Oh, good.pinout mentioned in the link matches the breakout board. can confirm that it worked very well before the update.
Then you can try the PL7i92 advice, that should do it, i have to do the same thing on new installations of Linux to be able tu use Arduinos or ESP32.
Please Log in or Create an account to join the conversation.
26 Apr 2019 05:15 #131923
by stelicho
Replied by stelicho on topic Issues with RS485 adapter after update using archive.debian apt source
im going to post the dmesg portion tonight, however i did already add myself to dialout before the update, when it was working for a few days with no issues, and this is reflected in /etc/passwd
Please Log in or Create an account to join the conversation.
- InMyDarkestHour
- Offline
- User is blocked
Less
More
- Posts: 701
- Thank you received: 111
26 Apr 2019 05:50 - 26 Apr 2019 05:50 #131926
by InMyDarkestHour
Replied by InMyDarkestHour on topic Issues with RS485 adapter after update using archive.debian apt source
Probably not 100% relevant but if I'm using a piece of USB hardware routinely I generally like to add a udev rule so it has a consistent name under /dev.
If you are going to post the dmesg, could you unplug it, clear the kernel ring buffer and then plug it back in ? Could be an over current situation......but I'm guessing you may have had already seen that.
First dmesg command clears the ring buffer that is a capital Cpull your dongle out out (now be sensible boys)
Just found out that the -H switch is akin to piping dmesg through more.
If you are going to post the dmesg, could you unplug it, clear the kernel ring buffer and then plug it back in ? Could be an over current situation......but I'm guessing you may have had already seen that.
First dmesg command clears the ring buffer that is a capital C
sudo dmesg -C
sudo dmesg
Just found out that the -H switch is akin to piping dmesg through more.
Last edit: 26 Apr 2019 05:50 by InMyDarkestHour.
Please Log in or Create an account to join the conversation.
- Hardware & Machines
- Computers and Hardware
- Issues with RS485 adapter after update using archive.debian apt source
Time to create page: 0.078 seconds