Use the following steps: (Detail steps)
1. Use 7188xw.exe to divide the 7188E into 2 disks, Disk A and Disk B.
For example:
7188E>disksize 6 1 (If you use the 7188E attached to the 512K Flash)
Total size in Disk A has 6*64= 384K
Total size in Disk B has 1*64= 64K
or
7188E>disksize 2 1 (If you use the 7188E attached to the 256K Flash)
Total size in Disk A has 2*64= 128K
Total size in Disk B has 1*64= 64K
Notes:
1. Enter the command 'diskszie 7 0' after the '7188E>' prompt to restore the 7188E to a single Disk.
2. Use the 'dela' or 'delb' command to delete the all files on Disk A or B.
2. Load two files, TCP_LOAD.exe and autoexec.bat to Disk B of the 7188E.
Note: Write, 'TCP_LOAD.exe' on a single line in the autoexec.bat, without adding any other characters, such as CR, LF or Pressing the 'Enter' key.
3. You can enter the 'run' command to execute the 7188E manually or
power on the 7188E to run 'TCP_LOAD.exe' automatically using the autoexec.bat.
4. Use 7188E.EXE to load file to the 7188E (Refer to the figure below).
C:>7188E /s: xxx.xxx.xxx.xxx /p:10000 (The default port)
where xxx.xxx.xxx.xxx is the 7188E internal IP.
Type the '33dir' command to determine whether the files exist on Disk A.
Press the 'F2' key to input a filename for loading, and then
press the 'F9' load the file to Disk A of the 7188E.
Type the '33reset' command to reset the 7188E.
NOTEs:
1. Please refer to ICPDAS CD:\Napdos\MiniOS7\utility\doc\7188e_eng.htm for more details regarding the command sets of 7188E.EXE
2. If the file loaded to the 7188E is not an executable file, such as 'xxx.exe', the file will not be executed by the 7188E.
3. You can enter the '33del' command to delete any files existing on Disk A of the 7188E after connecting to the 7188E by using 7188E.exe.
You must use MiniOS7 and a LIB version later than 05/29/2003.
The latest MiniOS7 image file and library are in the CD:\Napdos\7188e\Tcp\Other\tcp_load\lib.zip or here
| MiniOS7 commands related to the subject | |||
| ITEM | COMMAND for Disk A | COMMAND for Disk B | DESCRIPTION |
| 1 | DIR | DIR | Display information about files saved in Flash memory. use the option /crc will also do CRC-16 check. |
| 2 | load | loadb | DOWNLOAD file to FLASH memory. load command for downloading to Disk A, loadb command for downloading to Disk B. |
| 3 | del | delb |
DELETE all files saved in Flash
memory.(will ask user to press 'y' then DELETE the files.) Use the option /y to delete files directly. |
| 4 | run fileno | runb fileno |
Execute the file that file index is "fileno".
(only .BAT .COM .EXE files can be executed.) File index is begin from 0, use command DIR will show the file index |
|
more...... |
|||
提供另一個方式來更新程式 (詳細使用方法)
A.使用 7188xw.exe把系統設定成 DISK A 跟 DISK B。
例如用命令(flash is 512K): "disksize 6 1"
DISK A 共有 6*64=384 k
DISK B 有 64 K
(flash is 256K): "disksize 2 1"
DISK A 共有 2*64=128 k
DISK B 有 64 K
B. DISK B 裏頭放 TCP_LOAD.exe 和 autoexec.bat
autoexec.bat 裏頭只要包含一行 "TCP_LOAD.EXE" 不要有多餘的 CR 或 LF。
也就是檔案長度只有 12 BYTES,不然會有影響。
C. USER 程式放在 DISK A,例如 vcom3009.exe。
D. 系統一開機就會執行 autoexec.bat,也就會執行 tcp_load.exe。
tcp_load.exe 會先檢查 DISK A 有沒有檔案,有他就用 Ungetch() 送出
"run\r" 給系統,然後結束程式。接著就會執行 "run" 命令,也就是 DISK A 的檔案。
(這邊如果用 run 還會有一些限制,USER 的執行檔要放再DISK A 最後一個。因為
RUN 只找最後一個檔案執行。如果最後一個是參數檔而不是執行檔,那就不會被執行了。
所以最好是送出 USER 程式的名稱,例如: "vcom3009.exe\r"。)
E. 使用 7188E.EXE 即可將檔案傳送至7188E,如
C:>7188E /s: xxx.xxx.xxx.xxx /p:10000 (The default port)
where xxx.xxx.xxx.xxx is the 7188E internal IP.
USER 程式需要支援的功能:
基本上需要 "33del" 跟 "33reset" 就可以了。
遠程先下 "33del" 命令把 DISK A 的檔案DELETE 掉之後,下 "33RESET" 命令
讓系統 RESET。這樣就RESET,執行 tcp_load.exe,這時候 DISK A 沒有檔案,
tcp_load.exe 就會等著接受 CLIENT 端 DOWNLOAD 新的程式進來。
(這時候CLIENT 端需要重新聯機到 tcp_load.exe)
檔案更新完之後,下一個 "run" 命令給 tcp_load.exe 就可以執行更新後程式
了。
這個方法在只有 256K flash 的狀況下應該也是安全的。(限制是 USER 程式大只能到
64*2=128K,如果大於 128K,那就用 lzexe 壓縮看能不能壓到128K之內囉。)
*** OS 跟 LIB 都要使用 05/29/2003 (含)以後的版本。 ***
於 CD:\Napdos\7188e\Tcp\Other\tcp_load\lib.zip or here 可以找到最新的OS 及 LIB
| 相關的MiniOS7命令 | |||
| 項次 | 適用Disk A命令 | 適用Disk B命令 | 敘述 |
| 1 | DIR | DIR | 顯示目前所有DOWNLOAD的檔案編號名稱日期大小及放置位置以及FLASH剩餘空間。有加上/crc時還會對檔案作CRC-16的檢查 |
| 2 | load | loadb | DOWNLOAD程式到FLASH。Download 檔案時所使用的速度與一般下命令時相同。. load 命令用於下載檔案至Disk A, loadb 命令用於下載檔案至 Disk B. |
| 3 | del | delb |
DELETE檔案,一定是全部DELETE掉。(會詢問USER,按'y'之後才DELETE檔案。) 加參數: /y 直接DELETE 檔案 |
| 4 | run fileno | runb fileno | 執行第幾號程式, fileno檔案序號(只有.BAT.COM.EXE可以執行) |
|
更多命令...... |
|||
提供另一个方式来更新程序 (详细使用方法)
A.使用 7188xw.exe把系统设定成 DISK A 跟 DISK B。
例如用命令(flash is 512K): "disksize 6 1"
DISK A 共有 6*64=384 k
DISK B 有 64 K
(flash is 256K): "disksize 2 1"
DISK A 共有 2*64=128 k
DISK B 有 64 K
B. DISK B 里头放 TCP_LOAD.exe 和 autoexec.bat
autoexec.bat 里头只要包含一行 "TCP_LOAD.EXE" 不要有多余的 CR 或 LF。
也就是档案长度只有 12 BYTES,不然会有影响。
C. USER 程序放在 DISK A,例如 vcom3009.exe。
D. 系统一开机就会执行 autoexec.bat,也就会执行 tcp_load.exe。
tcp_load.exe 会先检查 DISK A 有没有档案,有他就用 Ungetch() 送出
"run\r" 给系统,然后结束程序。接着就会执行 "run" 命令,也就是 DISK A 的档案。
(这边如果用 run 还会有一些限制,USER 的执行档要放再DISK A 最后一个。因为
RUN 只找最后一个档案执行。如果最后一个是参数档而不是执行档,那就不会被执行了。
所以最好是送出 USER 程序的名称,例如: "vcom3009.exe\r"。)
E. 使用 7188E.EXE 即可将档案传送至7188E,如
C:>7188E /s: xxx.xxx.xxx.xxx /p:10000 (The default port)
where xxx.xxx.xxx.xxx is the 7188E internal IP.
USER 程序需要支持的功能:
基本上需要 "33del" 跟 "33reset" 就可以了。
远程先下 "33del" 命令把 DISK A 的档案DELETE 掉之后,下 "33RESET" 命令
让系统 RESET。这样就RESET,执行 tcp_load.exe,这时候 DISK A 没有档案,
tcp_load.exe 就会等着接受 CLIENT 端 DOWNLOAD 新的程序进来。
(这时候CLIENT 端需要重新联机到 tcp_load.exe)
档案更新完之后,下一个 "run" 命令给 tcp_load.exe 就可以执行更新后程序
了。
这个方法在只有 256K flash 的状况下应该也是安全的。(限制是 USER 程序大只能到
64*2=128K,如果大于 128K,那就用 lzexe 压缩看能不能压到128K之内啰。)
*** OS 跟 LIB 都要使用 05/29/2003 (含)以后的版本。 ***
于 CD:\Napdos\7188e\Tcp\Other\tcp_load\lib.zip or here 可以找到最新的OS 及 LIB
| 相关的MiniOS7命令 | |||
| 项次 | 适用Disk A命令 | 适用Disk B命令 | 叙述 |
| 1 | DIR | DIR | 显示目前所有DOWNLOAD的档案编号名称日期大小及放置位置以及FLASH剩余空间。有加上/crc时还会对档案作CRC-16的检查 |
| 2 | load | loadb | DOWNLOAD程序到FLASH。Download 档案时所使用的速度与一般下命令时相同。. load 命令用于下载档案至Disk A, loadb 命令用于下载档案至 Disk B. |
| 3 | del | delb |
DELETE档案,一定是全部DELETE掉。(会询问USER,按'y'之后才DELETE档案。) 加参数: /y 直接DELETE 档案 |
| 4 | run fileno | runb fileno | 执行第几号程序, fileno档案序号(只有.BAT.COM.EXE可以执行) |
|
更多命令...... |
|||