It just like a Swiss Army Knife for P-alert so we call it PALSAK.
- DOSBox
- Borland C++
- MiniOS7 Utility
- Obsoleted P-alert (u7186EX) x1
- Small button 7mm (NO) x2
- 18650 Li-ion battery x3
- 18650 battery box x1
- Power switch (NO) x1
- Ethernet cable w/ vertical connector 1.5m x1
- Power cable (2 core) 1.5m x1
- First, download DOSBox & Borland C++ from the internet (Recommend versions are v0.74-3 & v3.1 respectively).
- Run the DOSBox with a new terminal.
- Mount C to the disk where you install the Borland C++. For example, if you install that under disk D, you can execute this command:
mount c D:\. - Change directory to the C:\ by execute this command:
C:\. - And then execute the Borland C++ by this command:
BC\BIN\BC.EXE. - F10->Project->Open project->Go to where you put the source of PALSAK->PALSAK.PRJ->Enter
- F10->Window->Directories:
- Include Directories:
C:\BC\INCLUDE; .\INCLUDE - Library Directories:
C:\BC\LIB
- Include Directories:
- F10->Options->Compiler->Code generation:
- Model->Large
- Options->Treat enum as ints
- Options->Pre-compiled headers
- Assume SS Equals DS->Default for memory model
- F10->Options->Compiler->Advanced code generation:
- Floating Point->None
- Instruction Set->80186
- Options->Generate underbars
- Options->Fast floating point
- Far Data Threshold:
32767
- F10->Options->Compiler->Optimizations:
- Optimizations->Global register allocation
- Optimizations->Suppress redundant loads
- Optimizations->Dead code elimination
- Optimizations->Jump optimization
- Register Variables->Automatic
- Common Subexpressions->No optimization
- Optimize For->Size
- F10->Options->Debugger
- Source Debugging->None
- Display Swapping->None
- Inspectors->Show inherited
- Inspectors->Show methods
- Inspectors->Show decimal
- Program Heap Size:
64
- Ins->add items:
- 7186EL.LIB
- TCP_DM32.LIB
- PALSAK.C
- BUTTONS.C
- FILE.C
- FTP.C
- SPTIME.C
- LEDINFO.C
- Press F9 to build the program PALSAK.EXE.
- Open another project, AGENT.PRJ, and do step 7. to 11. again.
- Ins->add items:
- 7186EL.LIB
- TCP_DM32.LIB
- AGENT.C
- LEDINFO.C
- Press F9 to build the program AGENT.EXE.
- Finish the building process.
- First, download the MiniOS7 Utility from here and install it.
- After install, open the program.
- Connect the ethernet cable to the device, and press the init button & turn on the power. It will start to count seconds on the display.
- Connect(F2)->connection->UDP:
- IP:
192.168.137.123 - Port:
23
- IP:
- Press OK to connect the device, and then upload files like following instructions:
Disk A:
0. AGENT.EXE
1. block_0.ini
2. ftp_info.ini
3. PALSAK.EXE
4. autoexec.bat
Disk B:
0. plt00XXX.exe <- The latest P-alert firmware.
- After finish all the uploadings, just disconnect the device with computer.
- Connect the ethernet cable w/ vertical connector back.
- Connect the other side to a P-alert and turn on the power.
- Init button (red) for switching, and CTS button (black) for comfirming.
Under construction...