Re: [Emc-users] 5i25 detected, but not the 7i77 yet

2012-06-20 Thread Maximilian H

Hey Peter, Hey List,

I wrote my standalone pyvcp panel which runs with halrun only for my lab
setup and everything looks good at this moment.

I ordered the 5i25 and the 7i77 together some weeks back. Not having the
correct firmware does not matter, since I now know how to program it anyway.

So a very big thanks to Michael Geszkiewicz for writing the linux flash
program :)

BR
Max.






 On Mon, 18 Jun 2012, Maximilian H wrote:
 
 Date: Mon, 18 Jun 2012 12:55:37 +0200
 From: Maximilian H mhemc2nos...@googlemail.com
 Reply-To: Enhanced Machine Controller (EMC)
 emc-users@lists.sourceforge.net
 To: Enhanced Machine Controller (EMC) emc-users@lists.sourceforge.net
 Subject: Re: [Emc-users] 5i25 detected, but not the 7i77 yet


 Hello Peter,

 thanks for your last answer. Power cycling the computer did solve my
 problem. The 5i25 now loads fine together with the 7i77.

 I will now proceed to write some pyvcp debugger gui for my intended
 setup to get things going.

 Big thanks to you for providing the answers to my problems on the
 weekend, second thanks for writing a firmware update tool for linux
 (that saved me putting the 5i25 in another windows pc).

 BR
 Max.
 
 We (mesa) dont deserve much thanks, if the 5I25 was shipped with the 7I77, it 
 should have had the correct (7I77x2) firmware so you should not have had this 
 trouble at all.
 
 And actually you should thank Michael Geszkiewicz for writing the Linux 5I25 
 flash utility.
 







 SNIP-
 [14170.506738] hm2/hm2_5i25.0: config.num_encoders=6, but only 2 are
 available, not loading driver
 [14170.506740] hm2/hm2_5i25.0: failed to parse Module Descriptor 2
 [14170.506745] hm2_5i25.0: board fails HM2 registration
 SNIP


 Note that you need to cycle the motherboard power to load new firmware

 Peter Wallace
 Mesa Electronics



 --
 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


 --
 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

 
 Peter Wallace
 Mesa Electronics
 
 (\__/)
 (='.'=) This is Bunny. Copy and paste bunny into your
 ()_() signature to help him gain world domination.
 
 
 --
 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


--
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


Re: [Emc-users] 5i25 detected, but not the 7i77 yet

2012-06-18 Thread Peter C. Wallace
On Mon, 18 Jun 2012, Maximilian H wrote:

 Date: Mon, 18 Jun 2012 12:55:37 +0200
 From: Maximilian H mhemc2nos...@googlemail.com
 Reply-To: Enhanced Machine Controller (EMC)
 emc-users@lists.sourceforge.net
 To: Enhanced Machine Controller (EMC) emc-users@lists.sourceforge.net
 Subject: Re: [Emc-users] 5i25 detected, but not the 7i77 yet
 

 Hello Peter,

 thanks for your last answer. Power cycling the computer did solve my
 problem. The 5i25 now loads fine together with the 7i77.

 I will now proceed to write some pyvcp debugger gui for my intended
 setup to get things going.

 Big thanks to you for providing the answers to my problems on the
 weekend, second thanks for writing a firmware update tool for linux
 (that saved me putting the 5i25 in another windows pc).

 BR
 Max.

We (mesa) dont deserve much thanks, if the 5I25 was shipped with the 7I77, it 
should have had the correct (7I77x2) firmware so you should not have had this 
trouble at all.

And actually you should thank Michael Geszkiewicz for writing the Linux 5I25 
flash utility.








 SNIP-
 [14170.506738] hm2/hm2_5i25.0: config.num_encoders=6, but only 2 are
 available, not loading driver
 [14170.506740] hm2/hm2_5i25.0: failed to parse Module Descriptor 2
 [14170.506745] hm2_5i25.0: board fails HM2 registration
 SNIP


 Note that you need to cycle the motherboard power to load new firmware

 Peter Wallace
 Mesa Electronics



 --
 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


 --
 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


Peter Wallace
Mesa Electronics

(\__/)
(='.'=) This is Bunny. Copy and paste bunny into your
()_() signature to help him gain world domination.


--
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


[Emc-users] 5i25 detected, but not the 7i77 yet

