Biesse Rover 346 Retrofit

More
21 Jan 2017 01:39 #86329 by tommylight

Tommy, you running 2.8 pre?


Yes i am. Although i shoud be running 2.7.8 but i am going to need joint axis as the machine has a long X and a short X axis on top of the long one, so basicaly it is a 3 axis mill on top of a long axis. Gona have to figure out how to make that as a single x axis later on.
Tomorrow the encoders and brakes and motors are on the to do list. More fun for sure.

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

More
21 Jan 2017 02:16 #86331 by bevins
Replied by bevins on topic Biesse Rover 346 Retrofit

Tommy, you running 2.8 pre?


Yes i am. Although i shoud be running 2.7.8 but i am going to need joint axis as the machine has a long X and a short X axis on top of the long one, so basicaly it is a 3 axis mill on top of a long axis. Gona have to figure out how to make that as a single x axis later on.
Tomorrow the encoders and brakes and motors are on the to do list. More fun for sure.


You using both ports on your 5i25? Can you put use_serial_numbers=1 after your loadrt hostmot2 and see if it gets past the loadrt hm2_pci?

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

More
21 Jan 2017 05:08 - 21 Jan 2017 05:09 #86341 by bevins
Replied by bevins on topic Biesse Rover 346 Retrofit
after running use_serial_numbers in loadrt hostmot2 use_serial_numbers

I pulled this out of dmesg:

[24202.636866] hm2: loading Mesa HostMot2 driver version 0.15
[24202.639489] hm2_pci: loading Mesa AnyIO HostMot2 driver version 0.7
[24202.639534] hm2_pci: discovered 5i25 at 0000:00:0b.0
[24202.640783] hm2/hm2_5i25.0: Smart Serial Firmware Version 43
[24202.645059] Board hm2_7i77.02ac Hardware Mode 0 = standard
[24202.647808] Board hm2_7i77.02ac Software Mode 0 = input_output
[24202.650210] Board hm2_7i77.02ac Software Mode 1 = io_analog
[24202.654323] Board hm2_7i77.02ac Software Mode 2 = io_analog_fieldvoltage
[24202.659589] Board hm2_7i77.02ac Software Mode 3 = io_encoder_analog_fieldvoltage
[24202.752531] Board hm2_7i77.02ac Hardware Mode 0 = standard
[24202.755083] Board hm2_7i77.02ac Software Mode 0 = analogout_enables
[24202.800857] HAL: ERROR: duplicate parameter 'hm2_7i77.02ac.swrevision'
[24202.800862] hm2/hm2_5i25.0: Out of memory
[24202.800865] hm2/hm2_5i25.0: Failed to create parameters for device hm2_7i77.02ac
[24202.800870] hm2/hm2_5i25.0: Failed to read/setup the globals on hm2_7i77.02ac
[24202.800874] hm2/hm2_5i25.0: Remote setup failure on instance 0
[24202.800879] hm2/hm2_5i25.0: failed to parse Module Descriptor 4
[24202.800888] hm2_5i25.0: board fails HM2 registration
[24202.800929] hm2_pci: probe of 0000:00:0b.0 failed with error -22
[24203.061506] hm2: unloading
[24205.211726] RTAI[math]: unloaded.
[24205.214180] SCHED releases registered named ALIEN PEDV$D
[24205.221070] RTAI[malloc]: unloaded.
[24205.320025] RTAI[sched]: unloaded (forced hard/soft/hard transitions: traps 0, syscalls 0).
[24205.322035] I-pipe: head domain RTAI unregistered.
[24205.322048] RTAI[hal]: unmounted

I cant debug this but it doesnt look good....... firmware issue?
Last edit: 21 Jan 2017 05:09 by bevins.

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

More
21 Jan 2017 05:21 - 21 Jan 2017 05:25 #86342 by bevins
Replied by bevins on topic Biesse Rover 346 Retrofit
and here is dmesg without the use_serial_numbers=1

