Quantcast
Channel: Xojo Programming Forum - Latest topics
Viewing all articles
Browse latest Browse all 3791

Android Socket issues with ASCII characters > 128

$
0
0

For the past 2 days I have been trying to send simple 3 character command strings to a motor controller using the Xojo 2024 R2 Android TCPSocket.

Command 1: characters 255 + 0 + 254

Command 2: characters 255 + 0 + 0

Using a data analyser, characters > ASCII 128 are received as 2 bytes

Bytes: 5 [195] [191] [0] [195] [190]
Bytes: 4 [195] [191] [0] [0]

Sending from a desktop application gives the correct result.

Bytes: 3 [255] [0] [254]
Bytes: 3 [255] [0] [0]

Various encoding definitions have been tried including UTF8 and ISOLatin1 but the result is the same. Using String.Chr and String.ChrByte also fails.

Is this a limitation of Android or an issue with the Xojo Android Socket. Any thoughts and ideas would be appreciated.

5 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 3791

Trending Articles