02.01.2020

How To Send Rs232 Commands

How To Send Rs232 Commands Rating: 3,6/5 2350 votes

Frequently Asked Questions about Sending Commands to RS232 Serial Devices Many software packages now support macro languages to control other programs. Details of how to send data using various packages are listed below.

Send Serial RS232 Data using Microsoft Word To build a simple macro with Word, record a macro, and include the following code: Sub SendRS232usingDDE ' ' SendRS232usingDDE Macro ' Macro created by Wieser Software Ltd ' iChannel = DDEInitiate('matrxdde', 'system') DDEExecute iChannel, 'Send this to r nthe Serial Port' DDETerminate iChannel End Sub Send Serial RS232 Data using Microsoft Excel The procedure using Excel is identical to using word. Below is an example of sending the data that is in the current cell. Sub SendCurrentCell ' ' SendCurrentCell Macro ' Macro recorded by Wieser Software Ltd ' iChannel = DDEInitiate('matrxdde', 'system') DDEExecute iChannel, ActiveCell.Value DDETerminate iChannel End Sub Alternatively, you could replace the DDEExecute command with: DDEExecute iChannel, Range('a1').Value That would send the value of whatever is in cell A1 to the serial port. Send Serial RS232 Data using FileMaker Pro Using Filemaker Pro, when you define a script, you use the Send DDE Execute script item.

You would use settings as follows, selecting the Text pushbutton shown by filemaker instead of the file button: Send DDE Execute Service Name: 'matrxdde'; Topic: 'system'; Commands: 'put this on the display' Obviously, it will be more useful, if you combine fields that are actually in your database Sending special characters to Matrix Orbital MOS Displays and other displays Some devices, like the Matrix Orbital MOS AL202 LCD display use special commands to configure the display. Many of the commands are in binary format, and therefore need special handling. Because many software packages cannot handle numbers in binary format, we allow you to insert them in a quoted format which doesn't require any special handling from the program running the macros.

For instance, the Matrix Orbital Documentation says: 4.3.13 Clear Display Syntax: Hexadecimal 0xFE 0x58 Description: This command clears the display and resets the text insertion point to the top left of the screen. To include these characters in your text, simply add them to the beginning of your text as follows: DDEExecute iChannel, ' xFE x58Show this after nclearing the display' You'll notice two things about the code. First, it can escape hexadecimal sequences by using x followed by two hexadecimal digits. If you need to convert a decimal number to hexadecimal, do the following:. Start the Windows calculator. Press F6 to switch to decimal. Type your number in decimal.

Finally, press F5 to convert the number to hexadecimal. Secondly, you'll notice the n character; shorthand for a new line character ( x0A). You can also use the following:. t for a tab character ( x09). r for a carriage return (go back to the beginning of the line) ( x0D). a for an alert ( x07).

b for a backspace character ( x08). v for a vertical tab ( x0B).

f for a form feed, or new page ( x0C) As a result, it is now difficult to include a character. To do so, simply use two in a row, like this: Command Line Arguments to configure the Serial Port If you configure your program to start with a shortcut, you can add additional arguments to the command line to control which serial port is opened, and what baud rate is used for communication. The switches are:.

/baud: NNNN where NNNN is a baud rate, like 19200, 115200, etc. /port: com1 where com1 can be replaced with any serial port name on your system.

Rs232 Command Prompt

The software always uses 8 bits for the data width, and 1 stop bit, with no handshaking.

This forum and article might be of some help. 'free OBD2 software with MPG calc' Incidentally, I bought a Mini ELM327 BlueTooth on eBay to play with. The plan was to leave it plugged into my vehicle OBD2 connector and have it communicate performance numbers via BT to my Droid X phone while driving. The plan was ruined when I found myself with a dead car battery the next morning.

It seems that the Mini ELM327 does not turn off when the ignition key is off, and continues to draw power. Actually, it drew enough power to get hot enough to partially melt the blue plastic case. A quick survey of other such devices indicates similar problems. I had to crack the case to install an on-off switch.

