Hello,

I have now spend the last few hours trying to create a first lab setup
with the mesanet 5i25 and the 7i77, but the 7i77 is not recognized at
all. In general I have been setting up and running a few machines with
the 7i43 cards since 2008 now-so I am not a total noob.

The 5i25 is installed in a pci slot. The 7i77 is connected to the 5i25
with a ribbon cable that is connected to the P3 on the 5i25. W2 is
down,i.e. the 5i25 does not supply +5V to the 7i77. The ribbon cable is
45cm long. Pin1 on the 5i25's p3 db25 is on pin1 on the 7i77.

The 7i77 has +5V and GND on TB1 and +12V on TB2 (12V on pin1 and GND on
pin 8.) W1 is on the left side, i.e. VIN gets power from VFIELD. W5 is
on the right side, i.e. the 7i77 uses power from TB1. Measured voltages
are +4,98V on TB1 and +12,02V on TB2.

The computer runs ubuntu 10.04 32 bits from linuxcnc installation cd.

Linuxcnc is at version 2.5 from the repository.

The 5i25 is installed in a pci slot and recognized when I loadrt hm2_pci
without any num_encoders in the config parameter. But from various post
I see that the 7i77 should be recognized when hm2_pci is loaded, which
it is not in my case.

LEDs CR1, CR7, R61 and CR3 are lid up on the 7i77.

Can somebody perhaps point me in the right direction ?

More details:

>From lspci -v:
03:01.0 DPIO module: Device 2718:5125
        Subsystem: Device 2718:5125
        Flags: fast devsel, IRQ 16
        Memory at febf0000 (32-bit, non-prefetchable) [size=64K]

Now when I run halrun and loadrt the following happens:

First terminal:
$ halrun
halcmd: loadrt hostmot2

Second terminal:
[ 6918.164123] I-pipe: Domain RTAI registered.
[ 6918.164131] RTAI[hal]: <3.8.1> mounted over IPIPE-NOTHREADS 2.6-03.
[ 6918.164132] RTAI[hal]: compiled with gcc version 4.4.3 (Ubuntu
4.4.3-4ubuntu5) .
[ 6918.164156] RTAI[hal]: mounted (IPIPE-NOTHREADS, IMMEDIATE (INTERNAL
IRQs DISPATCHED), ISOL_CPUS_MASK: 0).
[ 6918.164158] PIPELINE layers:
[ 6918.164160] fb154e20 9ac15d93 RTAI 200
[ 6918.164162] c085cb20 0 Linux 100
[ 6918.179447] RTAI[malloc]: global heap size = 2097152 bytes, <BSD>.
[ 6918.179588] RTAI[sched]: IMMEDIATE, MP, USER/KERNEL SPACE: <with RTAI
OWN KTASKs>, kstacks pool size = 524288 bytes.
[ 6918.179593] RTAI[sched]: hard timer type/freq = APIC/12503538(Hz);
default timing: periodic; linear timed lists.
[ 6918.179596] RTAI[sched]: Linux timer freq = 250 (Hz), TimeBase freq =
2600669000 hz.
[ 6918.179598] RTAI[sched]: timer setup = 999 ns, resched latency = 2944 ns.
[ 6918.179672] RTAI[usi]: enabled.
[ 6918.226253] RTAI[math]: loaded.
[ 6925.687839] hm2: loading Mesa HostMot2 driver version 0.15

In the following examples I always did an unloadrt hm2_pci to clean up
before attempting to load hm2_pci again.
-------------------------------------------------------------------------------------
So far so good, now in the first "halrun" terminal

halcmd: loadrt hm2_pci config="num_encoders=6 num_stepgens=0 num_pwmgens=6"
insmod: error inserting
'/usr/realtime-2.6.32-122-rtai/modules/linuxcnc/hm2_pci.ko': -1 Invalid
parameters
<stdin>:3: exit value: 1
<stdin>:3: insmod failed, returned -1
See the output of 'dmesg' for more information.

In the second terminal:
[ 7094.230021] hm2_pci: loading Mesa AnyIO HostMot2 driver version 0.7
[ 7094.230062] hm2_pci 0000:03:01.0: PCI INT A -> GSI 16 (level, low) ->
IRQ 16
[ 7094.230065] hm2_pci: discovered 5i25 at 0000:03:01.0
[ 7094.230615] hm2/hm2_5i25.0: config.num_encoders=6, but only 2 are
available, not loading driver
[ 7094.230619] hm2/hm2_5i25.0: failed to parse Module Descriptor 2
[ 7094.230625] hm2_5i25.0: board fails HM2 registration
[ 7094.230641] hm2_pci 0000:03:01.0: PCI INT A disabled
[ 7094.230651] hm2_pci: probe of 0000:03:01.0 failed with error -22
-------------------------------------------------------------------------------------
I also tried this loadrt line, but that does fail to see the 7i77 too,
but the 5i25 is recognized, but only gives two encoders (from where?).

halcmd: loadrt hm2_pci config="num_stepgens=0 num_pwmgens=6"

