Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
communication [2017/01/25 16:09]
arthur
communication [2018/11/12 18:40]
146.199.159.58
Line 1: Line 1:
-Communication modules are modules used to represent/​control ways of communication between the Smoothieboard and the rest of the world. This can be for example a UART or USB serial ​port.+Communication modules are modules used to represent/​control ways of communication between the Smoothieboard and the rest of the world. This can be for example a UART or USB serial ​port.
  
-For a list of communication modules and documentation on their use and configuration,​ please look at the list on the [[http://​smoothieware.org/​ homepage]].+For a list of communication modules and documentation on their use and configuration,​ please look at the list on the [[http://​smoothieware.org/​|homepage]]
 + 
 +Developers need to be aware that smnoothie uses the "​standard"​ reprap "​ping-pong"​ protocol. This means that you MUST wait for ok to be sent before sending each line of gcode. If this is not strictly adhered to then odd things may happen. 
 +Developers need to be aware that receipt of ok means the line was received but it DOES NOT mean the line has been executed or even planned. In order to get decent planning the planning buffer needs to be filled so it can plan ahead, so ok does not wait for each line to be actually executed. For efficiency purposes G1 commands send ok immediately on receipt before they are even put in the planning queue. Whereas most other G codes will only send OK when they have been entered into the buffer. If the buffer is full then ok will not be sent until there is room. 
 +If you need to know when a gcode has actually been executed, then you would send a M400 which does not send ok until the queue is empty and the last g code had finished moving.