Miso, 9:35 น. On Sun, 25 Nov 2012 09:35:32 -0800, miso wrote: I wonder if it was defective? Maybe it latched up. It still works. The eBay vendor was nice enough to sell me another one for essentially the cost of shipping as he was interested in the problem. The replacement did the same thing.

How to send serial commands

Mine is similar to this one: There are several other form factors including one that's even smaller. I've tried two larger flavors, and they also don't turn off with the ignition key. Otherwise, can you just hyperterminal to it and play around?

Probably you could. BlueGoof nicely emulates a serial COM port so any terminal emulator should work. However, it might be easier to just buy an RS-232 ELM327 device. I hope you enjoy typing AT commands. There are apps to make it easier: Michael Terrell, 10:40 น. Jeff Liebermann wrote: On Sun, 25 Nov 2012 09:35:32 -0800, miso wrote: I wonder if it was defective? Maybe it latched up.

It still works. The eBay vendor was nice enough to sell me another one for essentially the cost of shipping as he was interested in the problem. The replacement did the same thing.

Mine is similar to this one: There are several other form factors including one that's even smaller. I've tried two larger flavors, and they also don't turn off with the ignition key. Otherwise, can you just hyperterminal to it and play around? Probably you could. BlueGoof nicely emulates a serial COM port so any terminal emulator should work.

However, it might be easier to just buy an RS-232 ELM327 device. I hope you enjoy typing AT commands. There are apps to make it easier: Or the USB version to use with a laptop: miso, 21:42 น. The Infiniti socket is 16 pins and so is standard ODBII. But this is a 14 to 16 pin adapter. And I thought only Apple uses GD proprietary connectors. The shop manual calls the ODBII scanner the GST (general scanner tool), just to make the manual harder to read I suppose.

BTW, if you never did it, for like $20 or so, there are websites that let you download the official manuals. I suppose there are pirated manuals as well, but $20 seems fair considering what cars cost. You get a one day subscription to the service. It is really intended for repair shops. Josephkk, 0:41 น. On Sun, 25 Nov 2012 09:02:42 -0800, Jeff Liebermann wrote: On Sun, 25 Nov 2012 00:44:42 -0800 (PST), powerampfreak wrote: Great guys! ELM327 is a pre-programmed PIC processor.

It communicates by RS-232, so probably I can set up another PIC through the USART and communicate with the ELM. And possibly use a 2x16 char LCD display to show the parameters. This forum and article might be of some help. 'free OBD2 software with MPG calc' Incidentally, I bought a Mini ELM327 BlueTooth on eBay to play with. The plan was to leave it plugged into my vehicle OBD2 connector and have it communicate performance numbers via BT to my Droid X phone while driving.

The plan was ruined when I found myself with a dead car battery the next morning. It seems that the Mini ELM327 does not turn off when the ignition key is off, and continues to draw power. Actually, it drew enough power to get hot enough to partially melt the blue plastic case. A quick survey of other such devices indicates similar problems. I had to crack the case to install an on-off switch.

There is something weird about this, a PIC eating enough power to flatten a 12 V, 50 Ah or more battery in a few hours??? Hot enough to melt the case??? Where in hell is all that energy going????-) Jim Thompson, 7:34 น. And someone with no knowledge that vehicles DO have 'accessory' power that goes off when the ignition switch is off:-).Jim Thompson - James E.Thompson, CTO mens Analog Innovations, Inc. et Analog/Mixed-Signal ASIC's and Discrete Systems manus Phoenix, Arizona 85048 Skype: Contacts Only Voice:(480)460-2350 Fax: Available upon request Brass Rat E-mail Icon at 1962 I love to cook with wine.

