Twin Parallel Ports and 2x 7i43

More
02 Aug 2013 05:22 #37335 by jsflanagan
My box of 15 SIIG parallel port cards arrived today. They seem to work just fine, I've individually talked to both of my 7i43 boards separately on each parallel card. I can't for the life of me figure out how to successfully call hm2_7i43 for two cards. I've tried every combination I can think of, read the man pages over and over. My first port is @ 0x1000 and my second port is @ 0x1008. I've tried putting a comma in the ioaddr=0x1000,0x1008. I've also tried specifying the ioaddr after the firmware as shown below. I've left out any ioaddr, I've disabled the motherboard based parallel port card as well. No matter what I do it always tries to look for the second card on the motherboard 0x3F8 and not the second SIIG card. Any ideas on where I'm gong wrong on the configuration call?

-Scott

loadrt hm2_7i43 ioaddr=0x1000 config="firmware=hm2/7i43-4/SVRM6S.BIT num_encoders=0 num_pwmgens=6 num_3pwmgens=0 num_stepgens=0 num_resolvers=6, firmware=hm2/7i43-2/SVST4_4.BIT ioaddr=0x1008 num_encoders=1 num_pwmgens=1 num_3pwmgens=0 num_stepgens=0 "

[ 835.700762] hm2/hm2_7i43.0: IO Pin 047 (P3-47): IOPort
[ 835.700819] hm2/hm2_7i43.0: registered
[ 835.700824] hm2_7i43.0: board at (ioaddr=0x1000, ioaddr_hi=0x1010, epp_wide ON) found
[ 835.704596] PARPORT: ERROR: request_region(0x3f8) failed
[ 835.704601] hm2_7i43.0: releasing board

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

More
02 Aug 2013 07:07 #37336 by PCW
Replied by PCW on topic Twin Parallel Ports and 2x 7i43
pretty sure it would be:

loadrt hm2_7i43 ioaddr=0x1000 ioaddr=0x1008 config="...

Though it seems odd that the ports are that close together

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

More
02 Aug 2013 08:31 #37338 by jsflanagan
Tried your suggestion, it acts like it ignores the first board all together, it loads everything for the second IO address. It appears to load the second 7i43-2 board fine. The addresses are correct they match the lspci output and I have called each board individually, it has been handy having both a 200k and 400k fpga on one system as I can tell them apart when it's wrong. Typical files attached. On the plus side I got all of my limits / PID finished this evening so making progress on that front. Next up turret while this board issue carries on.

loadrt hm2_7i43 ioaddr=0x1000 ioaddr=0x1008 config="firmware=hm2/7i43-4/SVRM6S.BIT num_encoders=0 num_pwmgens=6 num_3pwmgens=0 num_stepgens=0 num_resolvers=6 firmware=hm2/7i43-2/SVST4_4.BIT num_encoders=1 num_pwmgens=1 num_3pwmgens=0 num_stepgens=0"
Attachments:

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

More
02 Aug 2013 21:06 #37358 by PCW
Replied by PCW on topic Twin Parallel Ports and 2x 7i43
umm maybe:

loadrt hm2_7i43 ioaddr=0x1000,0x1008 config="...

If that doesn't work then I will have to consult the Great Wizard...

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

More
04 Aug 2013 01:59 - 04 Aug 2013 02:11 #37380 by PCW
Replied by PCW on topic Twin Parallel Ports and 2x 7i43
I asked Sebastian Kuzminzky (who wrote the driver) on IRC and he said that this is the correct format for two 7I43 cards. He also updated the hm2_7i43 man page to include a 2 card example
Last edit: 04 Aug 2013 02:11 by PCW.

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

More
04 Aug 2013 02:13 #37382 by jsflanagan
I finally had success late last night, needed a comma between the two firmware statements. Will post my working line when I get home for people's future reference. Thanks again for all the help.

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

More
06 Aug 2013 18:22 #37431 by jsflanagan
Here is the command that worked to load both boards. I was missing both the comma between the ioaddresses and the comma between the firmware calls. Thanks again everyone for your help.

loadrt hm2_7i43 ioaddr=0x1000,0x1008 config="firmware=hm2/7i43-4/SVRM6S.BIT num_encoders=0 num_pwmgens=6 num_3pwmgens=0 num_stepgens=0 num_resolvers=6, firmware=hm2/7i43-2/SVST4_4.BIT num_encoders=2 num_pwmgens=1 num_3pwmgens=0 num_stepgens=0"

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

Time to create page: 0.109 seconds
Powered by Kunena Forum