7i92 not pinging

More
02 Jun 2024 09:10 #302133 by rajsekhar
7i92 not pinging was created by rajsekhar
I am using 7i92+7i76+7i84.

I had connected the system earlier and it was working perfect.

Now I upgraded to LinuxCNC 2.9.2 and added 7i78. But there is no ping. Note: I have added one wifi router as well. Can it cause any problem?

(7i92 set to 10.10.10.10, W5 down, W6 UP)

What is going wrong?
Attachments:

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

  • tommylight
  • tommylight's Avatar
  • Away
  • Moderator
  • Moderator
More
02 Jun 2024 12:17 #302144 by tommylight
Replied by tommylight on topic 7i92 not pinging
What does
Ip a
Return in a terminal ?

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

More
02 Jun 2024 12:34 #302146 by rajsekhar
Replied by rajsekhar on topic 7i92 not pinging
well, I did the network setup as per tommylight post dated 27/11/2018. Many thanks.

now, it is pinging and in the terminal I get,
==========================================================

raycnc1@debian:~/Desktop$ mesaflash --addr 10.10.10.10 --device=ETHER --readhmid
Configuration Name: HOSTMOT2

General configuration information:

  BoardName : MESA7I92
  FPGA Size: 9 KGates
  FPGA Pins: 144
  Number of IO Ports: 2
  Width of one I/O port: 17
  Clock Low frequency: 100.0000 MHz
  Clock High frequency: 200.0000 MHz
  IDROM Type: 3
  Instance Stride 0: 4
  Instance Stride 1: 64
  Register Stride 0: 256
  Register Stride 1: 256

Modules in configuration:

  Module: DPLL
  There are 1 of DPLL in configuration
  Version: 0
  Registers: 7
  BaseAddress: 7000
  ClockFrequency: 100.000 MHz
  Register Stride: 256 bytes
  Instance Stride: 4 bytes

  Module: WatchDog
  There are 1 of WatchDog in configuration
  Version: 0
  Registers: 3
  BaseAddress: 0C00
  ClockFrequency: 100.000 MHz
  Register Stride: 256 bytes
  Instance Stride: 4 bytes

  Module: IOPort
  There are 2 of IOPort in configuration
  Version: 0
  Registers: 5
  BaseAddress: 1000
  ClockFrequency: 100.000 MHz
  Register Stride: 256 bytes
  Instance Stride: 4 bytes

  Module: QCount
  There are 1 of QCount in configuration
  Version: 2
  Registers: 5
  BaseAddress: 3000
  ClockFrequency: 100.000 MHz
  Register Stride: 256 bytes
  Instance Stride: 4 bytes

  Module: SSerial
  There are 1 of SSerial in configuration
  Version: 0
  Registers: 6
  BaseAddress: 5B00
  ClockFrequency: 100.000 MHz
  Register Stride: 256 bytes
  Instance Stride: 64 bytes

  Module: StepGen
  There are 5 of StepGen in configuration
  Version: 2
  Registers: 10
  BaseAddress: 2000
  ClockFrequency: 100.000 MHz
  Register Stride: 256 bytes
  Instance Stride: 4 bytes

  Module: LED
  There are 1 of LED in configuration
  Version: 0
  Registers: 1
  BaseAddress: 0200
  ClockFrequency: 100.000 MHz
  Register Stride: 256 bytes
  Instance Stride: 4 bytes

Configuration pin-out:

IO Connections for P2
DB25 pin#             I/O   Pri. func    Sec. func        Chan     Sec. Pin func   Sec. Pin Dir

 1                      0   IOPort       StepGen          0        Dir/Table2      (Out)
14                      1   IOPort       StepGen          0        Step/Table1     (Out)
 2                      2   IOPort       StepGen          1        Dir/Table2      (Out)
15                      3   IOPort       StepGen          1        Step/Table1     (Out)
 3                      4   IOPort       StepGen          2        Dir/Table2      (Out)
16                      5   IOPort       StepGen          2        Step/Table1     (Out)
 4                      6   IOPort       StepGen          3        Dir/Table2      (Out)
17                      7   IOPort       StepGen          3        Step/Table1     (Out)
 5                      8   IOPort       StepGen          4        Dir/Table2      (Out)
 6                      9   IOPort       StepGen          4        Step/Table1     (Out)
 7                     10   IOPort       SSerial          0        TXData0         (Out)
 8                     11   IOPort       SSerial          0        RXData0         (In)
 9                     12   IOPort       SSerial          0        TXData1         (Out)
