(Solved) SetSSerial not holding the values (mesa 7i84)

More
23 Nov 2021 22:20 - 24 Nov 2021 23:28 #227438 by HeronG
My mpg is 25 ppr and 7i84 serial cards are 100 ppr, so I need to modify something to change it to 4x.
I followed the man setsserial page, and it went without any errors (I think).  I tried changing nvencmode0 to 4 and encmode to 4, one at a time, both of them RO on “show param”.
Reply was:
Remote name = hm2_7i84.02a6 ParamAddr = 998 Value = 4
Setup start: data_reg readback = 0
Buff = ec000000
Buff = ec000000
Parameter setting success 

But it did not changed anything.
I did miss this part of the man “The parameter changes will not show up until the drivers are reloaded. //TODO// Add a "get" command to avoid this problem.”
My brain was unable to process this information.
I am at a loss, and this is my cry for help:

In 1972, a crack Linuxcnc commando was sent to prison by a Debian court for a HalComponent they didn't write. These men promptly escaped from a maximum security stockade to the LinuxCNCForum. Today, still wanted by the government they survive as soldiers of fortune. If you have a problem, if no one else can help, and if you can find them....maybe I will have my MPG working fine.


FIXED: PCW has update the SSerial BIT file. Link: www.mesanet.com/software/parallel/sserial.tgz
             To flash 7i84
             Move the jumper closer to the power terminal and restart the board by a power cycle
             Than move the bit file to lib/firmware/hm2/7i84/7i84R15.BIT
             Now run the following commands. (It may vary a bit, check "man setsserial")
             halrun
             loadrt hostmot2 sserial_baudrate=115200
             loadrt hm2_eth board_ip="192.168.1.121"
             loadrt setsserial cmd="flash hm2_7i76e.0.7i84.0.0 hm2/7i84/7I84R15.BIN"
             exit
             Power cycle the 7i84 and move the jumber back, you are done.
 
Last edit: 24 Nov 2021 23:28 by HeronG.

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

More
23 Nov 2021 22:53 #227442 by andypugh
Have you tried power-cycling the 7i84 and re-starting LinuxCNC? I believe that is required tomake the change active.

However the docs for the 7i84 say:
"Default counter mode is 1X for compatibility with standard 100 PPR MPGs."

So maybe 1 is correct for your use?

However, see:
github.com/LinuxCNC/linuxcnc/commit/d92f...7dda8bb93d60e8b2f67f

Specifically
"
The only way to change settings on the smart-serial remotes is currently
with setsserial. This makes some sense with non-volatile parameters, but
is not useful for (for example) changing the position scale on a servo
drive.
This commit makes all smart-serial remote parameters visible
to HAL and settable using the normal "setp" command (the "setsserial
utility is no longer required for this)
Parameter changes only take place when the associated smart-serial port
transitions from the "stopped" to "run" state."

So you should just be able to
halcmd setp hm2_....7i84.0.1.nvencmode 4
halcmd setp hm2_....sserial.port.0.run 0
halcmd setp hm2_....sserial.port.0.run 1
to make the change.

Even the setsserial manpage says much the same thing "NOTE: This rather clunky utility is no longer needed except for flashing new smart-serial remote firmware. Smart-serial remote parameters can now be set in the HAL file in the normal way."
The following user(s) said Thank You: HeronG

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

More
23 Nov 2021 23:01 #227446 by tommylight
That was quick, by the time i got to read this Andy was already here!
The last part = The A Team !
Moved to "driver boards".
The following user(s) said Thank You: HeronG

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

More
24 Nov 2021 00:05 #227458 by HeronG
I have fixed that mess that was my post.
The parameter is read only.
I was surprised that it was not RW
(u32 ro) .7i84.0.1.nvencmode0
My encoder is 25PPR and it needs 4x
I will fire up ISE and see if I can find something there. But I am open to all ideas.
I even tried to restart using mesaflash.

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

More
24 Nov 2021 00:14 #227459 by andypugh
is there an "encmode" without the "nv"?

Which version of LinuxCNC are you using?

I have a 7i84, and I wrote the setsserial utility and the smart-serial driver, so I am fairly sure that I can figure this out for you :-)
The following user(s) said Thank You: HeronG

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

More
24 Nov 2021 12:20 - 24 Nov 2021 12:20 #227498 by HeronG
Sorry it took me a bit long to answer.
I am using the debian 10 2.8.2
Yes, encmode0 and nvencmode0 booth RO.
Maybe I can help fixit. With some pointers!
Attachments:
Last edit: 24 Nov 2021 12:20 by HeronG.

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

More
24 Nov 2021 15:46 #227504 by PCW
You would need to upgrade the firmware on the 7I84
Version 14 has a bug that the encmodes are RO rather than RW
Fixed in version 15
The following user(s) said Thank You: HeronG

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

More
24 Nov 2021 17:20 - 24 Nov 2021 17:35 #227512 by HeronG
Thanks for the tip Peter. I suppose you are the goat of LinuxCNC.

But I can find the 7i84r15 anywhere. Can you share the file/link with me?

FORGET IT!
​​​​​​​Link : www.mesanet.com/software/parallel/sserial.tgz
Last edit: 24 Nov 2021 17:35 by HeronG.

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

More
24 Nov 2021 18:44 - 24 Nov 2021 18:44 #227518 by HeronG
I have updated to R15. But it is still RO.
If you guys have any more ideas I am all ears.
Thank you guys for trying with me.
Attachments:
Last edit: 24 Nov 2021 18:44 by HeronG.

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

More
24 Nov 2021 18:45 - 24 Nov 2021 18:55 #227519 by PCW
Note that the 7I69, 7I76 and 7I84 firmware labeled R14 in that archive are actually R15
( so the same scripts can be used for all updates)

EDIT ok Looks the the 7I84 only got 1/2 updated I'll try and fix this today
Last edit: 24 Nov 2021 18:55 by PCW.

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

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