Rs232 Keyboard



Here at ULPGC I'm following a Robotics course. In the practical part of the exam we have to write some applications to operating some didactics robots we have (Rhino XR-4 and SCARA Robots).

Each robot is connected to a Controller (Rhino Mark-4) which can be connected to a PC to send commands to the Controller in order to let the robots do things.

The PC to Controller connection is a serial RS-232 connection.

So. for the practical parts of the exams we need to write applications which, using the RS-232 communication channels, controls the movements of the robots.

Rs232 keyboard wedgeRs232

WLKB232 is a 2.6' X 1.7' X 0.8' module This allows even small microcontroller systems to incorporate wireless keyboards without any of the development complexity of USB and HID drivers. RS232 key-cap characters are available from the wireless keyboard. Connect to +5 Volt pin on keyboard header. Provides power to micro-controller, RS232 interface and keyboard. PS/2 spec says keyboards are allowed to draw up to 300 milliamps of current. The micro controller and RS232 driver can draw up to an additional 15 milliamps of power. This can stretch the capability of a 28 AWG wire in a ribbon cable SRB CLR. HC-06 30ft Wireless Bluetooth RF Transceiver Module Serial RS232 TTL Compatiable with Arduino. Brand: HC-06 30ft Wireless Bluetooth RF Transceiver Module Serial RS232 TTL Compatiable with Arduino; Type: Assortments & Kits; Model #: HC-06-RF-Module-A; Item #.

The professor here suggested to use Java to implement the applications: unfortunately I found the API comm pretty complex in installation and configuration.

So. I looked for different solutions.

Surprisingly I found that Python with the pySerial module is a pretty intelligent solution!

Windows 7 cached memory setting

I've been able to install and use them (in both Linux and Windows) without problems at all (while my classmates had lot of problems with java and comm apis..). Just follow any guide on the web to install Python on your system and then follow the pySerial installation guide.

Using the pySerial apis is pretty simple: just have a look at the project website to have an idea of the apis it gives you.

A simple application

I give you here a simple application which should let you understand how python serial apis are easy to use. The application is a simple serial terminal which you can use to send commands (and receive output) to a serial connected device.

This is the application code:

Workspace app 2009 and newer have the new Citrix logo. Workspace app 1912 and newer support App Protection. It’s available in both the LTSR 1912 version and the Current Release 2103.1 version. The LTSR (Long Term Service Release) version of Workspace app is version 1912 Cumulative Update 3. Citrix workspace 1912 for mac. . After waking a Macbook from sleep, Citrix Workspace repeatedly asks for authentication. RFMAC-2161. After reconnecting to a seamless VDA session, the graphics in the session might be dis.

NOTE for Python 3 users: The code above has been written for Python 2 and I'm no more able to test RS232 connections with Python 3. As some users commented below the raw_input() function has been removed so you should just use the new Python 3 function input(). If you use Python 3 and find other issues with the code please leave a comment. Thanks!

As you can see the code is pretty simple and self documenting. This should demonstrate you the power of this solution.

Really important is the serial port configuration: if you configure it incorrectly you probably will end in problems during communications (check the manual of the device you are connecting to get the correct connections parameters).

Also remember to point the port parameter to the device file you are using (under windows you can simply use COMMX, where X is the COMM instance number 1,2,3,4,etc. )

Conclusions

I consider Python and pySerial one of the simplest and faster ways to develop an application to use a serial connection.

Rs232 Keyboard Driver

You will also be able to use the huge amounts of other native apis and additional modules Python has to add all kind of features to you applications!

Wireless Rs232 Keyboard

If you need a graphical interface I strongly encourage you to have a look at the pyGTK project and the Glade interface designer.