Mesa 7i96 + 7i87: Error in Mode1 or Mode2

More
29 Oct 2023 14:37 #284024 by 0x2102
Hello,

I am playing around with a Mesa 7i96 + 7i87 (analog input). Mode0 seems to be fine but when I try to change SSerial Mode to 1 or 2 I am getting this error message during LCNC startup.

LINUXCNC - 2.10.0-pre0-2069-g9de3c86d4

hutting down and cleaning up LinuxCNC...
USRMOT: ERROR: command 30 timeout
emcMotionInit: emcTrajInit failed
USRMOT: ERROR: command 3 timeout
hm2: loading Mesa HostMot2 driver version 0.15
hm2_eth: loading Mesa AnyIO HostMot2 ethernet driver version 0.2
hm2_eth: 10.10.10.10: INFO: Hardware address (MAC): 00:60:1b:16:04:d6
hm2_eth: discovered 7I96
hm2/hm2_7i96.0: Low Level init 0.15
hm2/hm2_7i96.0: Smart Serial Firmware Version 43
Board hm2_7i96.0.7i87.0.0 Hardware Mode 0 = standard
Board hm2_7i96.0.7i87.0.0 Software Mode 0 = analoginput_digitaloutput
Board hm2_7i96.0.7i87.0.0 Software Mode 1 = analoginput16bit*4,8bit*4_digitaloutput
Board hm2_7i96.0.7i87.0.0 Software Mode 2 = analoginput16bit*6_digitaloutput
board fails HM2 registration
hm2_eth: in hm2_eth_reset
hm2: unloading

Mode 1:
Debug file information:
Note: Using POSIX realtime
HAL: ERROR: duplicate parameter 'hm2_7i96.0.7i87.0.0.analogin4'
hm2/hm2_7i96.0: Out of memory
hm2/hm2_7i96.0: Failed to create parameters for device hm2_7i96.0.7i87.0.0
hm2/hm2_7i96.0: Failed to read/setup the globals on hm2_7i96.0.7i87.0.0
hm2/hm2_7i96.0: Remote setup failure on instance 0
hm2/hm2_7i96.0: failed to parse Module Descriptor 6
hm2_eth: rtapi_app_main: Invalid argument (-22)
./ethercat-velo.hal:8: waitpid failed /usr/bin/rtapi_app hm2_eth
./ethercat-velo.hal:8: /usr/bin/rtapi_app exited without becoming ready
./ethercat-velo.hal:8: insmod for hm2_eth failed, returned -1

Mode 2
Debug file information:
Note: Using POSIX realtime
HAL: ERROR: duplicate parameter 'hm2_7i96.0.7i87.0.0.analogin6'
hm2/hm2_7i96.0: Out of memory
hm2/hm2_7i96.0: Failed to create parameters for device hm2_7i96.0.7i87.0.0
hm2/hm2_7i96.0: Failed to read/setup the globals on hm2_7i96.0.7i87.0.0
hm2/hm2_7i96.0: Remote setup failure on instance 0
hm2/hm2_7i96.0: failed to parse Module Descriptor 6
hm2_eth: rtapi_app_main: Invalid argument (-22)
./ethercat-velo.hal:8: waitpid failed /usr/bin/rtapi_app hm2_eth
./ethercat-velo.hal:8: /usr/bin/rtapi_app exited without becoming ready
./ethercat-velo.hal:8: insmod for hm2_eth failed, returned -1

Regards,
Markus
 

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

More
29 Oct 2023 15:16 #284032 by PCW
Strange, all modes work for me on at least 2.9 and 2.10
(2.8 is hard to test because of Python 2/3 issues)

Maybe some more generic issue
(the OOM error is suggestive of this)

Here's the mode 2 LinuxCNC startup info showing 6x 16 bit analog inputs:

hm2/hm2_7i96s.0: version 43
hm2/hm2_7i96s.0: instance 0:
hm2/hm2_7i96s.0: Command Addr 0x5b00
hm2/hm2_7i96s.0: Data Addr 0x5c00
hm2/hm2_7i96s.0: port 0 device hm2_7i96s.0.7i87.0.0
hm2/hm2_7i96s.0: Parameters:
hm2/hm2_7i96s.0: RecordType = 0xa0
hm2/hm2_7i96s.0: DataLength = 0x03
hm2/hm2_7i96s.0: DataType = 0x01
hm2/hm2_7i96s.0: DataDir = 0x80
hm2/hm2_7i96s.0: ParmMax 1.00
hm2/hm2_7i96s.0: ParmMin 0.00
hm2/hm2_7i96s.0: SizeOf ParmMin 0x04
hm2/hm2_7i96s.0: ParmAddr = 0x0800
hm2/hm2_7i96s.0: UnitString = none
hm2/hm2_7i96s.0: NameString = output