[ 7186.682013] hm2_pci: loading Mesa AnyIO HostMot2 driver version 0.7
[ 7186.682054] hm2_pci 0000:03:01.0: PCI INT A -> GSI 16 (level, low) ->
IRQ 16
[ 7186.682057] hm2_pci: discovered 5i25 at 0000:03:01.0
[ 7186.682723] hm2/hm2_5i25.0: Smart Serial Firmware Version 31
[ 7186.738177] hm2/hm2_5i25.0: 34 I/O Pins used:
[ 7186.738181] hm2/hm2_5i25.0:     IO Pin 000 (P3-01): IOPort
[ 7186.738183] hm2/hm2_5i25.0:     IO Pin 001 (P3-14): IOPort
[ 7186.738185] hm2/hm2_5i25.0:     IO Pin 002 (P3-02): IOPort
[ 7186.738187] hm2/hm2_5i25.0:     IO Pin 003 (P3-15): IOPort
[ 7186.738189] hm2/hm2_5i25.0:     IO Pin 004 (P3-03): IOPort
[ 7186.738191] hm2/hm2_5i25.0:     IO Pin 005 (P3-16): IOPort
[ 7186.738193] hm2/hm2_5i25.0:     IO Pin 006 (P3-04): IOPort
[ 7186.738195] hm2/hm2_5i25.0:     IO Pin 007 (P3-17): IOPort
[ 7186.738196] hm2/hm2_5i25.0:     IO Pin 008 (P3-05): IOPort
[ 7186.738198] hm2/hm2_5i25.0:     IO Pin 009 (P3-06): IOPort
[ 7186.738200] hm2/hm2_5i25.0:     IO Pin 010 (P3-07): IOPort
[ 7186.738202] hm2/hm2_5i25.0:     IO Pin 011 (P3-08): IOPort
[ 7186.738204] hm2/hm2_5i25.0:     IO Pin 012 (P3-09): IOPort
[ 7186.738206] hm2/hm2_5i25.0:     IO Pin 013 (P3-10): IOPort
[ 7186.738208] hm2/hm2_5i25.0:     IO Pin 014 (P3-11): Encoder #0, pin
Index (Input)
[ 7186.738211] hm2/hm2_5i25.0:     IO Pin 015 (P3-12): Encoder #0, pin B
(Input)
[ 7186.738213] hm2/hm2_5i25.0:     IO Pin 016 (P3-13): Encoder #0, pin A
(Input)
[ 7186.738215] hm2/hm2_5i25.0:     IO Pin 017 (P2-01): IOPort
[ 7186.738217] hm2/hm2_5i25.0:     IO Pin 018 (P2-14): IOPort
[ 7186.738219] hm2/hm2_5i25.0:     IO Pin 019 (P2-02): IOPort
[ 7186.738221] hm2/hm2_5i25.0:     IO Pin 020 (P2-15): IOPort
[ 7186.738223] hm2/hm2_5i25.0:     IO Pin 021 (P2-03): IOPort
[ 7186.738225] hm2/hm2_5i25.0:     IO Pin 022 (P2-16): IOPort
[ 7186.738227] hm2/hm2_5i25.0:     IO Pin 023 (P2-04): IOPort
[ 7186.738228] hm2/hm2_5i25.0:     IO Pin 024 (P2-17): IOPort
[ 7186.738230] hm2/hm2_5i25.0:     IO Pin 025 (P2-05): IOPort
[ 7186.738232] hm2/hm2_5i25.0:     IO Pin 026 (P2-06): IOPort
[ 7186.738234] hm2/hm2_5i25.0:     IO Pin 027 (P2-07): IOPort
[ 7186.738236] hm2/hm2_5i25.0:     IO Pin 028 (P2-08): IOPort
[ 7186.738238] hm2/hm2_5i25.0:     IO Pin 029 (P2-09): IOPort
[ 7186.738240] hm2/hm2_5i25.0:     IO Pin 030 (P2-10): IOPort
[ 7186.738242] hm2/hm2_5i25.0:     IO Pin 031 (P2-11): Encoder #1, pin
Index (Input)
[ 7186.738244] hm2/hm2_5i25.0:     IO Pin 032 (P2-12): Encoder #1, pin B
(Input)
[ 7186.738247] hm2/hm2_5i25.0:     IO Pin 033 (P2-13): Encoder #1, pin A
(Input)
[ 7186.738282] hm2/hm2_5i25.0: registered
[ 7186.738284] hm2_5i25.0: initialized AnyIO board at 0000:03:01.0
-------------------------------------------------------------------------------------
And with the example from here "16. 5i25 Configuration"
http://www.linuxcnc.org/docs/2.5/html/drivers/hostmot2.html

halcmd: loadrt hm2_pci config="num_encoders=6 num_pwmgens=6
sserial_port_0=0XXX"
insmod: error inserting
'/usr/realtime-2.6.32-122-rtai/modules/linuxcnc/hm2_pci.ko': -1 Invalid
parameters
<stdin>:6: exit value: 1
<stdin>:6: insmod failed, returned -1
See the output of 'dmesg' for more information.

[ 7389.754020] hm2_pci: loading Mesa AnyIO HostMot2 driver version 0.7
[ 7389.754063] hm2_pci 0000:03:01.0: PCI INT A -> GSI 16 (level, low) ->
IRQ 16
[ 7389.754066] hm2_pci: discovered 5i25 at 0000:03:01.0
[ 7389.754297] hm2/hm2_5i25.0: config.num_encoders=6, but only 2 are
available, not loading driver
[ 7389.754300] hm2/hm2_5i25.0: failed to parse Module Descriptor 2
[ 7389.754306] hm2_5i25.0: board fails HM2 registration
[ 7389.754319] hm2_pci 0000:03:01.0: PCI INT A disabled
[ 7389.754328] hm2_pci: probe of 0000:03:01.0 failed with error -22

The linuxcnc hostmot2 documenations says:
16.3. SSERIAL Configuration
The sserial_port_0=0XXX configuration string sets some options for the
smart serial daughter card. These options are specific for each daughter
card. See the Mesa manual for more information on the exact usuage.

Am I doing something wrong with the sserial_port_0 parameter ?

I bought the 5i25 and 7i77 together from the German distributor Lascar.

Thanks for your help

BR
Max.






------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to