10                     13   IOPort       SSerial          0        RXData1         (In)
11                     14   IOPort       QCount           0        Quad-IDX        (In)
12                     15   IOPort       QCount           0        Quad-B          (In)
13                     16   IOPort       QCount           0        Quad-A          (In)

IO Connections for P1
DB25 pin#             I/O   Pri. func    Sec. func        Chan     Sec. Pin func   Sec. Pin Dir

 1                     17   IOPort       None           
14                     18   IOPort       None           
 2                     19   IOPort       None           
15                     20   IOPort       None           
 3                     21   IOPort       None           
16                     22   IOPort       None           
 4                     23   IOPort       None           
17                     24   IOPort       None           
 5                     25   IOPort       None           
 6                     26   IOPort       None           
 7                     27   IOPort       None           
 8                     28   IOPort       None           
 9                     29   IOPort       None           
10                     30   IOPort       None           
11                     31   IOPort       None           
12                     32   IOPort       None           
13                     33   IOPort       None           

raycnc1@debian:~/Desktop$
===================================================

But the gmoccapy configuration is not working. Axes buttons are showing in joint numbers (numeric), motors not moving, showing following errors. HAL and INI file attached.

It is Linuxcnc 2.9.2.

Please guide.




 
Attachments:

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

More
02 Jun 2024 13:39 #302150 by PCW
Replied by PCW on topic 7i92 not pinging
I suspect there is a latency issue.

What are the CPU type and clock speed?

and what do

halcmd show param *.tmax

and

halcmd show pin hm2_7i92.0.packet-error-total

report (when LinuxCNC is running)

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

  • tommylight
  • tommylight's Avatar
  • Away
  • Moderator
  • Moderator
More
02 Jun 2024 13:57 #302154 by tommylight
Replied by tommylight on topic 7i92 not pinging
You have set a tandem Y axis but have no limit switches set, so you can not move the machine as it requires homing before being able to jog.
That is to prevent raking the gantry, and that also explains why you see joints in the DRO until the machine is homed, at that point the DRO changes to showing Axis letters for 4 axis.

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

More
03 Jun 2024 03:55 #302221 by rajsekhar
Replied by rajsekhar on topic 7i92 not pinging
CPU information is as follows:
==========================================================
raycnc1@debian:~/Desktop$ cat /proc/cpuinfo
processor    : 0
vendor_id    : GenuineIntel
cpu family    : 6
model        : 94
model name    : Intel(R) Core(TM) i3-6100T CPU @ 3.20GHz
stepping    : 3
microcode    : 0xf0
cpu MHz        : 800.044
cache size    : 3072 KB
physical id    : 0
siblings    : 4
core id        : 0
cpu cores    : 2
apicid        : 0
initial apicid    : 0
fpu        : yes
fpu_exception    : yes
cpuid level    : 22
wp        : yes
flags        : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault invpcid_single pti ssbd ibrs ibpb stibp tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid mpx rdseed adx smap clflushopt intel_pt xsaveopt xsavec xgetbv1 xsaves dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp md_clear flush_l1d arch_capabilities
vmx flags    : vnmi preemption_timer invvpid ept_x_only ept_ad ept_1gb flexpriority tsc_offset vtpr mtf vapic ept vpid unrestricted_guest ple pml
bugs        : cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass l1tf mds swapgs itlb_multihit srbds mmio_stale_data retbleed gds
bogomips    : 6399.96
clflush size    : 64
cache_alignment    : 64
address sizes    : 39 bits physical, 48 bits virtual
power management:

processor    : 1
vendor_id    : GenuineIntel
cpu family    : 6
model        : 94
model name    : Intel(R) Core(TM) i3-6100T CPU @ 3.20GHz
stepping    : 3
microcode    : 0xf0
cpu MHz        : 800.000
cache size    : 3072 KB
physical id    : 0
siblings    : 4
core id        : 1
cpu cores    : 2
apicid        : 2
initial apicid    : 2
fpu        : yes
fpu_exception    : yes
cpuid level    : 22
wp        : yes
flags        : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault invpcid_single pti ssbd ibrs ibpb stibp tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid mpx rdseed adx smap clflushopt intel_pt xsaveopt xsavec xgetbv1 xsaves dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp md_clear flush_l1d arch_capabilities
vmx flags    : vnmi preemption_timer invvpid ept_x_only ept_ad ept_1gb flexpriority tsc_offset vtpr mtf vapic ept vpid unrestricted_guest ple pml
bugs        : cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass l1tf mds swapgs itlb_multihit srbds mmio_stale_data retbleed gds
bogomips    : 6399.96
clflush size    : 64
cache_alignment    : 64
address sizes    : 39 bits physical, 48 bits virtual
power management:

processor    : 2
vendor_id    : GenuineIntel
cpu family    : 6
model        : 94
model name    : Intel(R) Core(TM) i3-6100T CPU @ 3.20GHz
stepping    : 3
microcode    : 0xf0
cpu MHz        : 800.011
cache size    : 3072 KB
physical id    : 0
siblings    : 4
core id        : 0
cpu cores    : 2
apicid        : 1
initial apicid    : 1
fpu        : yes
fpu_exception    : yes
cpuid level    : 22
wp        : yes
flags        : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault invpcid_single pti ssbd ibrs ibpb stibp tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid mpx rdseed adx smap clflushopt intel_pt xsaveopt xsavec xgetbv1 xsaves dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp md_clear flush_l1d arch_capabilities
vmx flags    : vnmi preemption_timer invvpid ept_x_only ept_ad ept_1gb flexpriority tsc_offset vtpr mtf vapic ept vpid unrestricted_guest ple pml
bugs        : cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass l1tf mds swapgs itlb_multihit srbds mmio_stale_data retbleed gds
bogomips    : 6399.96
clflush size    : 64
cache_alignment    : 64
address sizes    : 39 bits physical, 48 bits virtual
power management:

processor    : 3
vendor_id    : GenuineIntel
cpu family    : 6
model        : 94
model name    : Intel(R) Core(TM) i3-6100T CPU @ 3.20GHz
stepping    : 3
microcode    : 0xf0
cpu MHz        : 800.000
cache size    : 3072 KB
physical id    : 0
siblings    : 4
core id        : 1
cpu cores    : 2
apicid        : 3
initial apicid    : 3
fpu        : yes
fpu_exception    : yes
cpuid level    : 22
wp        : yes
flags        : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault invpcid_single pti ssbd ibrs ibpb stibp tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid mpx rdseed adx smap clflushopt intel_pt xsaveopt xsavec xgetbv1 xsaves dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp md_clear flush_l1d arch_capabilities
vmx flags    : vnmi preemption_timer invvpid ept_x_only ept_ad ept_1gb flexpriority tsc_offset vtpr mtf vapic ept vpid unrestricted_guest ple pml
bugs        : cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass l1tf mds swapgs itlb_multihit srbds mmio_stale_data retbleed gds
bogomips    : 6399.96
clflush size    : 64
cache_alignment    : 64
address sizes    : 39 bits physical, 48 bits virtual
power management:

raycnc1@debian:~/Desktop$

=============================================================

The latency,  tmax and packet error data attached in photos.

the error in PNCconfig and "error finishing read! iter=  " is attached.

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

More
03 Jun 2024 13:37 - 03 Jun 2024 13:40 #302239 by PCW
Replied by PCW on topic 7i92 not pinging
"cpu MHz        : 800.011"

Sounds like the BIOS has power management enabled so the CPU is running at 1/4 normal speed
You should make sure all power management (EIST, C states > C1, Turbo modes etc) are disabled
in the BIOS.

You can see that there were 14 (0xE) packets timed out so assuming you have the servo thread set for 1000000 ns
(1 ms) that means 14 read requests took longer than 0.8 ms to complete.

Also the halcmd result would be better than the screen shot as it would show all tmax values

Here are some general instructions for fixing network latency issues (from another thread):

This is most likely a latency issue

1. have you run a latency test?

I would suggest "latency-histogram --nobase --sbinsize 1000"

2. Have you disabled all power management options in the BIOS setup?
This include turbo modes, EIST, Cstates > C1, Cool&Quiet etc, basically
anything that causes the CPU to change speeds dynamically or sleep.

3. Also in the BIOS you should disable hyperthreading and any management
engine  related  options that affect the network (like AMT)

4. If your PC has an Intel Ethernet chip make sure you disable IRQ coalescing
(man hm2_eth)

5. Pinging the 7I92 will give you some idea of network latency
(this example assumes the 7I92 is set for a 10.10.10.10 IP address)

ping -i .2 -c 4 10.10.10.10
sudo chrt 99 ping -i .001 -q 10.10.10.10
 (let the last command run for a few minutes and
then stop it with a control C, it will print timing statistics)

