[00:00:10] *** EcrCore started. Build 196 *** [00:00:10]MH_InterfaceInit /dev/i2c-1 [00:00:10]Malloc ok [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 /dev/ttyS4 opened [00:00:10]00 00 01 00 00 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 26 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 26 00 01 00 00 03 01 00 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 6B FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF F7 [00:00:10]Possible old version of MH firmware - no need to switch from boot [00:00:10]Model is 3 [00:00:10]MH firmware is 1 [00:00:10]MH boot firmware is 0 [00:00:10]MH_SetPrinterDots 448 [00:00:10]HeadWidthInBytes 56 [00:00:10]maxmasksize 7 [00:00:10]Write to MH i2c: D6 06 00 02 00 41 00 60 00 FF FF 7C [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D6 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D6 01 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D6 01 00 02 00 00 D8 [00:00:10]Write to MH i2c: D5 00 00 03 00 D7 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D5 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D5 01 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D5 01 00 03 00 00 D8 [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]ExternCall_SetCallbacks [00:00:10]NVStorageInit [00:00:10]MH_GetDate [00:00:10]Write to MH i2c: F0 00 00 04 00 F3 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: F0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: F0 05 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: F0 05 00 04 00 00 21 00 00 00 19 [00:00:33]Current date/time: 01.01.1970 00:00 [00:00:33]FM_Init [00:00:33]wFMConnect [00:00:33]MH_SAM_On [00:00:33]Write to MH i2c: E0 00 00 05 00 E4 [00:00:33]Write i2c OK [00:00:33]MH_I2C_Read... [00:00:33]*** iso7816_init finished! [00:00:33]*** atr: [00:00:33]*** 0F 3B D5 18 FF 81 91 FE [00:00:33]*** 1F C3 80 73 C8 21 10 0A [00:00:33]*** 00 00 00 00 00 00 00 00 [00:00:33]*** 00 00 00 00 00 00 00 00 [00:00:33]*** 00 00 00 00 00 00 00 00 [00:00:33]*** 00 00 00 00 00 00 00 00 [00:00:33]*** 00 00 00 00 00 00 00 00 [00:00:33]*** 00 00 00 00 00 00 00 00 [00:00:33]Read from MH i2c: E0 [00:00:33]MH_I2C_Read... [00:00:33]Read from MH i2c: E0 10 00 [00:00:33]MH_I2C_Read... [00:00:33]Read from MH i2c: E0 10 00 05 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 03 [00:00:33]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [00:00:33]wFMCommunicate request_size=10 [00:00:33]MH_SAM_APDU [00:00:33]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [00:00:33]Write to MH i2c: E2 0D 00 06 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B0 [00:00:33]Write i2c OK [00:00:33]MH_I2C_Read... [00:00:33]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [00:00:33]Read from MH i2c: E2 [00:00:33]MH_I2C_Read... [00:00:33]Read from MH i2c: E2 03 00 [00:00:33]MH_I2C_Read... [00:00:33]Read from MH i2c: E2 03 00 06 00 00 90 00 7A [00:00:33]RAPDU: 90 00 [00:00:33]wFMCommunicate OK [00:00:33]wFMCommunicate request_size=4 [00:00:33]MH_SAM_APDU [00:00:33]CAPDU: 80 11 00 00 [00:00:33]Write to MH i2c: E2 08 00 07 00 80 11 00 00 00 00 00 00 81 [00:00:33]Write i2c OK [00:00:33]MH_I2C_Read... [00:00:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:00:33]Read from MH i2c: E2 [00:00:33]MH_I2C_Read... [00:00:33]Read from MH i2c: E2 17 00 [00:00:33]MH_I2C_Read... [00:00:33]Read from MH i2c: E2 17 00 07 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 32 90 00 D2 [00:00:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 32 90 00 [00:00:33]wFMCommunicate OK [00:00:33]Detected FM SN is 0000000000871752 [00:00:33]Stored FM SN is 0000000000874787 [00:00:33]Detected and stored FM are different - require to set a new PIN [00:00:33]DocumentArchiveInit [00:00:33]Start Httpd... [00:00:33]Httpd thread 3067845988 created [00:00:33]Write to MH i2c: 01 00 00 08 00 08 [00:00:33]Write i2c OK [00:00:33]MH_I2C_Read... [00:00:33]Read from MH i2c: 01 [00:00:33]MH_I2C_Read... [00:00:33]Read from MH i2c: 01 07 00 [00:00:33]MH_I2C_Read... [00:00:33]Read from MH i2c: 01 07 00 08 00 00 82 00 00 00 FF 0F 9F [00:00:33]Allocated Socket 6 [00:00:33]Bind OK [00:00:33]Listen OK [00:00:33]httpd running on port 8080 [00:00:33]Waiting for new connection... [00:00:33]MH Int Process started [00:00:33]OFD Sender: No OFD packet to send [00:00:38]accept exits with 7 [00:00:38]New connection [00:00:38]New thread 3067559268 created [00:00:38]Waiting for new connection... [00:00:38]accept exits with 9 [00:00:38]New connection [00:00:38]New thread 3067415908 created [00:00:38]Waiting for new connection... [00:00:38] Sock 9.Parse request [00:00:38]Sock 9.Check first char [00:00:38] Sock 7.Parse request [00:00:38]Sock 7.Check first char [00:00:38]Sock 7.First char is OK [00:00:38]request: GET /testengine HTTP/1.1 [00:00:38]Method: GET [00:00:38]URL: /testengine [00:00:38]Method is GET - find url and querystring [00:00:38]No ? found - this is static page request [00:00:38]url: /testengine [00:00:38]check /htdocs/testengine [00:00:38]file exist [00:00:38]serve_file /htdocs/testengine/index.html [00:00:38]read remaining request lines [00:00:38]Host: 192.168.0.101:8080 [00:00:38]Connection: keep-alive [00:00:38]Upgrade-Insecure-Requests: 1 [00:00:38]User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36 [00:00:38]Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7 [00:00:38]Accept-Encoding: gzip, deflate [00:00:38]Accept-Language: ru-RU,ru;q=0.9,en-US;q=0.8,en;q=0.7 [00:00:38] [00:00:38]open file /htdocs/testengine/index.html [00:00:38]send HTTP headers [00:00:38]send file content [00:00:38]Finished. Sent 1003 bytes [00:00:38]close file [00:00:38]Sock 7.Close socket [00:00:38]Sock 7.Thread stoped [00:00:38]Sock 9.First char is OK [00:00:38]request: GET /testengine/css/app.915bc88f.css HTTP/1.1 [00:00:38]Method: GET [00:00:38]URL: /testengine/css/app.915bc88f.css [00:00:38]Method is GET - find url and querystring [00:00:38]No ? found - this is static page request [00:00:38]url: /testengine/css/app.915bc88f.css [00:00:38]check /htdocs/testengine/css/app.915bc88f.css [00:00:38]file exist [00:00:38]serve_file /htdocs/testengine/css/app.915bc88f.css [00:00:38]read remaining request lines [00:00:38]Host: 192.168.0.101:8080 [00:00:38]Connection: keep-alive [00:00:38]User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36 [00:00:38]accept exits with 10 [00:00:38]Accept: text/css,*/*;q=0.1 [00:00:38]New connection [00:00:38]New thread 3067272548 created [00:00:38]Referer: http://192.168.0.101:8080/testengine [00:00:38]Thread 3067559268 joined [00:00:38]Waiting for new connection... [00:00:38]Accept-Encoding: gzip, deflate [00:00:38]accept exits with 7 [00:00:38]New connection [00:00:38]Accept-Language: ru-RU,ru;q=0.9,en-US;q=0.8,en;q=0.7 [00:00:38]New thread 3067559268 created [00:00:38] [00:00:38]Waiting for new connection... [00:00:38]open file /htdocs/testengine/css/app.915bc88f.css [00:00:38]send HTTP headers [00:00:38]send file content [00:00:38]accept exits with 11 [00:00:38]New connection [00:00:38]New thread 3067129188 created [00:00:38]Waiting for new connection... [00:00:38] Sock 10.Parse request [00:00:38]Sock 10.Check first char [00:00:38] Sock 7.Parse request [00:00:38]Sock 10.First char is OK [00:00:38]Sock 7.Check first char [00:00:38]Sock 7.First char is OK [00:00:38]request: GET /testengine/css/chunk-vendors.1a13a212.css HTTP/1.1 [00:00:38]Method: GET [00:00:38]request: GET /testengine/js/app.a9c38288.js HTTP/1.1 [00:00:38]URL: /testengine/css/chunk-vendors.1a13a212.css [00:00:38]Method: GET [00:00:38]Method is GET - find url and querystring [00:00:38]URL: /testengine/js/app.a9c38288.js [00:00:38]No ? found - this is static page request [00:00:38]Method is GET - find url and querystring [00:00:38]url: /testengine/css/chunk-vendors.1a13a212.css [00:00:38]No ? found - this is static page request [00:00:38]url: /testengine/js/app.a9c38288.js [00:00:38]check /htdocs/testengine/css/chunk-vendors.1a13a212.css [00:00:38]check /htdocs/testengine/js/app.a9c38288.js [00:00:38] Sock 11.Parse request [00:00:38]Sock 11.Check first char [00:00:38]Sock 11.First char is OK [00:00:38]request: GET /testengine/js/chunk-vendors.8f546e50.js HTTP/1.1 [00:00:38]Method: GET [00:00:38]URL: /testengine/js/chunk-vendors.8f546e50.js [00:00:38]Method is GET - find url and querystring [00:00:38]No ? found - this is static page request [00:00:38]url: /testengine/js/chunk-vendors.8f546e50.js [00:00:38]check /htdocs/testengine/js/chunk-vendors.8f546e50.js [00:00:38]Finished. Sent 1227 bytes [00:00:38]file exist [00:00:38]close file [00:00:38]serve_file /htdocs/testengine/js/app.a9c38288.js [00:00:38]Sock 9.Close socket [00:00:38]read remaining request lines [00:00:38]Host: 192.168.0.101:8080 [00:00:38]Sock 9.Thread stoped [00:00:38]Connection: keep-alive [00:00:38]User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36 [00:00:38]file exist [00:00:38]Accept: */* [00:00:38]serve_file /htdocs/testengine/css/chunk-vendors.1a13a212.css [00:00:38]read remaining request lines [00:00:38]Referer: http://192.168.0.101:8080/testengine [00:00:38]Host: 192.168.0.101:8080 [00:00:38]Accept-Encoding: gzip, deflate [00:00:38]Connection: keep-alive [00:00:38]Accept-Language: ru-RU,ru;q=0.9,en-US;q=0.8,en;q=0.7 [00:00:38] [00:00:38]open file /htdocs/testengine/js/app.a9c38288.js [00:00:38]send HTTP headers [00:00:38]send file content [00:00:38]User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36 [00:00:38]Accept: text/css,*/*;q=0.1 [00:00:38]Referer: http://192.168.0.101:8080/testengine [00:00:38]Accept-Encoding: gzip, deflate [00:00:38]Accept-Language: ru-RU,ru;q=0.9,en-US;q=0.8,en;q=0.7 [00:00:38] [00:00:38]open file /htdocs/testengine/css/chunk-vendors.1a13a212.css [00:00:38]send HTTP headers [00:00:38]send file content [00:00:38]file exist [00:00:38]serve_file /htdocs/testengine/js/chunk-vendors.8f546e50.js [00:00:38]read remaining request lines [00:00:38]Host: 192.168.0.101:8080 [00:00:38]Connection: keep-alive [00:00:38]Finished. Sent 140 bytes [00:00:38]close file [00:00:38]User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36 [00:00:38]Accept: */* [00:00:38]Sock 10.Close socket [00:00:38]Sock 10.Thread stoped [00:00:38]Referer: http://192.168.0.101:8080/testengine [00:00:38]Accept-Encoding: gzip, deflate [00:00:38]Accept-Language: ru-RU,ru;q=0.9,en-US;q=0.8,en;q=0.7 [00:00:38] [00:00:38]open file /htdocs/testengine/js/chunk-vendors.8f546e50.js [00:00:38]send HTTP headers [00:00:38]send file content [00:00:38]OFD Sender: No OFD packet to send [00:00:38]Finished. Sent 102400 bytes [00:00:38]close file [00:00:38]Sock 7.Close socket [00:00:38]Sock 7.Thread stoped [00:00:38]Finished. Sent 165537 bytes [00:00:38]close file [00:00:38]Sock 11.Close socket [00:00:38]Sock 11.Thread stoped [00:00:41]accept exits with 13 [00:00:41]New connection [00:00:41]New thread 3066985828 created [00:00:41]Thread 3067415908 joined [00:00:41]Thread 3067272548 joined [00:00:41]Thread 3067129188 joined [00:00:41]Thread 3067559268 joined [00:00:41]Waiting for new connection... [00:00:41] Sock 13.Parse request [00:00:41]Sock 13.Check first char [00:00:43]OFD Sender: No OFD packet to send [00:00:47]Sock 13.First char is OK [00:00:47]request: POST /json_proto HTTP/1.1 [00:00:47]Method: POST [00:00:47]URL: /json_proto [00:00:47]Method is POST - this is cgi request [00:00:47]url: /json_proto [00:00:47]query_string will be loaded in cgi processing [00:00:47]execute_cgi json_proto POST (null) [00:00:47]execute_cgi path=json_proto method=POST [00:00:47]POST find Content-Length [00:00:47]Host: 192.168.0.101:8080 [00:00:47]Connection: keep-alive [00:00:47]Content-Length: 115 [00:00:47]Accept: application/json, text/plain, */* [00:00:47]User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36 [00:00:47]Content-Type: application/json [00:00:47]Origin: http://192.168.0.101:8080 [00:00:47]Referer: http://192.168.0.101:8080/testengine [00:00:47]Accept-Encoding: gzip, deflate [00:00:47]Accept-Language: ru-RU,ru;q=0.9,en-US;q=0.8,en;q=0.7 [00:00:47] [00:00:47]POST finish read [00:00:47]Found Content-Length = 115 [00:00:47]post body = {"protocol":"kg_v1.0","request":{"action":"get_value","params":{},"requested_data":["kkm.sn","kkm.ver","kkm.rnm"]}} [00:00:47]execute_script... [00:00:47]execute_script path=json_proto method=POST query_string={"protocol":"kg_v1.0","request":{"action":"get_value","params":{},"requested_data":["kkm.sn","kkm.ver","kkm.rnm"]}} [00:00:47]POST & json_proto [00:00:47]process_json_proto [00:00:47]json parsed OK: [00:00:47]protocol is kg_v1.0 [00:00:47]action value=get_value [00:00:47]process_action get_value [00:00:47]cmd_get_value [00:00:47]process_action get_value done [00:00:47]requested_data is exist [00:00:47]produce_requested_data [00:00:47]requested_item kkm.sn is exist - process it [00:00:47]requested_item kkm.ver is exist - process it [00:00:47]requested_item kkm.rnm is exist - process it [00:00:47]wFMCommunicate request_size=4 [00:00:47]MH_SAM_APDU [00:00:47]CAPDU: 80 11 00 00 [00:00:47]Write to MH i2c: E2 08 00 09 00 80 11 00 00 00 00 00 00 83 [00:00:47]Write i2c OK [00:00:47]MH_I2C_Read... [00:00:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:00:47]Read from MH i2c: E2 [00:00:47]MH_I2C_Read... [00:00:47]Read from MH i2c: E2 17 00 [00:00:47]MH_I2C_Read... [00:00:47]Read from MH i2c: E2 17 00 09 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 32 90 00 D4 [00:00:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 32 90 00 [00:00:47]wFMCommunicate OK [00:00:47]Detected FM SN is 0000000000871752 [00:00:47]Stored FM SN is 0000000000874787 [00:00:47]Detected and stored FM are different - require to set a new PIN [00:00:47]produce_fm_shift_data error [00:00:47]produce_requested_data done [00:00:47]produce_requested_data return {"kkm.sn":"0300000015","kkm.ver":"001"} [00:00:47]process_action_free get_value [00:00:47]json_value_free [00:00:47]json_value_free done [00:00:47]process_json_proto returns [00:00:47]Send response to host [00:00:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000015","kkm.ver":"001"}}} [00:00:47]free response buf [00:00:47]execute_script done [00:00:47]execute_script returns [00:00:47]free content buf [00:00:47]Sock 13.Close socket [00:00:47]Sock 13.Thread stoped [00:00:48]OFD Sender: No OFD packet to send [00:00:53]OFD Sender: No OFD packet to send [00:00:58]OFD Sender: No OFD packet to send [00:00:59]accept exits with 7 [00:00:59]New connection [00:00:59]New thread 3067559268 created [00:00:59]Thread 3066985828 joined [00:00:59]Waiting for new connection... [00:00:59] Sock 7.Parse request [00:00:59]Sock 7.Check first char [00:00:59]Sock 7.First char is OK [00:00:59]request: POST /json_proto HTTP/1.1 [00:00:59]Method: POST [00:00:59]URL: /json_proto [00:00:59]Method is POST - this is cgi request [00:00:59]url: /json_proto [00:00:59]query_string will be loaded in cgi processing [00:00:59]execute_cgi json_proto POST (null) [00:00:59]execute_cgi path=json_proto method=POST [00:00:59]POST find Content-Length [00:00:59]Host: 192.168.0.101:8080 [00:00:59]Connection: keep-alive [00:00:59]Content-Length: 253 [00:00:59]Accept: application/json, text/plain, */* [00:00:59]User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36 [00:00:59]Content-Type: application/json [00:00:59]Origin: http://192.168.0.101:8080 [00:00:59]Referer: http://192.168.0.101:8080/testengine [00:00:59]Accept-Encoding: gzip, deflate [00:00:59]Accept-Language: ru-RU,ru;q=0.9,en-US;q=0.8,en;q=0.7 [00:00:59] [00:00:59]POST finish read [00:00:59]Found Content-Length = 253 [00:00:59]post body = {"protocol":"kg_v1.0","request":{"action":"get_value","params":{},"requested_data":["kkm.sn","kkm.ver","kkm.rnm","fm.sn","fm.ffd_ver","fm.expired","fd.num","shift.num","shift.opened","shift.open_date","shift.receipt_num","shift.receipts","shift.docs"]}} [00:00:59]execute_script... [00:00:59]execute_script path=json_proto method=POST query_string={"protocol":"kg_v1.0","request":{"action":"get_value","params":{},"requested_data":["kkm.sn","kkm.ver","kkm.rnm","fm.sn","fm.ffd_ver","fm.expired","fd.num","shift.num","shift.opened","shift.open_date","shift.receipt_num","shift.receipts","shift.docs"]}} [00:00:59]POST & json_proto [00:00:59]process_json_proto [00:00:59]json parsed OK: [00:00:59]protocol is kg_v1.0 [00:00:59]action value=get_value [00:00:59]process_action get_value [00:00:59]cmd_get_value [00:00:59]process_action get_value done [00:00:59]requested_data is exist [00:00:59]produce_requested_data [00:00:59]requested_item kkm.sn is exist - process it [00:00:59]requested_item kkm.ver is exist - process it [00:00:59]requested_item kkm.rnm is exist - process it [00:00:59]wFMCommunicate request_size=4 [00:00:59]MH_SAM_APDU [00:00:59]CAPDU: 80 11 00 00 [00:00:59]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [00:00:59]Write i2c OK [00:00:59]MH_I2C_Read... [00:00:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:00:59]Read from MH i2c: E2 [00:00:59]MH_I2C_Read... [00:00:59]Read from MH i2c: E2 17 00 [00:00:59]MH_I2C_Read... [00:00:59]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 32 90 00 D5 [00:00:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 32 90 00 [00:00:59]wFMCommunicate OK [00:00:59]Detected FM SN is 0000000000871752 [00:00:59]Stored FM SN is 0000000000874787 [00:00:59]Detected and stored FM are different - require to set a new PIN [00:00:59]produce_fm_shift_data error [00:00:59]requested_item fm.sn is exist - process it [00:00:59]wFMCommunicate request_size=4 [00:00:59]MH_SAM_APDU [00:00:59]CAPDU: 80 11 00 00 [00:00:59]Write to MH i2c: E2 08 00 0B 00 80 11 00 00 00 00 00 00 85 [00:00:59]Write i2c OK [00:00:59]MH_I2C_Read... [00:00:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:00:59]Read from MH i2c: E2 [00:00:59]MH_I2C_Read... [00:00:59]Read from MH i2c: E2 17 00 [00:00:59]MH_I2C_Read... [00:00:59]Read from MH i2c: E2 17 00 0B 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 32 90 00 D6 [00:00:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 32 90 00 [00:00:59]wFMCommunicate OK [00:00:59]Detected FM SN is 0000000000871752 [00:00:59]Stored FM SN is 0000000000874787 [00:00:59]Detected and stored FM are different - require to set a new PIN [00:00:59]wFMCommunicate request_size=4 [00:00:59]MH_SAM_APDU [00:00:59]CAPDU: 80 11 00 00 [00:00:59]Write to MH i2c: E2 08 00 0C 00 80 11 00 00 00 00 00 00 86 [00:00:59]Write i2c OK [00:00:59]MH_I2C_Read... [00:00:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:00:59]Read from MH i2c: E2 [00:00:59]MH_I2C_Read... [00:00:59]Read from MH i2c: E2 17 00 [00:00:59]MH_I2C_Read... [00:00:59]Read from MH i2c: E2 17 00 0C 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 32 90 00 D7 [00:00:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 32 90 00 [00:00:59]wFMCommunicate OK [00:00:59]requested_item fm.ffd_ver is exist - process it [00:00:59]wFMCommunicate request_size=4 [00:00:59]MH_SAM_APDU [00:00:59]CAPDU: 80 11 00 00 [00:00:59]Write to MH i2c: E2 08 00 0D 00 80 11 00 00 00 00 00 00 87 [00:00:59]Write i2c OK [00:00:59]MH_I2C_Read... [00:00:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:00:59]Read from MH i2c: E2 [00:00:59]MH_I2C_Read... [00:00:59]Read from MH i2c: E2 17 00 [00:00:59]MH_I2C_Read... [00:00:59]Read from MH i2c: E2 17 00 0D 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 32 90 00 D8 [00:00:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 32 90 00 [00:00:59]wFMCommunicate OK [00:00:59]Detected FM SN is 0000000000871752 [00:00:59]Stored FM SN is 0000000000874787 [00:00:59]Detected and stored FM are different - require to set a new PIN [00:00:59]produce_fm_shift_data error [00:00:59]requested_item fm.expired is exist - process it [00:00:59]wFMCommunicate request_size=4 [00:00:59]MH_SAM_APDU [00:00:59]CAPDU: 80 11 00 00 [00:00:59]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [00:00:59]Write i2c OK [00:00:59]MH_I2C_Read... [00:00:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:00:59]Read from MH i2c: E2 [00:00:59]MH_I2C_Read... [00:00:59]Read from MH i2c: E2 17 00 [00:00:59]MH_I2C_Read... [00:00:59]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 32 90 00 D9 [00:00:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 32 90 00 [00:00:59]wFMCommunicate OK [00:00:59]Detected FM SN is 0000000000871752 [00:00:59]Stored FM SN is 0000000000874787 [00:00:59]Detected and stored FM are different - require to set a new PIN [00:00:59]produce_fm_shift_data error [00:00:59]requested_item fd.num is exist - process it [00:00:59]wFMCommunicate request_size=4 [00:00:59]MH_SAM_APDU [00:00:59]CAPDU: 80 11 00 00 [00:00:59]Write to MH i2c: E2 08 00 0F 00 80 11 00 00 00 00 00 00 89 [00:00:59]Write i2c OK [00:00:59]MH_I2C_Read... [00:00:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:00:59]Read from MH i2c: E2 [00:00:59]MH_I2C_Read... [00:00:59]Read from MH i2c: E2 17 00 [00:00:59]MH_I2C_Read... [00:00:59]Read from MH i2c: E2 17 00 0F 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 32 90 00 DA [00:00:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 32 90 00 [00:00:59]wFMCommunicate OK [00:00:59]Detected FM SN is 0000000000871752 [00:00:59]Stored FM SN is 0000000000874787 [00:00:59]Detected and stored FM are different - require to set a new PIN [00:00:59]produce_fm_shift_data error [00:00:59]requested_item shift.num is exist - process it [00:00:59]wFMCommunicate request_size=4 [00:00:59]MH_SAM_APDU [00:00:59]CAPDU: 80 11 00 00 [00:00:59]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [00:00:59]Write i2c OK [00:00:59]MH_I2C_Read... [00:00:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:00:59]Read from MH i2c: E2 [00:00:59]MH_I2C_Read... [00:00:59]Read from MH i2c: E2 17 00 [00:00:59]MH_I2C_Read... [00:00:59]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 32 90 00 DB [00:00:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 32 90 00 [00:00:59]wFMCommunicate OK [00:00:59]Detected FM SN is 0000000000871752 [00:00:59]Stored FM SN is 0000000000874787 [00:00:59]Detected and stored FM are different - require to set a new PIN [00:00:59]produce_fm_shift_data error [00:00:59]requested_item shift.opened is exist - process it [00:00:59]req_shift_opened [00:00:59]wFMCommunicate request_size=4 [00:00:59]MH_SAM_APDU [00:00:59]CAPDU: 80 11 00 00 [00:00:59]Write to MH i2c: E2 08 00 11 00 80 11 00 00 00 00 00 00 8B [00:00:59]Write i2c OK [00:00:59]MH_I2C_Read... [00:00:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:00:59]Read from MH i2c: E2 [00:00:59]MH_I2C_Read... [00:00:59]Read from MH i2c: E2 17 00 [00:00:59]MH_I2C_Read... [00:00:59]Read from MH i2c: E2 17 00 11 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 32 90 00 DC [00:00:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 32 90 00 [00:00:59]wFMCommunicate OK [00:00:59]Detected FM SN is 0000000000871752 [00:00:59]Stored FM SN is 0000000000874787 [00:01:00]Detected and stored FM are different - require to set a new PIN [00:01:00]produce_fm_shift_state error [00:01:00]requested_item shift.open_date is exist - process it [00:01:00]req_shift_open_date [00:01:00]wFMCommunicate request_size=4 [00:01:00]MH_SAM_APDU [00:01:00]CAPDU: 80 11 00 00 [00:01:00]Write to MH i2c: E2 08 00 12 00 80 11 00 00 00 00 00 00 8C [00:01:00]Write i2c OK [00:01:00]MH_I2C_Read... [00:01:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:01:00]Read from MH i2c: E2 [00:01:00]MH_I2C_Read... [00:01:00]Read from MH i2c: E2 17 00 [00:01:00]MH_I2C_Read... [00:01:00]Read from MH i2c: E2 17 00 12 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 32 90 00 DD [00:01:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 32 90 00 [00:01:00]wFMCommunicate OK [00:01:00]Detected FM SN is 0000000000871752 [00:01:00]Stored FM SN is 0000000000874787 [00:01:00]Detected and stored FM are different - require to set a new PIN [00:01:00]produce_fm_shift_state error [00:01:00]requested_item shift.receipt_num is exist - process it [00:01:00]wFMCommunicate request_size=4 [00:01:00]MH_SAM_APDU [00:01:00]CAPDU: 80 11 00 00 [00:01:00]Write to MH i2c: E2 08 00 13 00 80 11 00 00 00 00 00 00 8D [00:01:00]Write i2c OK [00:01:00]MH_I2C_Read... [00:01:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:01:00]Read from MH i2c: E2 [00:01:00]MH_I2C_Read... [00:01:00]Read from MH i2c: E2 17 00 [00:01:00]MH_I2C_Read... [00:01:00]Read from MH i2c: E2 17 00 13 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 32 90 00 DE [00:01:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 32 90 00 [00:01:00]wFMCommunicate OK [00:01:00]Detected FM SN is 0000000000871752 [00:01:00]Stored FM SN is 0000000000874787 [00:01:00]Detected and stored FM are different - require to set a new PIN [00:01:00]produce_fm_shift_data error [00:01:00]requested_item shift.receipts is exist - process it [00:01:00]wFMCommunicate request_size=4 [00:01:00]MH_SAM_APDU [00:01:00]CAPDU: 80 11 00 00 [00:01:00]Write to MH i2c: E2 08 00 14 00 80 11 00 00 00 00 00 00 8E [00:01:00]Write i2c OK [00:01:00]MH_I2C_Read... [00:01:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:01:00]Read from MH i2c: E2 [00:01:00]MH_I2C_Read... [00:01:00]Read from MH i2c: E2 17 00 [00:01:00]MH_I2C_Read... [00:01:00]Read from MH i2c: E2 17 00 14 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 32 90 00 DF [00:01:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 32 90 00 [00:01:00]wFMCommunicate OK [00:01:00]Detected FM SN is 0000000000871752 [00:01:00]Stored FM SN is 0000000000874787 [00:01:00]Detected and stored FM are different - require to set a new PIN [00:01:00]produce_fm_shift_data error [00:01:00]requested_item shift.docs is exist - process it [00:01:00]wFMCommunicate request_size=4 [00:01:00]MH_SAM_APDU [00:01:00]CAPDU: 80 11 00 00 [00:01:00]Write to MH i2c: E2 08 00 15 00 80 11 00 00 00 00 00 00 8F [00:01:00]Write i2c OK [00:01:00]MH_I2C_Read... [00:01:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:01:00]Read from MH i2c: E2 [00:01:00]MH_I2C_Read... [00:01:00]Read from MH i2c: E2 17 00 [00:01:00]MH_I2C_Read... [00:01:00]Read from MH i2c: E2 17 00 15 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 32 90 00 E0 [00:01:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 32 90 00 [00:01:00]wFMCommunicate OK [00:01:00]Detected FM SN is 0000000000871752 [00:01:00]Stored FM SN is 0000000000874787 [00:01:00]Detected and stored FM are different - require to set a new PIN [00:01:00]produce_fm_shift_data error [00:01:00]produce_requested_data done [00:01:00]produce_requested_data return {"kkm.sn":"0300000015","kkm.ver":"001","fm.sn":"0000000000871752"} [00:01:00]process_action_free get_value [00:01:00]json_value_free [00:01:00]json_value_free done [00:01:00]process_json_proto returns [00:01:00]Send response to host [00:01:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000015","kkm.ver":"001","fm.sn":"0000000000871752"}}} [00:01:00]free response buf [00:01:00]execute_script done [00:01:00]execute_script returns [00:01:00]free content buf [00:01:00]Sock 7.Close socket [00:01:00]Sock 7.Thread stoped [00:01:00]accept exits with 9 [00:01:00]New connection [00:01:00]New thread 3067415908 created [00:01:00]Thread 3067559268 joined [00:01:00]Waiting for new connection... [00:01:00] Sock 9.Parse request [00:01:00]Sock 9.Check first char [00:01:00]Sock 9.First char is OK [00:01:00]request: POST /json_proto HTTP/1.1 [00:01:00]Method: POST [00:01:00]URL: /json_proto [00:01:00]Method is POST - this is cgi request [00:01:00]url: /json_proto [00:01:00]query_string will be loaded in cgi processing [00:01:00]execute_cgi json_proto POST (null) [00:01:00]execute_cgi path=json_proto method=POST [00:01:00]POST find Content-Length [00:01:00]Host: 192.168.0.101:8080 [00:01:00]Connection: keep-alive [00:01:00]Content-Length: 253 [00:01:00]Accept: application/json, text/plain, */* [00:01:00]User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36 [00:01:00]Content-Type: application/json [00:01:00]Origin: http://192.168.0.101:8080 [00:01:00]Referer: http://192.168.0.101:8080/testengine [00:01:00]Accept-Encoding: gzip, deflate [00:01:00]Accept-Language: ru-RU,ru;q=0.9,en-US;q=0.8,en;q=0.7 [00:01:00] [00:01:00]POST finish read [00:01:00]Found Content-Length = 253 [00:01:00]post body = {"protocol":"kg_v1.0","request":{"action":"get_value","params":{},"requested_data":["kkm.sn","kkm.ver","kkm.rnm","fm.sn","fm.ffd_ver","fm.expired","fd.num","shift.num","shift.opened","shift.open_date","shift.receipt_num","shift.receipts","shift.docs"]}} [00:01:00]execute_script... [00:01:00]execute_script path=json_proto method=POST query_string={"protocol":"kg_v1.0","request":{"action":"get_value","params":{},"requested_data":["kkm.sn","kkm.ver","kkm.rnm","fm.sn","fm.ffd_ver","fm.expired","fd.num","shift.num","shift.opened","shift.open_date","shift.receipt_num","shift.receipts","shift.docs"]}} [00:01:00]POST & json_proto [00:01:00]process_json_proto [00:01:00]json parsed OK: [00:01:00]protocol is kg_v1.0 [00:01:00]action value=get_value [00:01:00]process_action get_value [00:01:00]cmd_get_value [00:01:00]process_action get_value done [00:01:00]requested_data is exist [00:01:00]produce_requested_data [00:01:00]requested_item kkm.sn is exist - process it [00:01:00]requested_item kkm.ver is exist - process it [00:01:00]requested_item kkm.rnm is exist - process it [00:01:00]wFMCommunicate request_size=4 [00:01:00]MH_SAM_APDU [00:01:00]CAPDU: 80 11 00 00 [00:01:00]Write to MH i2c: E2 08 00 16 00 80 11 00 00 00 00 00 00 90 [00:01:00]Write i2c OK [00:01:00]MH_I2C_Read... [00:01:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:01:00]Read from MH i2c: E2 [00:01:00]MH_I2C_Read... [00:01:00]Read from MH i2c: E2 17 00 [00:01:00]MH_I2C_Read... [00:01:00]Read from MH i2c: E2 17 00 16 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 32 90 00 E1 [00:01:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 32 90 00 [00:01:00]wFMCommunicate OK [00:01:00]Detected FM SN is 0000000000871752 [00:01:00]Stored FM SN is 0000000000874787 [00:01:00]Detected and stored FM are different - require to set a new PIN [00:01:00]produce_fm_shift_data error [00:01:00]requested_item fm.sn is exist - process it [00:01:00]wFMCommunicate request_size=4 [00:01:00]MH_SAM_APDU [00:01:00]CAPDU: 80 11 00 00 [00:01:00]Write to MH i2c: E2 08 00 17 00 80 11 00 00 00 00 00 00 91 [00:01:00]Write i2c OK [00:01:00]MH_I2C_Read... [00:01:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:01:00]Read from MH i2c: E2 [00:01:00]MH_I2C_Read... [00:01:00]Read from MH i2c: E2 17 00 [00:01:00]MH_I2C_Read... [00:01:00]Read from MH i2c: E2 17 00 17 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 32 90 00 E2 [00:01:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 32 90 00 [00:01:00]wFMCommunicate OK [00:01:00]Detected FM SN is 0000000000871752 [00:01:00]Stored FM SN is 0000000000874787 [00:01:00]Detected and stored FM are different - require to set a new PIN [00:01:00]wFMCommunicate request_size=4 [00:01:00]MH_SAM_APDU [00:01:00]CAPDU: 80 11 00 00 [00:01:00]Write to MH i2c: E2 08 00 18 00 80 11 00 00 00 00 00 00 92 [00:01:00]Write i2c OK [00:01:00]MH_I2C_Read... [00:01:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:01:00]Read from MH i2c: E2 [00:01:00]MH_I2C_Read... [00:01:00]Read from MH i2c: E2 17 00 [00:01:00]MH_I2C_Read... [00:01:00]Read from MH i2c: E2 17 00 18 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 32 90 00 E3 [00:01:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 32 90 00 [00:01:00]wFMCommunicate OK [00:01:00]requested_item fm.ffd_ver is exist - process it [00:01:00]wFMCommunicate request_size=4 [00:01:00]MH_SAM_APDU [00:01:00]CAPDU: 80 11 00 00 [00:01:00]Write to MH i2c: E2 08 00 19 00 80 11 00 00 00 00 00 00 93 [00:01:00]accept exits with 7 [00:01:00]New connection [00:01:00]New thread 3067559268 created [00:01:00]Waiting for new connection... [00:01:00] Sock 7.Parse request [00:01:00]Sock 7.Check first char [00:01:00]Sock 7.First char is OK [00:01:00]Write i2c OK [00:01:00]request: POST /json_proto HTTP/1.1 [00:01:00]MH_I2C_Read... [00:01:00]Method: POST [00:01:00]URL: /json_proto [00:01:00]Method is POST - this is cgi request [00:01:00]url: /json_proto [00:01:00]query_string will be loaded in cgi processing [00:01:00]execute_cgi json_proto POST (null) [00:01:00]execute_cgi path=json_proto method=POST [00:01:00]POST find Content-Length [00:01:00]Host: 192.168.0.101:8080 [00:01:00]Connection: keep-alive [00:01:00]Content-Length: 253 [00:01:00]Accept: application/json, text/plain, */* [00:01:00]User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36 [00:01:00]Content-Type: application/json [00:01:00]Origin: http://192.168.0.101:8080 [00:01:00]Referer: http://192.168.0.101:8080/testengine [00:01:00]Accept-Encoding: gzip, deflate [00:01:00]Accept-Language: ru-RU,ru;q=0.9,en-US;q=0.8,en;q=0.7 [00:01:00] [00:01:00]POST finish read [00:01:00]Found Content-Length = 253 [00:01:00]post body = {"protocol":"kg_v1.0","request":{"action":"get_value","params":{},"requested_data":["kkm.sn","kkm.ver","kkm.rnm","fm.sn","fm.ffd_ver","fm.expired","fd.num","shift.num","shift.opened","shift.open_date","shift.receipt_num","shift.receipts","shift.docs"]}} [00:01:00]execute_script... [00:00:10] *** EcrCore started. Build 196 *** [00:00:10]/dev/ttyS4 opened [00:00:10]MH_InterfaceInit /dev/i2c-1 [00:00:10]Malloc ok [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 01 00 00 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 26 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 26 00 01 00 00 03 01 00 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 6B FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF F7 [00:00:10]Possible old version of MH firmware - no need to switch from boot [00:00:10]Model is 3 [00:00:10]MH firmware is 1 [00:00:10]MH boot firmware is 0 [00:00:10]MH_SetPrinterDots 448 [00:00:10]HeadWidthInBytes 56 [00:00:10]maxmasksize 7 [00:00:10]Write to MH i2c: D6 06 00 02 00 41 00 60 00 FF FF 7C [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D6 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D6 01 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D6 01 00 02 00 00 D8 [00:00:10]Write to MH i2c: D5 00 00 03 00 D7 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D5 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D5 01 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D5 01 00 03 00 00 D8 [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]ExternCall_SetCallbacks [00:00:10]NVStorageInit [00:00:10]MH_GetDate [00:00:10]Write to MH i2c: F0 00 00 04 00 F3 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: F0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: F0 05 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: F0 05 00 04 00 00 8C 00 00 00 84 [00:02:20]Current date/time: 01.01.1970 00:02 [00:02:20]FM_Init [00:02:20]wFMConnect [00:02:20]MH_SAM_On [00:02:20]Write to MH i2c: E0 00 00 05 00 E4 [00:02:20]Write i2c OK [00:02:20]MH_I2C_Read... [00:02:20]*** iso7816_init finished! [00:02:20]*** atr: [00:02:20]*** 0F 3B D5 18 FF 81 91 FE [00:02:20]*** 1F C3 80 73 C8 21 10 0A [00:02:20]*** 00 00 00 00 00 00 00 00 [00:02:20]*** 00 00 00 00 00 00 00 00 [00:02:20]*** 00 00 00 00 00 00 00 00 [00:02:20]*** 00 00 00 00 00 00 00 00 [00:02:20]*** 00 00 00 00 00 00 00 00 [00:02:20]*** 00 00 00 00 00 00 00 00 [00:02:20]Read from MH i2c: E0 [00:02:20]MH_I2C_Read... [00:02:20]Read from MH i2c: E0 10 00 [00:02:20]MH_I2C_Read... [00:02:20]Read from MH i2c: E0 10 00 05 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 03 [00:02:20]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [00:02:20]wFMCommunicate request_size=10 [00:02:20]MH_SAM_APDU [00:02:20]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [00:02:20]Write to MH i2c: E2 0D 00 06 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B0 [00:02:20]Write i2c OK [00:02:20]MH_I2C_Read... [00:02:20]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [00:02:20]Read from MH i2c: E2 [00:02:20]MH_I2C_Read... [00:02:20]Read from MH i2c: E2 03 00 [00:02:20]MH_I2C_Read... [00:02:20]Read from MH i2c: E2 03 00 06 00 00 90 00 7A [00:02:20]RAPDU: 90 00 [00:02:20]wFMCommunicate OK [00:02:20]wFMCommunicate request_size=4 [00:02:20]MH_SAM_APDU [00:02:20]CAPDU: 80 11 00 00 [00:02:20]Write to MH i2c: E2 08 00 07 00 80 11 00 00 00 00 00 00 81 [00:02:20]Write i2c OK [00:02:20]MH_I2C_Read... [00:02:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:02:20]Read from MH i2c: E2 [00:02:20]MH_I2C_Read... [00:02:20]Read from MH i2c: E2 17 00 [00:02:20]MH_I2C_Read... [00:02:20]Read from MH i2c: E2 17 00 07 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 30 90 00 D1 [00:02:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 30 90 00 [00:02:20]wFMCommunicate OK [00:02:20]Detected FM SN is 0000000000875090 [00:02:20]Stored FM SN is 0000000000874787 [00:02:20]Detected and stored FM are different - require to set a new PIN [00:02:20]DocumentArchiveInit [00:02:20]Start Httpd... [00:02:20]Httpd thread 3067764068 created [00:02:20]Write to MH i2c: 01 00 00 08 00 08 [00:02:20]Write i2c OK [00:02:20]MH_I2C_Read... [00:02:20]Read from MH i2c: 01 [00:02:20]MH_I2C_Read... [00:02:20]Read from MH i2c: 01 07 00 [00:02:20]MH_I2C_Read... [00:02:20]Read from MH i2c: 01 07 00 08 00 00 82 00 00 00 FF 0F 9F [00:02:20]MH Int Process started [00:02:20]Allocated Socket 6 [00:02:20]Bind OK [00:02:20]Listen OK [00:02:20]httpd running on port 8080 [00:02:20]Waiting for new connection... [00:02:20]OFD Sender: No OFD packet to send [00:02:25]OFD Sender: No OFD packet to send [00:02:30]OFD Sender: No OFD packet to send [00:02:32]accept exits with 7 [00:02:32]New connection [00:02:32]New thread 3067477348 created [00:02:32]Waiting for new connection... [00:02:32] Sock 7.Parse request [00:02:32]Sock 7.Check first char [00:02:32]Sock 7.First char is OK [00:02:32]request: POST /json_proto HTTP/1.1 [00:02:32]Method: POST [00:02:32]URL: /json_proto [00:02:32]Method is POST - this is cgi request [00:02:32]url: /json_proto [00:02:32]query_string will be loaded in cgi processing [00:02:32]execute_cgi json_proto POST (null) [00:02:32]execute_cgi path=json_proto method=POST [00:02:32]POST find Content-Length [00:02:32]Host: 192.168.0.101:8080 [00:02:32]Connection: keep-alive [00:02:32]Content-Length: 253 [00:02:32]Accept: application/json, text/plain, */* [00:02:32]User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36 [00:02:32]Content-Type: application/json [00:02:32]Origin: http://192.168.0.101:8080 [00:02:32]Referer: http://192.168.0.101:8080/testengine [00:02:32]Accept-Encoding: gzip, deflate [00:02:32]Accept-Language: ru-RU,ru;q=0.9,en-US;q=0.8,en;q=0.7 [00:02:32] [00:02:32]POST finish read [00:02:32]Found Content-Length = 253 [00:02:32]post body = {"protocol":"kg_v1.0","request":{"action":"get_value","params":{},"requested_data":["kkm.sn","kkm.ver","kkm.rnm","fm.sn","fm.ffd_ver","fm.expired","fd.num","shift.num","shift.opened","shift.open_date","shift.receipt_num","shift.receipts","shift.docs"]}} [00:02:32]execute_script... [00:02:32]execute_script path=json_proto method=POST query_string={"protocol":"kg_v1.0","request":{"action":"get_value","params":{},"requested_data":["kkm.sn","kkm.ver","kkm.rnm","fm.sn","fm.ffd_ver","fm.expired","fd.num","shift.num","shift.opened","shift.open_date","shift.receipt_num","shift.receipts","shift.docs"]}} [00:02:32]POST & json_proto [00:02:32]process_json_proto [00:02:32]json parsed OK: [00:02:32]protocol is kg_v1.0 [00:02:32]action value=get_value [00:02:32]process_action get_value [00:02:32]cmd_get_value [00:02:32]process_action get_value done [00:02:32]requested_data is exist [00:02:32]produce_requested_data [00:02:32]requested_item kkm.sn is exist - process it [00:02:32]requested_item kkm.ver is exist - process it [00:02:32]requested_item kkm.rnm is exist - process it [00:02:32]wFMCommunicate request_size=4 [00:02:32]MH_SAM_APDU [00:02:32]CAPDU: 80 11 00 00 [00:02:32]Write to MH i2c: E2 08 00 09 00 80 11 00 00 00 00 00 00 83 [00:02:32]Write i2c OK [00:02:32]MH_I2C_Read... [00:02:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:02:32]Read from MH i2c: E2 [00:02:32]MH_I2C_Read... [00:02:32]Read from MH i2c: E2 17 00 [00:02:32]MH_I2C_Read... [00:02:32]Read from MH i2c: E2 17 00 09 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 30 90 00 D3 [00:02:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 30 90 00 [00:02:32]wFMCommunicate OK [00:02:32]Detected FM SN is 0000000000875090 [00:02:32]Stored FM SN is 0000000000874787 [00:02:32]Detected and stored FM are different - require to set a new PIN [00:02:32]produce_fm_shift_data error [00:02:32]requested_item fm.sn is exist - process it [00:02:32]wFMCommunicate request_size=4 [00:02:32]MH_SAM_APDU [00:02:32]CAPDU: 80 11 00 00 [00:02:32]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [00:02:32]Write i2c OK [00:02:32]MH_I2C_Read... [00:02:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:02:32]Read from MH i2c: E2 [00:02:32]MH_I2C_Read... [00:02:32]Read from MH i2c: E2 17 00 [00:02:32]MH_I2C_Read... [00:02:32]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 30 90 00 D4 [00:02:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 30 90 00 [00:02:32]wFMCommunicate OK [00:02:32]Detected FM SN is 0000000000875090 [00:02:32]Stored FM SN is 0000000000874787 [00:02:32]Detected and stored FM are different - require to set a new PIN [00:02:32]wFMCommunicate request_size=4 [00:02:32]MH_SAM_APDU [00:02:32]CAPDU: 80 11 00 00 [00:02:32]Write to MH i2c: E2 08 00 0B 00 80 11 00 00 00 00 00 00 85 [00:02:32]Write i2c OK [00:02:32]MH_I2C_Read... [00:02:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:02:32]Read from MH i2c: E2 [00:02:32]MH_I2C_Read... [00:02:32]Read from MH i2c: E2 17 00 [00:02:32]MH_I2C_Read... [00:02:32]Read from MH i2c: E2 17 00 0B 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 30 90 00 D5 [00:02:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 30 90 00 [00:02:32]wFMCommunicate OK [00:02:32]requested_item fm.ffd_ver is exist - process it [00:02:32]wFMCommunicate request_size=4 [00:02:32]MH_SAM_APDU [00:02:32]CAPDU: 80 11 00 00 [00:02:32]Write to MH i2c: E2 08 00 0C 00 80 11 00 00 00 00 00 00 86 [00:02:32]Write i2c OK [00:02:32]MH_I2C_Read... [00:02:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:02:32]Read from MH i2c: E2 [00:02:32]MH_I2C_Read... [00:02:32]Read from MH i2c: E2 17 00 [00:02:32]MH_I2C_Read... [00:02:32]Read from MH i2c: E2 17 00 0C 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 30 90 00 D6 [00:02:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 30 90 00 [00:02:32]wFMCommunicate OK [00:02:32]Detected FM SN is 0000000000875090 [00:02:32]Stored FM SN is 0000000000874787 [00:02:32]Detected and stored FM are different - require to set a new PIN [00:02:32]produce_fm_shift_data error [00:02:32]requested_item fm.expired is exist - process it [00:02:32]wFMCommunicate request_size=4 [00:02:32]MH_SAM_APDU [00:02:32]CAPDU: 80 11 00 00 [00:02:32]Write to MH i2c: E2 08 00 0D 00 80 11 00 00 00 00 00 00 87 [00:02:32]Write i2c OK [00:02:32]MH_I2C_Read... [00:02:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:02:32]Read from MH i2c: E2 [00:02:32]MH_I2C_Read... [00:02:32]Read from MH i2c: E2 17 00 [00:02:32]MH_I2C_Read... [00:02:32]Read from MH i2c: E2 17 00 0D 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 30 90 00 D7 [00:02:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 30 90 00 [00:02:32]wFMCommunicate OK [00:02:32]Detected FM SN is 0000000000875090 [00:02:32]Stored FM SN is 0000000000874787 [00:02:32]Detected and stored FM are different - require to set a new PIN [00:02:32]produce_fm_shift_data error [00:02:32]requested_item fd.num is exist - process it [00:02:32]wFMCommunicate request_size=4 [00:02:32]MH_SAM_APDU [00:02:32]CAPDU: 80 11 00 00 [00:02:32]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [00:02:32]Write i2c OK [00:02:32]MH_I2C_Read... [00:02:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:02:32]Read from MH i2c: E2 [00:02:32]MH_I2C_Read... [00:02:32]Read from MH i2c: E2 17 00 [00:02:32]MH_I2C_Read... [00:02:32]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 30 90 00 D8 [00:02:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 30 90 00 [00:02:32]wFMCommunicate OK [00:02:32]Detected FM SN is 0000000000875090 [00:02:32]Stored FM SN is 0000000000874787 [00:02:32]Detected and stored FM are different - require to set a new PIN [00:02:32]produce_fm_shift_data error [00:02:32]requested_item shift.num is exist - process it [00:02:32]wFMCommunicate request_size=4 [00:02:32]MH_SAM_APDU [00:02:32]CAPDU: 80 11 00 00 [00:02:32]Write to MH i2c: E2 08 00 0F 00 80 11 00 00 00 00 00 00 89 [00:02:32]Write i2c OK [00:02:32]MH_I2C_Read... [00:02:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:02:32]Read from MH i2c: E2 [00:02:32]MH_I2C_Read... [00:02:32]Read from MH i2c: E2 17 00 [00:02:32]MH_I2C_Read... [00:02:32]Read from MH i2c: E2 17 00 0F 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 30 90 00 D9 [00:02:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 30 90 00 [00:02:32]wFMCommunicate OK [00:02:32]Detected FM SN is 0000000000875090 [00:02:32]Stored FM SN is 0000000000874787 [00:02:32]Detected and stored FM are different - require to set a new PIN [00:02:32]produce_fm_shift_data error [00:02:32]requested_item shift.opened is exist - process it [00:02:32]req_shift_opened [00:02:32]wFMCommunicate request_size=4 [00:02:32]MH_SAM_APDU [00:02:32]CAPDU: 80 11 00 00 [00:02:32]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [00:02:32]Write i2c OK [00:02:32]MH_I2C_Read... [00:02:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:02:32]Read from MH i2c: E2 [00:02:32]MH_I2C_Read... [00:02:32]Read from MH i2c: E2 17 00 [00:02:32]MH_I2C_Read... [00:02:32]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 30 90 00 DA [00:02:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 30 90 00 [00:02:32]wFMCommunicate OK [00:02:32]Detected FM SN is 0000000000875090 [00:02:32]Stored FM SN is 0000000000874787 [00:02:32]Detected and stored FM are different - require to set a new PIN [00:02:32]produce_fm_shift_state error [00:02:32]requested_item shift.open_date is exist - process it [00:02:32]req_shift_open_date [00:02:33]wFMCommunicate request_size=4 [00:02:33]MH_SAM_APDU [00:02:33]CAPDU: 80 11 00 00 [00:02:33]Write to MH i2c: E2 08 00 11 00 80 11 00 00 00 00 00 00 8B [00:02:33]Write i2c OK [00:02:33]MH_I2C_Read... [00:02:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:02:33]Read from MH i2c: E2 [00:02:33]MH_I2C_Read... [00:02:33]Read from MH i2c: E2 17 00 [00:02:33]MH_I2C_Read... [00:02:33]Read from MH i2c: E2 17 00 11 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 30 90 00 DB [00:02:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 30 90 00 [00:02:33]wFMCommunicate OK [00:02:33]Detected FM SN is 0000000000875090 [00:02:33]Stored FM SN is 0000000000874787 [00:02:33]Detected and stored FM are different - require to set a new PIN