This demo performs communications between a standalone Revolution console USB (COM) port and a standalone PC. The USB (COM) ports are used for bidirectional communications.
The Revolution sends data to the PC
Sends Revolution calendar data during send okay status.
The PC sends data to the Revolution
Sends PC calendar data during send okay status.
Note:simple does not use Hio2If.
| Revolution | : | src/simple.c, include/simple.h, multi.h |
| PC | : | vc++/simplel/*, vc++/HioIf/src/Hio2DllIf.cpp, vc++/HioIf/src/Hio2DllIf.h |
| Revolution | ||
| - | A Button | Switches communication methods (Revolution -> PC or PC -> Revolution) |
| - | PAUSE button | Press to quit. |
| PC | ||
| - | ESC key | Press to quit. |
hio2demo/src/simple.c has two methods that can be used to detect mail from the PC.
default
Detects the method using a callback function (EXI interrupt).
Specify -DPOLLING during build
Detects the method using HIO2ReadStatus.
03/01/2006 Initial version.