Install libjsoncpp-dev for json api
sudo apt install libjsoncpp-devInstall libcurl for http/https access.
sudo apt install libcurl4-openssl-devInstall restclient-cpp.
git clone https://github.com/mrtazz/restclient-cpp sudo apt install libtoolcd restclient-cpp./autogen.sh(installs to usr/local/lib)
sudo make installInstall libusb.
Install lissl-dev for base64 encoding/decoding.
Cryptopp from Cryptopp is automatically downloaded during the make build of mtusdk static library. Cryptopp is a static library to implement hash sha256.
To build libraries:
Extract mtusdk_linux.zip.
Run the make command.
The libraries are built and sent to the mtusdk_test folder.
libmtmms.so (shared object)
libmtscra.so (shared object)
libmtusdk.a (static library)
To rebuild the MTUSDK Test app after any modifications to main.cpp.
Navigate to mtusdk_test folder.
Modify main.cpp.
Run the make command for DynaFlex devices.
Run the make command for DynaFlex devices.
To run the MTUSDK Test app:
The response is similar as below:
If the command is not successful but is similar to:
then send the following command to link the shared object file. Retry after this.
For details on running and modifying the test console see UNIVERSAL SDK FOR MMS DEVICES TEST CONSOLE MANUAL ( LINUX )
sudo apt-get install libusb-1.0-0-devsudo apt-get install libusb-1.0-0-devmake -f makefile.mmsmake -f makefilesudo ./mtusdk_test.mmsSDK version 118
Model:
Name: B62CA5F0
<- (Connection State) connected
<- (Operation Status) operation_done,0000D101,Operation Done,00000000
<- (Device Response) AA...
Serial Number: B62CA5F0
Select an operation :
1. Transaction (Quick Chip)
2. Transaction (Full)
3. Send configuration file
4. Update firmware
5. Display a message
6. Send an image and display
9. Enable event driven transaction
a. Disable event driven transaction
0. Quit
librestclient-cpp.so cannot open shared object file no such file or directory.sudo /sbin/ldconfig