hm2/hm2_7i96s.0: RecordType = 0xa0
hm2/hm2_7i96s.0: DataLength = 0x10
hm2/hm2_7i96s.0: DataType = 0x03
hm2/hm2_7i96s.0: DataDir = 0x00
hm2/hm2_7i96s.0: ParmMax 10.23
hm2/hm2_7i96s.0: ParmMin 0.00
hm2/hm2_7i96s.0: SizeOf ParmMin 0x04
hm2/hm2_7i96s.0: ParmAddr = 0x08b4
hm2/hm2_7i96s.0: UnitString = volts
hm2/hm2_7i96s.0: NameString = analogin0

hm2/hm2_7i96s.0: RecordType = 0xa0
hm2/hm2_7i96s.0: DataLength = 0x10
hm2/hm2_7i96s.0: DataType = 0x03
hm2/hm2_7i96s.0: DataDir = 0x00
hm2/hm2_7i96s.0: ParmMax 10.23
hm2/hm2_7i96s.0: ParmMin 0.00
hm2/hm2_7i96s.0: SizeOf ParmMin 0x04
hm2/hm2_7i96s.0: ParmAddr = 0x08b6
hm2/hm2_7i96s.0: UnitString = volts
hm2/hm2_7i96s.0: NameString = analogin1

hm2/hm2_7i96s.0: RecordType = 0xa0
hm2/hm2_7i96s.0: DataLength = 0x10
hm2/hm2_7i96s.0: DataType = 0x03
hm2/hm2_7i96s.0: DataDir = 0x00
hm2/hm2_7i96s.0: ParmMax 10.23
hm2/hm2_7i96s.0: ParmMin 0.00
hm2/hm2_7i96s.0: SizeOf ParmMin 0x04
hm2/hm2_7i96s.0: ParmAddr = 0x08b8
hm2/hm2_7i96s.0: UnitString = volts
hm2/hm2_7i96s.0: NameString = analogin2

hm2/hm2_7i96s.0: RecordType = 0xa0
hm2/hm2_7i96s.0: DataLength = 0x10
hm2/hm2_7i96s.0: DataType = 0x03
hm2/hm2_7i96s.0: DataDir = 0x00
hm2/hm2_7i96s.0: ParmMax 10.23
hm2/hm2_7i96s.0: ParmMin 0.00
hm2/hm2_7i96s.0: SizeOf ParmMin 0x04
hm2/hm2_7i96s.0: ParmAddr = 0x08ba
hm2/hm2_7i96s.0: UnitString = volts
hm2/hm2_7i96s.0: NameString = analogin3

hm2/hm2_7i96s.0: RecordType = 0xa0
hm2/hm2_7i96s.0: DataLength = 0x10
hm2/hm2_7i96s.0: DataType = 0x03
hm2/hm2_7i96s.0: DataDir = 0x00
hm2/hm2_7i96s.0: ParmMax 10.23
hm2/hm2_7i96s.0: ParmMin 0.00
hm2/hm2_7i96s.0: SizeOf ParmMin 0x04
hm2/hm2_7i96s.0: ParmAddr = 0x08bc
hm2/hm2_7i96s.0: UnitString = volts
hm2/hm2_7i96s.0: NameString = analogin4

hm2/hm2_7i96s.0: RecordType = 0xa0
hm2/hm2_7i96s.0: DataLength = 0x10
hm2/hm2_7i96s.0: DataType = 0x03
hm2/hm2_7i96s.0: DataDir = 0x00
hm2/hm2_7i96s.0: ParmMax 10.23
hm2/hm2_7i96s.0: ParmMin 0.00
hm2/hm2_7i96s.0: SizeOf ParmMin 0x04
hm2/hm2_7i96s.0: ParmAddr = 0x08be
hm2/hm2_7i96s.0: UnitString = volts
hm2/hm2_7i96s.0: NameString = analogin5

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

More
29 Oct 2023 16:01 - 29 Oct 2023 16:02 #284038 by 0x2102
Mhh...ok. I did more testing in Mode 0 and noticed that Port 4 - Port 7 don't show any values when I connect them to the reference voltage.

Ports 0 - 3 are constantly changing ever so slightly around 0V +/- 0.05 but Ports 4 - 7 are at 0V.

Could this be a hardware issue?
Attachments:
Last edit: 29 Oct 2023 16:02 by 0x2102.

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

More
29 Oct 2023 16:27 - 29 Oct 2023 16:55 #284043 by PCW
Not sure, I get all 8 input working in mode 0.

The mode errors suggest something more fundamentally wrong

Is it possible you are dropping packets?

(the sserial setup process is not very robust with regard to
dropped packets, it really should retry the entire setup
process on any error, but does not currently do this)

Also to make sure we are on the same page here, what is the 7I87 firmware version?
(16 is current)
Last edit: 29 Oct 2023 16:55 by PCW.

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

More
30 Oct 2023 15:12 #284134 by 0x2102
Ok, I did update the 7i87 firmware to R16 and that fixed everything. Mode0: all channels are on and Mode1/Mode2 will now load without the error.

Thanks.

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

More
30 Oct 2023 15:31 #284135 by PCW
Ahh glad it was something relatively simple.

Must be a fairly old card, I think V16 came out
more that 3 years ago

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

Moderators: PCWjmelson
Time to create page: 0.092 seconds
Powered by Kunena Forum