D
Hi guys,
I try to ship via the IRDA interface data, unfortunately I get an error message.
Can someone tell me what am I doing wrong?
@mjcoon
When I run your example, then I get this message: "Serial error = 0"
thanks for the link.
If it is from Msgbox(Exception1.Message) it is likely that your device is running CF3.5 but does not have the exception error messages installed in the ROM to save memory space. For WM 5.0 you probably need to install NETCFv35.Messages.DE.wm.cab if you can find a copy. I couldn't find it on MSDN but did find it here
https://rapidshare.com/#!download|530p9|402902242|NETCFv35.Messages.DE.wm.cab|277|0|0
... For WM 5.0 you probably need to install NETCFv35.Messages.DE.wm.cab if you can find a copy.
No, I get 2 error messages.Do the Exception library examples run OK?
public void Output(byte[] Value)
{
sp.Write(Value, 0, Value.Length);
}
"IOException"
bei System.IO.Ports.SerialStream.WinIOError()
bei System.IO.Ports.SerialStream.Write()
bei System.IO.Ports.SerialPort.Write()
bei WinShowMi.frmMain.SendStream()
bei WinShowMi.frmMain.go_SendSyncrostring()
bei WinShowMi.frmMain.btnSendSyncrostring_Click()
bei System.Windows.Forms.Control.OnClick()
bei System.Windows.Forms.Button.OnClick()
bei System.Windows.Forms.ButtonBase.WnProc()
bei System.Windows.Forms.Control._InternalWnProc()
bei Microsoft.AGL.Forms.EVL.EnterMainLoop()
bei System.Windows.Forms.Application.Run()
bei WinShowMi.frmMain.Main()
I don't know if this applies here but it looks like it might. The official way to access the IRDA port from a .NET program is via the Compact Framework IrDAClient class.Raw IR access is only available on devices that expose the IR hardware as a serial port ... If a Windows CE–based device shares serial hardware with the IR port and the serial port, an application must instruct the COM driver to route data through the IR port. .... The SerialPort implementation on NETCF does not support raw IR access, as we do not provide a way to set the SETIR flag.
Sorry I've not been on here for a while.
I'll post all my IRDA projects and data tomorrow.
If it can be done on a PPC, I've done it.
If it can't, I haven't