Wednesday, March 01, 2006

The Judgement Space
Johhny & Kent



explain something about how to communicat between Java and Microcontroller


Java:
installation requirement (all from the official website of Java Technology)
J2SE
Java communicatino API 2.0(Javax.comm) for windows- download here. 2.0 for windows version is a little difficult to find online. (new 3.0 only support linux & solar O/S)
Java Media Framework 2.0 (JMF) - for connecting with media device (mic, webcam......)

Microcontroller:
SEROUT - sending data to PC
SERIN - receiving data from PC
please refer to the help file for detail
Because Stamp can't run under multi-threads, it means that the code won't go to next line until it receive any data or reachs the timeover limit.
Therefore, it's a little tricky to use flag to decide when you REALLY want to SERIN to be run.


code:
Java - communication.jar

PBasic - comm.bs2


Book recommendation:
Physical Computing - Classical tutorial book.

Comments: Post a Comment



<< Home

This page is powered by Blogger. Isn't yours?