[Tinyos-help] TinsOS 2.0 + Windows Mobile 5
Elias Weingärtner
tinyos at verspult.com
Thu Feb 15 04:39:09 PST 2007
Folks,
I'm running into huge troubles accessing packets from a mote attached
to a Pocket PC's USB host, and it's really painful to get things to
work:
Instead of using JavaComm TinyOS 2.0 relies on a JNI Implementation
for serial port access. (I recall TinyOS 1.x used JavaComm, so why the
change?? ) Therefore, getting SerialForwarder/MoteIF etc. to run on a
plattform different to Linux/Unix/Win32 to run seems quite cumbersome
to me:
1) One option would be to port the native code to the new target
plattform, im my case Windows Mobile 5. I tried this, starting with
the native implementation for windows 32 using Windows Mobile 5 SDK +
Visual Studio... They main reason this did not work out was that the
JNI of Win32 implementation relies on Overlapped aka asychronous I/O
not provided by Windows Mobile. As TinyOS's native interface is not
commented at all, this is really painful... (I tried to port the
TinyOS-JNI interface for MySaifu JRE). It simply does not work!
Did anybody already manage to do this? Is there a Windows Mobile 5.0 Serial
Forwarder out there???
2) Access the serial data directly. Possible, but also cumbersome...
3) Port the C Serial-Forwarder to Windows Mobile 5, but it heavily
relies on UNIX envionments...
Any suggestion will be helpful!
best regards,
Elias
3) Second Option: Use TinyOS 1.X java code and modify it to work with
TinyOS 2.
More information about the Tinyos-help
mailing list