5i25 + 7i77 + 7i64

More
24 Jul 2012 13:40 #22396 by cmorley
Replied by cmorley on topic Re:5i25 + 7i77 + 7i64
The biggest drawback I see for using a running system to have PNCconf interrogate for information is that means the person must know how to get it running first!
The second is that PNCconf needs context about a component as much as the components pin name.
The is no sense knowing a new 'micrwave' component is named microwave.0.output with out knowing that the power levels are 0 -10 and time is in jiffies.
for instance the sserial encoders are named differently but also so far don't have the same options as regular hostmot2 encoders. Then there is the 7i64 which uses pinnames unlike any other hostmot2 board.
PNCconf tries to hide those details while you are configuring - you can see them in the HAL file later.

Having an XML file that includes the sserial cards is not impossible but again then it means a whole ton of different XML files floating around.
The problem right now is the XML file is only made if you use the linuxcnc hostmot2 compiling software. When this was created, I thought the idea was to continue to offer new official 'common' firmwares. It hasn't happened and so I am kinda stuck with description file that needs to be hand made all the time.

Anyways for the 12.04 version of linuxcnc I probably have to redo things so it is good to look at better ways of user presentation.

Gotta go to work - have a great day or night
Chris M

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

More
24 Jul 2012 13:47 #22398 by andypugh
Replied by andypugh on topic Re:5i25 + 7i77 + 7i64
cmorley wrote:

The problem right now is the XML file is only made if you use the linuxcnc hostmot2 compiling software. When this was created, I thought the idea was to continue to offer new official 'common' firmwares. It hasn't happened and so I am kinda stuck with description file that needs to be hand made all the time.


I am not at all sure what is going on there. I think that that firmware set has an outmoded sserial version, for example, which causes some problems.

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

More
24 Jul 2012 14:57 #22403 by PCW
Replied by PCW on topic Re:5i25 + 7i77 + 7i64
Heres my take on this:

The biggest drawback I see for using a running system to have PNCconf interrogate for information is that means the person must know how to get it running first!
The second is that PNCconf needs context about a component as much as the components pin name.


Its easy to interrogate the system for available pins and parameters (a 2 line HAL file is all thats required). Getting the HostMot2 pinout in a useable form is a little harder but doable (dmesg has it already).

The is no sense knowing a new 'micrwave' component is named microwave.0.output with out knowing that the power levels are 0 -10 and time is in jiffies.
for instance the sserial encoders are named differently but also so far don't have the same options as regular hostmot2 encoders. Then there is the 7i64 which uses pinnames unlike any other hostmot2 board.
PNCconf tries to hide those details while you are configuring - you can see them in the HAL file later.


Well for standard Hostmot2 components scale and units are known, on sserial, things are easier as scale is known and available from parameters, units are not currently exported from the driver but are available to it.

Having an XML file that includes the sserial cards is not impossible but again then it means a whole ton of different XML files floating around.
The problem right now is the XML file is only made if you use the linuxcnc hostmot2 compiling software. When this was created, I thought the idea was to continue to offer new official 'common' firmwares. It hasn't happened and so I am kinda stuck with description file that needs to be hand made all the time.


Thats what I have been saying, rather than 100s of XML files, the user only needs one, the one that matches his configuration. IMHO this is best generated dynamically from the current users hardware setup.

The philosopy of HostMot2 firmware and driver has always been that _any_ combination of features should _just work_. This is how the driver works, it does not care about the specific pinout or set of available modules, it does not need auxillary desciption files, it just discovers whats there and works with what it has.
There has never been a bias towards "common" bitfiles as all bitfiles should work the same
the only real limit being what the user needs, FPGA space, and daughterboard pinout constraints.

Anyways for the 12.04 version of linuxcnc I probably have to redo things so it is good to look at better ways of user presentation.

Gotta go to work - have a great day or night
Chris M


I think pncconf has been a great boon for people overwhelmed by LinuxCNC configuration complexity and I thank you for the huge amout of work you have put into it.

I do think it can be structured so that new boards and firmware are more automatically accomodated so there is not endless tweaking of XML files

There may be some driver/ firmare changes possible to make this easier as well

(one thing I am adding to HostMot2 is daughterboard hints so the firmware knows the appropriate daughterboard type(s))

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

More
25 Jul 2012 00:39 #22424 by cmorley
Replied by cmorley on topic Re:5i25 + 7i77 + 7i64
well when you say hostmot2 'just works' your kinda missing a step. While the hardware always has 'just worked',
Working hardware and configured to do something with linuxcnc is two different things.

for the hardware to work (depends what you mean by work) it doesn't need to know scale, units, parameters etc but to do useful stuff in linuxcnc you sure do.
And with sserial cards there is now no way to predict how to use the components beside getting a unit and testing.
What I am getting at is that even if PNCconf can get the pin names and parameters unless it knows how to set the parameters you still can't configure the system. live interrogating is not the be all end all :)

