When connected to PC, the module will appear as a serial port in Windows Device Manager (or a serial tty device in Linux and Mac). The module communicates with the host PC over the full-speed USB link. This module also includes General Purpose I/Os, and analog inputs (multiplexed with GPIOs) that can be accessed over the USB interface for extended functionality. This product has two onboard relays and associated drivers capable of controlling a variety of devices including lamps, motors, locks, etc… (Please see recommendations for using this product with inductive loads elsewhere in this document). Visual Basic for Applications (Microsoft Office VBA)Ī complete list of sample code is available here.Visual Basic (VB6, VB2008, VB2010 express and other editions).Or any other operating system that supports USB CDC devices.Īnd these are some of the languages that can be used for programming:.Windows XP and later versions (Windows 7, 8/8.1, 10 and future versions).This product is compatible with the following operating systems: Some of the possible uses of this module include No vendor specific libraries or APIs required.Can be controlled by using standard serial console applications or custom applications.Can be powered from USB or external power supply.Relay contacts available on easy to access screw terminals.As easy as using a serial port, no USB knowledge required 4 analog inputs with 10-bit resolution (multiplexed with digital IOs).4 Mechanical Relay with contact rating up to 2A.For power users, this module can be controlled by writing programs in various programming languages. This simplicity allows the use of off-the-shelf Terminal Emulation programs such as Hyper Terminal and PUTTY for controlling the module with a simple set of human-readable commands. Built-in USB to serial conversion allows the module to be used without any USB specific knowledge. Ease of use and wider operating system compatibility are the primary goals behind this product’s design. In theory it should just work on a 32 bit system but you may need to follow the instructions for a 64 bit implementation.Īlternatively for Windows you may also wish to use one of the many available software datascopes, such as Terminal.Īlternatively for Mac you may wish to use Serial application.Ī customer also reported that the Cutecom utility is really simple to use and made short work of determining port and baud rate.Numato Lab’s 4 Channel USB Powered Relay Module is a great product for controlling electrical and electronic devices remotely from a PC or Mobile Device over the USB link. When sending serial data to Touch-Base for analysis please either send a screenshot of the captured HEX data or select Capture to text fileįor Linux install instructions are included in the download package, 'Linux System Requirements.txt'. This old serial device outputs a 'heartbeat' packet 'FF 80 00 00' and a 3 byte data packet when touched - D5 58 30 (touching packet), 95 58 2F (lift off packet) in the example data captured below: The most common Baudrate is 9600, followed by 240: Setting the wrong Baudrate will result in strange garbled data being captured/displayed. When capturing data it is important to match the Baudrate to that expected by the device. In this Windows example CoolTerm is connected to Com3 (a keyspan serial to USB adapter) with a serial touch screen connected. Comprehensive testingįor all Operating Systems there is also a simple serial port terminal application program called CoolTerm that may also be of use. To view the actual data use a software datascope as described below. This does not show the actual data received just that data is being received. In the following example a Keyspan serial adaptor is listed and tested by touching an attached touch screen: To test if a com port is working and receiving data type 'cat < /dev/' in a Terminal program (Finder, Go, Utilities, Terminal) and use the serial device. The best way to test this is the case is to use an external process to prove the above is true before specifying the port name in the UPDD driver.įor a quick test of a RS232 port open up a terminal / command window, type the command shown and touch the screen: OSĬat < /dev/ttySN' (or ttyUSBn if using a serial to usb adaptor) Successful support of a serial device is dependent on the RS232 communications settings being correct, the com port being available (if it exists and is not in use by another driver) and that the data is being seen on the port in the correct data format.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |