Sending Data over Rs232 for Reprap-controller

More
21 Feb 2011 13:59 #7348 by goaran
Hello,

i designed a small microcontroller board, which can receive data over the rs232 and then controll some FETs to controller a heater for a reprap kind rapid prototyping machine.

Now i need to make EMC2 to send some commands over rs232.

for example if there is an M-Code
M104 S190
it shoud send this command over the serial port

It also has to receive data from the rs232, for example if a M105 is exectuted, the M105 should be send to the microcontoller board, which sends back the current temperature (to display it in a bar or something)

How can i implemnt these thing?

Thanks in advance

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

More
21 Feb 2011 22:02 #7362 by goaran
thanks.. ill check tose links...

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

More
27 Feb 2011 16:26 #7490 by andypugh
Can you send data to the serial port with something like PRINT# in BASIC?

It just seems logical that you should be able to send a text string with something like

print "turn the heater to eleven" > tty.0

If that _is_ possible then making that into a bash script and using it as a custom M-code seems simple and easy.

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

More
18 Mar 2011 13:18 #7920 by goaran
thanks a lot, that should work, i think i'll do it this way

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

Time to create page: 0.114 seconds
Powered by Kunena Forum