Hal2Arduino

More
11 years 8 months ago #55795 by barjunk
Replied by barjunk on topic Hal2Arduino
Thanks for at least taking a look at it.

I have run this from a terminal but none of those print statements actually show. It is possible they don't show because the user module goes into its own process(s).

You can see I added some print to file type statements, but the file doesn't seem to get the data either.

It seems like for some reason, the data isn't actually getting processed by the user module at all, although the 'debug.txt' file i have in there does get created.

I have reached out to the Hal2arduino forum and will continue to do so.

Can you point me to some documentation on writing my own user module? I've been through a good deal of the documentation on this site, but just can't seem to find anything around this particular subject.

My main goal was to try and get information on how to debug a loaded user module....any loaded user module...so I can try and debug the issue I have.

Thanks for taking your time to look at it.

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

More
11 years 8 months ago #55801 by barjunk
Replied by barjunk on topic Hal2Arduino
After reaching out to the folks on the forum at emc2arduino.wordpress.com/category/hal2arduino/ , the software was updated to version 0.6d. It can be found here: drive.google.com/folderview?id=0Bw8NV8qo...3NVdvMUE&usp=sharing

This works for me.

Thanks for at least looking at things and providing some suggestions.

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

More
2 years 2 months ago #307077 by tjtr33
Replied by tjtr33 on topic Hal2Arduino
Hit
the google drive link requires an invutation
but for those interested ,
the project was a python2 suite
and so is complex to use with a recent linuxcnc

today is -6aug2024 and
i had looked into the project
as i was wiriting a way to use arduino
ide compatible bpards for extra io

extra io is not the central use of hal2arduino/emc2arduino
so i am bot investigating firther
but
for those interested
here are notes and file
for a python3 version-
notes below vvv
Hal2Aeduino-notes.txt
06aug2024
Tom Powderly tjtr33
i was working on arduino io subsystem
for emc
( i am dictating this so it has lees typos than i genetrate :-)

I came across Hal2Arduino/EMC2Aeduinoi thought it was a
similar solution that would allow boards compatible with the
arduino ide to be used with linuxcnc

well it does do that
but
does not enable all the io possible...

ppre-reqs
The pcb must hacve serial communications,
usb is hanbdies
tBoard must use the prescrobed protocl
( simpler than jepler's arduuino prorocol)

To discover what Hal2Aeduino could do,
i rewrote the main script for python3
(it was py2 and lib call and prints and range(,,,)
re different)( each change is noted )

and I offer it untested to anyone interested
( the comp ran enough for me to see it was not my path

in general
there are a lot of messages that could be passedfrom
linuxcnc to the arduino board

these messages are likethe nml message...
and are not useful for my project
others may find them useful

it took me a long time to discover
what this system actually did

i suggest for anyone interested can,
study instruction.txt
      &the top of the main python file
      & the contents of the .ino file
      
    Hal2Arduino it does not give access to all i/o pins
     of the arduino ( DI DO AI AO PwmO as i refere to them)
     Communicating those data is central to my project
    So I stop working with Hal2Arduino
    

   for anyone wanting to try it with python3
    here is the up converted file.
    
  note
   the code to discover the active
    serial ports
    that are connected to active arduino type boards
    is interesting in i think i will use it
    
   that code makes a list of all active
    serial ports
     and sens a special message to whatever is connected
     it's the connected board replies to the secret handshake
     then it is added to a list  of connected arduinos
     arduinos  here meaning a board compatible with the arduino id
      basically meaning a board capable of cereal communications
      
  i hope this could be of use choose some users
  tomp tjtr33
   
NB rebane P3HAL2Arduino.tx to P3Hal2Arduino ( noi extent)
make it executable
place in your $PATH
(i put it in .usr.local.bin)

I adfjusted the .ha; for ythe new comp name

find remaining files at Kurt Jacxobson's github
github.com/KurtJacobson/HAL-2-Arduino
The following user(s) said Thank You: tommylight

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

Time to create page: 0.052 seconds
Powered by Kunena Forum