I am trying to write a Xojo app to communicate with a device (a ZVT-ECash Terminal) that is connected to my Mac through a USB/Serial adapter.
I am testing my app on OS X and on Windows 7 (running under Parallels). In both cases I'm sending a string (always the same one) through Serial.Write somehow like that:
command = chrb(&h10) + chrb(&h02) + chrb(&h06) + chrb(&h00) +chrb(4)...
Serial1.Write(command)
Serial1 is an instance of the Serial control.
This string is acknowledged by the device as a valid command when I run my app on Windows and is not acknowledged on OS X (the device answers with a NAK).
On OS X I have also tried to send the same string manually with CoolTerm and it was not acknowledged either.
What am I doing wrong? Is it some problem with the Serial control in Xojo, and/or is there some general difference in how the serial port works under Win and OS X?