NEX-001

From LEXWiKi

(Difference between revisions)
Jump to: navigation, search
(New page: Category:AllowPages == Why to use EWF? == Enhanced Write Filter (EWF) provides the ability to write-protect a run-time image. By redirecting all write requests to either a separate di...)
Current revision (16:31, 3 March 2023) (edit) (undo)
 
(20 intermediate revisions not shown.)
Line 1: Line 1:
[[Category:AllowPages]]
[[Category:AllowPages]]
-
== Why to use EWF? ==
+
== The Sample code source bin you can download from ==
-
 
+
-
Enhanced Write Filter (EWF) provides the ability to write-protect a run-time image. By redirecting all write requests to either a separate disk partition(Disk mode) or RAM(Ram-Reg mode).
+
-
 
+
-
== How many modes does EWF has? ==
+
-
 
+
-
There are Disk mode and Ram-Reg mode.
+
-
 
+
-
== What's different about the modes? ==
+
-
 
+
-
'''Ram-Reg mode''' works by clear all the write requests when reboot.
+
-
1.System will restore when reboot.
+
-
2.Doesn't need any other invisible partition.
+
-
 
+
-
'''Disk mode''' works by the check point and restore.So Disk mode needs an invisible partition to save the write request of the check points.
+
-
1.Can set 9 check points.
+
-
2.Doesn't restore when reboot only if enter a restore commend.
+
-
3.Need an invisible partition in storage.
+
-
4.If you will do a big write request , ex:download some file , please disable the EWF first.
+
-
If the size of the write request is bigger than the size of the invisible partition. The WES will be crash.
+
-
5.There are no Disk mode in WES7.
+
-
 
