Editing RS232/USB Probe
Jump to navigation
Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 4: | Line 4: | ||
*Name: RS232/USB Probe | *Name: RS232/USB Probe | ||
− | *Status: still developing, but is working | + | *Status: still developing, but is working |
*Technology: Java -- should run on many platforms, Windows 98 through Vista | *Technology: Java -- should run on many platforms, Windows 98 through Vista | ||
*Author: russ_hensel ( where you can find an email address to reach me ) | *Author: russ_hensel ( where you can find an email address to reach me ) | ||
*License: not fully determined, but open source and object code. | *License: not fully determined, but open source and object code. | ||
− | |||
− | |||
Purpose: | Purpose: | ||
− | The project is a specialized terminal emulator designed to talk to | + | The project is a specialized terminal emulator designed to talk to microcontrolles and similar devices either to control them or to try to deduce what there control protocol is. |
Several areas are provided for input to the device. This is typed as strings, but escape sequences also allow special characters including any ASCII character entered by its hex code. Data is sent by pressing the send button. Each send area has its own recieve area just to the right of it. Also all data both sent and recieved is logged to the bottom window. Other events in the software are also posted to the logging area. The application has several send areas so that you can easily reissue earlier commands and easily keep frequently used commands ready to use. | Several areas are provided for input to the device. This is typed as strings, but escape sequences also allow special characters including any ASCII character entered by its hex code. Data is sent by pressing the send button. Each send area has its own recieve area just to the right of it. Also all data both sent and recieved is logged to the bottom window. Other events in the software are also posted to the logging area. The application has several send areas so that you can easily reissue earlier commands and easily keep frequently used commands ready to use. | ||
A complete log of activity is provided both to the screen and to a log file. | A complete log of activity is provided both to the screen and to a log file. | ||
− | |||
− | |||
=== Early Mock Up of Screen === | === Early Mock Up of Screen === | ||
Line 25: | Line 21: | ||
[[Image:RS232ProbeMain.png | Screen Shot ]] | [[Image:RS232ProbeMain.png | Screen Shot ]] | ||
− | + | === Download === | |
− | + | Coming soon, for early adopters email me [[russ_hensel]] | |
− | + | == Installation Directions For all the Applications ( This is a first cut, more details will follow ) == | |
− | * | + | * Configure Java JDK or Java Runtime Environment as it suits you. I am using version 1_4 to stay compatible with older machines. You can find it round about [http://java.sun.com/j2se/1.4.2/download.html Download Java 2 Platform, Standard Edition, v 1.4.2 (J2SE)] |
− | * | + | * Download and install the JavaComm API for your platform. Sun no longer support this for windows; ( I will change to some other support soon ) I found it at [ http://wind.lcs.mit.edu/download/ Software Download and Install] Install can be a problem because a bad installation often fails without any messages. Here are installation directions: [http://www.xpl4java.org/xPL4Java/javacomm.html Javacomm -- Serial and Parallel port access for Java and xPL] |
− | * | + | * Download RS232Etc.zip. I will provide a location soon, for testers email me [[russ_hensel]] Unzip to an installation directory ( c:\RS232Etc for example but in any case avoid directory names with embedded blanks and if you stick to c:\RS232Etc fewere modifications will be required to the bat file. ) Do not un-jar the jar file(s) ( unless you just want to mess around ) Source code will be provided in RS232Etc.jar when it it a bit more stable. Note that renaming the .jar file to .zip will allow you to extract the files with most zip utilities that do not directly support jar files. |
− | * | + | *Edit RS32Probe.properties for your configuration, directions are in the file. |
− | * | + | *Edit the RunRS32Probe.bat file for your configuration ( see directions in bat file ). You may want to do this in a copy of the file so that you always have the original bat file ( or maybe we will give you two copies). |
− | * | + | *Double click the bat file to run the program, begin debugging the installation. If you have problems I will help you, email me with some details of the problem, include screen shots or detailed discription of error messages. |
− | + | === Use Details === | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | = | ||
− | |||
− | |||
− | |||
− | == Use Details == | ||
Some Use Details | Some Use Details | ||
− | |||
Before running the program make sure the property file ( RS232Probe.properties ) has the values you want to use. This file is documented internally. Make sure you save a backup somewhere of the original file ( there is a backup in the installed files ). Double click the batch file to launch the program. Startup information will appear in the Java console ( the dos window associated with the program, and in the program log area, and in the log file. ) | Before running the program make sure the property file ( RS232Probe.properties ) has the values you want to use. This file is documented internally. Make sure you save a backup somewhere of the original file ( there is a backup in the installed files ). Double click the batch file to launch the program. Startup information will appear in the Java console ( the dos window associated with the program, and in the program log area, and in the log file. ) | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
Fill in one of the blanks under Data ( the column by defaults contains SendMe ) and press the <Send> button. The device response ( if any ) will appear in the corresponding Received Data field. You can edit the data and send it again or just send it again. The panel on the bottom shows the activity of the application >> precedes sent data, and << received data. The rows are repeated so that you can easily switch between string sent. | Fill in one of the blanks under Data ( the column by defaults contains SendMe ) and press the <Send> button. The device response ( if any ) will appear in the corresponding Received Data field. You can edit the data and send it again or just send it again. The panel on the bottom shows the activity of the application >> precedes sent data, and << received data. The rows are repeated so that you can easily switch between string sent. | ||
Line 186: | Line 156: | ||
Typically something like ( this is using the opening using a "probe": | Typically something like ( this is using the opening using a "probe": | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | Reading property file C:\Russ\Java\RS232Etc\MrMoose.properties | |
+ | Stream File = C:\Russ\Java\RS232Etc\MrMoose.properties | ||
+ | COM3 Opened Now Probing Response UBW FW D Version | ||
+ | <<v | ||
+ | COM6 Opened Now Probing Response UBW FW D Version | ||
+ | << | ||
+ | COM7 Opened Now Probing Response UBW FW D Version | ||
+ | << | ||
+ | COM10 Opened Now Probing Response UBW FW D Version | ||
+ | << | ||
+ | COM12 Opened Now Probing Response UBW FW D Version | ||
+ | << | ||
+ | COM13 Opened Now Probing Response UBW FW D Version | ||
+ | << | ||
+ | Parms.initPort() failed | ||
+ | RS232 Probe initilization complete. | ||
Line 209: | Line 178: | ||
− | + | Reading property file C:\Russ\Java\RS232Etc\MrMoose.properties | |
− | + | openOutputStream for rs232probe2.txt | |
− | + | Looking for port: COM15 | |
− | + | Found port: COM3 | |
− | + | Found port: COM6 | |
− | + | Found port: COM7 | |
− | + | Found port: COM10 | |
− | + | Found port: COM12 | |
− | + | Found port: COM13 | |
− | + | Found port: LPT1 | |
− | + | Found port: LPT2 | |
− | + | Port not found: COM15 | |
− | + | Parms.initPort() failed | |
In this case it is scanning for port 15, but it is not active so initialization fails. | In this case it is scanning for port 15, but it is not active so initialization fails. | ||
Line 227: | Line 196: | ||
=== Special Character Translation === | === Special Character Translation === | ||
− | |||
{| class="wikitable" | {| class="wikitable" | ||
Line 276: | Line 244: | ||
|} | |} | ||
+ | |||
=== Enhancements === | === Enhancements === | ||
Line 318: | Line 287: | ||
|} | |} | ||
− | |||
− | |||
− | |||
− | |||
− |