Sometimes I even put it in the food. Michael Terrell, 7:39 น. On Tue, 27 Nov 2012 08:34:23 -0700, Jim Thompson wrote: On Tue, 27 Nov 2012 00:41:42 -0800, josephkk wrote: On Sun, 25 Nov 2012 09:02:42 -0800, Jeff Liebermann wrote: On Sun, 25 Nov 2012 00:44:42 -0800 (PST), powerampfreak wrote: Great guys! ELM327 is a pre-programmed PIC processor. It communicates by RS-232, so probably I can set up another PIC through the USART and communicate with the ELM. And possibly use a 2x16 char LCD display to show the parameters. This forum and article might be of some help.

'free OBD2 software with MPG calc' ^^^^^ Incidentally, I bought a Mini ELM327 BlueTooth on eBay to play with. The plan was to leave it plugged into my vehicle OBD2 connector and have it communicate performance numbers via BT to my Droid X phone while driving. The plan was ruined when I found myself with a dead car battery the next morning. It seems that the Mini ELM327 does not turn off when the ignition key is off, and continues to draw power. Actually, it drew enough power to get hot enough to partially melt the blue plastic case. A quick survey of other such devices indicates similar problems.

I had to crack the case to install an on-off switch. There is something weird about this, a PIC eating enough power to flatten a 12 V, 50 Ah or more battery in a few hours??? Hot enough to melt the case??? Where in hell is all that energy going? ???-) And someone with no knowledge that vehicles DO have 'accessory' power that goes off when the ignition switch is off:-).Jim Thompson This is on the OBD2 connector, which does not depend on the ignition switch position. Please pay attention properly.?-) Jim Thompson, 7:44 น.

There is something weird about this, a PIC eating enough power to flatten a 12 V, 50 Ah or more battery in a few hours??? Hot enough to melt the case??? Where in hell is all that energy going?

I have had one of these clone ELM bluetooth units for about a year 1.5 version, no signs at all of overheating, gets slightly warm in use as you wd expect, I dont leave it plugged in doing nothing though.! Maybe OP has been unlucky in his units, but it seems to be a known problem, look on Amazon comments etc. It's just bad designs/programmers. Poorly design products can kill any battery.

Don't they know about low-power/idle/standby modes? Perhaps they do and will be ready to sell you an upgrade with a premium price. On 28 Nov., 16:44, Jim Thompson wrote: On Wed, 28 Nov 2012 01:19:48 -0800, josephkk wrote: On Tue, 27 Nov 2012 08:34:23 -0700, Jim Thompson wrote: On Tue, 27 Nov 2012 00:41:42 -0800, josephkk wrote: On Sun, 25 Nov 2012 09:02:42 -0800, Jeff Liebermann wrote: On Sun, 25 Nov 2012 00:44:42 -0800 (PST), powerampfreak wrote: Great guys! ELM327 is a pre-programmed PIC processor. It communicates by RS-232, so probably I can set up another PIC through the USART and communicate with the ELM. And possibly use a 2x16 char LCD display to show the parameters. This forum and article might be of some help.

'free OBD2 software with MPG calc' ^^^^^ Incidentally, I bought a Mini ELM327 BlueTooth on eBay to play with. The plan was to leave it plugged into my vehicle OBD2 connector and have it communicate performance numbers via BT to my Droid X phone while driving. The plan was ruined when I found myself with a dead car battery the next morning. It seems that the Mini ELM327 does not turn off when the ignition key is off, and continues to draw power. Actually, it drew enough power to get hot enough to partially melt the blue plastic case. A quick survey of other such devices indicates similar problems. I had to crack the case to install an on-off switch.

There is something weird about this, a PIC eating enough power to flatten a 12 V, 50 Ah or more battery in a few hours??? Hot enough to melt the case??? Where in hell is all that energy going? ???-) And someone with no knowledge that vehicles DO have 'accessory' power that goes off when the ignition switch is off:-).Jim Thompson This is on the OBD2 connector, which does not depend on the ignition switch position. Please pay attention properly. ?-) It doesn't?

When I get smog-checked, they plug into the OBD2, then turn the key!!! The ECU which they talk to isn't on unless you turn the key OBD2 connector has KL30, the ECU wake-up/shut-down based on KL15 -Lasse dilin.@gmail.com 21/4/2018, 4:10 น.