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 ASCII character (0-127) Transmit program.

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

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
Attached Images
File Type: jpg Ascpic1.jpg (20.4 KB, 19 views)
File Type: jpg Ascpic2.jpg (20.1 KB, 13 views)
File Type: jpg Ascpic3.jpg (14.1 KB, 11 views)
File Type: jpg Ascpic4.jpg (14.4 KB, 8 views)
Attached Files
File Type: sbp Ascii128.sbp (37.1 KB, 40 views)
File Type: zip asc128.zip (36.0 KB, 36 views)

Last edited by pdablue : 02-12-2010 at 09:19 AM.
Reply With Quote
  #2 (permalink)  
Old 02-11-2010, 04:09 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-11-2010, 04:10 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 5,953
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
Default

You device is missing the error messages for .NET. Manufacturers often omit these to save space in ROM. For .NET 2.0 they are here http://www.basic4ppc.com/forum/quest....html#post4461
__________________
Sorry, but I don't answer questions by PM or email.
Please post your queries in the forum.
Reply With Quote
  #4 (permalink)  
Old 02-11-2010, 07:50 PM
taximania's Avatar
Basic4ppc Expert
 
Join Date: May 2007
Location: Derbyshire. UK
Posts: 585
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Quote:
Originally Posted by agraham View Post
Your device is missing the error messages for .NET
The OP is still missing the point, you don't need 127 ButtonX_Click Subs.
__________________
.
.
.
Don't ask, I'm fine, honest. !!
.
.
.
Just a little crazy at times



O2 XDA, GW Evo 2.1 UC WWE Rom, WM6.1
Radio Ver 03.34.90
With Basic4ppc V6.80


http://www.taximania.co.uk
Reply With Quote
  #5 (permalink)  
Old 02-18-2010, 09:25 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
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
ascii character problem Gale Johnson Questions (Windows Mobile) 1 05-28-2008 04:59 PM
Serial terminal ,send ASCII/HEX alex_up Russian Forum 0 12-15-2007 12:18 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:22 AM.


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