![]() |
home | contact us | about us | |
COMMPORT
SUMMARY An improved serial port terminal for Windows XP. CommPort includes tools and displays for engineers debugging serial communications and modems. The user can switch seamlessly between hexadecimal and ASCII input. Transmitted and received data is displayed in four different formats: wide hex, narrow hex, ASCII and terminal emulation. Colour coding rules can be applied to increase readability. INSTALLATION Click the link to download the MSI installation script. Choose the option to save the file to your hard disk. To run the installation, double-click the downloaded file. Microsoft Windows Installer is part of the Window system, and should already be installed on your computer. However if for some reason you do not have the Microsoft Windows Installer on your computer, download the latest version from the Microsoft website before attempting to install the CommPort application. Download the zipped executable, and run from your hard disk. USER GUIDE USER GUIDE - SCREEN LAYOUT The main display is divided into three sections: output window, input window and macro window.
The output window displays transmitted and received data, as well as connection status and communications alerts. Four different formats are available:
The button at the top right of the output window ( Each item of sent or received data that appears in the output window can be selected by clicking the item using the left mouse button.
The input window is where the user can edit data to send to the serial port. On the top right of the input window are three buttons:
The input window menu is available from the main menu at the top of the application.
Macros are used to send pre-recorded data to the serial port. The macro bar on the left side of the main application window shows the macros currently available in the CommPort session. When CommPort is first run, a default set of macros is created. Macros can be run by selecting the macro in the macro bar and clicking "Run" from the macro menu, or by double-clicking the macro. Macros can also be automatically triggered to run by the following:
The macro menu is available from the main menu at the top of the application, or by right-clicking one of the items in the macro window.
To create a new macro, click the "New..." menu item from the macro menu.
Macros can also be created using the "Create macro..." button in the input window. USER GUIDE - CONNECTING AND DISCONNECTINGTo open a serial port connection, select "Application, Open port..." from the main menu bar to bring up the Open Connection window. At the top of the Open Connection window is a port selection drop-down menu. As each port is selected, the settings change to show the current settings for the selected port.
The first four pages (Details, Flow Control, Timeouts and Events) are for configuring the port settings.
If the changes made in the Open Connection window are incorrect and the user wants to return to the current settings for the selected serial port, click the "Restore Default..." button at the top of the window. The last page of the Open Connection window, Archive, is for saving and retrieving previously used port settings. Use the archive facility to build a list of settings that will connect to all of your serial port peripherals. Once a connection has been correctly configured, click the Save... button on the Archive page, and enter a name for the configuration. To return to these settings at any time, open the Open Connection window, go to the archive page, select the stored configuration in the list and click the Load... button. USER GUIDE - PARAMETER SCANNERThe Parameter Scanner is used for discovering working parameter for an unknown piece of hardware. The scanning process involves going through every combination of variable configuration parameters, and finding which of them will connect and return a valid response to sent data. To make the scan more efficient, the user can define which connection parameters are fixed and which are variable.
IMPORTANT: Some hardware may be damaged by using incorrect port settings. USER GUIDE - COLOR CODINGTo open the Color Coding window, select the Color Coding option from the output window menu.
Advanced Macros allow the user to edit a command by using a lists of tailored options presented in a form.
The following is an example of setting up an Advanced Macro. Imagine we have a serial controlled motor controller that takes the following command: SET SPEED=x,CURRENT=y{cr,lf} The value of x, the speed value, can be any number between 1 and 100. The value for y, the current rating, can be HIGH, MEDIUM or LOW. Instead of creating a macro for combinations of speed and current, it would be simpler if the user was provided with form from which they can select the speed and current before the message was transmitted. Step 1Create a new Macro by selecting "Macro, New Macro..." from the main menu. Enter a name for the macro and select the group. Enter an outline of the command in the Data text box, and check the Advanced macro format option.
Step 2Select the Prompt page, and set the Title field to "Set Motor Speed". Step 3Click the add button to add a new macro field.
Enter a Name for the field, "Speed". The speed value ranges from 1 to 100 so the Format will be a number. Set the Default value to 50. The speed field has a single valid range of values, from 1 to 100. Padding is used to fill number out to a predetermined number of characters. We will not need this. Click OK to save the field. Step 4Click the add button again to add a second macro field.
The current field can be set up as an enumeration because it is limited to three fixed values - HIGH, MEDIUM and LOW. An enumeration is a set of unrelated text or numeric values. To add a value to the enumeration, enter Value and Description and click the add button. In this example the Value and Description are the same, but it may be that the HIGH, MEDIUM and LOW could have been set using values 0, 1 and 2. There are two other options available when creating an enumeration field.
The Click OK to save the field. Step 5Now that the macro fields have been created, return to the Details page, and replace the speed and current values in the Data text box with field names. For the speed value, select the text "50", click the macro fields button (shown on the dialog below by the arrow), and select Speed from the popup menu. Replace the "HIGH" with the Current field name in the same way. The command should now look like this:
Click OK to save the macro. When the macro is run, the following dialog will be displayed:
The parser option is available from the hex editor when editing macros, and when sending the output window to the hex editor. The parser is used for encoding and decoding communications data, when the escape sequence protocol is being used. Using the escape sequence protocol makes it much easier for the hardware reading incoming messages to determine the start and end of each message. An example of the escape sequence protocol is as follows: I want to send the following message through the serial port to a hardware peripheral. ABCDE (0x41 0x42 0x43 0x44 0x45) I will pick a start and end BYTE, to identify the start and end of the message. Start BYTE: 'S' (0x53) End BYTE: 'E' (0x45) After adding the start and end BYTEs, the message now looks like this: SABCDEE (0x53 0x41 0x42 0x43 0x44 0x45 0x45) Unfortunately, the BYTE 'E' now appears twice in the message. So I pick another BYTE, the escape BYTE, 'X' (0x58). If the start, end or escape BYTE appears anywhere in the message (apart from at the start or end), it will be replaced with the escape BYTE, followed by the XOR of the BYTE with the escape BYTE. The message now looks like this: SABCDX(0x1D)E (0x53 0x41 0x42 0x43 0x44 0x58 0x1D 0x45) USER GUIDE - The Parser DialogThe parser dialog can be set up to create encoded and decoded data automatically.
Select the start, end and escape marker using the drop-down boxes. The Escape range section can be used to set up ranges of BYTE values that require escaping other than the start, end and escape BYTEs. USER GUIDE - MACRO GROUPS
USER GUIDE - IMPORTING MACRO GROUP FILES (MXP) To import a macro group into CommPort, run the CommPort application and select "Macro, Macro Groups, Import..." from the main menu. Use the file finder dialog to locate an mxp file and click the Ok button. In the Macro Group Import dialog, select the macro groups included in the mxp file that you wish to import into CommPort. If there is a password for the mxp file you will be prompted to enter it at this point. Click the Ok button and the new macro groups will appear in the macro window on the left. LATEST FEATURES
SOFTWARE SUPPORT All users of Broccoli products are entitled to email support for both licensed and freeware products. The Product Report Form is provided for reporting minor bugs and requests for enhancements. For other support issues, please contact us by email. Software support: support@broccoliproducts.com Return to the Freeeware Library. Return to the home page. |
![]() |
© 1998-2012 Broccoli Products Ltd Reg Number: 2895355 Reg Office: 27 Old Gloucester Street, London. WC1N 3AX |
Privacy Policy Copyright Notice Liability Disclaimer Contact Us |
|