Serial Port ASCII character (0-127) Transmit program.

pdablue

Active Member
Licensed User
Longtime User
Hi,

This program allows you to send ASCII characters (0 to 127)
across a Serial Port connection. This program is setup to
transmit characters across a Bluetooth serial port connection.

I am using an HP IPAQ H2210 PDA to send characters to an
external BlueSMiRF Bluetooth module.

When you press a button, the ASCII character represented
by that button should be transmitted one time across the
serial port connection going from the PDA to the external
serial port device, which in this setup is the BlueSMiRF
Bluetooth module.

You can change the labels on the Buttons to Decimal
or Hexadecimal by pressing the "Dec" or "Hex"
buttons.

There is one problem, it occurs when trying to send
the Decimal character 43. I have to press the button
4 times to get any kind of transmission and then
4 characters are transmitted at one time.

I am using Net Compact Framework Version 2.0
on the PDA device. I have tried this program with
the following serial DLLs.

SerialDevice.dll
Serial2.dll
SerialEx.dll

All of the ASCII characters are transmitted just as
they should be when a button is pressed except
for Decimal character 43. I encounter the same
problem with Decimal character 43 no matter
which of the above serial DLLs that I use.

Someone needs to take a look at what is going
on when the character Decimal 43 is transmitted.

I do not know if this is a DLL problem or a
Net Compact Framework problem or a
Basic4ppc problem.

Could it be a problem with my Bluetooth module?

All of the other characters transmit just fine.

The basic4ppc source code file for this program is:

Ascii128.sbp

This screenshot shows the program screen at startup:

Ascpic1.jpg

This screenshot shows the program after the "Hex"
button has been press to change the button text to
a hexadecimal format:

Ascpic2.jpg

This screenshot shows a sample error message
that you will get if a button is pressed before
a serial port connection has been opened and
established:

Ascpic3.jpg

This screenshot shows a sample error message
that you will get if you try to open a serial port
connection and there is no external serial port
device available to communicate with:

Ascpic4.jpg

Here is the zipped up (.CAB) installation file for the
PDA device:

asc128.zip
 

Attachments

  • Ascpic1.jpg
    Ascpic1.jpg
    20.4 KB · Views: 285
  • Ascpic2.jpg
    Ascpic2.jpg
    20.1 KB · Views: 283
  • Ascpic3.jpg
    Ascpic3.jpg
    14.1 KB · Views: 283
  • Ascpic4.jpg
    Ascpic4.jpg
    14.4 KB · Views: 296
  • Ascii128.sbp
    37.1 KB · Views: 323
  • asc128.zip
    36 KB · Views: 308
Last edited:

pdablue

Active Member
Licensed User
Longtime User
Decimal Character 43 puts my Bluetooth Module into Command Mode.

Hi,

I found out what was going on with Decimal character 43 which is the
+ sign.

Issuing three +++ sign characters puts my BlueSMiRF Bluetooth module
into command mode.

So, the Decimal character 43 is being transmitted properly by the
Basic4ppc program.
 

pdablue

Active Member
Licensed User
Longtime User
Ascii128 and Binary256 versions for VGA equipped PDAs.

Hi,

I recompiled the ASCII128 and BINARY256 programs to run on
640 x 480 PDAs in QVGA mode.

Here are the zipped up (.CAB) installation files for each of the
Basic4ppc programs:

asc128qvga.zip
bin256qvga.zip
 
Top