Running config without 7i92
- daiman444
- Offline
- Senior Member
Less
More
- Posts: 44
- Thank you received: 8
17 Aug 2022 10:13 #249944
by daiman444
Running config without 7i92 was created by daiman444
I salute you. I wanted to know if it is possible to run the linuxcnc config for 7i92 without the board itself?
The goal is to edit the config and its settings on a virtual machine or on another PC, but the 7i92 config won't run without a fee.
Option 1: create a clone of the config but for lpt.
Option 2 to comment out all calls to hostmot and hm2_7i92.
But both of these options entail obvious problems when porting to a working machine: renaming pins for hm2_7i92 and so on.
I'm not good at English and most likely that's why I couldn't find a topic with similar questions by searching.
I will be glad for any useful information
The goal is to edit the config and its settings on a virtual machine or on another PC, but the 7i92 config won't run without a fee.
Option 1: create a clone of the config but for lpt.
Option 2 to comment out all calls to hostmot and hm2_7i92.
But both of these options entail obvious problems when porting to a working machine: renaming pins for hm2_7i92 and so on.
I'm not good at English and most likely that's why I couldn't find a topic with similar questions by searching.
I will be glad for any useful information
Please Log in or Create an account to join the conversation.
- tommylight
- Away
- Moderator
Less
More
- Posts: 19471
- Thank you received: 6530
01 Sep 2022 10:20 #250912
by tommylight
Replied by tommylight on topic Running config without 7i92
If you want to test the gcode and check if it runs properly, then yes, just run any of the included configs in the "sim" section of the LinuxCNC config picker (the thing that opens when you start LinuxCNC).
Making a hardware sim is not very useful as the pins would need changing to simulated ones, that entails editing the hal file back and forth any time you want to test on real hardware.
It might work by pointing the ini file to different hal files, but that again is not the same as the changes made to the sim hal would have to be done in the hardware hal file.
Sorry but having a hard time finding any valid reason for running a hardware sim. You do need the hardware attached when testing changes, so .....
Making a hardware sim is not very useful as the pins would need changing to simulated ones, that entails editing the hal file back and forth any time you want to test on real hardware.
It might work by pointing the ini file to different hal files, but that again is not the same as the changes made to the sim hal would have to be done in the hardware hal file.
Sorry but having a hard time finding any valid reason for running a hardware sim. You do need the hardware attached when testing changes, so .....
The following user(s) said Thank You: daiman444
Please Log in or Create an account to join the conversation.
- daiman444
- Offline
- Senior Member
Less
More
- Posts: 44
- Thank you received: 8
03 Oct 2022 14:17 #253350
by daiman444
Replied by daiman444 on topic Running config without 7i92
Thank you for your reply.
During working hours, for example, it is not possible to make any changes to the configuration of the machine and the interface. But at home on a virtual machine, you can easily do this: for example, adjust the glade panel, or completely draw it, or something similar from tasks. In the current state of affairs, you have to write everything on sim or for lpt, as a result of which the integration hung for almost a month, because during working hours the machine works and there is no way to stand rewriting in the machine. In configs with lpt, after all, this is possible: just ctrl + c, ctrl + v with some minor debugging on the go
During working hours, for example, it is not possible to make any changes to the configuration of the machine and the interface. But at home on a virtual machine, you can easily do this: for example, adjust the glade panel, or completely draw it, or something similar from tasks. In the current state of affairs, you have to write everything on sim or for lpt, as a result of which the integration hung for almost a month, because during working hours the machine works and there is no way to stand rewriting in the machine. In configs with lpt, after all, this is possible: just ctrl + c, ctrl + v with some minor debugging on the go
Please Log in or Create an account to join the conversation.
- Todd Zuercher
- Offline
- Platinum Member
Less
More
- Posts: 4957
- Thank you received: 1441
03 Oct 2022 14:51 #253351
by Todd Zuercher
Replied by Todd Zuercher on topic Running config without 7i92
Developing a user interface or other software away from a real machine can be tricky (but not impossible.) There can be so many safety and hardware inputs and outputs that you must simulate or subvert in someway to do the testing away from the real hardware, that it can be difficult or impossible to be sure that your changes will work correctly at the real machine.
The following user(s) said Thank You: tommylight
Please Log in or Create an account to join the conversation.
- eslavko
- Offline
- Elite Member
Less
More
- Posts: 267
- Thank you received: 4
07 Oct 2022 09:04 #253659
by eslavko
Replied by eslavko on topic Running config without 7i92
I have similar situation.
The hardware (will be) on remote location.
I need specific GUI to make learn/reply motion (the G code is self written on learn phase and then replyed at run phase) and at hardware location is cold, loud, and 1km away from office.
So after 1st build and bench test I will have no hardware in office, but updates will be needed.
So I need to simulate 4 servos and just few switches.
Is it possible to fake mesa card with some python code? I can catch UDP ethernet frames with python so I assume it's possible to have fake hardware.
The hardware (will be) on remote location.
I need specific GUI to make learn/reply motion (the G code is self written on learn phase and then replyed at run phase) and at hardware location is cold, loud, and 1km away from office.
So after 1st build and bench test I will have no hardware in office, but updates will be needed.
So I need to simulate 4 servos and just few switches.
Is it possible to fake mesa card with some python code? I can catch UDP ethernet frames with python so I assume it's possible to have fake hardware.
The following user(s) said Thank You: daiman444
Please Log in or Create an account to join the conversation.
- eslavko
- Offline
- Elite Member
Less
More
- Posts: 267
- Thank you received: 4
07 Oct 2022 09:10 #253660
by eslavko
Replied by eslavko on topic Running config without 7i92
Is there some information how ethernet communication is done? Capturing frames should be easy but decoding them is not.
Please Log in or Create an account to join the conversation.
- macsddau@linuxcnc
- Offline
- Premium Member
Less
More
- Posts: 142
- Thank you received: 28
07 Oct 2022 10:23 #253666
by macsddau@linuxcnc
Replied by macsddau@linuxcnc on topic Running config without 7i92
For testing my router without being connected to it I create a specific postgui hal file where I disconnect signals from hardware pins (unlinkp) and set signals to a fixed appropriate value (sets). This methode may be adapted to your configuration.
The following user(s) said Thank You: tommylight
Please Log in or Create an account to join the conversation.
- eslavko
- Offline
- Elite Member
Less
More
- Posts: 267
- Thank you received: 4
07 Oct 2022 11:16 #253669
by eslavko
But this to work I think commenting all loadrt, addf, setp (with mesa hardware) is necessary too.
For feedbacks then even simple python userspace module can be made ...
Not so bad, but every time upgrade is made the hal file need to be edited.
Replied by eslavko on topic Running config without 7i92
Nice idea.For testing my router without being connected to it I create a specific postgui hal file where I disconnect signals from hardware pins (unlinkp) and set signals to a fixed appropriate value (sets). This methode may be adapted to your configuration.
But this to work I think commenting all loadrt, addf, setp (with mesa hardware) is necessary too.
For feedbacks then even simple python userspace module can be made ...
Not so bad, but every time upgrade is made the hal file need to be edited.
Please Log in or Create an account to join the conversation.
- daiman444
- Offline
- Senior Member
Less
More
- Posts: 44
- Thank you received: 8
07 Oct 2022 11:51 #253673
by daiman444
Replied by daiman444 on topic Running config without 7i92
there was some activity in the discussion.
all options are workable and are used here or there, but these are huge crutches. The config setup for LPT works fine without LPT even in a virtual machine, even on any laptop.
all options are workable and are used here or there, but these are huge crutches. The config setup for LPT works fine without LPT even in a virtual machine, even on any laptop.
Please Log in or Create an account to join the conversation.
- Todd Zuercher
- Offline
- Platinum Member
Less
More
- Posts: 4957
- Thank you received: 1441
07 Oct 2022 12:19 - 07 Oct 2022 12:20 #253680
by Todd Zuercher
Replied by Todd Zuercher on topic Running config without 7i92
It would be simpler to build a simular simulation config that doesn't use the mesa hardware drivers at all (such as a parallel port simulation config). There already ready are hal components specifically for simulating a parallel port config, and I think they also have the capability of using faux pin names that can directly replace and work in the original configuration. It might not take much to either press that simulation component into service simulating Mesa hardware, or to use it as a template for writing a new hal component that can.
Still it isn't a small or completely simple task to write a fully functional simulation. Probably an order of magnitude greater difficulty than writing the original machine config.
Still it isn't a small or completely simple task to write a fully functional simulation. Probably an order of magnitude greater difficulty than writing the original machine config.
Last edit: 07 Oct 2022 12:20 by Todd Zuercher.
The following user(s) said Thank You: daiman444
Please Log in or Create an account to join the conversation.
Time to create page: 0.077 seconds