Kirjoitettu: sunnuntai, 30. kesäkuuta 2002 klo 12.29
Olen tekemässä kämmentietokone-pöytätietokone yhdistelmää parilla ohjelmalla jossa tuli ongelmia. Asensin nuo hommat kämmentietokoneelle ja sit tuo remote access hämäsi.. siis mitä teen kun olen instaloinut ohjelmat kämmentietokoneelle? Kielitaitoiset hohoi!
PV-uIP A porting of the uIP TCP/IP stack
1. Usage
You need first to install on your PV unit (using PVM), both the executable and the data files:
PV-uIP.bin PV-uIP.adt
In order to establish a TCP/IP connection between the PC and the PV, you should setup a remote -access connection on the PC, configured as follow (uspecified settings are not important):
Standard modem, on the COM port where PV cradle is conneced to, Com port: speed max 38400bps, 8 bit, No parity, 1 stop bit, TCP/IP: SLIP type, IP address 192.168.0.1, no IP compression.
After that, run the PV-uIP application on your PV unit, and then open the remote-access connection on your PC. A list of modem commands will be listed on the PV screen, each with the corresponding answer. After the CONNECT message, the SLIP terminal screen should appear on your PC. Click the 'continue' button and a tcp/ip link between PC and PV will be established.
To terminate comunication just touch the PV screen, and close the 'remote access' program on PC.
REPORTED BUG: A problem was found when trying to use PV-uIP with Windows NT/2000/XP operating system on the PC: connection can be established with the PV; a 'ping' command is correctly executed; but access to the web server HTML pages with Internet Explorer doesn't work (not tested with Netscape or different browsers). No problems of this kind were found by using Windows 95/98/ME.
PV-uIP was changed in order to load html files from the internal file system of the PV.
A tool by the great Emil Biserov (fatty777@mail.ru) - adtmio.exe, was used in order to build the PV ADT archive with the site files acessed by PV-uIP. This can be used again to change the pages.
Now, in order to built the PV file containing the html static pages, a tool provided by the great - adtmio.exe, must be used. This is needed to load in a single ADT file all of the html, and other files composing the site which PV-uIP accesses to. You can create your own site, including hyperlinks, images, etc., considering the following constraints:
- each of the record in the ADT must be less than 6000 bytes. Record is the sum of file size + filename (including path) - each filename (including path) must be less than 120 bytes long - the ADT file name must always be fixed to 'PV-uIP.adt'
The usage od adtmio.exe is the following: adtmio <command> [-<switch> [-<switch>...]] <adtname> [<file_names>] where <command> is one of: a: add files <file_names> to <adtname> ADT archive (optional .adt extension) l: list files included in <adtname> d: delete files from archive (not implemented yet) e: extract files from archive (not implemented yet) <switch> is one of: r: recurse subdirectories
As a proof-of-concept application, I used the HTTP server implemented for the C64 porting of uIP. This is not really useful, but it demonstrates that is possible to access PV data using no proprietary software on the PC, but a general purpose web browser. To access the PV home page use address
http://192.168.0.2/index.html
The html page is presently hard-coded into the C source code of the PV-uIP application running on the PV, but it's my idea to generalize this approach in order to use the PV internal file system. I didn't decide yet how to implement this, but the 'shared file' approach could be a useful one. An easy-to-use tool to trasfer html-text files to PV shared-file format .adt files is also needed, in order to simplify page creation.