Basic4ppc - Windows Mobile Development  

Go Back   Basic4ppc - Windows Mobile Development > Main Category > Questions & Help Needed
Home Register FAQ Members List Search Today's Posts Mark Forums Read

Questions & Help Needed Post any question regarding Basic4ppc.


ascii character problem


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-28-2008, 03:52 PM
Junior Member
 
Join Date: May 2007
Location: Chicago Illinois USA
Posts: 10
Default ascii character problem

I am trying to send information via a serial port to an electronic machine. The machine requires a coding of "K" to start, followed by CHR(02). At the end of machine coding I need to send CHR(03). Instead, the characters being sent are chr(191) and chr(192). Is there some way to force the serial program to send the correct 02 & 03 ASCII characters?
Reply With Quote
  #2 (permalink)  
Old 05-28-2008, 03:59 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 2,820
Default

You should use Serial.Output2 to send the required bytes.
The Bitwise library allows you to convert strings to bytes and vice versa.
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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
how to display chinese characters (High-ASCII, double-byte) using sqlite3 dennychuang Questions & Help Needed 5 05-22-2008 04:39 PM
Walking character using the Sprite library Erel Code Samples & Tips 2 01-18-2008 05:46 PM
Serial terminal ,send ASCII/HEX alex_up Russian Forum 0 12-15-2007 11:18 AM
Problem with "%" character francisco cobos Questions & Help Needed 4 11-19-2007 09:01 AM
is a single character string a number as well? Stellaferox Questions & Help Needed 16 06-08-2007 11:01 AM


All times are GMT. The time now is 03:55 PM.


Powered by vBulletin® Version 3.6.10
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0