Serial Port Binary Character (0-255) Transmit program.

pdablue

Active Member
Licensed User
Longtime User
Hi,

This program allows you to send Binary characters (0 to 255)
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 Binary 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 Binary 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.

All of the other characters transmit just fine.

Could there be problem with the external Bluetooth
module that I am using?

The basic4ppc source code file for this program is:

Binary256.sbp

This screenshot shows the program screen at startup:

Binpic1.jpg

This screenshot shows the program after the "128-255"
button has been pressed.

Binpic2.jpg

This screenshot shows the program after the "0-127"
button and the "Hex" button has been pressed:

Binpic3.jpg

This screenshot shows the program after the "80-FF"
button has been pressed:

Binpic4.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:

Binpic5.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:

Binpic6.jpg

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

bin256.zip
 

Attachments

  • Binary256.sbp
    67.3 KB · Views: 286
  • Binpic1.jpg
    Binpic1.jpg
    20.6 KB · Views: 272
  • Binpic2.jpg
    Binpic2.jpg
    22.1 KB · Views: 243
  • Binpic4.jpg
    Binpic4.jpg
    20.2 KB · Views: 258
  • Binpic5.jpg
    Binpic5.jpg
    14.2 KB · Views: 287
  • Binpic6.jpg
    Binpic6.jpg
    14.5 KB · Views: 263
  • bin256.zip
    40.1 KB · Views: 296
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