[25148.173420] hm2: loading Mesa HostMot2 driver version 0.15
[25148.176121] hm2_pci: loading Mesa AnyIO HostMot2 driver version 0.7
[25148.176165] hm2_pci: discovered 5i25 at 0000:00:0b.0
[25148.177430] hm2/hm2_5i25.0: Smart Serial Firmware Version 43
[25148.234276] Board hm2_7i77.02ac Hardware Mode 0 = standard
[25148.237033] Board hm2_7i77.02ac Software Mode 0 = input_output
[25148.239326] Board hm2_7i77.02ac Software Mode 1 = io_analog
[25148.243460] Board hm2_7i77.02ac Software Mode 2 = io_analog_fieldvoltage
[25148.248637] Board hm2_7i77.02ac Software Mode 3 = io_encoder_analog_fieldvoltage
[25148.345369] Board hm2_7i77.02ac Hardware Mode 0 = standard
[25148.347922] Board hm2_7i77.02ac Software Mode 0 = analogout_enables
[25148.393730] HAL: ERROR: duplicate parameter 'hm2_7i77.02ac.swrevision'
[25148.393735] hm2/hm2_5i25.0: Out of memory
[25148.393739] hm2/hm2_5i25.0: Failed to create parameters for device hm2_7i77.02ac
[25148.393743] hm2/hm2_5i25.0: Failed to read/setup the globals on hm2_7i77.02ac
[25148.393748] hm2/hm2_5i25.0: Remote setup failure on instance 0
[25148.393753] hm2/hm2_5i25.0: failed to parse Module Descriptor 4
[25148.393762] hm2_5i25.0: board fails HM2 registration
[25148.393802] hm2_pci: probe of 0000:00:0b.0 failed with error -22
[25148.652766] hm2: unloading
[25150.817919] RTAI[math]: unloaded.
[25150.821346] SCHED releases registered named ALIEN PEDV$D
[25150.829248] RTAI[malloc]: unloaded.
[25150.928025] RTAI[sched]: unloaded (forced hard/soft/hard transitions: traps 0, syscalls 0).
[25150.930473] I-pipe: head domain RTAI unregistered.
[25150.930486] RTAI[hal]: unmounted.
[25221.199724] I-pipe: head domain RTAI registered.
[25221.199734] RTAI[hal]: compiled with gcc version 4.7.2 (Debian 4.7.2-5) .
[25221.199742] RTAI[hal]: mounted (IPIPE-NOTHREADS, IMMEDIATE (INTERNAL IRQs DISPATCHED), ISOL_CPUS_MASK: 0).
[25221.199747] SYSINFO: CPUs 1, LINUX APIC IRQ 2312, TIM_FREQ 12500398, CLK_FREQ 1999981000, CPU_FREQ 1999981000
[25221.199750] RTAI_APIC_TIMER_IPI: RTAI DEFINED 2314, VECTOR 2314; LINUX_APIC_TIMER_IPI: RTAI DEFINED 2312, VECTOR 2312
[25221.199754] TIMER NAME: lapic; VARIOUSLY FOUND APIC FREQs: 12500398, 12500398, 12433750
[25221.215221] RTAI[malloc]: global heap size = 2097152 bytes, <BSD>.
[25221.215301] , <uses LINUX SYSCALLs>, kstacks pool size = 524288 bytes.
[25221.215306] RTAI[sched]: hard timer type/freq = APIC/12500398(Hz); default timing: oneshot; linear timed lists.
[25221.215310] RTAI[sched]: Linux timer freq = 250 (Hz), TimeBase freq = 1999981000 hz.
[25221.215313] RTAI[sched]: timer setup = 999 ns, resched latency = 2944 ns.
[25221.227350] RTAI[math]: loaded.
[25221.411719] hm2: loading Mesa HostMot2 driver version 0.15
[25221.414544] hm2_pci: loading Mesa AnyIO HostMot2 driver version 0.7
[25221.414595] hm2_pci: discovered 5i25 at 0000:00:0b.0
[25221.415621] hm2/hm2_5i25.0: Smart Serial Firmware Version 43
[25221.472789] Board hm2_5i25.0.7i77.0.0 Hardware Mode 0 = standard
[25221.475493] Board hm2_5i25.0.7i77.0.0 Software Mode 0 = input_output
[25221.477958] Board hm2_5i25.0.7i77.0.0 Software Mode 1 = io_analog
[25221.482688] Board hm2_5i25.0.7i77.0.0 Software Mode 2 = io_analog_fieldvoltage
[25221.487959] Board hm2_5i25.0.7i77.0.0 Software Mode 3 = io_encoder_analog_fieldvoltage
[25221.585693] Board hm2_5i25.0.7i77.0.1 Hardware Mode 0 = standard
[25221.588245] Board hm2_5i25.0.7i77.0.1 Software Mode 0 = analogout_enables
[25221.689542] hm2/hm2_5i25.0: Smart Serial Firmware Version 43
[25221.746079] Board hm2_5i25.0.7i70.1.0 Hardware Mode 0 = standard
[25221.748387] Board hm2_5i25.0.7i70.1.0 Software Mode 0 = input_only
[25221.750572] Board hm2_5i25.0.7i70.1.0 Software Mode 1 = input_analog
[25221.753255] Board hm2_5i25.0.7i70.1.0 Software Mode 2 = input_fieldvoltage
[25221.810238] Board hm2_5i25.0.7i71.1.2 Hardware Mode 0 = standard
[25221.812869] Board hm2_5i25.0.7i71.1.2 Software Mode 0 = output_only
[25221.817078] Board hm2_5i25.0.7i71.1.2 Software Mode 1 = output_fieldvoltage
[25221.893472] hm2/hm2_5i25.0: 34 I/O Pins used:
[25221.893478] hm2/hm2_5i25.0: IO Pin 000 (P3-01): IOPort
[25221.893481] hm2/hm2_5i25.0: IO Pin 001 (P3-14): IOPort
[25221.893484] hm2/hm2_5i25.0: IO Pin 002 (P3-02): IOPort
[25221.893488] hm2/hm2_5i25.0: IO Pin 003 (P3-15): Smart Serial Interface #0, pin TxData1 (Output)
[25221.893492] hm2/hm2_5i25.0: IO Pin 004 (P3-03): Smart Serial Interface #0, pin RxData1 (Input)
[25221.893496] hm2/hm2_5i25.0: IO Pin 005 (P3-16): Smart Serial Interface #0, pin TxData0 (Output)
[25221.893499] hm2/hm2_5i25.0: IO Pin 006 (P3-04): Smart Serial Interface #0, pin RxData0 (Input)
[25221.893504] hm2/hm2_5i25.0: IO Pin 007 (P3-17): Muxed Encoder Select #0, pin Mux Select 0 (Output)
[25221.893507] hm2/hm2_5i25.0: IO Pin 008 (P3-05): Muxed Encoder #0, pin Muxed A (Input)
[25221.893534] hm2/hm2_5i25.0: IO Pin 009 (P3-06): Muxed Encoder #0, pin Muxed B (Input)
[25221.893539] hm2/hm2_5i25.0: IO Pin 010 (P3-07): Muxed Encoder #0, pin Muxed Index (Input)
[25221.893542] hm2/hm2_5i25.0: IO Pin 011 (P3-08): Muxed Encoder #1, pin Muxed A (Input)
[25221.893546] hm2/hm2_5i25.0: IO Pin 012 (P3-09): Muxed Encoder #1, pin Muxed B (Input)
[25221.893550] hm2/hm2_5i25.0: IO Pin 013 (P3-10): Muxed Encoder #1, pin Muxed Index (Input)
[25221.893554] hm2/hm2_5i25.0: IO Pin 014 (P3-11): Muxed Encoder #2, pin Muxed A (Input)
[25221.893557] hm2/hm2_5i25.0: IO Pin 015 (P3-12): Muxed Encoder #2, pin Muxed B (Input)
[25221.893561] hm2/hm2_5i25.0: IO Pin 016 (P3-13): Muxed Encoder #2, pin Muxed Index (Input)
[25221.893565] hm2/hm2_5i25.0: IO Pin 017 (P2-01): Smart Serial Interface #1, pin RxData0 (Input)
[25221.893568] hm2/hm2_5i25.0: IO Pin 018 (P2-14): IOPort
[25221.893572] hm2/hm2_5i25.0: IO Pin 019 (P2-02): Smart Serial Interface #1, pin RxData2 (Input)
[25221.893575] hm2/hm2_5i25.0: IO Pin 020 (P2-15): IOPort
[25221.893578] hm2/hm2_5i25.0: IO Pin 021 (P2-03): Smart Serial Interface #1, pin TxData0 (Output)
[25221.893582] hm2/hm2_5i25.0: IO Pin 022 (P2-16): IOPort
[25221.893585] hm2/hm2_5i25.0: IO Pin 023 (P2-04): Smart Serial Interface #1, pin TxData2 (Output)
[25221.893588] hm2/hm2_5i25.0: IO Pin 024 (P2-17): IOPort
[25221.893591] hm2/hm2_5i25.0: IO Pin 025 (P2-05): IOPort
[25221.893594] hm2/hm2_5i25.0: IO Pin 026 (P2-06): IOPort
[25221.893597] hm2/hm2_5i25.0: IO Pin 027 (P2-07): IOPort
[25221.893600] hm2/hm2_5i25.0: IO Pin 028 (P2-08): IOPort
[25221.893603] hm2/hm2_5i25.0: IO Pin 029 (P2-09): IOPort
[25221.893605] hm2/hm2_5i25.0: IO Pin 030 (P2-10): IOPort
[25221.893608] hm2/hm2_5i25.0: IO Pin 031 (P2-11): IOPort
[25221.893611] hm2/hm2_5i25.0: IO Pin 032 (P2-12): IOPort
[25221.893614] hm2/hm2_5i25.0: IO Pin 033 (P2-13): IOPort
[25221.893822] hm2/hm2_5i25.0: registered
[25221.893826] hm2_5i25.0: initialized AnyIO board at 0000:00:0b.0


