Hi friends, firstly sorry from my english, i'm spanish but i try to do this in english.
Now AMS can use COM ports with this action plugin, i'm working on parallel port action plugin now.
The plugin is made by action plugin compiler by reteset.
Your need LuaCom, get it from http://www.icynorth.com/luacom/index.html and be sure that is activated in your project
You already need NetComm.ocx ActiveX control, get it from http://home.comcast.net/~hardandsoftware/NETCommOCX.htm be sure that is registered in the machine, if not, the plugin implements a function to register this control (vista and x64 users need register mscomm32.ocx, get it from http://www.yes-tele.com/mscomm.html )
You can use a timer to know if the port buffer countais data, for example Timer Object Plugin from Amswaves rules! get it from http://www.amswaves.com/index.php?op...d=45&Itemid=55
Basic example
You can recive with timer each 100ms with:
You can get the list of avalible ports with ListAvaliblePorts
I'm electronic engineer and the use of ports is very useful, it's compatible with all com ports, emulated, usb to serial, rs485, rs232, gps, mobile phones...
Best regards
Now AMS can use COM ports with this action plugin, i'm working on parallel port action plugin now.
The plugin is made by action plugin compiler by reteset.
Your need LuaCom, get it from http://www.icynorth.com/luacom/index.html and be sure that is activated in your project
You already need NetComm.ocx ActiveX control, get it from http://home.comcast.net/~hardandsoftware/NETCommOCX.htm be sure that is registered in the machine, if not, the plugin implements a function to register this control (vista and x64 users need register mscomm32.ocx, get it from http://www.yes-tele.com/mscomm.html )
You can use a timer to know if the port buffer countais data, for example Timer Object Plugin from Amswaves rules! get it from http://www.amswaves.com/index.php?op...d=45&Itemid=55
Basic example
Code:
c=SerialPort.Init() if(c==false) then Dialog.Message("Notice", "No encuentra control", MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1); end SerialPort.SetPort(1) SerialPort.Open(); SerialPort.Output("ATDT950346259;",true) SerialPort.Termiate()
Code:
if(SerialPort.IsOpen()==true) then if (SerialPort.BufferCount()==0) then --do nothing else buffer=SerialPort.Input(); end end
I'm electronic engineer and the use of ports is very useful, it's compatible with all com ports, emulated, usb to serial, rs485, rs232, gps, mobile phones...
Best regards
Comment