Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Share Your Creations
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Share Your Creations Show your developed application to Basic4ppc community. Please include source code if possible.

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

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-11-2010, 01:56 PM
pdablue's Avatar
Senior Member
 
Join Date: Sep 2007
Posts: 113
Arrow Serial Port Binary Character (0-255) Transmit program.

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
Attached Images
File Type: jpg Binpic1.jpg (20.6 KB, 25 views)
File Type: jpg Binpic2.jpg (22.1 KB, 12 views)
File Type: jpg Binpic4.jpg (20.2 KB, 14 views)
File Type: jpg Binpic5.jpg (14.2 KB, 15 views)
File Type: jpg Binpic6.jpg (14.5 KB, 10 views)
Attached Files
File Type: sbp Binary256.sbp (67.3 KB, 41 views)
File Type: zip bin256.zip (40.1 KB, 35 views)

Last edited by pdablue : 02-12-2010 at 09:23 AM.
Reply With Quote
  #2 (permalink)  
Old 02-11-2010, 04:07 PM
pdablue's Avatar
Senior Member
 
Join Date: Sep 2007
Posts: 113
Smile 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.
Reply With Quote
  #3 (permalink)  
Old 02-18-2010, 09:28 AM
pdablue's Avatar
Senior Member
 
Join Date: Sep 2007
Posts: 113
Default 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
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Serial Port ASCII character (0-127) Transmit program. pdablue Share Your Creations 4 02-18-2010 09:25 AM
Bluetooth serial port program with Automatic Sequence repeat function. pdablue Share Your Creations 2 04-08-2009 03:10 PM
Bluetooth Serial Port communication program for the PDA. pdablue Share Your Creations 3 03-30-2009 03:45 PM
Help with Serial binary download? DaveW Questions (Windows Mobile) 7 11-22-2008 04:54 PM
Open serial port crashes program on device Steve Bug Reports 2 05-23-2007 10:52 PM


All times are GMT. The time now is 05:23 AM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0