Looks like a firmware issue?

I attached the HAl and ini files.

This is just a startup from ppncconf.
Attachments:
Last edit: 21 Jan 2017 05:25 by bevins.

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

More
21 Jan 2017 15:20 #86356 by tommylight

Tommy, you running 2.8 pre?


Yes i am. Although i shoud be running 2.7.8 but i am going to need joint axis as the machine has a long X and a short X axis on top of the long one, so basicaly it is a 3 axis mill on top of a long axis. Gona have to figure out how to make that as a single x axis later on.
Tomorrow the encoders and brakes and motors are on the to do list. More fun for sure.


You using both ports on your 5i25? Can you put use_serial_numbers=1 after your loadrt hostmot2 and see if it gets past the loadrt hm2_pci?


Found the problem!
Adding that line to hostmot2 will couse Linuxcnc to not start giving an error about invalid parameters, but it complains on hal line 9 , and the line is added to line 8, so there are other parameters inside the loadrt hm2_pci that are causing the problem, namely they need other addresses to be added there, i suppose the serial numbers that Andy mentioned somewhere, and the existing sserial has to be changed to actual hardware numbers.

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

More
21 Jan 2017 15:26 - 21 Jan 2017 15:29 #86357 by bevins
Replied by bevins on topic Biesse Rover 346 Retrofit

