|
|
(28 intermediate revisions not shown.) |
Line 8: |
Line 8: |
| <Google Drive> | | <Google Drive> |
| | | |
- | Binary file(64 bit): [https://drive.google.com/file/d/1SKSb0Fa0zNDuHkGP8ONzPRGbdh_-vxj7/view?usp=share_link PW601_development_tools.zip] | + | Binary file(64 bit): [https://drive.google.com/file/d/15B3VE-Dt11TsUGEbgV9YTKJhselkOCnN/view?usp=drive_link PW601_development_tools_v1.0.0.zip] |
| | | |
| + | Src file(64 bit): [https://drive.google.com/file/d/16AqvQFiUadAEIUpYjBQsu-d4TAMedXKc/view?usp=drive_link PW601lib_src.zip] |
| | | |
| <FTP> | | <FTP> |
| | | |
- | Binary file(64 bit): [ftp://ftp.lex.com.tw/Engineer/SoftSupport/AP_Module/PW601_DLL/Linux/PW601_development_tools.zip PW601_development_tools.zip] | + | Binary file(64 bit): [ftp://ftp.lex.com.tw/Engineer/SoftSupport/AP_Module/PW601_DLL/Windows/Ver1.0.2.5/PW601_development_tools_v1.0.0.zip PW601_development_tools_v1.0.0] |
| + | |
| + | Sample code: [ftp://ftp.lex.com.tw/Engineer/SoftSupport/AP_Module/PW601_DLL/Windows/Ver1.0.2.5/PW601lib_src.zip PW601lib_src] |
| | | |
| | | |
| == Checkable battery options == | | == Checkable battery options == |
| | | |
- | //------------------------------------------------------------------------------
| + | [[Image:PW601function-1.jpg]] |
- | // Name : Init
| + | [[Image:PW601function-2.jpg]] |
- | // Description : Initial super cap device
| + | [[Image:PW601function-3.jpg]] |
- | // Arguments : None
| + | [[Image:PW601function-4.jpg]] |
- | // Return :
| + | |
- | // TRUE : Success
| + | |
- | // FALSE : Failed
| + | |
- | //------------------------------------------------------------------------------
| + | |
- | int Init();
| + | |
- | | + | |
- | //------------------------------------------------------------------------------
| + | |
- | // Name : Free
| + | |
- | // Description : Free super cap device
| + | |
- | // Arguments : None
| + | |
- | // Return :
| + | |
- | // TRUE : Success
| + | |
- | // FALSE : Failed
| + | |
- | //------------------------------------------------------------------------------
| + | |
- | int Free();
| + | |
- | | + | |
- | //------------------------------------------------------------------------------
| + | |
- | // Name : GetCapTimestampSec
| + | |
- | // Description : Get time stamp of super cap information. Unit is second
| + | |
- | // Arguments :
| + | |
- | // llTimestampSec [out] : Time stamp
| + | |
- | // Return :
| + | |
- | // TRUE : Success
| + | |
- | // FALSE : Failed
| + | |
- | //------------------------------------------------------------------------------
| + | |
- | int GetCapTimestampSec(long long llTimestampSec);
| + | |
- | | + | |
- | //------------------------------------------------------------------------------
| + | |
- | // Name : CheckDeviceExist
| + | |
- | // Description : Check Super cap device exist or not.
| + | |
- | // Arguments : None
| + | |
- | // Return :
| + | |
- | // TRUE : Super cap device exist
| + | |
- | // FALSE : Super cap device does not exist
| + | |
- | //------------------------------------------------------------------------------
| + | |
- | int CheckDeviceExist();
| + | |
- | | + | |
- | //------------------------------------------------------------------------------
| + | |
- | // Name : GetCapChargeStatusInfo
| + | |
- | // Description : Get charge status bits of super cap information
| + | |
- | // Arguments :
| + | |
- | // nBits [out] : Bits of super cap charge status
| + | |
- | // Return :
| + | |
- | // TRUE : Success
| + | |
- | // FALSE : Failed
| + | |
- | //------------------------------------------------------------------------------
| + | |
- | int GetCapChargeStatusInfo(int *nBits);
| + | |
- | | + | |
- | //------------------------------------------------------------------------------
| + | |
- | // Name : GetCapPowerStatusInfo
| + | |
- | // Description : Get power status of super cap information
| + | |
- | // Arguments :
| + | |
- | // nBits [out] : Bits of super cap power status
| + | |
- | // Return :
| + | |
- | // TRUE : Success
| + | |
- | // FALSE : Failed
| + | |
- | //------------------------------------------------------------------------------
| + | |
- | int GetCapPowerStatusInfo(int *nBits);
| + | |
- | | + | |
- | //------------------------------------------------------------------------------
| + | |
- | // Name : GetCapVoltageInfo
| + | |
- | // Description : Get voltage of super cap information
| + | |
- | // Arguments :
| + | |
- | // fVoltage [out] : Voltage (Unit: V)
| + | |
- | // Return :
| + | |
- | // TRUE : Success
| + | |
- | // FALSE : Failed
| + | |
- | //------------------------------------------------------------------------------
| + | |
- | int GetCapVoltageInfo(float *fVoltage);
| + | |
- | | + | |
- | //------------------------------------------------------------------------------
| + | |
- | // Name : GetCapOutputVoltageInfo
| + | |
- | // Description : Get output voltage of super cap information
| + | |
- | // Arguments :
| + | |
- | // fVoltage [out] : Output voltage (Unit: V)
| + | |
- | // Return :
| + | |
- | // TRUE : Success
| + | |
- | // FALSE : Failed
| + | |
- | //------------------------------------------------------------------------------
| + | |
- | int GetCapOutputVoltageInfo(float *fVoltage);
| + | |
- | | + | |
- | //------------------------------------------------------------------------------
| + | |
- | // Name : GetName
| + | |
- | // Description : Get device title name
| + | |
- | // Arguments :
| + | |
- | // tcName [out] : Device title name
| + | |
- | // Return :
| + | |
- | // TRUE : Success
| + | |
- | // FALSE : Failed
| + | |
- | //------------------------------------------------------------------------------
| + | |
- | int GetName();
| + | |
- | | + | |
- | //------------------------------------------------------------------------------
| + | |
- | // Name : GetFirmwareVer
| + | |
- | // Description : Get device firmware version
| + | |
- | // Arguments :
| + | |
- | // tcFwVer [out] : Device firmware version
| + | |
- | // Return :
| + | |
- | // TRUE : Success
| + | |
- | // FALSE : Failed
| + | |
- | //------------------------------------------------------------------------------
| + | |
- | int GetFirmwareVer();
| + | |
- | | + | |
- | //------------------------------------------------------------------------------
| + | |
- | // Name : GetCapCapacityInfo
| + | |
- | // Description : Get left capacity of super cap information
| + | |
- | // Arguments :
| + | |
- | // fCapacity [out] : Left capacity (Unit: %)
| + | |
- | // Return :
| + | |
- | // TRUE : Success
| + | |
- | // FALSE : Failed
| + | |
- | //------------------------------------------------------------------------------
| + | |
- | int GetCapCapacityInfo(float *fCapacity);
| + | |
- | | + | |
- | //------------------------------------------------------------------------------
| + | |
- | // Name : GetCapacitorsNum
| + | |
- | // Description : Get number of capacitors on board
| + | |
- | // Arguments :
| + | |
- | // nNum [out] : Number of capacitors
| + | |
- | // Return :
| + | |
- | // TRUE : Success
| + | |
- | // FALSE : Failed
| + | |
- | //------------------------------------------------------------------------------
| + | |
- | int GetCapacitorsNum(int *nNum);
| + | |
| | | |
- | //------------------------------------------------------------------------------
| + | == Use the finished sample picture == |
- | // Name : SetMaxCapacitySize
| + | |
- | // Description : Set max size capacity value of capacitors.
| + | |
- | // Arguments :
| + | |
- | // fMaxSize [in] : Max size capacity value
| + | |
- | // Return :
| + | |
- | // TRUE : Success
| + | |
- | // FALSE : Failed
| + | |
- | //------------------------------------------------------------------------------
| + | |
- | int SetMaxCapacitySize(float fMaxSize);
| + | |
| | | |
- | //------------------------------------------------------------------------------
| + | [[Image:PW601smaple_test.jpg]] |
- | // Name : GetDesignCapInfo
| + | |
- | // Description : Get design capacity of capacitors
| + | |
- | // Arguments :
| + | |
- | // fCapacity [out] : Capacity design capacity
| + | |
- | // Return :
| + | |
- | // TRUE : Success
| + | |
- | // FALSE : Failed
| + | |
- | //------------------------------------------------------------------------------
| + | |
- | int GetDesignCapInfo(float fCapacity);
| + | |
PW601 can help you get battery information.
In case of machine failure, it can provide emergency time for you to backup data.