+
-
== The Sample code source you can download form ==
+
<Google Drive>
<Google Drive>
-
Source file: [https://drive.google.com/file/d/1b1dxzxEu7E7prDQnOY2uxKDE6azr2FBC/view?usp=sharing EWF_Manager_Src_v1.5]
+
Binary file: [https://drive.google.com/file/d/1Aw60UwgPvXVGU8rfEZ1CFtRN401A4Q4A/view?usp=share_link NEX-001Y_v1.0_bin.zip]
-
 
+
-
Binary file: [https://drive.google.com/file/d/1Ut9oNVMGjV8bRdCYtloh-namnlroA3xq/view?usp=sharing EWF_Manager_Bin_v1.5]
+
<FTP>
<FTP>
-
Source file: [ftp://ftp.lex.com.tw/Engineer/SoftSupport/AP_Module/EWF/EWF_Manager_v1.5_Src.rar EWF_Manager_Src_v1.5]
+
Binary file: [ftp://ftp.lex.com.tw/Engineer/SoftSupport/AP_Module/NEX-001/NEX-001Y_v1.0_bin.zip NEX-001Y_v1.0_bin.zip]
-
 
+
-
Binary file: [ftp://ftp.lex.com.tw/Engineer/SoftSupport/AP_Module/EWF/EWF_Manager_v1.5_Bin.rar EWF_Manager_Bin_v1.5]
+
-
== How to use the DEMO application ==
+
== How to use NEX-001 test program? ==
-
[[Image:EWF.jpg]]
+
1.Use make to compile the test file. After completion, you can enter the BIN folder and execute the test program.
-
1&2.Choose the EWF partition.
+
[[Image:NEX-001menu.jpg]]
-
3.Enable EWF.
+
2.Select the model or use the scanner to read the hardware information, if there is none, you can skip
-
4.Disable EWF.
+
3.Select the function to test
-
5.Commit EWF-In RAM-Reg mod:Can do change on OS without reboot.In DISK mode,the layer will set to 1.
+
'''Note: NEX-001 cannot use functions 4, 5, and 6'''
-
6.Clear the command which you chose.
+
== How to test NEX-001 COM? ==
-
7.Show the drive information.
+
1. You need a device to receive the signal. We use RS485 to RS232 as a test tool
-
8.Show the EWF information.
+
[[Image:NEX-001com_cable.jpg]]
-
9.Reboot.
+
2. Check the CCA1 signal and connect it correctly
-
10.After choose the EWF partition,here will show the EWF infomation.
+
[[Image:NEX-001com_CCA1.jpg]]
-
11.You can set checkpoint when DISK mode.
+
3.In the program, select ALL TEST to see that the COM option is correct when it is completed
-
12.Choose the layer which you want to restore.
+
[[Image:NEX-001com_comport.jpg]]
-
13.You can restore the system when DISK mode.
 
-
14.Go to layer1 , and the other layer will disappear.
+
== How to test NEX-001 CAN? ==
 +
1.A parallel line is needed to connect can0 and can1 with DuPont line
-
== Sample code Introduction ==
+
[[Image:NEX-001can_cable.jpg]]
-
===Do EWF Enable===
+
-
DWORD CEWF::DoEwfEnable(LPCWSTR szProVolName,BOOL bReboot)
+
-
{
+
-
DWORD dwStatus = ERROR_SUCCESS;
+
-
HANDLE hProVol = INVALID_HANDLE_VALUE;
+
-
BOOL bResult = FALSE;
+
-
+
-
// Use the volume name to open a handle to this protected volume.
+
-
hProVol = EwfMgrOpenProtected(szProVolName);
+
-
+
-
EwfMgrEnable(hProVol);
+
-
+
-
// This command requires a reboot to take effect.
+
-
if (bReboot) DoReboot();
+
-
+
-
return dwStatus;
+
-
}
+
-
===Do EWF Disable===
+
2.Check the CCA1 signal and connect it correctly
-
DWORD CEWF::DoEwfDisable(LPCWSTR szProVolName , BOOL fCommit, BOOL bReboot)
+
-
{
+
-
DWORD dwStatus = ERROR_SUCCESS;
+
-
HANDLE hProVol = INVALID_HANDLE_VALUE;
+
-
BOOL bResult = FALSE;
+
-
+
-
// Use the volume name to open a handle to this protected volume.
+
-
hProVol = EwfMgrOpenProtected(szProVolName);
+
-
+
-
EwfMgrDisable(hProVol,fCommit);
+
-
+
-
// This command requires a reboot to take effect.
+
-
if (bReboot) DoReboot();
+
-
+
-
return dwStatus;
+
-
}
+
-
===Do EWF Commit===
+
[[Image:NEX-001can_CCA1.jpg]]
-
DWORD CEWF::DoEwfCommit (LPCWSTR szProVolName , BOOL bReboot)
+
-
{
+
-
DWORD dwStatus = ERROR_SUCCESS;
+
-
HANDLE hProVol = INVALID_HANDLE_VALUE;
+
-
BOOL bResult = FALSE;
+
-
+
-
// Use the volume name to open a handle to this protected volume.
+
-
hProVol = EwfMgrOpenProtected(szProVolName);
+
-
+
-
EwfMgrCommit(hProVol);
+
-
+
-
// This command requires a reboot to take effect.
+
-
if (bReboot) DoReboot();
+
-
+
-
return dwStatus;
+
-
}
+
-
===Do Set checkpoint===
 
-
DWORD CEWF::DoEwfCheckPoint (LPCWSTR szProVolName, BOOL bReboot)
 
-
{
 
-
DWORD dwStatus = ERROR_SUCCESS;
 
-
HANDLE hProVol = INVALID_HANDLE_VALUE;
 
-
BOOL bResult = FALSE;
 
-
 
-
// Use the volume name to open a handle to this protected volume.
 
-
hProVol = EwfMgrOpenProtected(szProVolName);
 
-
 
-
EwfMgrCheckpoint(hProVol,L"Optional description");
 
-
 
-
// This command requires a reboot to take effect.
 
-
if (bReboot) DoReboot();
 
-
 
-
return dwStatus;
 
-
}
 
-
===Do Restore===
+
3.In the program, select ALL TEST or Test Felxcan to see that the CAN option is correct when it is completed
-
DWORD CEWF::DoEwfRestore(LPCWSTR szProVolName, BOOL bReboot)
+
-
{
+
-
DWORD dwStatus = ERROR_SUCCESS;
+
-
HANDLE hProVol = INVALID_HANDLE_VALUE;
+
-
BOOL bResult = FALSE;
+
-
+
-
// Use the volume name to open a handle to this protected volume.
+
-
hProVol = EwfMgrOpenProtected(szProVolName);
+
-
+
-
EwfMgrRestore(hProVol);
+
-
+
-
// This command requires a reboot to take effect.
+
-
if (bReboot) DoReboot();
+
-
+
-
return dwStatus;
+
-
}
+
-
===Do EWF SetLevel===
+
[[Image:NEX-001can_report.jpg]]
-
DWORD CEWF::DoEwfSetLevel(LPCWSTR szProVolName , BOOL bReboot)
+
-
{
+
-
DWORD dwStatus = ERROR_SUCCESS;
+
-
HANDLE hProVol = INVALID_HANDLE_VALUE;
+
-
BOOL bResult = FALSE;
+
-
+
-
// Use the volume name to open a handle to this protected volume.
+
-
hProVol = EwfMgrOpenProtected(szProVolName);
+
-
+
-
EwfMgrSetLevel(
+
-
hProVol,
+
-
L"Optional Description",
+
-
0, // Level zero to be restored back to the protected volume.
+
-
FALSE); // Cannot delete the protected volumes data.
+
-
// This command requires a reboot to take effect.
+
-
if (bReboot) DoReboot();
+
-
+
-
return dwStatus;
+
-
}
+

Current revision

Contents

The Sample code source bin you can download from

<Google Drive>

Binary file: NEX-001Y_v1.0_bin.zip

<FTP>

Binary file: NEX-001Y_v1.0_bin.zip

How to use NEX-001 test program?

1.Use make to compile the test file. After completion, you can enter the BIN folder and execute the test program.

Image:NEX-001menu.jpg

2.Select the model or use the scanner to read the hardware information, if there is none, you can skip

3.Select the function to test

Note: NEX-001 cannot use functions 4, 5, and 6

How to test NEX-001 COM?

1. You need a device to receive the signal. We use RS485 to RS232 as a test tool

Image:NEX-001com_cable.jpg

2. Check the CCA1 signal and connect it correctly

Image:NEX-001com_CCA1.jpg

3.In the program, select ALL TEST to see that the COM option is correct when it is completed

Image:NEX-001com_comport.jpg


How to test NEX-001 CAN?

1.A parallel line is needed to connect can0 and can1 with DuPont line

Image:NEX-001can_cable.jpg

2.Check the CCA1 signal and connect it correctly

Image:NEX-001can_CCA1.jpg


3.In the program, select ALL TEST or Test Felxcan to see that the CAN option is correct when it is completed

Image:NEX-001can_report.jpg

Personal tools