Tommy, you running 2.8 pre?


Yes i am. Although i shoud be running 2.7.8 but i am going to need joint axis as the machine has a long X and a short X axis on top of the long one, so basicaly it is a 3 axis mill on top of a long axis. Gona have to figure out how to make that as a single x axis later on.
Tomorrow the encoders and brakes and motors are on the to do list. More fun for sure.


You using both ports on your 5i25? Can you put use_serial_numbers=1 after your loadrt hostmot2 and see if it gets past the loadrt hm2_pci?


Found the problem!
Adding that line to hostmot2 will couse Linuxcnc to not start giving an error about invalid parameters, but it complains on hal line 9 , and the line is added to line 8, so there are other parameters inside the loadrt hm2_pci that are causing the problem, namely they need other addresses to be added there, i suppose the serial numbers that Andy mentioned somewhere, and the existing sserial has to be changed to actual hardware numbers.


So you were able to recreate the issue.....
Type dmesg in a terminal and see if you have the errors I got. I am worried about it.

This is the message I am worried about, even when I remove the use serial, this shows up in dmesg.
biut Linuxcnc starts though.

[26365.472179] HAL: ERROR: duplicate parameter 'hm2_7i77.02ac.swrevision'
[26365.472187] hm2/hm2_5i25.0: Out of memory
Last edit: 21 Jan 2017 15:29 by bevins.

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

