Hello Guest it is March 28, 2024, 08:58:30 PM

Author Topic: SImple RS232 interfacing?  (Read 6047 times)

0 Members and 1 Guest are viewing this topic.

Offline peu

*
  •  23 23
    • View Profile
SImple RS232 interfacing?
« on: June 06, 2011, 12:14:10 PM »
Few days ago I receive one of these simple usb-rs-232 converters for pcb integration: http://cgi.ebay.com/ws/eBayISAPI.dll?ViewItem&item=180532641086 I do like to play with small microchip PICs from time to time

I would like to know if there is a plugin to set toggles or buttons via rs-232 messages, something like this:

data sent from small PIC microcontroller via rs232 small text messages:

"1000=1" <- set led 1000 to on
"1000=0" <- set led 1000 to off
"1000=2" <- change status

same for oem triggers

In a nutshell, a plugin to implement simple text messages like is described here: http://machsupport.com/MachCustomizeWiki/index.php?title=Mach_specific_Subroutines/Functions_grouped_by_purpose#Serial_port

Thanks!!


Pablo

Offline peu

*
  •  23 23
    • View Profile
Re: SImple RS232 interfacing?
« Reply #1 on: June 07, 2011, 07:34:59 AM »
I guess no replies means there is nothing like I ask available? or maybe its not a good idea at all?

There is still hope :)

Offline BR549

*
  •  6,965 6,965
    • View Profile
Re: SImple RS232 interfacing?
« Reply #2 on: June 07, 2011, 12:11:58 PM »
Yo need to check with Henrik here :  http://henriksplace.se/cnc/cnc_mach3_vb_serial.html

Offline peu

*
  •  23 23
    • View Profile
Re: SImple RS232 interfacing?
« Reply #3 on: June 07, 2011, 12:53:34 PM »
Thanks a lot for the link, after reading it I see that what I want to accomplish is not easily done using rs-232 it will be wise to go to other solutions instead of trying to kludge my idea :)

Offline BR549

*
  •  6,965 6,965
    • View Profile
Re: SImple RS232 interfacing?
« Reply #4 on: June 07, 2011, 02:21:51 PM »
Mach does not have a good serial protocol if any at all . It was never developed as most hobbiest would never use it.

Just a thought(;-) TP
Re: SImple RS232 interfacing?
« Reply #5 on: June 29, 2011, 01:27:15 PM »
Use this class to create a plugin, you will have full access to the PC rs232 port.  8)
http://cncrouter.ru/files/class_comport.zip
Re: SImple RS232 interfacing?
« Reply #6 on: June 30, 2011, 03:54:09 PM »
May be someone there is a class for working with usbhid device ?

Offline BR549

*
  •  6,965 6,965
    • View Profile
Re: SImple RS232 interfacing?
« Reply #7 on: July 10, 2011, 10:35:53 AM »
Pablo we have gotten things to work with SendSerial to a point with LCD devices over USB. So maybe there is a way to do simple things with your device.

(;-) TP