Get status of the printer ....................... 40 11.0. Wireless LAN Module Control APIs..............42 11.1. Power on wireless LAN module ................... 42 11.2. Power off wireless LAN module ................... 43 Page 2 of 70 ACR890 – Reference Manual info@acs.com.hk www.acs.com.hk Version 1.01...
Page 3
Get system sleep time ......................69 17.3. Enable or disable system auto sleep ................... 69 List of Tables Table 1 : Track Data State Bits Table ....................61 Page 3 of 70 ACR890 – Reference Manual info@acs.com.hk www.acs.com.hk Version 1.01...
This state-of-art product offers faster processing speed, large memory and portability. This Reference Manual describes the API (Application Programming Interface) calls developed specifically for the ACR890 terminal. Application software developers can make use of these APIs to develop their smart-card related applications.
2.0. File and Directory Structure File Name Functional System Description acs_api.h Host API header acs_errno.h Host API returned error number defines libacs_api.so Target API shared library Page 5 of 70 ACR890 – Reference Manual info@acs.com.hk www.acs.com.hk Version 1.01...
Parameters None. Return Values If successful, the return value is 0. If failed, the return value is -1. Requirements Header Declared in acs_api.h Library Use libacs_api.so Page 6 of 70 ACR890 – Reference Manual info@acs.com.hk www.acs.com.hk Version 1.01...
The mode value to Input; Return Values If successful, the return value is 0. If failed, the return value is -1. Requirements Header Declared in acs_api.h Library Use libacs_api.so Page 7 of 70 ACR890 – Reference Manual info@acs.com.hk www.acs.com.hk Version 1.01...
= backlight_get(&state); //call api to get backlight state if(0 == ret) {//show out the backlight state you get just now. printf("brightness=%d.max_brightness=%d,fb_power=%d,actual_brightn ess=%d", state.brightness,state.max_brightness,state.fb_power,state.actual_bri ghtness); return ret; Page 10 of 70 ACR890 – Reference Manual info@acs.com.hk www.acs.com.hk Version 1.01...
Library Use libacs_api.so Example Code int main(void) int ret; enum bl_level level = BACKLIGHT_LEVEL_4; ret = backlight_set(level); //call api to set the level of backlight brightness. return ret; Page 11 of 70 ACR890 – Reference Manual info@acs.com.hk www.acs.com.hk Version 1.01...
The state of the specified LED. Return value If successful, the return value is 0. If failed, the return value is -1 or -2. Requirements Header Declared in acs_api.h Library Use libacs_api.so Page 13 of 70 ACR890 – Reference Manual info@acs.com.hk www.acs.com.hk Version 1.01...
//call API to set blue led blink on for 100ms and blink off for 900ms periodically. ret = led_set_state(led, stat); if(0 != ret) printf( " Set led blink state failed !, ret = %d\n", ret); return ret; Page 14 of 70 ACR890 – Reference Manual info@acs.com.hk www.acs.com.hk Version 1.01...
Parameter None. Return Value If successful, the return value is EGPRS_SUCCEEDED. If failed, the return value is ENODEV or EGPRS_POWER_ON_FAILED. Requirements Header Declared in acs_api.h Library Use libacs_api.so Page 15 of 70 ACR890 – Reference Manual info@acs.com.hk www.acs.com.hk Version 1.01...
Parameters None. Return Value If successful, the return value is EGPRS_SUCCEEDED. If failed, the return value is ENODEV or EGPRS_POWER_OFF_FAILED. Requirements Header Declared in acs_api.h Library Use libacs_api.so Page 16 of 70 ACR890 – Reference Manual info@acs.com.hk www.acs.com.hk Version 1.01...
The proper netmask if needed. Return Value If successful, the return value is 0. If failed, the return value is -1. Requirements Header Declared in acs_api.h Library Use libacs_api.so Page 17 of 70 ACR890 – Reference Manual info@acs.com.hk www.acs.com.hk Version 1.01...
The APN of mobile network operator support. Return Value If successful, the return value is 0. If failed, the return value is -1. Requirements Header Declared in acs_api.h Library Use libacs_api.so Page 18 of 70 ACR890 – Reference Manual info@acs.com.hk www.acs.com.hk Version 1.01...
7.5. Start up pppd process This function is used to start up the pppd dial process. void ppp_on(void ). Parameters None. Return Value None. Requirements Header Declared in acs_api.h Library Use libacs_api.so Page 19 of 70 ACR890 – Reference Manual info@acs.com.hk www.acs.com.hk Version 1.01...
The length of RecvBuffer. Return Value If successful, the return value is 0. If failed, the return value is < 0 Requirements Header Declared in acs_api.h Library Use libacs_api.so Page 22 of 70 ACR890 – Reference Manual info@acs.com.hk www.acs.com.hk Version 1.01...
IMEI_SN Failed, ret = %d\n”,ret); gprs_power_off(); return -1; printf(“IMEI Serial Number = %s\n”, IMEI_Buf); ret = gprs_power_off(); if(ret != EGPRS_SUCCEEDED) printf(“gprs power off Failed!\n”); return -1; return 0; Page 23 of 70 ACR890 – Reference Manual info@acs.com.hk www.acs.com.hk Version 1.01...
{//print the volume state you get just now. printf("max volume is %ld\nmin volume is %ld\n, left volume is %ld\nright volume is %ld\n", stat.max_vol, state.min_vol, stat.left_vol, stat.right_vol); return ret; Page 24 of 70 ACR890 – Reference Manual info@acs.com.hk www.acs.com.hk Version 1.01...
18). Return value If successful, the return value is 0. If failed, the return value is -1. Requirements Header Declared in acs_api.h Library Use libacs_api.so Page 25 of 70 ACR890 – Reference Manual info@acs.com.hk www.acs.com.hk Version 1.01...
If failed, the return value is -1. Requirements Header Declared in acs_api.h Library Use libacs_api.so Example Code int main(void) int ret; ret = sound_play ("./Niose.wav");//call api to play a specified audio file return ret; Page 26 of 70 ACR890 – Reference Manual info@acs.com.hk www.acs.com.hk Version 1.01...
If failed, the return value is -1. Requirements Header Declared in acs_api.h Library Use libacs_api.so Example Code int main(void) int ret; ret = speaker_onoff(1);//call api to sound on speaker. return ret; Page 27 of 70 ACR890 – Reference Manual info@acs.com.hk www.acs.com.hk Version 1.01...
Data pointer of device version(major, minor, revision) Return Values If successful, the return value is 0. If failed, the return value is -1. Requirements Header Declared in acs_api.h Library Use libacs_api.so Page 28 of 70 ACR890 – Reference Manual info@acs.com.hk www.acs.com.hk Version 1.01...
Parameters None. Return Values If successful, the return value is SUCCESS. If failed, the return value is ETHP_OPEN_ERR. Requirements Header Declared in acs_api.h Library Use libacs_api.so Page 29 of 70 ACR890 – Reference Manual info@acs.com.hk www.acs.com.hk Version 1.01...
Parameter None. Return Values If successful, the return value is SUCCESS. If failed, the return value is ETHP_CLOSE_ERR. Requirements Header Declared in acs_api.h Library Use libacs_api.so Page 30 of 70 ACR890 – Reference Manual info@acs.com.hk www.acs.com.hk Version 1.01...
Parameter None. Return Values If successful, the return value is SUCCESS. If failed, the return value is ETHP_RESET_ERR. Requirements Header Declared in acs_api.h Library Use libacs_api.so Page 31 of 70 ACR890 – Reference Manual info@acs.com.hk www.acs.com.hk Version 1.01...
The paper space to be fed (ranges from 0 to 255, space is equal to nr_len * 0.125, in Return Values If successful, the return value is SUCCESS. If failed, the return value is ETHP_FPAPER_ERR. Requirements Header Declared in acs_api.h Library Use libacs_api.so Page 32 of 70 ACR890 – Reference Manual info@acs.com.hk www.acs.com.hk Version 1.01...
Paper space to be fed, range from 0 to 255, space is equal to nr_len * 0.125 (in mm) Return Values If successful, the return value is SUCCESS. If failed, the return value is ETHP_SETLINE_SPACE. Requirements Header Declared in acs_api.h Library Use libacs_api.so Page 33 of 70 ACR890 – Reference Manual info@acs.com.hk www.acs.com.hk Version 1.01...
Null terminated string of characters to be printed. Return Values If successful, the return value is SUCCESS. If failed, the return value is ETHP_STRPRINT_SM. Requirements Header Declared in acs_api.h Library Use libacs_api.so Page 34 of 70 ACR890 – Reference Manual info@acs.com.hk www.acs.com.hk Version 1.01...
[in] data Pointer to the array of characters to be printed. [in] size Size of the array of characters to be printed (range from 1 to 490 bytes). Page 35 of 70 ACR890 – Reference Manual info@acs.com.hk www.acs.com.hk Version 1.01...
Page 36
Return Values If successful, the return value is SUCCESS. If failed, the return value is ETHP_STRPRINT_PM. Requirements Header Declared in acs_api.h Library Use libacs_api.so Page 36 of 70 ACR890 – Reference Manual info@acs.com.hk www.acs.com.hk Version 1.01...
Size of the array of characters to be printed in bytes. Return Values If successful, the return value is SUCCESS. If failed, the return value is ETHP_DATAPRINT_PM. Requirements Header Declared in acs_api.h Library Use libacs_api.so Page 37 of 70 ACR890 – Reference Manual info@acs.com.hk www.acs.com.hk Version 1.01...
Size of the array of characters to be printed (range from 1 to 490 in bytes). Return Values If successful, the return value is SUCCESS. If failed, the return value is ETHP_DATAPRINT_PM. Requirements Header Declared in acs_api.h Library Use libacs_api.so Page 38 of 70 ACR890 – Reference Manual info@acs.com.hk www.acs.com.hk Version 1.01...
1 and 384 (inclusive). Return Values If successful, the return value is SUCCESS. If failed, the return value is ETHP_IMAGEPRINT. Requirements Header Declared in acs_api.h Library Use libacs_api.so Page 39 of 70 ACR890 – Reference Manual info@acs.com.hk www.acs.com.hk Version 1.01...
Parameter None. Return Values If successful, the return value is 0. If failed, the return value is -1. Requirements Header Declared in acs_api.h Library Use libacs_api.so Page 42 of 70 ACR890 – Reference Manual info@acs.com.hk www.acs.com.hk Version 1.01...
Parameter None. Return Values If successful, the return value is 0. If failed, the return value is -1. Requirements Header Declared in acs_api.h Library Use libacs_api.so Page 43 of 70 ACR890 – Reference Manual info@acs.com.hk www.acs.com.hk Version 1.01...
Parameter None. Return Values If successful, the return value is 0. If failed, the return value is -1. Requirements Header Declared in acs_api.h Library Use libacs_api.so Page 44 of 70 ACR890 – Reference Manual info@acs.com.hk www.acs.com.hk Version 1.01...
Parameter None. Return Values If successful, the return value is 0. If failed, the return value is -1. Requirements Header Declared in acs_api.h Library Use libacs_api.so Page 45 of 70 ACR890 – Reference Manual info@acs.com.hk www.acs.com.hk Version 1.01...
Parameter None. Return values If successful, the return value is 0. If failed, the return value is -ENODEV. Requirements Header Declared in acs_api.h Library Use libacs_api.so Page 46 of 70 ACR890 – Reference Manual info@acs.com.hk www.acs.com.hk Version 1.01...
Parameter None. Return values If successful, the return value is 0. If failed, the return value is -ENODEV. Requirements Header Declared in acs_api.h Library Use libacs_api.so Page 47 of 70 ACR890 – Reference Manual info@acs.com.hk www.acs.com.hk Version 1.01...
If successful, the return value is 0 (card is present). If failed, the return value is ≠ 0 (card is not present). Requirements Header Declared in acs_api.h Library Use libacs_api.so Page 48 of 70 ACR890 – Reference Manual info@acs.com.hk www.acs.com.hk Version 1.01...
The returned ATR length. Return values If successful, the return value is 0. If failed, the return value is ≠ 0. Requirements Header Declared in acs_api.h Library Use libacs_api.so Page 49 of 70 ACR890 – Reference Manual info@acs.com.hk www.acs.com.hk Version 1.01...
The index ID of specified slot(IFD). Return values If successful, the return value is 0. If failed, the return value is ≠ 0. Requirements Header Declared in acs_api.h Library Use libacs_api.so Page 50 of 70 ACR890 – Reference Manual info@acs.com.hk www.acs.com.hk Version 1.01...
The fi and di value. Return Values If successful, the return value is 0. If failed, the return value is ≠ 0. Requirements Header Declared in acs_api.h Library Use libacs_api.so Page 51 of 70 ACR890 – Reference Manual info@acs.com.hk www.acs.com.hk Version 1.01...
Parameter None. Return values If successful, the return value is 0. If failed, the return value is -1. Requirements Header Declared in acs_api.h Library Use libacs_api.so Page 54 of 70 ACR890 – Reference Manual info@acs.com.hk www.acs.com.hk Version 1.01...
Parameter None. Return Value If successful, the return value is 0. If failed, the return value is -1. Requirements Header Declared in acs_api.h Library Use libacs_api.so Page 55 of 70 ACR890 – Reference Manual info@acs.com.hk www.acs.com.hk Version 1.01...
Length of the card UID */ Return Values If successful, the return value is 0. If failed, the return value is -1. Requirements Header Declared in acs_api.h Library Use libacs_api.so Page 56 of 70 ACR890 – Reference Manual info@acs.com.hk www.acs.com.hk Version 1.01...
32 bytes. Return Values If successful, the return value is 0. If failed, the return value is -1. Requirements Header Declared in acs_api.h. Library Use libacs_api.so. Page 57 of 70 ACR890 – Reference Manual info@acs.com.hk www.acs.com.hk Version 1.01...
Parameter None. Return Values If successful, the return value is 0. If failed, the return value is -1. Requirements Header Declared in acs_api.h Library Use libacs_api.so Page 58 of 70 ACR890 – Reference Manual info@acs.com.hk www.acs.com.hk Version 1.01...
The length of the response data. Return Values If successful, the return value is 0. If failed, the return value is -1. Requirements Header Declared in acs_api.h Library Use libacs_api.so Page 59 of 70 ACR890 – Reference Manual info@acs.com.hk www.acs.com.hk Version 1.01...
Declared in acs_api.h Library Use libacs_api.so Example Code int main(int argc,char *argv[]) int ret; ret = picc_Open(); if(ret) printf("Open PICC fail\n"); else printf("Open PICC succ\n"); picc_Close(); return ret; Page 60 of 70 ACR890 – Reference Manual info@acs.com.hk www.acs.com.hk Version 1.01...
Track #1 data End Byte Error Bit 1 Track #1 data Parity Error Bit 0 Track #1 data Start Byte Error Table 1: Track Data State Bits Table Page 61 of 70 ACR890 – Reference Manual info@acs.com.hk www.acs.com.hk Version 1.01...
*acs_err(const int errno_code) Parameters [in] errno_code The error number to parse. Return values A parsed string for an error number. Requirements Header Declared in acs_api.h Library Use libacs_api.so Page 63 of 70 ACR890 – Reference Manual info@acs.com.hk www.acs.com.hk Version 1.01...
= get_a_ini_key_value (“lcd”, “brightness”, key_value); //call api to get brightness value if(0 == ret) {//show out the brighness you get from ini file just now. printf("[lcd]\nbrightness=%s\n”, key_value); return ret; Page 64 of 70 ACR890 – Reference Manual info@acs.com.hk www.acs.com.hk Version 1.01...
Use libacs_api.so Example Code int main(void) int ret; ret = set_a_ini_key_value (“lcd”, “brightness”, 3); //call api to set brightness value to 3 in the ini file. return ret; Page 65 of 70 ACR890 – Reference Manual info@acs.com.hk www.acs.com.hk Version 1.01...
If failed, the return value is -1. Requirements Header Declared in acs_api.h Library Use libacs_api.so Example Code int main(void) int ret; ret = add_a_ini_key_value (“lcd”, “brightness”, 3); return ret; Page 66 of 70 ACR890 – Reference Manual info@acs.com.hk www.acs.com.hk Version 1.01...
This function is to setting all hardware according to all keyword value in ini file (/etc/config.ini). void ini_init_hw_all(void); Parameters None. Return Value None. Requirements Header Declared in acs_api.h Library Use libacs_api.so Example Code int main(void) ini_init_hw_all(); return 0; Page 67 of 70 ACR890 – Reference Manual info@acs.com.hk www.acs.com.hk Version 1.01...
Declared in acs_api.h Library Use libacs_api.so Example Code int main(void) int ret; ret = record_set_to_hw (“lcd”, “brightness”, 3); //call api to set brightness value to 3 return ret; Page 68 of 70 ACR890 – Reference Manual info@acs.com.hk www.acs.com.hk Version 1.01...
This function is used to get the device idle time. int pm_sleep_enable(unsigned char isEnable) Parameters [in] isEnable isEnable = 1 enable device auto sleep isEnable = 0 disable device auto sleep Page 69 of 70 ACR890 – Reference Manual info@acs.com.hk www.acs.com.hk Version 1.01...
Page 70
Return Values If successful, the return value is 0. If failed, the return value is -1. Requirements Header Declared in acs_api.h. Library Use libacs_api.so. Page 70 of 70 ACR890 – Reference Manual info@acs.com.hk www.acs.com.hk Version 1.01...
Need help?
Do you have a question about the ACR890 and is the answer not in the manual?
Questions and answers