2012-06-16 Thread Maximilian H

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 febf (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 :03:01.0: PCI INT A - GSI 16 (level, low) -
IRQ 16
[ 7094.230065] hm2_pci: discovered 5i25 at :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 :03:01.0: PCI INT A disabled
[ 7094.230651] hm2_pci: probe of :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 :03:01.0: PCI INT A - GSI 16 (level, low) -
IRQ 16
[ 7186.682057] hm2_pci: discovered 5i25 at :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 

Re: [Emc-users] 5i25 detected, but not the 7i77 yet

2012-06-16 Thread andy pugh
On 16 June 2012 17:23, Maximilian H mhemc2nos...@googlemail.com wrote:

 [ 7094.230615] hm2/hm2_5i25.0: config.num_encoders=6, but only 2 are
 available, not loading driver

My first guess would be that the 5i25 does not contain the correct
firmware for the 7i77 for some reason.

If you turn on debug logging then the driver will print the firmware
version and config into dmesg.
You can turn on debug logging with:
echo 5  /proc/rtapi/debug
But only when rtai is running, so it needs to be done from a different
terminal window to halcmd.

The Support Software download from mesanet.com has a linux tool for
flashing the firmware, and various firmwares.

-- 
atp
If you can't fix it, you don't own it.
http://www.ifixit.com/Manifesto

--
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


Re: [Emc-users] 5i25 detected, but not the 7i77 yet

2012-06-16 Thread Peter C. Wallace
On Sat, 16 Jun 2012, andy pugh wrote:

 Date: Sat, 16 Jun 2012 17:45:09 +0100
 From: andy pugh bodge...@gmail.com
 Reply-To: Enhanced Machine Controller (EMC)
 emc-users@lists.sourceforge.net
 To: Enhanced Machine Controller (EMC) emc-users@lists.sourceforge.net
 Subject: Re: [Emc-users] 5i25 detected, but not the 7i77 yet
 
 On 16 June 2012 17:23, Maximilian H mhemc2nos...@googlemail.com wrote:

 [ 7094.230615] hm2/hm2_5i25.0: config.num_encoders=6, but only 2 are
 available, not loading driver

 My first guess would be that the 5i25 does not contain the correct
 firmware for the 7i77 for some reason.



That would be my thought as well (only 2 encoders found when all 
enabled suggests a 7I76x2 config to me)


Other things to note

1. There are no PWM gens used with 7I77s (or standard 7I76 configs)
so invoking one will always cause a error

2. I would use a config line like this as I have seen some trouble  (possibly
fixed) with wildcard (missing specs) sserial configs

BOARD=5i25
CONFIG=num_encoders=6 sserial_port_0=000xxx

Peter Wallace
Mesa Electronics

--
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


Re: [Emc-users] 5i25 detected, but not the 7i77 yet

2012-06-16 Thread Maximilian H

Hello Andy, Hello Peter,

thanks for your fast replies. I will try the firmware tool in the
support software 5i25.zip that you suggested + the loadrt line without
the pwmgens on Monday.

Thanks
BR
Max.



 On Sat, 16 Jun 2012, andy pugh wrote:
 
 Date: Sat, 16 Jun 2012 17:45:09 +0100
 From: andy pugh bodge...@gmail.com
 Reply-To: Enhanced Machine Controller (EMC)
 emc-users@lists.sourceforge.net
 To: Enhanced Machine Controller (EMC) emc-users@lists.sourceforge.net
 Subject: Re: [Emc-users] 5i25 detected, but not the 7i77 yet

 On 16 June 2012 17:23, Maximilian H mhemc2nos...@googlemail.com wrote:

 [ 7094.230615] hm2/hm2_5i25.0: config.num_encoders=6, but only 2 are
 available, not loading driver

 My first guess would be that the 5i25 does not contain the correct
 firmware for the 7i77 for some reason.


 
 That would be my thought as well (only 2 encoders found when all 
 enabled suggests a 7I76x2 config to me)
 
 
 Other things to note
 
 1. There are no PWM gens used with 7I77s (or standard 7I76 configs)
 so invoking one will always cause a error
 
 2. I would use a config line like this as I have seen some trouble  (possibly
 fixed) with wildcard (missing specs) sserial configs
 
 BOARD=5i25
 CONFIG=num_encoders=6 sserial_port_0=000xxx
 
 Peter Wallace
 Mesa Electronics
 
 --
 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
 


--
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