But.. I am certainly not against trying it and seeing. Maybe my reservations are not as bad as I think.
Does anyone have code for pulling info from the boards?
The following user(s) said Thank You: gandalf69

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

More
25 Jul 2012 01:43 #22427 by BruceLayne
Replied by BruceLayne on topic Re:5i25 + 7i77 + 7i64
I tried, but the recommended procedure does eliminate the second 7i77, but the 7i64 doesn't show up anywhere in PNCconf that I can see. Here are the various tab screens I get when I set encoders to 6 and sserial channels to 3:

Oops! I can't get this forum to upload images. It worked last night, but tonight all it does is place a blank IMG tag and nothing uploads. I don't have an FTP client on this CNC PC, and don't feel like installing one, so the best I can do is take the screen shot images home and see if I can upload them from there, or put them on my server and provide embedded links. Anyway, trust me, the 7i77 tabs are there (I/O Connector 2, I/O Connector 3, Smart Serial 0, and Smart Serial 1) but there are no tabs for the 7i64.

I thought I had the latest LinuxCNC build, but Update Manager said otherwise. Apparently there was a new build in the last week or so. I used Update Manager to fetch linuxcnc and linuxcnc-doc from buildbot and install it. No good. Same results.

I even pretended like it was a Windows computer and rebooted it. :)

I tried renaming the PNCconf config file with a .bak extension so it would force it to create a new configuration, in case there was something in the existing configuration that was confusing PNCconf, but it still showed the tabs for one 7i77 and no 7i76.

I can Launch Test Panel and it looks like it sees all of the 7i64 and 7i77 pins. Example: hm2_5i25.0.7i62.0.2.adcin.01.in shows up in the HAL Meter as 2.949xxx. The two analog inputs aren't connected to anything and the ADC is sampling noise, so the last three digits are fluctuating. The 00 analog input is 2.944xxx.

I don't know if it's significant, but before and after today's LinuxCNC update, PNCconf produces the following errors in the terminal about halfway through its startup.

/usr/bin/pncconf:3999: Warning: g_path_get_dirname: assertion `file_name != NULL' failed
self.xml = gtk.glade.xml_new_from_buffer(doc, len(doc), domain="linuxcnc")
/usr/bin/pncconf:3999: GtkWarning: gdk_pixbuf_new_from_file: assertion `filename != NULL' failed
self.xml = gtk.glade.xml_new_from_buffer(doc, len(doc), domain="linuxcnc")
/usr/bin/pncconf:3999: Warning: g_object_unref: assertion `G_IS_OBJECT (object)' failed
self.xml = gtk.glade.xml_new_from_buffer(doc, len(doc), domain="linuxcnc")
/home/beast/Desktop/custom_firmware/firmware.py

Still trying to get the 7i64 to configure in PNCconf. Based on the pins that are available in the Test Panel, it looks like the hardware is being seen, and it's active, but PNCconf won't provide any tabs for the 7i64.

Help me Obi Wan. You're my only hope.


PS - I tried to exit from the HAL Test Pad and send this post, and everything locked up solid. I couldn't even pull up another Linux command line window. The PC's reset button wouldn't work. I was forced to pull the plug and crash it. I guess misbehaving realtime operating systems can crash hard. When I rebooted, my post was still in Firefox.
Sweet.

:laugh:
Attachments:

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

More
25 Jul 2012 01:45 #22428 by BruceLayne
Replied by BruceLayne on topic Re:5i25 + 7i77 + 7i64
Looks like the first screen shot went through. Here's a second.
Attachments:

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

More
25 Jul 2012 01:46 #22429 by BruceLayne
Replied by BruceLayne on topic Re:5i25 + 7i77 + 7i64
I can only post one image per post?
Attachments:

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

More
25 Jul 2012 01:47 #22430 by BruceLayne
Replied by BruceLayne on topic Re:5i25 + 7i77 + 7i64
My post count is loving this.
Attachments:

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

More
25 Jul 2012 01:47 - 25 Jul 2012 01:51 #22431 by BruceLayne
Replied by BruceLayne on topic Re:5i25 + 7i77 + 7i64
Almost finished.


Attachments:
Last edit: 25 Jul 2012 01:51 by BruceLayne.

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

More
25 Jul 2012 01:49 - 25 Jul 2012 01:51 #22432 by BruceLayne
Replied by BruceLayne on topic Re:5i25 + 7i77 + 7i64
Last tab screen shot. You should be able to right click and view image to see them full size.


Attachments:
Last edit: 25 Jul 2012 01:51 by BruceLayne.

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

Moderators: cmorley
Time to create page: 0.176 seconds
Powered by Kunena Forum