![]() |
|
|||||||
| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
| Questions & Help Needed Post any question regarding Basic4ppc. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
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?
|
|
||||
|
You should use Serial.Output2 to send the required bytes.
The Bitwise library allows you to convert strings to bytes and vice versa. |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
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 |