Mesa 7i96 setup issue [parameter or pin 'hm2_7i96.0.watchdog.timeout_ns' not fou

More
3 years 4 months ago #273449 by camb0
Hi All,
First post and a linuxcnc noob (have some experience with linux waaay back).
I'm missing something basic, in short the comms with the board don't seem to be working properly, the first HAL command that gets sent errors with a pin not found and it turns on the red init LED on the board.  So my setup can see the board but doesn't seem to be communicating.  I'm going to look into the network settings and some tests I saw in the post .
Any other suggestions would be welcome.

What I've tried/done so far:
-setup the network, ping to the board on 10.10.10.10 holds steady at around 0.07ms
-I configured the network through settings windows not the files (I didn't do both).
-Mesaflash can see the board if I use the "ETHER" option, NOTE if I specify the board name "7i96" it can't find the board?.
-I've tried pnconf to generate the file (similar error)
-I've tried mesact to generate the file (similar error)
-I've edited the hal file and just added a comment to show that the error is on a different line (ie I'm reading the right file).
-The board is connected to a commercial 5v power supply (ie not a usb/phone one).

Below is the start of the HAL file, it fails on the "setp" line (error below the HAL file):
Code:
# Generated by PNCconf at Sun Jun 11 18:18:30 2023 # Using LinuxCNC version:2.8 # If you make changes to this file, they will be # overwritten when you run PNCconf again loadusr -Wn pyvcp pyvcp -c pyvcp [DISPLAY] (PYVCP) source postgui call_ list.hal loadrt [KINS]KINEMATICS loadrt [EMCMOT]EMCMOT servo period nsec= [EMCMOTISERVO PERIOD num joints= [KINS]JOINTS loadrt hostmot2 loadrt hm2_eth board ip="10.10.10.10" config="num_encoders=1 num_pwmgens=0 num_stepgens=5 serial_port_O=0xXXxX" #setp hm2_7196.0.watchdog.timeout_ns 5000000 setp hm2_7196.0.watchdog.timeout_ns 5000000

Error when starting linuxcnc:
Code:
Removing HAL LIB, RTAPI, and Real Time OS modules Removing NML shared memory segments Debug file information: Note: Using POSIX realtime ./Mill-1.hal:12: parameter or pin 'hm2 796.0.watchdog.timeout_ns' not found 1198 Stopping realtime threads Unloading hal components Note: Using POSIX realtime

Please Log in to join the conversation.

More
3 years 4 months ago #273450 by phillc54
I think you may be missing an underscore:

watchdog.timeout_ns

Please Log in to join the conversation.

More
3 years 4 months ago #273455 by camb0
Phill good pickup, I wish it were that easy.
That was a copy paste/transpose issue.

Please Log in to join the conversation.

More
3 years 4 months ago #273460 by rodw
This video of mine may set you straight. Although it's for the 7i76e, the 7i96 is similar, just you need an additional 5v power supply for logic.


Looks like there are some spaces in your hal pin there.

Just take your time, and see if you can fix the errors and tackle the next one.

If you can't sort them out, just comment out the relevant lines (it reports the line number) until it opens, then use halshow to see the correct pin name,
Also run Linuxcnc from the command prompt as you get the error messages displayed. I use linuxcnc -l a lot which loads the last config you ran. 

Please Log in to join the conversation.

More
3 years 4 months ago #273467 by PCW
Are you sure you have a 7I96 and not a 7I96S?

What does:

mesaflash --device Ethernet --addr 10.10.10.10 --verbose

report?

Also noticed you have 7196 rather than 7I96
in this command:

setp hm2_7196.0.watchdog.timeout_ns 5000000

Please Log in to join the conversation.

More
3 years 4 months ago #273472 by tommylight
Code:
What I've tried/done so far: -setup the network, ping to the board on 10.10.10.10 holds steady at around 0.07ms
That is a reply from your PC, not the mesa card.
What does
ip a
return?

Please Log in to join the conversation.

More
3 years 4 months ago #273475 by camb0
Thx Tommy, yep that would be right re the ping.. (slaps forehead).
Code:
cam@linuxcnc-mill:~/Downloads/7i96/configs/hostmot2$ ip a 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000     link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00     inet 127.0.0.1/8 scope host lo        valid_lft forever preferred_lft forever     inet6 ::1/128 scope host        valid_lft forever preferred_lft forever 2: enp4s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000     link/ether d8:d3:85:8f:19:65 brd ff:ff:ff:ff:ff:ff     inet 10.10.10.11/8 brd 10.255.255.255 scope global noprefixroute enp4s0        valid_lft forever preferred_lft forever     inet6 fe80::b0ea:bad7:ac6:53b9/64 scope link noprefixroute        valid_lft forever preferred_lft forever 3: wlp5s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000     link/ether c4:d9:87:66:12:e6 brd ff:ff:ff:ff:ff:ff     inet 192.168.1.108/24 brd 192.168.1.255 scope global dynamic noprefixroute wlp5s0        valid_lft 80515sec preferred_lft 80515sec     inet6 fe80::c6d9:87ff:fe66:12e6/64 scope link noprefixroute        valid_lft forever preferred_lft forever

Please Log in to join the conversation.

More
3 years 4 months ago #273478 by camb0
Thanks for the quick response.
My first paste has some transposition errors in it as I'm going via a VNC remote desktop (too cold where the robots live) to my mac -> image screenshot -> image OCR (not very good) -> pasted text in the form. 
So 7i96 it is, however that got smooshed into 7196.

I'm going direct off the machine's browser now.
Code:
cam@linuxcnc-mill:~/Downloads/7i96/configs/hostmot2$ mesaflash --device Ethernet --addr 10.10.10.10 --verbose ETH device 7I96S at ip=10.10.10.10 Communication:   transport layer: ethernet IPv4 UDP   ip address: 10.10.10.10   mac address: 00:60:1B:16:86:5E   protocol: LBP16 version 3 Board info:   Flash size: 16Mb (id: 0x14)   Connectors count: 3   Pins per connector: 17   Connectors names: TB3 TB1/TB2 P1   FPGA type: T20F256   Number of leds: 4 Board firmware info:   memory spaces:     0: HostMot2 (registers, RW, 32-bit) [size=64K]     1: KSZ8851 (registers, RW, 16-bit) [size=256]     2: EtherEEP (EEPROM, RW, 16-bit) [size=128], page size: 1, erase size: 1     3: FPGAFlsh (flash, RW, 32-bit) [size=16M], page size: 256, erase size: 65536     4: Timers (memory, RW, 16-bit) [size=16]     6: LBP16RW (memory, RW, 16-bit) [size=16]     7: LBP16RO (memory, RO, 16-bit) [size=16]   [space 0] HostMot2   [space 2] Ethernet eeprom:     mac address: 00:60:1B:16:86:5E     ip address: 10.10.10.10     board name: 7I96S     user leds: eth debug   [space 3] FPGA flash eeprom:     flash size: 16Mb (id: 0x14)   [space 4] timers:     uSTimeStampReg: 0xC907     WaituSReg: 0x0000     HM2Timeout: 0x0000   [space 6] LBP16 control/status:     packets received: all 33672, UDP 33535, bad 0     packets sent: all 17163, UDP 17151, bad 0     parse errors: 0, mem errors 0, write errors 0     error flags: 0x0000     debug LED ptr: 0x0008     scratch: 0x0000   [space 7] LBP16 info:     board name: 7I96S     LBP16 protocol version 3     board firmware version 17     IP address jumpers at boot: fixed from EEPROM
s

Please Log in to join the conversation.

More
3 years 4 months ago #273479 by PCW
OK s that's a 7I96S, not a 7I96 so you need to specify 7I96S with
mesact or pncconf when creating a configuration or mesaflash when
issuing a command.

Please Log in to join the conversation.

More
3 years 4 months ago #273480 by camb0
That would explain why when I refer to it by name it came back with an error.
Interesting the --verbose is much nicer to read than the way more verbose readhmid option.

Please Log in to join the conversation.

Time to create page: 0.059 seconds
Powered by Kunena Forum