bienmexicano Posted April 15, 2009 Share Posted April 15, 2009 Hi guys i Know that the usb is a common interface to comunicate a pc and a vast collection of devices but what i would like to do is just send and receive bytes from the usb port using autoit, kinda like with the serial port udf. i'm working in a project that require comunication between the pc and 2 devices connected to the serial ports but a 2nd serial port is kinda hard to find and i don't wanna buy one of those usb to serial cables, when i just got some simple usb cables that might do the work, so the only question is how? if some one know a way to do it with autoit, and would be so kind to helpme,i would appreciate it so much!. thanx in advance. i love to draw so Go here!!!!!!! Link to comment Share on other sites More sharing options...
martin Posted April 15, 2009 Share Posted April 15, 2009 Hi guys i Know that the usb is a common interface to comunicate a pc and a vast collection of devices but what i would like to do is just send and receive bytes from the usb port using autoit, kinda like with the serial port udf.i'm working in a project that require comunication between the pc and 2 devices connected to the serial ports but a 2nd serial port is kinda hard to find and i don't wanna buy one of those usb to serial cables, when i just got some simple usb cables that might do the work, so the only question is how?if some one know a way to do it with autoit, and would be so kind to helpme,i would appreciate it so much!.thanx in advance.It might sound easy but I think a USB to Serial port converter is very much easier. Some devices with usb actually emulate serial ports. Try plugging one of the devices into the usb and then check Control Panel|System|Hardware|Device Manager and look at the ports. If one of the COM ports disappears when you unplug the device then it uses serial port emulation. (This is assuming you have installed the driver for the device.)USB to Serial port device drivers are freely available and I know of one case where installing one enabled communication with a very expensive USB deveice that was supposed to be used with special software. Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script. Link to comment Share on other sites More sharing options...
bienmexicano Posted April 16, 2009 Author Share Posted April 16, 2009 It might sound easy but I think a USB to Serial port converter is very much easier. Some devices with usb actually emulate serial ports. Try plugging one of the devices into the usb and then check Control Panel|System|Hardware|Device Manager and look at the ports. If one of the COM ports disappears when you unplug the device then it uses serial port emulation. (This is assuming you have installed the driver for the device.)USB to Serial port device drivers are freely available and I know of one case where installing one enabled communication with a very expensive USB deveice that was supposed to be used with special software.thankyou martin for your answer!well the thing is that the devices are 2 palms treo 700p and i need to figure out a way to send and receive data with the usb port because that's the way these devices comunicate with the computer, all that tnx to the small minded people of Windows mobile, so i want to do this avoiding the idea of purchase the usb to serial adaptor, but maybe you're right and get the adaptor would be the better and easiest solution.tnx for the help. i love to draw so Go here!!!!!!! Link to comment Share on other sites More sharing options...
bienmexicano Posted July 15, 2009 Author Share Posted July 15, 2009 well just to refresh this! it seems that i still require to use the USB port to comunicate the problem is that i can't depend of the Serial UDF. please if someone knows anything about usb comunication with devices it would help me i love to draw so Go here!!!!!!! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now