More
21 Jan 2017 15:34 #86359 by tommylight
I get the same thing.
Attached linuxcnc errors.
Attachments:

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

More
21 Jan 2017 15:36 #86360 by bevins
Replied by bevins on topic Biesse Rover 346 Retrofit

Tommy, you running 2.8 pre?


Yes i am. Although i shoud be running 2.7.8 but i am going to need joint axis as the machine has a long X and a short X axis on top of the long one, so basicaly it is a 3 axis mill on top of a long axis. Gona have to figure out how to make that as a single x axis later on.
Tomorrow the encoders and brakes and motors are on the to do list. More fun for sure.


You using both ports on your 5i25? Can you put use_serial_numbers=1 after your loadrt hostmot2 and see if it gets past the loadrt hm2_pci?


Found the problem!
Adding that line to hostmot2 will couse Linuxcnc to not start giving an error about invalid parameters, but it complains on hal line 9 , and the line is added to line 8, so there are other parameters inside the loadrt hm2_pci that are causing the problem, namely they need other addresses to be added there, i suppose the serial numbers that Andy mentioned somewhere, and the existing sserial has to be changed to actual hardware numbers.


When it loads the use_serial_numbers=1, then it should get the serial numbers of the boards and use that number scheme. So is it the firmware or the component for hostmot?

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

More
21 Jan 2017 15:39 - 21 Jan 2017 15:52 #86361 by PCW
Replied by PCW on topic Biesse Rover 346 Retrofit
This appears to be a 7I77/use_serlal_numbers bug

This is because the 7I77 is "funny" and names both the analog and digital parts "7I77"
and because the use_serial_numbers option only uses the last 4 digits of the serial number,
(and the last 4 digits are the same on the analog and digital parts of a 7I77)
you end up with a name collision on the firmware -revision

Workarounds are:

1. Dont use serial numbers with 7I77s
2. change the last 4 digits of one of the 7I77s SNs

Possible driver patches

1. Use complete serial number
2. Use last 3 digits of serial number + 1 digit that's a hash of the first 4 digits
Last edit: 21 Jan 2017 15:52 by PCW.

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

More
21 Jan 2017 15:54 - 21 Jan 2017 15:55 #86363 by bevins
Replied by bevins on topic Biesse Rover 346 Retrofit

This appears to be a 7I77/use_serlal_numbers bug

This is because the 7I77 is "funny" and names both the analog and digital parts "7I77"
and because the use_serial_numbers option only uses the last 4 digits of the serial number,
(and the last 4 digits are the same on the analog and digital parts of a 7I77)
you end up with a name collision on the firmware -revision

Workarounds are:

1. Dont use serial numbers with 7I77s
2. change the last 4 digits of one of the 7I77s SNs

Possible driver patches

1. Use complete serial number
2. Use last 3 digits of serial number + 1 digit that's a hash of the first 4 digits



PCW:

I am getting this in dmesg when not using "use_serial_numbers"

[25148.393730] HAL: ERROR: duplicate parameter 'hm2_7i77.02ac.swrevision'
[25148.393735] hm2/hm2_5i25.0: Out of memory
[25148.393739] hm2/hm2_5i25.0: Failed to create parameters for device hm2_7i77.02ac
[25148.393743] hm2/hm2_5i25.0: Failed to read/setup the globals on hm2_7i77.02ac
[25148.393748] hm2/hm2_5i25.0: Remote setup failure on instance 0
[25148.393753] hm2/hm2_5i25.0: failed to parse Module Descriptor 4
[25148.393762] hm2_5i25.0: board fails HM2 registration
[25148.393802] hm2_pci: probe of 0000:00:0b.0 failed with error -22

Linuxcnc does start but I am worried about these messages.
Last edit: 21 Jan 2017 15:55 by bevins.

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

Time to create page: 0.106 seconds
Powered by Kunena Forum