Got a newer computer, downloaded Linuxcnc, have to use a USB to DB25 adapter

More
07 Aug 2022 01:13 #249238 by brian.heath
I am using a new to me I5 computer with very few ports, I have a USB to DB25 adapter and a sain smart 5 axis breakout board driving my CNC. I was using an older version and a computer that had a printer port on it. Now trying to set up the new system. I can't even figure out how to see if the new port is active, tried lsusb and got error. Does not seem to be recognizing the controller at minimum, and maybe not even the port. The Sain Smart I have uses USB for power but also a DB25 for data. I did put the DB25 straight to the Sain Smart, with no cable in between at this time.

Not sure if it's settings, the USB port, or the DB25 wrong and won't work.

Thanks for any help available. BTW I downloaded and installed the 2.8.2 - buster if that helps

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

More
07 Aug 2022 02:07 #249239 by pippin88
Which USB to DB25 adaptor?

As a general rule, linuxcnc does not work over USB. USB is not real time / has too many delays

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

More
07 Aug 2022 02:07 #249240 by cmorley
linuxcnc can't use a USB to parallel port adapter unfortunately.

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

More
07 Aug 2022 02:15 #249241 by brian.heath
ugreen off of amazon, I take it I need a pci card with a serial port on it to work

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

More
07 Aug 2022 02:51 #249243 by brian.heath
I did have but wasn't sure about a DB25 mother board cable out of an HP computer, I have a Lenovo that also has a motherboard plug, I plugged in that port cable, checked the bios to make sure it's not deactivated, and now get the 3 red lights on the mach3 breakout board, the 5v, a second one near the 5v looks like a comm/connection light and the 12/24v at edge of board where power supply attaches. Still no comm though. Tried with both just 0 in port address and 0x378.

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

More
07 Aug 2022 02:55 #249245 by JohnnyCNC
I would think you need a PCI express to parallel port card.

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

More
07 Aug 2022 06:57 #249254 by tommylight
In a terminal,
sudo lspci -v
What does it return? Look for parport.
If you can start LinuxCNC and it does not complain about missing port, check the header on the motherboard, it some cases it can be inserted in reverse.

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

More
07 Aug 2022 23:23 - 07 Aug 2022 23:29 #249311 by andypugh
lspci won't (typically) show an onboard parallel port header, so try also
sudo cat /proc/ioports
 

Sample output:
andypugh@rm-one:~$ sudo cat /proc/ioports
[sudo] password for andypugh: 
0000-0cf7 : PCI Bus 0000:00
  0000-001f : dma1
  0020-0021 : pic1
  0040-0043 : timer0
  0050-0053 : timer1
  0060-0060 : keyboard
  0064-0064 : keyboard
  0070-0077 : rtc0
  0080-008f : dma page reg
  00a0-00a1 : pic2
  00c0-00df : dma2
  00f0-00ff : PNP0C04:00
    00f0-00ff : fpu
  0378-037a : parport0
So this PC has a motherboard parport normal 0x378

But, also:
andypugh@rm-one:~$ lspci -v
...
02:00.0 PCI bridge: Texas Instruments XIO2001 PCI Express-to-PCI Bridge (prog-if 00 [Normal decode])
	Flags: bus master, fast devsel, latency 0
	Bus: primary=02, secondary=03, subordinate=03, sec-latency=64
	Memory behind bridge: f7d00000-f7dfffff
	Capabilities: <access denied>
...
04:00.0 Parallel controller: Oxford Semiconductor Ltd OX9162 Mode 0 (parallel port) (prog-if 03 [IEEE1284])
	Subsystem: Oxford Semiconductor Ltd OX9162 Mode 0 (parallel port)
	Flags: medium devsel, IRQ 16
	I/O ports at e030 [size=8]
	I/O ports at e020 [size=4]
	I/O ports at e000 [size=32]
	Memory at f7c00000 (32-bit, non-prefetchable) [size=4K]
	Capabilities: <access denied>
	Kernel driver in use: parport_pc
	Kernel modules: parport_pc

So the same PC also has a PCI parport at e030 (and I think that the PCI Express to PCI bridge is the 5i25 card that is also in this machine)
Last edit: 07 Aug 2022 23:29 by andypugh.
The following user(s) said Thank You: tommylight

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

More
08 Aug 2022 23:21 #249375 by brian.heath
I did try the command line you suggested and here's the results, do not see paraport anywhere butr do see serial port listed.
Attachments:

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

More
08 Aug 2022 23:33 #249376 by brian.heath
realized there was more at top 2 serial listings
Attachments:

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

Time to create page: 0.672 seconds
Powered by Kunena Forum