Hi,
I am trying to write to a serial port from a Windows CE 6.0 device (Motorola MC3100). I have searched the forums and tried a few solutions but had no luck getting them to work.
Windows 7 64bit
lazarus-1.0-fpc-2.6.0-win32
lazarus-1.0-fpc-2.6.0-cross-arm-wince-win32
Prolific USB-to-Serial Comm Port Adapter
Motorola MC3100 running Windows CE 6.0
So far I have tried:
http://80.123.225.56/index.php?topic=9619.0 but received an 'Access Violation' error when I execute OpenPort.
uses Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, StdCtrls, Win32CESerialCom;
...
var
frmMain: TfrmMain;
uploadString: String;
Serial1: TWin32CESerialCom;
...
procedure TfrmMain.btnUploadClick(Sender: TObject);
begin
Serial1.OpenPort('COM5',19200,8,1,1);
end;
I have also looked into MiniLib
http://www.lazarus.freepascal.org/index.php/topic,6492.0.html but the link was dead \ could find the relevant files.
Also, as pointed out in that thread
Synaser and 5pdo do not support for winCE platform.
relevant thread
http://www.lazarus.freepascal.org/index.php?topic=6489.0 says:
"I have recieved reply form Synapse project
'It is because I never try to compile it for WinCE, and current IFDEFs not identifying this platform correctly.'
'> That means I can not use synaser under windows mobile system in PDA or> Smartphone?
---Yes. It means - nobody ported Synaser to this platform yet.'"
Again
http://www.lazarus.freepascal.org/index.php?topic=6485.0 - I received the same error "Can't find unit termio used by synaser" as this guy.
Any help at all greatly appreciated.