If  BIOS changes and disabling IRQ coalescing do not help, the next step is to try
changing the kernel command line options, using isolcpus to isolate one processor
for real time use and pinning the Ethernet IRQ to that processor.


 
Last edit: 03 Jun 2024 13:40 by PCW.

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

More
04 Jun 2024 02:42 #302290 by rajsekhar
Replied by rajsekhar on topic 7i92 not pinging
halcmd show param *.tmax and show pin mh2_7i92.0.packet-error-total result while linuxcnc running is as follows:

=============================================================
raycnc1@debian:~/Desktop$ halcmd show pin hm2_7i92.0.packet-error-total
Component Pins:
Owner   Type  Dir         Value  Name
    36  u32   I/O    0x00000010  hm2_7i92.0.packet-error-total

raycnc1@debian:~/Desktop$ halcmd show param *.tmax
Parameters:
Owner   Type  Dir         Value  Name
    36  s32   RW              0  hm2_7i92.0.read-request.tmax
    36  s32   RW        2643698  hm2_7i92.0.read.tmax
    36  s32   RW          79605  hm2_7i92.0.write.tmax
    29  s32   RW          10735  motion-command-handler.tmax
    29  s32   RW          81352  motion-controller.tmax
    39  s32   RW           7779  pid.s.do-pid-calcs.tmax
    39  s32   RW          15124  pid.x.do-pid-calcs.tmax
    39  s32   RW           9410  pid.y.do-pid-calcs.tmax
    39  s32   RW          10086  pid.z.do-pid-calcs.tmax
    30  s32   RW        2752967  servo-thread.tmax

raycnc1@debian:~/Desktop$ halcmd show pin hm2_7i92.0.packet-error-total
Component Pins:
Owner   Type  Dir         Value  Name
    36  u32   I/O    0x00000010  hm2_7i92.0.packet-error-total

raycnc1@debian:~/Desktop$ halcmd show param *.tmax
Parameters:
Owner   Type  Dir         Value  Name
    36  s32   RW              0  hm2_7i92.0.read-request.tmax
    36  s32   RW        2643698  hm2_7i92.0.read.tmax
    36  s32   RW          79605  hm2_7i92.0.write.tmax
    29  s32   RW          10735  motion-command-handler.tmax
    29  s32   RW          81352  motion-controller.tmax
    39  s32   RW           7779  pid.s.do-pid-calcs.tmax
    39  s32   RW          15124  pid.x.do-pid-calcs.tmax
    39  s32   RW           9410  pid.y.do-pid-calcs.tmax
    39  s32   RW          10086  pid.z.do-pid-calcs.tmax
    30  s32   RW        2752967  servo-thread.tmax

raycnc1@debian:~/Desktop$
================================================

bios setup attached in photos.

kindly suggest what changes to be done.

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

More
04 Jun 2024 03:08 #302291 by rajsekhar
Replied by rajsekhar on topic 7i92 not pinging
Bios setup, tmax and packet error data attached in previous post. Please look into.

latency test and histogram (attached), ping data given in this post as follows:
================================================
raycnc1@debian:~/Desktop$ ping -i .2 -c 4 10.10.10.10
PING 10.10.10.10 (10.10.10.10) 56(84) bytes of data.
64 bytes from 10.10.10.10: icmp_seq=1 ttl=64 time=0.144 ms
64 bytes from 10.10.10.10: icmp_seq=2 ttl=64 time=0.106 ms
64 bytes from 10.10.10.10: icmp_seq=3 ttl=64 time=0.097 ms
64 bytes from 10.10.10.10: icmp_seq=4 ttl=64 time=0.104 ms

--- 10.10.10.10 ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 611ms
rtt min/avg/max/mdev = 0.097/0.112/0.144/0.018 ms
raycnc1@debian:~/Desktop$ sudo chrt 99 ping -i .001 -q 10.10.10.10
[sudo] password for raycnc1:
PING 10.10.10.10 (10.10.10.10) 56(84) bytes of data.
^C
--- 10.10.10.10 ping statistics ---
157081 packets transmitted, 157081 received, 0% packet loss, time 157294ms
rtt min/avg/max/mdev = 0.043/0.051/3.948/0.019 ms
raycnc1@debian:~/Desktop$


======================================================

Please suggest suitably.
Attachments:

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

More
04 Jun 2024 03:51 #302292 by PCW
Replied by PCW on topic 7i92 not pinging
What BIOS options do you have under "advanced frequency settings"?

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

Time to create page: 0.155 seconds
Powered by Kunena Forum