Ref: PC to controller comunication protocols
Posted by
stan
on 2008-03-01 09:31:51 UTC
The desktop software sounds like it is well worth the effort. As for the
communications between the desktop and microcontroller, its a pain in the
neck there is no standard binary protocol as going from co-ordinates to
g-code on the PC, then doing it all over again in reverse on the
microcontroller is a real hindrance.
After looking through a lot of g-code files scattered around the net it seems
that very simple code, just co-ordinates and speeds, are common. Just using
the basics would make things much simpler but its not 'standard' so will
cause as many problems as it solves.
What kind of protocol are you using between the PC and PIC? I was thinking
something like simplified g-code, the axis positions and the speed with the
numbers in binary, would be the simplest and easiest to adapt to but I'm sure
there would be a lot of room for improvement.
Another thing I was leaving space for was to use two protocols side by side.
ASCII only uses the lower 128 part of each byte so there would be plenty of
space in the upper 128 for a binary protocol, then the microcontroller could
be useable with a boring old terminal and plain g-code files or run with a
bells-and-whistles desktop app without modification.
Anyway, I'm rambling on again. It sounds very interesting and well worth
continuing.
cheers.
PS. Please document the protocol to keep all us open source hippies happy :)
communications between the desktop and microcontroller, its a pain in the
neck there is no standard binary protocol as going from co-ordinates to
g-code on the PC, then doing it all over again in reverse on the
microcontroller is a real hindrance.
After looking through a lot of g-code files scattered around the net it seems
that very simple code, just co-ordinates and speeds, are common. Just using
the basics would make things much simpler but its not 'standard' so will
cause as many problems as it solves.
What kind of protocol are you using between the PC and PIC? I was thinking
something like simplified g-code, the axis positions and the speed with the
numbers in binary, would be the simplest and easiest to adapt to but I'm sure
there would be a lot of room for improvement.
Another thing I was leaving space for was to use two protocols side by side.
ASCII only uses the lower 128 part of each byte so there would be plenty of
space in the upper 128 for a binary protocol, then the microcontroller could
be useable with a boring old terminal and plain g-code files or run with a
bells-and-whistles desktop app without modification.
Anyway, I'm rambling on again. It sounds very interesting and well worth
continuing.
cheers.
PS. Please document the protocol to keep all us open source hippies happy :)
Discussion Thread
dandumit
2008-02-26 04:43:43 UTC
Cutting helical gear - req for info
Michael Fagan
2008-02-26 06:44:58 UTC
Re: [CAD_CAM_EDM_DRO] Cutting helical gear - req for info
stan
2008-02-26 06:52:14 UTC
PC to controller comunication protocols
Philip Burman
2008-02-26 11:08:41 UTC
Re: Cutting helical gear - req for info
dgoadby
2008-02-27 05:54:43 UTC
Re: PC to controller comunication protocols
Yahoo
2008-02-27 07:51:43 UTC
Re: PC to controller comunication protocols
stan
2008-02-27 08:52:00 UTC
ref: PC to controller comunication protocols
Doug Chartier
2008-02-27 09:02:36 UTC
Re: Cutting helical gear - req for info
Alan KM6VV
2008-02-27 09:59:07 UTC
Re: [CAD_CAM_EDM_DRO] Re: PC to controller comunication protocols
jcc3inc
2008-02-28 09:34:31 UTC
Re: PC to controller comunication protocols
stan
2008-02-28 10:00:06 UTC
Ref: PC to controller comunication protocols
Yahoo
2008-02-28 12:43:04 UTC
Re: PC to controller comunication protocols
Yahoo
2008-02-28 12:45:10 UTC
Re: PC to controller comunication protocols
Alan KM6VV
2008-02-28 15:22:28 UTC
Re: [CAD_CAM_EDM_DRO] Re: PC to controller comunication protocols
stan
2008-02-28 17:38:05 UTC
Ref: PC to controller comunication protocols
mrclicit
2008-03-01 08:51:43 UTC
Re: Ref: PC to controller comunication protocols
Alan KM6VV
2008-03-01 09:19:50 UTC
Re: [CAD_CAM_EDM_DRO] Re: Ref: PC to controller comunication protocols
stan
2008-03-01 09:31:51 UTC
Ref: PC to controller comunication protocols
Mike Pogue
2008-03-01 13:25:46 UTC
Re: [CAD_CAM_EDM_DRO] Re: Ref: PC to controller comunication protocols
stan
2008-03-01 14:10:47 UTC
Ref: PC to controller comunication protocols
stan
2008-03-01 15:46:36 UTC
Ref: PC to controller comunication protocols
Brian Foley
2008-03-01 18:47:49 UTC
Re: [CAD_CAM_EDM_DRO] Re: Ref: PC to controller comunication protocols