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

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

Bug Reports Post about errors or bugs encountered.

Serial Port problem transmitting a Decimal 43 character.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-11-2010, 02:32 PM
pdablue's Avatar
Senior Member
 
Join Date: Sep 2007
Posts: 113
Arrow Serial Port problem transmitting a Decimal 43 character.

Hi,

I have encountered a problem when trying to transmit the Decimal
character 43 across a serial port connection.

I have written the following two programs:

ASCII128.sbp

This program should transmit a specific ASCII character (0-127),
one time, each time a button is pressed.

BINARY256.sbp

This program should transmit a specific BINARY character (0-255),
one time, each time a button is pressed.

I encounter a problem when I try to transmit a Decimal character 43.

I want to be able to press the Decimal character 43 key one time and
transmit the character one time across a serial port connection. Instead,
I have to press the button 4 times before the program will transmit
anything. When the program does transmit, it transmits 4 characters
at a time.

This process repeats over and over again when I try to transmit a
Decimal character 43.

I have tried the following serial DLLs and I get the same results
no matter which serial DLL that I use.

SerialDevice.dll
Serial2.dll
SerialEx.dll

I am using Net Compact Framework version 2.0 on the PDA device.

The PDA that I am using is an HP IPAQ H2210.

Has anyone else encountered a problem when trying to transmit a
Decimal 43 character across a serial port connection from the PDA
to an external serial port device?

Here is the basic4ppc source code for the two programs that I
have written.

Below are the installation files for the PDA device:

The zipped up (.CAB) installation file for the ASCII 128 program is:

asc128.zip

The zipped up (.CAB) installation file for the BINARY 256 program is:

bin256.zip

Last edited by pdablue : 02-12-2010 at 09:32 AM.
Reply With Quote
  #2 (permalink)  
Old 02-11-2010, 04:11 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-12-2010, 12:45 AM
Basic4ppc Veteran
 
Join Date: May 2008
Location: Newcastle Upon Tyne - England
Posts: 269
Awards Showcase
Beta Tester 
Total Awards: 1
Default

A lot of modems reserve this character sequence as the 'Escape Sequence' and you may place the remote modem in its command mode. Ironically, you may send a stream of characters including the +++, but the escape sequence (for the Hayes Command Set) is invoked if you have a pause of at least one second, the '+++' then another pause for one second. That's probably why your device is waiting for more + characters.

Send "Test +++ this message" in one go any you'll see it transmits through OK.

Last edited by Zenerdiode : 02-12-2010 at 12:56 AM.
Reply With Quote
  #4 (permalink)  
Old 02-12-2010, 08:48 AM
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

Quote:
Originally Posted by Zenerdiode View Post
the Hayes Command Set
Ahh! That takes me back to when a 300 baud Hayes modem was a thing of envy!
__________________
Sorry, but I don't answer questions by PM or email.
Please post your queries in the forum.
Reply With Quote
  #5 (permalink)  
Old 02-18-2010, 09:22 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 Binary Character (0-255) Transmit program. pdablue Share Your Creations 2 02-18-2010 09:28 AM
Serial Port ASCII character (0-127) Transmit program. pdablue Share Your Creations 4 02-18-2010 09:25 AM
Problem with sending Chr(128) - Chr(255) to a serial port device aruangra Questions (Windows Mobile) 4 01-13-2010 01:29 AM
Using the USB port as a serial port :-) taximania Questions (Windows Mobile) 9 10-03-2009 08:14 PM
opening a new bluetooth serial port and transmitting sound V8dodgeram318 Questions (Windows Mobile) 3 07-04-2009 07:22 AM


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


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