[03:16:08]OFD Sender: No OFD packet to send [03:16:13]OFD Sender: No OFD packet to send [03:16:18]OFD Sender: No OFD packet to send [03:16:23]OFD Sender: No OFD packet to send [03:16:28]OFD Sender: No OFD packet to send [03:16:33]OFD Sender: No OFD packet to send [03:16:38]OFD Sender: No OFD packet to send [03:16:43]OFD Sender: No OFD packet to send [03:16:48]OFD Sender: No OFD packet to send [03:16:53]OFD Sender: No OFD packet to send [03:16:58]OFD Sender: No OFD packet to send [03:17:03]OFD Sender: No OFD packet to send [03:17:08]OFD Sender: No OFD packet to send [03:17:13]OFD Sender: No OFD packet to send [03:17:18]OFD Sender: No OFD packet to send [03:17:23]OFD Sender: No OFD packet to send [03:17:28]OFD Sender: No OFD packet to send [03:17:33]OFD Sender: No OFD packet to send [03:17:38]OFD Sender: No OFD packet to send [03:17:43]OFD Sender: No OFD packet to send [03:17:48]OFD Sender: No OFD packet to send [03:17:53]OFD Sender: No OFD packet to send [03:17:58]OFD Sender: No OFD packet to send [03:18:03]OFD Sender: No OFD packet to send [03:18:08]OFD Sender: No OFD packet to send [03:18:13]OFD Sender: No OFD packet to send [03:18:15]accept exits with 9 [03:18:15]New connection [03:18:15]New thread 3066608996 created [03:18:15]Thread 3066752356 joined [03:18:15]Waiting for new connection... [03:18:15] Sock 9.Parse request [03:18:15]Sock 9.Check first char [03:18:15]Sock 9.First char is OK [03:18:15]request: POST /json_proto HTTP/1.0 [03:18:15]Method: POST [03:18:15]URL: /json_proto [03:18:15]Method is POST - this is cgi request [03:18:15]url: /json_proto [03:18:15]query_string will be loaded in cgi processing [03:18:15]execute_cgi json_proto POST (null) [03:18:15]execute_cgi path=json_proto method=POST [03:18:15]POST find Content-Length [03:18:15]Host: 172.17.41.195:8080 [03:18:15]Content-Length: 1209 [03:18:15]Content-Type: application/json [03:18:15] [03:18:15]POST finish read [03:18:15]Found Content-Length = 1209 [03:18:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0440\u0441\u0442\u0430\u043D\u0431\u0435\u043A\u043E\u0432 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)507928\u000A18.05.2024 03:00\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 26.780 x 74.70\u000A\u0418\u0422\u041E\u0413: 2000.47\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:18:15]execute_script... [03:18:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0440\u0441\u0442\u0430\u043D\u0431\u0435\u043A\u043E\u0432 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)507928\u000A18.05.2024 03:00\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 26.780 x 74.70\u000A\u0418\u0422\u041E\u0413: 2000.47\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:18:15]POST & json_proto [03:18:15]process_json_proto [03:18:15]json parsed OK: [03:18:15]protocol is kg_v1.0 [03:18:15]action value=print_text [03:18:15]process_action print_text [03:18:15]cmd_print_text [03:18:15]ExternCall_PrintAddStr [03:18:15]wPrintStart [03:18:15]Write to MH i2c: 01 00 00 D0 1B EB [03:18:15]Write i2c OK [03:18:15]MH_I2C_Read... [03:18:15]Read from MH i2c: 01 [03:18:15]MH_I2C_Read... [03:18:15]Read from MH i2c: 01 07 00 [03:18:15]MH_I2C_Read... [03:18:15]Read from MH i2c: 01 07 00 D0 1B 00 00 00 00 00 FF 0F 00 [03:18:15]RasterBufferAndPrint [03:18:15]line *****ТОВАРНЫЙ ЧЕК***** [03:18:15]line АЗС-91 [03:18:15]line Партнер нефть [03:18:15]line 02508201610067 [03:18:15]line Кассир : Арстанбеков Н. [03:18:15]line Счет N : (1)507928 [03:18:15]line 18.05.2024 03:00 [03:18:15]line ПРОДАЖА [03:18:15]line ТРК (МРК, ГНК): 11 [03:18:15]line Вид ГСМ : 2710194210 [03:18:15]line ДТ-К-5 [03:18:15]line 26.780 x 74.70 [03:18:15]line ИТОГ: 2000.47 [03:18:15]line Тип оплаты: Талоны: Топливная Карта [03:18:15]line 02750 [03:18:15]line ______________________ [03:18:15]line (подпись) [03:18:15]written 0, free lines is 4095 [03:18:15]Write to MH i2c: 01 00 00 E4 1B FF [03:18:15]Write i2c OK [03:18:15]MH_I2C_Read... [03:18:15]Read from MH i2c: 01 [03:18:15]MH_I2C_Read... [03:18:15]Read from MH i2c: 01 07 00 [03:18:15]MH_I2C_Read... [03:18:15]Read from MH i2c: 01 07 00 E4 1B 00 00 00 00 00 0F 0E 23 [03:18:15]RasterBufferAndPrint [03:18:15]line [03:18:15]line [03:18:15]line [03:18:15]line [03:18:15]line [03:18:15]written 0, free lines is 3601 [03:18:15]MH_Cut [03:18:15]Write to MH i2c: D1 01 00 EB 1B 01 D8 [03:18:15]Write i2c OK [03:18:15]MH_I2C_Read... [03:18:15]Read from MH i2c: D1 [03:18:15]MH_I2C_Read... [03:18:15]Read from MH i2c: D1 01 00 [03:18:15]MH_I2C_Read... [03:18:15]Read from MH i2c: D1 01 00 EB 1B 00 D7 [03:18:15]Write to MH i2c: 01 00 00 EC 1B 07 [03:18:15]Write i2c OK [03:18:15]MH_I2C_Read... [03:18:15]*** Cut start [03:18:15]*** Purtial cut [03:18:15]*** Stage 1: CUTSNS_PIN = 1 [03:18:16]Read from MH i2c: 01 [03:18:16]MH_I2C_Read... [03:18:16]Read from MH i2c: 01 07 00 [03:18:16]MH_I2C_Read... [03:18:16]*** Stop cut motor [03:18:16]*** Cut end [03:18:16]Read from MH i2c: 01 07 00 EC 1B 00 00 00 00 00 FF 0F 1C [03:18:16]process_action print_text done [03:18:16]requested_data is exist [03:18:16]produce_requested_data [03:18:16]requested_item fm.sn is exist - process it [03:18:16]wFMCommunicate request_size=4 [03:18:16]MH_SAM_APDU [03:18:16]CAPDU: 80 11 00 00 [03:18:16]Write to MH i2c: E2 08 00 ED 1B 80 11 00 00 00 00 00 00 82 [03:18:16]Write i2c OK [03:18:16]MH_I2C_Read... [03:18:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:18:16]Read from MH i2c: E2 [03:18:16]MH_I2C_Read... [03:18:16]Read from MH i2c: E2 17 00 [03:18:16]MH_I2C_Read... [03:18:16]Read from MH i2c: E2 17 00 ED 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 D8 [03:18:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [03:18:16]wFMCommunicate OK [03:18:16]requested_item fd.num is exist - process it [03:18:16]SAM_PROTO_GetFieldsCounters [03:18:16]wFMCommunicate request_size=4 [03:18:16]MH_SAM_APDU [03:18:16]CAPDU: 80 13 00 00 [03:18:16]Write to MH i2c: E2 08 00 EE 1B 80 13 00 00 00 00 00 00 85 [03:18:16]Write i2c OK [03:18:16]MH_I2C_Read... [03:18:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:18:16]Read from MH i2c: E2 [03:18:16]MH_I2C_Read... [03:18:16]Read from MH i2c: E2 62 00 [03:18:16]MH_I2C_Read... [03:18:16]Read from MH i2c: E2 62 00 EE 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 B4 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 03 00 00 00 5E 04 04 00 03 00 00 00 57 04 04 00 04 00 00 00 19 04 04 00 00 00 00 00 90 00 D9 [03:18:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 B4 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 03 00 00 00 5E 04 04 00 03 00 00 00 57 04 04 00 04 00 00 00 19 04 04 00 00 00 00 00 90 00 [03:18:16]wFMCommunicate OK [03:18:16]SAM_PROTO_GetFieldsCounters done [03:18:16]requested_item shift.num is exist - process it [03:18:16]requested_item shift.opened is exist - process it [03:18:16]req_shift_opened [03:18:16]FM_GetShiftState [03:18:16]SAM_PROTO_GetShiftState [03:18:16]wFMCommunicate request_size=4 [03:18:16]MH_SAM_APDU [03:18:16]CAPDU: 80 13 01 00 [03:18:16]Write to MH i2c: E2 08 00 EF 1B 80 13 01 00 00 00 00 00 87 [03:18:16]Write i2c OK [03:18:16]MH_I2C_Read... [03:18:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:18:16]Read from MH i2c: E2 [03:18:16]MH_I2C_Read... [03:18:16]Read from MH i2c: E2 0E 00 [03:18:16]MH_I2C_Read... [03:18:16]Read from MH i2c: E2 0E 00 EF 1B 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 EE [03:18:16]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [03:18:16]wFMCommunicate OK [03:18:16]SAM_PROTO_GetShiftState done [03:18:16]FM_GetShiftState done [03:18:16]req_shift_opened done [03:18:16]requested_item shift.open_date is exist - process it [03:18:16]req_shift_open_date [03:18:16]req_shift_open_date done [03:18:16]produce_requested_data done [03:18:16]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67764,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [03:18:16]process_action_free print_text [03:18:16]json_value_free [03:18:16]json_value_free done [03:18:16]process_json_proto returns [03:18:16]Send response to host [03:18:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67764,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [03:18:16]free response buf [03:18:16]execute_script done [03:18:16]execute_script returns [03:18:16]free content buf [03:18:16]Sock 9.Close socket [03:18:16]Sock 9.Thread stoped [03:18:18]OFD Sender: No OFD packet to send [03:18:23]OFD Sender: No OFD packet to send [03:18:28]OFD Sender: No OFD packet to send [03:18:33]OFD Sender: No OFD packet to send [03:18:38]OFD Sender: No OFD packet to send [03:18:43]OFD Sender: No OFD packet to send [03:18:48]OFD Sender: No OFD packet to send [03:18:53]OFD Sender: No OFD packet to send [03:18:58]OFD Sender: No OFD packet to send [03:19:03]OFD Sender: No OFD packet to send [03:19:08]OFD Sender: No OFD packet to send [03:19:13]OFD Sender: No OFD packet to send [03:19:18]OFD Sender: No OFD packet to send [03:19:23]OFD Sender: No OFD packet to send [03:19:28]OFD Sender: No OFD packet to send [03:19:33]OFD Sender: No OFD packet to send [03:19:38]OFD Sender: No OFD packet to send [03:19:43]OFD Sender: No OFD packet to send [03:19:48]OFD Sender: No OFD packet to send [03:19:53]OFD Sender: No OFD packet to send [03:19:58]OFD Sender: No OFD packet to send [03:20:03]OFD Sender: No OFD packet to send [03:20:08]OFD Sender: No OFD packet to send [03:20:13]OFD Sender: No OFD packet to send [03:20:18]OFD Sender: No OFD packet to send [03:20:23]OFD Sender: No OFD packet to send [03:20:28]OFD Sender: No OFD packet to send [03:20:33]OFD Sender: No OFD packet to send [03:20:38]OFD Sender: No OFD packet to send [03:20:43]OFD Sender: No OFD packet to send [03:20:48]OFD Sender: No OFD packet to send [03:20:53]OFD Sender: No OFD packet to send [03:20:58]OFD Sender: No OFD packet to send [03:21:03]OFD Sender: No OFD packet to send [03:21:08]OFD Sender: No OFD packet to send [03:21:13]OFD Sender: No OFD packet to send [03:21:18]OFD Sender: No OFD packet to send [03:21:23]OFD Sender: No OFD packet to send [03:21:28]OFD Sender: No OFD packet to send [03:21:33]OFD Sender: No OFD packet to send [03:21:38]OFD Sender: No OFD packet to send [03:21:43]OFD Sender: No OFD packet to send [03:21:48]OFD Sender: No OFD packet to send [03:21:53]OFD Sender: No OFD packet to send [03:21:58]OFD Sender: No OFD packet to send [03:22:03]OFD Sender: No OFD packet to send [03:22:08]OFD Sender: No OFD packet to send [03:22:13]OFD Sender: No OFD packet to send [03:22:18]OFD Sender: No OFD packet to send [03:22:23]OFD Sender: No OFD packet to send [03:22:28]OFD Sender: No OFD packet to send [03:22:33]OFD Sender: No OFD packet to send [03:22:38]OFD Sender: No OFD packet to send [03:22:43]OFD Sender: No OFD packet to send [03:22:48]OFD Sender: No OFD packet to send [03:22:53]OFD Sender: No OFD packet to send [03:22:58]OFD Sender: No OFD packet to send [03:23:03]OFD Sender: No OFD packet to send [03:23:08]OFD Sender: No OFD packet to send [03:23:13]OFD Sender: No OFD packet to send [03:23:18]OFD Sender: No OFD packet to send [03:23:23]OFD Sender: No OFD packet to send [03:23:28]OFD Sender: No OFD packet to send [03:23:33]OFD Sender: No OFD packet to send [03:23:38]OFD Sender: No OFD packet to send [03:23:43]OFD Sender: No OFD packet to send [03:23:48]OFD Sender: No OFD packet to send [03:23:53]OFD Sender: No OFD packet to send [03:23:58]OFD Sender: No OFD packet to send [03:24:03]OFD Sender: No OFD packet to send [03:24:08]OFD Sender: No OFD packet to send [03:24:13]OFD Sender: No OFD packet to send [03:24:18]OFD Sender: No OFD packet to send [03:24:23]OFD Sender: No OFD packet to send [03:24:28]OFD Sender: No OFD packet to send [03:24:33]OFD Sender: No OFD packet to send [03:24:38]OFD Sender: No OFD packet to send [03:24:43]OFD Sender: No OFD packet to send [03:24:48]OFD Sender: No OFD packet to send [03:24:53]OFD Sender: No OFD packet to send [03:24:58]OFD Sender: No OFD packet to send [03:25:03]OFD Sender: No OFD packet to send [03:25:08]OFD Sender: No OFD packet to send [03:25:13]OFD Sender: No OFD packet to send [03:25:18]OFD Sender: No OFD packet to send [03:25:23]OFD Sender: No OFD packet to send [03:25:28]OFD Sender: No OFD packet to send [03:25:33]OFD Sender: No OFD packet to send [03:25:38]OFD Sender: No OFD packet to send [03:25:43]OFD Sender: No OFD packet to send [03:25:48]OFD Sender: No OFD packet to send [03:25:53]OFD Sender: No OFD packet to send [03:25:58]OFD Sender: No OFD packet to send [03:26:03]OFD Sender: No OFD packet to send [03:26:08]OFD Sender: No OFD packet to send [03:26:13]OFD Sender: No OFD packet to send [03:26:18]OFD Sender: No OFD packet to send [03:26:23]OFD Sender: No OFD packet to send [03:26:28]OFD Sender: No OFD packet to send [03:26:33]OFD Sender: No OFD packet to send [03:26:38]OFD Sender: No OFD packet to send [03:26:43]OFD Sender: No OFD packet to send [03:26:48]OFD Sender: No OFD packet to send [03:26:53]OFD Sender: No OFD packet to send [03:26:58]OFD Sender: No OFD packet to send [03:27:03]OFD Sender: No OFD packet to send [03:27:08]OFD Sender: No OFD packet to send [03:27:13]OFD Sender: No OFD packet to send [03:27:18]OFD Sender: No OFD packet to send [03:27:23]OFD Sender: No OFD packet to send [03:27:28]OFD Sender: No OFD packet to send [03:27:33]OFD Sender: No OFD packet to send [03:27:38]OFD Sender: No OFD packet to send [03:27:43]OFD Sender: No OFD packet to send [03:27:48]OFD Sender: No OFD packet to send [03:27:53]OFD Sender: No OFD packet to send [03:27:58]OFD Sender: No OFD packet to send [03:28:03]OFD Sender: No OFD packet to send [03:28:08]OFD Sender: No OFD packet to send [03:28:13]OFD Sender: No OFD packet to send [03:28:18]OFD Sender: No OFD packet to send [03:28:23]OFD Sender: No OFD packet to send [03:28:28]OFD Sender: No OFD packet to send [03:28:33]OFD Sender: No OFD packet to send [03:28:38]OFD Sender: No OFD packet to send [03:28:43]OFD Sender: No OFD packet to send [03:28:48]OFD Sender: No OFD packet to send [03:28:53]OFD Sender: No OFD packet to send [03:28:58]OFD Sender: No OFD packet to send [03:29:03]OFD Sender: No OFD packet to send [03:29:08]OFD Sender: No OFD packet to send [03:29:13]OFD Sender: No OFD packet to send [03:29:18]OFD Sender: No OFD packet to send [03:29:23]OFD Sender: No OFD packet to send [03:29:28]OFD Sender: No OFD packet to send [03:29:33]OFD Sender: No OFD packet to send [03:29:38]OFD Sender: No OFD packet to send [03:29:43]OFD Sender: No OFD packet to send [03:29:48]OFD Sender: No OFD packet to send [03:29:53]OFD Sender: No OFD packet to send [03:29:58]OFD Sender: No OFD packet to send [03:30:03]OFD Sender: No OFD packet to send [03:30:08]OFD Sender: No OFD packet to send [03:30:13]OFD Sender: No OFD packet to send [03:30:18]OFD Sender: No OFD packet to send [03:30:23]OFD Sender: No OFD packet to send [03:30:28]OFD Sender: No OFD packet to send [03:30:33]OFD Sender: No OFD packet to send [03:30:38]OFD Sender: No OFD packet to send [03:30:43]OFD Sender: No OFD packet to send [03:30:48]OFD Sender: No OFD packet to send [03:30:53]OFD Sender: No OFD packet to send [03:30:58]OFD Sender: No OFD packet to send [03:31:03]OFD Sender: No OFD packet to send [03:31:08]OFD Sender: No OFD packet to send [03:31:13]OFD Sender: No OFD packet to send [03:31:18]OFD Sender: No OFD packet to send [03:31:23]OFD Sender: No OFD packet to send [03:31:28]OFD Sender: No OFD packet to send [03:31:33]OFD Sender: No OFD packet to send [03:31:38]OFD Sender: No OFD packet to send [03:31:43]OFD Sender: No OFD packet to send [03:31:48]OFD Sender: No OFD packet to send [03:31:54]OFD Sender: No OFD packet to send [03:31:59]OFD Sender: No OFD packet to send [03:32:04]OFD Sender: No OFD packet to send [03:32:08]accept exits with 7 [03:32:08]New connection [03:32:08]New thread 3066752356 created [03:32:08]Thread 3066608996 joined [03:32:08]Waiting for new connection... [03:32:08] Sock 7.Parse request [03:32:08]Sock 7.Check first char [03:32:08]Sock 7.First char is OK [03:32:08]request: POST /json_proto HTTP/1.0 [03:32:08]Method: POST [03:32:08]URL: /json_proto [03:32:08]Method is POST - this is cgi request [03:32:08]url: /json_proto [03:32:08]query_string will be loaded in cgi processing [03:32:08]execute_cgi json_proto POST (null) [03:32:08]execute_cgi path=json_proto method=POST [03:32:08]POST find Content-Length [03:32:08]Host: 172.17.41.195:8080 [03:32:08]Content-Length: 1209 [03:32:08]Content-Type: application/json [03:32:08] [03:32:08]POST finish read [03:32:08]Found Content-Length = 1209 [03:32:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0440\u0441\u0442\u0430\u043D\u0431\u0435\u043A\u043E\u0432 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)507929\u000A18.05.2024 03:14\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 40.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 2988.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:32:08]execute_script... [03:32:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0440\u0441\u0442\u0430\u043D\u0431\u0435\u043A\u043E\u0432 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)507929\u000A18.05.2024 03:14\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 40.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 2988.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:32:08]POST & json_proto [03:32:08]process_json_proto [03:32:08]json parsed OK: [03:32:08]protocol is kg_v1.0 [03:32:08]action value=print_text [03:32:08]process_action print_text [03:32:08]cmd_print_text [03:32:08]ExternCall_PrintAddStr [03:32:08]wPrintStart [03:32:08]Write to MH i2c: 01 00 00 F0 1B 0B [03:32:08]Write i2c OK [03:32:08]MH_I2C_Read... [03:32:08]Read from MH i2c: 01 [03:32:08]MH_I2C_Read... [03:32:08]Read from MH i2c: 01 07 00 [03:32:08]MH_I2C_Read... [03:32:08]Read from MH i2c: 01 07 00 F0 1B 00 00 00 00 00 FF 0F 20 [03:32:08]RasterBufferAndPrint [03:32:08]line *****ТОВАРНЫЙ ЧЕК***** [03:32:08]line АЗС-91 [03:32:08]line Партнер нефть [03:32:08]line 02508201610067 [03:32:08]line Кассир : Арстанбеков Н. [03:32:08]line Счет N : (1)507929 [03:32:08]line 18.05.2024 03:14 [03:32:08]line ПРОДАЖА [03:32:08]line ТРК (МРК, ГНК): 11 [03:32:08]line Вид ГСМ : 2710194210 [03:32:08]line ДТ-К-5 [03:32:08]line 40.000 x 74.70 [03:32:08]line ИТОГ: 2988.00 [03:32:08]line Тип оплаты: Талоны: Топливная Карта [03:32:08]line 02750 [03:32:08]line ______________________ [03:32:08]line (подпись) [03:32:08]written 0, free lines is 4095 [03:32:08]Write to MH i2c: 01 00 00 04 1C 20 [03:32:08]Write i2c OK [03:32:08]MH_I2C_Read... [03:32:08]Read from MH i2c: 01 [03:32:08]MH_I2C_Read... [03:32:08]Read from MH i2c: 01 07 00 [03:32:08]MH_I2C_Read... [03:32:08]Read from MH i2c: 01 07 00 04 1C 00 00 00 00 00 0F 0E 44 [03:32:08]RasterBufferAndPrint [03:32:08]line [03:32:08]line [03:32:08]line [03:32:08]line [03:32:08]line [03:32:08]written 0, free lines is 3601 [03:32:08]MH_Cut [03:32:08]Write to MH i2c: D1 01 00 0B 1C 01 F9 [03:32:08]Write i2c OK [03:32:08]MH_I2C_Read... [03:32:08]Read from MH i2c: D1 [03:32:08]MH_I2C_Read... [03:32:08]Read from MH i2c: D1 01 00 [03:32:08]MH_I2C_Read... [03:32:08]Read from MH i2c: D1 01 00 0B 1C 00 F8 [03:32:08]Write to MH i2c: 01 00 00 0C 1C 28 [03:32:08]Write i2c OK [03:32:08]MH_I2C_Read... [03:32:09]OFD Sender: No OFD packet to send [03:32:09]*** Cut start [03:32:09]*** Purtial cut [03:32:09]*** CUTSNS_PIN = 0 [03:32:09]*** Stage 1: CUTSNS_PIN = 1 [03:32:11]Read from MH i2c: 01 [03:32:11]MH_I2C_Read... [03:32:11]*** Stop cut motor [03:32:11]*** Cut end [03:32:11]Read from MH i2c: 01 07 00 [03:32:11]MH_I2C_Read... [03:32:11]Read from MH i2c: 01 07 00 0C 1C 00 00 00 00 00 FF 0F 3D [03:32:11]process_action print_text done [03:32:11]requested_data is exist [03:32:11]produce_requested_data [03:32:11]requested_item fm.sn is exist - process it [03:32:11]wFMCommunicate request_size=4 [03:32:11]MH_SAM_APDU [03:32:11]CAPDU: 80 11 00 00 [03:32:11]Write to MH i2c: E2 08 00 0D 1C 80 11 00 00 00 00 00 00 A3 [03:32:11]Write i2c OK [03:32:11]MH_I2C_Read... [03:32:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:32:11]Read from MH i2c: E2 [03:32:11]MH_I2C_Read... [03:32:11]Read from MH i2c: E2 17 00 [03:32:11]MH_I2C_Read... [03:32:11]Read from MH i2c: E2 17 00 0D 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 F9 [03:32:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [03:32:11]wFMCommunicate OK [03:32:11]requested_item fd.num is exist - process it [03:32:11]SAM_PROTO_GetFieldsCounters [03:32:11]wFMCommunicate request_size=4 [03:32:11]MH_SAM_APDU [03:32:11]CAPDU: 80 13 00 00 [03:32:11]Write to MH i2c: E2 08 00 0E 1C 80 13 00 00 00 00 00 00 A6 [03:32:11]Write i2c OK [03:32:11]MH_I2C_Read... [03:32:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:32:11]Read from MH i2c: E2 [03:32:11]MH_I2C_Read... [03:32:11]Read from MH i2c: E2 62 00 [03:32:11]MH_I2C_Read... [03:32:11]Read from MH i2c: E2 62 00 0E 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 B4 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 03 00 00 00 5E 04 04 00 03 00 00 00 57 04 04 00 04 00 00 00 19 04 04 00 00 00 00 00 90 00 FA [03:32:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 B4 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 03 00 00 00 5E 04 04 00 03 00 00 00 57 04 04 00 04 00 00 00 19 04 04 00 00 00 00 00 90 00 [03:32:11]wFMCommunicate OK [03:32:11]SAM_PROTO_GetFieldsCounters done [03:32:11]requested_item shift.num is exist - process it [03:32:11]requested_item shift.opened is exist - process it [03:32:11]req_shift_opened [03:32:11]FM_GetShiftState [03:32:11]SAM_PROTO_GetShiftState [03:32:11]wFMCommunicate request_size=4 [03:32:11]MH_SAM_APDU [03:32:11]CAPDU: 80 13 01 00 [03:32:11]Write to MH i2c: E2 08 00 0F 1C 80 13 01 00 00 00 00 00 A8 [03:32:11]Write i2c OK [03:32:11]MH_I2C_Read... [03:32:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:32:11]Read from MH i2c: E2 [03:32:11]MH_I2C_Read... [03:32:11]Read from MH i2c: E2 0E 00 [03:32:11]MH_I2C_Read... [03:32:11]Read from MH i2c: E2 0E 00 0F 1C 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 0F [03:32:11]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [03:32:11]wFMCommunicate OK [03:32:11]SAM_PROTO_GetShiftState done [03:32:11]FM_GetShiftState done [03:32:11]req_shift_opened done [03:32:11]requested_item shift.open_date is exist - process it [03:32:11]req_shift_open_date [03:32:11]req_shift_open_date done [03:32:11]produce_requested_data done [03:32:11]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67764,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [03:32:11]process_action_free print_text [03:32:11]json_value_free [03:32:11]json_value_free done [03:32:11]process_json_proto returns [03:32:11]Send response to host [03:32:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67764,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [03:32:11]free response buf [03:32:11]execute_script done [03:32:11]execute_script returns [03:32:11]free content buf [03:32:11]Sock 7.Close socket [03:32:11]Sock 7.Thread stoped [03:32:14]OFD Sender: No OFD packet to send [03:32:19]OFD Sender: No OFD packet to send [03:32:24]OFD Sender: No OFD packet to send [03:32:29]OFD Sender: No OFD packet to send [03:32:34]OFD Sender: No OFD packet to send [03:32:39]OFD Sender: No OFD packet to send [03:32:39]accept exits with 9 [03:32:39]New connection [03:32:39]New thread 3066608996 created [03:32:39]Thread 3066752356 joined [03:32:39]Waiting for new connection... [03:32:39] Sock 9.Parse request [03:32:39]Sock 9.Check first char [03:32:39]Sock 9.First char is OK [03:32:39]request: POST /json_proto HTTP/1.0 [03:32:39]Method: POST [03:32:39]URL: /json_proto [03:32:39]Method is POST - this is cgi request [03:32:39]url: /json_proto [03:32:39]query_string will be loaded in cgi processing [03:32:39]execute_cgi json_proto POST (null) [03:32:39]execute_cgi path=json_proto method=POST [03:32:39]POST find Content-Length [03:32:39]Host: 172.17.41.195:8080 [03:32:39]Content-Length: 622 [03:32:39]Content-Type: application/json [03:32:39] [03:32:39]POST finish read [03:32:39]Found Content-Length = 622 [03:32:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)12110", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 128.00, "quantity" : 1.000, "sum" : 128.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 128.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:32:39]execute_script... [03:32:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)12110", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 128.00, "quantity" : 1.000, "sum" : 128.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 128.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:32:39]POST & json_proto [03:32:39]process_json_proto [03:32:39]json parsed OK: [03:32:39]protocol is kg_v1.0 [03:32:39]action value=close_receipt [03:32:39]process_action close_receipt [03:32:39]cmd_close_receipt [03:32:39]MH_GetDate [03:32:39]Write to MH i2c: F0 00 00 10 1C 1B [03:32:39]Write i2c OK [03:32:39]MH_I2C_Read... [03:32:39]Read from MH i2c: F0 [03:32:39]MH_I2C_Read... [03:32:39]Read from MH i2c: F0 09 00 [03:32:39]MH_I2C_Read... [03:32:39]Read from MH i2c: F0 09 00 10 1C 00 5A 21 48 66 FC 21 6F 64 3D [03:32:39]GetLastDocTimeStamp 1715993270 [03:32:39]current date 1716003162 [03:32:39]FM_GetShiftState [03:32:39]SAM_PROTO_GetShiftState [03:32:39]wFMCommunicate request_size=4 [03:32:39]MH_SAM_APDU [03:32:39]CAPDU: 80 13 01 00 [03:32:39]Write to MH i2c: E2 08 00 11 1C 80 13 01 00 00 00 00 00 AA [03:32:39]Write i2c OK [03:32:39]MH_I2C_Read... [03:32:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:32:39]Read from MH i2c: E2 [03:32:39]MH_I2C_Read... [03:32:39]Read from MH i2c: E2 0E 00 [03:32:39]MH_I2C_Read... [03:32:39]Read from MH i2c: E2 0E 00 11 1C 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 11 [03:32:39]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [03:32:39]wFMCommunicate OK [03:32:39]SAM_PROTO_GetShiftState done [03:32:39]FM_GetShiftState done [03:32:39]opened in 1715991483 [03:32:39]opened+sec_in_day 1716077883 [03:32:39]quantity*price = 12800 [03:32:39]sum+1 = 12801 [03:32:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 128.00 НСП 1% : 1.13 НДС 12% : 13.59 Наличными: 128.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 4 18.05.2024 03:32 Смена: 359 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67765 ФПД: 214731894700039 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T033242&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67765&fm=214731894700039&tin=02508201610067®Number=0000000000091845&sum=12800 0 [03:32:40]StoreToDocumentArchive [03:32:40]shift 359 fd 67765 [03:32:40]save to /storage/0359/doc_00067765 [03:32:40]save last doc name /storage/0359/doc_00067765 to /storage/kkm_last_doc_name [03:32:40]save OK [03:32:40]Clear old archive folders... [03:32:40]ProcessDocumentItem done err = 0, tmpTLVsize=275 [03:32:40]tlvbuf is B6E906A0 [03:32:40]SAM_PROTO_ClearQueue [03:32:40]wFMCommunicate request_size=4 [03:32:40]MH_SAM_APDU [03:32:40]CAPDU: 80 09 00 00 [03:32:40]Write to MH i2c: E2 08 00 1E 1C 80 09 00 00 00 00 00 00 AC [03:32:40]Write i2c OK [03:32:40]MH_I2C_Read... [03:32:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:32:40]Read from MH i2c: E2 [03:32:40]MH_I2C_Read... [03:32:40]Read from MH i2c: E2 03 00 [03:32:40]MH_I2C_Read... [03:32:40]Read from MH i2c: E2 03 00 1E 1C 00 90 00 AE [03:32:40]RAPDU: 90 00 [03:32:40]wFMCommunicate OK [03:32:40]SAM_PROTO_ClearQueue done [03:32:40]KKMCreateOFDPacket [03:32:40]OFDProtocolAddRootSTLVToBuf [03:32:40]FM_MakeSignedData [03:32:40]FM_MakeSignedData [03:32:40]SAM_PROTO_SignData [03:32:40]wFMCommunicate request_size=4 [03:32:40]MH_SAM_APDU [03:32:40]CAPDU: 80 0D 01 02 [03:32:40]Write to MH i2c: E2 08 00 1F 1C 80 0D 01 02 00 00 00 00 B4 [03:32:40]Write i2c OK [03:32:40]MH_I2C_Read... [03:32:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:32:40]Read from MH i2c: E2 [03:32:40]MH_I2C_Read... [03:32:40]Read from MH i2c: E2 03 00 [03:32:40]MH_I2C_Read... [03:32:40]Read from MH i2c: E2 03 00 1F 1C 00 90 00 AF [03:32:40]RAPDU: 90 00 [03:32:40]wFMCommunicate OK [03:32:40]wFMCommunicate request_size=255 [03:32:40]MH_SAM_APDU [03:32:40]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 00 32 00 00 00 00 13 04 06 00 00 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 71 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4F 05 00 00 00 00 07 04 06 00 00 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 5A 21 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 [03:32:40]Write to MH i2c: E2 02 01 20 1C 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 00 32 00 00 00 00 13 04 06 00 00 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 71 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4F 05 00 00 00 00 07 04 06 00 00 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 5A 21 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 00 00 80 [03:32:40]Write i2c OK [03:32:40]MH_I2C_Read... [03:32:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:32:41]Read from MH i2c: E2 [03:32:41]MH_I2C_Read... [03:32:41]Read from MH i2c: E2 03 00 [03:32:41]MH_I2C_Read... [03:32:41]Read from MH i2c: E2 03 00 20 1C 00 90 00 B0 [03:32:41]RAPDU: 90 00 [03:32:41]wFMCommunicate OK [03:32:41]wFMCommunicate request_size=34 [03:32:41]MH_SAM_APDU [03:32:41]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 B5 08 01 00 35 04 06 00 C3 4C 2A 4E 38 07 [03:32:41]Write to MH i2c: E2 25 00 21 1C 80 0D 02 02 1D 00 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 B5 08 01 00 35 04 06 00 C3 4C 2A 4E 38 07 00 00 FF [03:32:41]Write i2c OK [03:32:41]MH_I2C_Read... [03:32:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:32:41]Read from MH i2c: E2 [03:32:41]MH_I2C_Read... [03:32:41]Read from MH i2c: E2 03 00 [03:32:41]MH_I2C_Read... [03:32:41]Read from MH i2c: E2 03 00 21 1C 00 90 00 B1 [03:32:41]RAPDU: 90 00 [03:32:41]wFMCommunicate OK [03:32:41]wFMCommunicate request_size=4 [03:32:41]MH_SAM_APDU [03:32:41]CAPDU: 80 0D 03 02 [03:32:41]Write to MH i2c: E2 08 00 22 1C 80 0D 03 02 00 00 00 00 B9 [03:32:41]Write i2c OK [03:32:41]MH_I2C_Read... [03:32:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:32:41]Read from MH i2c: E2 [03:32:41]MH_I2C_Read... [03:32:41]Read from MH i2c: E2 0B 00 [03:32:41]MH_I2C_Read... [03:32:41]Read from MH i2c: E2 0B 00 22 1C 00 51 F1 89 44 DF 5A D8 4B 90 00 25 [03:32:41]RAPDU: 51 F1 89 44 DF 5A D8 4B 90 00 [03:32:41]wFMCommunicate OK [03:32:41]SAM_PROTO_SignData done [03:32:41]FM_MakeSignedData done [03:32:41]CreateOFDProtocolMessage [03:32:41]wFMCommunicate request_size=4 [03:32:41]MH_SAM_APDU [03:32:41]CAPDU: 80 11 00 00 [03:32:41]Write to MH i2c: E2 08 00 23 1C 80 11 00 00 00 00 00 00 B9 [03:32:41]Write i2c OK [03:32:41]MH_I2C_Read... [03:32:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:32:41]Read from MH i2c: E2 [03:32:41]MH_I2C_Read... [03:32:41]Read from MH i2c: E2 17 00 [03:32:41]MH_I2C_Read... [03:32:41]Read from MH i2c: E2 17 00 23 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 0F [03:32:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [03:32:41]wFMCommunicate OK [03:32:41]CreateOFDProtocolMessage done [03:32:41]OFDSenderStorePacket 67765 [03:32:41]StoreOFDPacket docnum=67765 [03:32:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 27 01 00 00 E0 B4 1F 01 B4 6B 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 00 32 00 00 00 00 13 04 06 00 00 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 71 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4F 05 00 00 00 00 07 04 06 00 00 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 5A 21 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 B5 08 01 00 35 04 06 00 C3 4C 2A 4E 38 07 51 F1 89 44 DF 5A D8 4B [03:32:41]CheckFolder [03:32:41]dirname=/storage/ofd_packets [03:32:41]CheckFolder done [03:32:41]ProducePacketName [03:32:41]name=ofd_packets/00067765 [03:32:41]NVStorageSaveData ofd_packets/00067765 [03:32:41]File name is /storage/ofd_packets/00067765 [03:32:41]Write 325 bytes [03:32:41]NVStorageSaveData done [03:32:41]OFDSenderStorePacket done [03:32:41]KKMCreateOFDPacket done [03:32:41]NVStorageSaveData kkm_last_timestamp [03:32:41]File name is /storage/kkm_last_timestamp [03:32:41]Write 4 bytes [03:32:41]NVStorageSaveData done [03:32:41]ExternCall_PrintAddStr [03:32:41]wPrintStart [03:32:41]Write to MH i2c: 01 00 00 24 1C 40 [03:32:41]Write i2c OK [03:32:41]MH_I2C_Read... [03:32:41]Read from MH i2c: 01 [03:32:41]MH_I2C_Read... [03:32:41]Read from MH i2c: 01 07 00 [03:32:41]MH_I2C_Read... [03:32:41]Read from MH i2c: 01 07 00 24 1C 00 00 00 00 00 FF 0F 55 [03:32:41]RasterBufferAndPrint [03:32:41]line Счет N : (3)12110 [03:32:41]line ИНН: 02508201610067 [03:32:41]line Контрольно-Кассовый Чек [03:32:41]line ПРОДАЖА [03:32:41]line Товар: 48743587 [03:32:41]line Сигареты Winston XStyle Silver [03:32:41]line 1.000 * 128.00 [03:32:41]line = 128.00 [03:32:41]line НДС 12% НСП 1% [03:32:41]line > о реализуемом товаре [03:32:41]line ИТОГО: 128.00 [03:32:41]line НСП 1% : 1.13 [03:32:41]line НДС 12% : 13.59 [03:32:41]line Наличными: 128.00 [03:32:41]line Безнал.: 0.00 [03:32:41]line Место: АЗС № 91 "Партнер Нефть" [03:32:41]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [03:32:41]line СНО: Общий режим [03:32:41]line Чек 4 18.05.2024 03:32 [03:32:41]line Смена: 359 ФФД: 1.0 [03:32:41]line ЗНМ: 0300000119 [03:32:41]line РНМ: 0000000000091845 [03:32:41]line Версия ККМ: 001 [03:32:41]line ФМ: 0000000000871829 [03:32:41]line ФД: 67765 [03:32:41]line ФПД: 214731894700039 [03:32:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T033242&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67765&fm=214731894700039&tin=02508201610067®Number=0000000000091845&sum=12800 [03:32:41]line 0 [03:32:41]written 0, free lines is 4095 [03:32:41]OFD Sender: Processing packet 67765 [packets to send 35, broken 34] [03:32:41]ProducePacketName [03:32:41]name=ofd_packets/00067765 [03:32:41]OFD Sender: To server: pG, [03:32:41]CommunicateWithHost lk.salyk.kg:30040 [03:32:41]ConnectInit lk.salyk.kg [03:32:41]Connected sock=10 [03:32:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 27 01 00 00 E0 B4 1F 01 B4 6B 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 00 32 00 00 00 00 13 04 06 00 00 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 71 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4F 05 00 00 00 00 07 04 06 00 00 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 5A 21 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 B5 08 01 00 35 04 06 00 C3 4C 2A 4E 38 07 51 F1 89 44 DF 5A D8 4B [03:32:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 65 8A 47 00 91 F9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 B5 08 01 00 F4 03 04 00 31 C9 47 66 B6 04 01 00 00 1E 8C D5 83 EB 01 EB E2 [03:32:41]CommunicateWithHost err = 0 [03:32:41]CheckOFDResponse [03:32:41]1017 (14) - 77093643461234 [03:32:41]1041 (16) - 0000000000871829 [03:32:41]1040 (4) - 67765 [03:32:41]1012 (4) - 17.05.2024 21:16 [03:32:41]1206 (1) - 0 [03:32:41]OFD Sender: Remove packet 67765 [03:32:41]ProducePacketName [03:32:41]name=ofd_packets/00067765 [03:32:41]NVStorageDeleteData [03:32:42]Write to MH i2c: 01 00 00 4C 1C 68 [03:32:42]Write i2c OK [03:32:42]MH_I2C_Read... [03:32:42]Read from MH i2c: 01 [03:32:42]MH_I2C_Read... [03:32:42]Read from MH i2c: 01 07 00 [03:32:42]MH_I2C_Read... [03:32:42]Read from MH i2c: 01 07 00 4C 1C 00 00 00 00 00 CF 0C 4A [03:32:42]RasterBufferAndPrint [03:32:42]line [03:32:42]line [03:32:42]line [03:32:42]line [03:32:42]line [03:32:42]written 0, free lines is 3283 [03:32:42]MH_Cut [03:32:42]Write to MH i2c: D1 01 00 53 1C 01 41 [03:32:42]Write i2c OK [03:32:42]MH_I2C_Read... [03:32:42]Read from MH i2c: D1 [03:32:42]MH_I2C_Read... [03:32:42]Read from MH i2c: D1 01 00 [03:32:42]MH_I2C_Read... [03:32:42]Read from MH i2c: D1 01 00 53 1C 00 40 [03:32:42]Write to MH i2c: 01 00 00 54 1C 70 [03:32:42]Write i2c OK [03:32:42]MH_I2C_Read... [03:32:42]OFD Sender: No OFD packet to send [03:32:42]*** Cut start [03:32:42]*** Purtial cut [03:32:42]*** Stage 1: CUTSNS_PIN = 1 [03:32:43]Read from MH i2c: 01 [03:32:43]MH_I2C_Read... [03:32:43]*** Stop cut motor [03:32:43]*** Cut end [03:32:43]Read from MH i2c: 01 07 00 [03:32:43]MH_I2C_Read... [03:32:43]Read from MH i2c: 01 07 00 54 1C 00 00 00 00 00 FF 0F 85 [03:32:43]process_action close_receipt done [03:32:43]requested_data is exist [03:32:43]produce_requested_data [03:32:43]requested_item fm.sn is exist - process it [03:32:43]wFMCommunicate request_size=4 [03:32:43]MH_SAM_APDU [03:32:43]CAPDU: 80 11 00 00 [03:32:43]Write to MH i2c: E2 08 00 55 1C 80 11 00 00 00 00 00 00 EB [03:32:43]Write i2c OK [03:32:43]MH_I2C_Read... [03:32:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:32:43]Read from MH i2c: E2 [03:32:43]MH_I2C_Read... [03:32:43]Read from MH i2c: E2 17 00 [03:32:43]MH_I2C_Read... [03:32:43]Read from MH i2c: E2 17 00 55 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 41 [03:32:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [03:32:43]wFMCommunicate OK [03:32:43]requested_item fd.num is exist - process it [03:32:43]SAM_PROTO_GetFieldsCounters [03:32:43]wFMCommunicate request_size=4 [03:32:43]MH_SAM_APDU [03:32:43]CAPDU: 80 13 00 00 [03:32:43]Write to MH i2c: E2 08 00 56 1C 80 13 00 00 00 00 00 00 EE [03:32:43]Write i2c OK [03:32:43]MH_I2C_Read... [03:32:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:32:43]Read from MH i2c: E2 [03:32:43]MH_I2C_Read... [03:32:43]Read from MH i2c: E2 62 00 [03:32:43]MH_I2C_Read... [03:32:43]Read from MH i2c: E2 62 00 56 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 B5 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 04 00 00 00 5E 04 04 00 04 00 00 00 57 04 04 00 05 00 00 00 19 04 04 00 00 00 00 00 90 00 46 [03:32:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 B5 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 04 00 00 00 5E 04 04 00 04 00 00 00 57 04 04 00 05 00 00 00 19 04 04 00 00 00 00 00 90 00 [03:32:43]wFMCommunicate OK [03:32:43]SAM_PROTO_GetFieldsCounters done [03:32:43]requested_item shift.num is exist - process it [03:32:43]requested_item shift.opened is exist - process it [03:32:43]req_shift_opened [03:32:43]FM_GetShiftState [03:32:43]SAM_PROTO_GetShiftState [03:32:43]wFMCommunicate request_size=4 [03:32:43]MH_SAM_APDU [03:32:43]CAPDU: 80 13 01 00 [03:32:43]Write to MH i2c: E2 08 00 57 1C 80 13 01 00 00 00 00 00 F0 [03:32:43]Write i2c OK [03:32:43]MH_I2C_Read... [03:32:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:32:43]Read from MH i2c: E2 [03:32:43]MH_I2C_Read... [03:32:43]Read from MH i2c: E2 0E 00 [03:32:43]MH_I2C_Read... [03:32:43]Read from MH i2c: E2 0E 00 57 1C 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 57 [03:32:43]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [03:32:43]wFMCommunicate OK [03:32:43]SAM_PROTO_GetShiftState done [03:32:43]FM_GetShiftState done [03:32:43]req_shift_opened done [03:32:43]requested_item shift.open_date is exist - process it [03:32:43]req_shift_open_date [03:32:43]req_shift_open_date done [03:32:43]produce_requested_data done [03:32:43]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67765,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [03:32:43]process_action_free close_receipt [03:32:43]json_value_free [03:32:43]json_value_free done [03:32:43]process_json_proto returns [03:32:43]Send response to host [03:32:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67765,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [03:32:43]free response buf [03:32:43]execute_script done [03:32:43]execute_script returns [03:32:43]free content buf [03:32:43]Sock 9.Close socket [03:32:43]Sock 9.Thread stoped [03:32:47]OFD Sender: No OFD packet to send [03:32:52]OFD Sender: No OFD packet to send [03:32:57]OFD Sender: No OFD packet to send [03:33:02]OFD Sender: No OFD packet to send [03:33:07]OFD Sender: No OFD packet to send [03:33:12]OFD Sender: No OFD packet to send [03:33:17]OFD Sender: No OFD packet to send [03:33:22]OFD Sender: No OFD packet to send [03:33:27]OFD Sender: No OFD packet to send [03:33:32]OFD Sender: No OFD packet to send [03:33:37]OFD Sender: No OFD packet to send [03:33:42]OFD Sender: No OFD packet to send [03:33:47]OFD Sender: No OFD packet to send [03:33:52]OFD Sender: No OFD packet to send [03:33:57]OFD Sender: No OFD packet to send [03:34:02]OFD Sender: No OFD packet to send [03:34:07]OFD Sender: No OFD packet to send [03:34:12]OFD Sender: No OFD packet to send [03:34:17]OFD Sender: No OFD packet to send [03:34:22]OFD Sender: No OFD packet to send [03:34:27]OFD Sender: No OFD packet to send [03:34:32]OFD Sender: No OFD packet to send [03:34:37]OFD Sender: No OFD packet to send [03:34:42]OFD Sender: No OFD packet to send [03:34:47]OFD Sender: No OFD packet to send [03:34:52]OFD Sender: No OFD packet to send [03:34:57]OFD Sender: No OFD packet to send [03:35:02]OFD Sender: No OFD packet to send [03:35:07]OFD Sender: No OFD packet to send [03:35:12]OFD Sender: No OFD packet to send [03:35:17]OFD Sender: No OFD packet to send [03:35:22]OFD Sender: No OFD packet to send [03:35:27]OFD Sender: No OFD packet to send [03:35:32]OFD Sender: No OFD packet to send [03:35:37]OFD Sender: No OFD packet to send [03:35:42]OFD Sender: No OFD packet to send [03:35:47]OFD Sender: No OFD packet to send [03:35:52]OFD Sender: No OFD packet to send [03:35:57]OFD Sender: No OFD packet to send [03:36:02]OFD Sender: No OFD packet to send [03:36:07]OFD Sender: No OFD packet to send [03:36:12]OFD Sender: No OFD packet to send [03:36:17]OFD Sender: No OFD packet to send [03:36:22]OFD Sender: No OFD packet to send [03:36:27]OFD Sender: No OFD packet to send [03:36:32]OFD Sender: No OFD packet to send [03:36:37]OFD Sender: No OFD packet to send [03:36:42]OFD Sender: No OFD packet to send [03:36:47]OFD Sender: No OFD packet to send [03:36:52]OFD Sender: No OFD packet to send [03:36:57]OFD Sender: No OFD packet to send [03:37:02]OFD Sender: No OFD packet to send [03:37:07]OFD Sender: No OFD packet to send [03:37:12]OFD Sender: No OFD packet to send [03:37:17]OFD Sender: No OFD packet to send [03:37:22]OFD Sender: No OFD packet to send [03:37:27]OFD Sender: No OFD packet to send [03:37:32]OFD Sender: No OFD packet to send [03:37:37]OFD Sender: No OFD packet to send [03:37:42]OFD Sender: No OFD packet to send [03:37:47]OFD Sender: No OFD packet to send [03:37:52]OFD Sender: No OFD packet to send [03:37:57]OFD Sender: No OFD packet to send [03:38:02]OFD Sender: No OFD packet to send [03:38:07]OFD Sender: No OFD packet to send [03:38:12]OFD Sender: No OFD packet to send [03:38:17]OFD Sender: No OFD packet to send [03:38:22]OFD Sender: No OFD packet to send [03:38:27]OFD Sender: No OFD packet to send [03:38:32]OFD Sender: No OFD packet to send [03:38:37]OFD Sender: No OFD packet to send [03:38:42]OFD Sender: No OFD packet to send [03:38:47]OFD Sender: No OFD packet to send [03:38:52]OFD Sender: No OFD packet to send [03:38:57]OFD Sender: No OFD packet to send [03:39:02]OFD Sender: No OFD packet to send [03:39:07]OFD Sender: No OFD packet to send [03:39:12]OFD Sender: No OFD packet to send [03:39:17]OFD Sender: No OFD packet to send [03:39:22]OFD Sender: No OFD packet to send [03:39:27]OFD Sender: No OFD packet to send [03:39:32]OFD Sender: No OFD packet to send [03:39:37]OFD Sender: No OFD packet to send [03:39:42]OFD Sender: No OFD packet to send [03:39:47]OFD Sender: No OFD packet to send [03:39:52]OFD Sender: No OFD packet to send [03:39:57]OFD Sender: No OFD packet to send [03:40:02]OFD Sender: No OFD packet to send [03:40:07]OFD Sender: No OFD packet to send [03:40:12]OFD Sender: No OFD packet to send [03:40:17]OFD Sender: No OFD packet to send [03:40:22]OFD Sender: No OFD packet to send [03:40:27]OFD Sender: No OFD packet to send [03:40:32]OFD Sender: No OFD packet to send [03:40:37]OFD Sender: No OFD packet to send [03:40:42]OFD Sender: No OFD packet to send [03:40:47]OFD Sender: No OFD packet to send [03:40:52]OFD Sender: No OFD packet to send [03:40:57]OFD Sender: No OFD packet to send [03:41:02]OFD Sender: No OFD packet to send [03:41:07]OFD Sender: No OFD packet to send [03:41:12]OFD Sender: No OFD packet to send [03:41:17]OFD Sender: No OFD packet to send [03:41:22]OFD Sender: No OFD packet to send [03:41:27]OFD Sender: No OFD packet to send [03:41:32]OFD Sender: No OFD packet to send [03:41:37]OFD Sender: No OFD packet to send [03:41:42]OFD Sender: No OFD packet to send [03:41:47]OFD Sender: No OFD packet to send [03:41:52]OFD Sender: No OFD packet to send [03:41:57]OFD Sender: No OFD packet to send [03:42:02]OFD Sender: No OFD packet to send [03:42:07]OFD Sender: No OFD packet to send [03:42:12]OFD Sender: No OFD packet to send [03:42:17]OFD Sender: No OFD packet to send [03:42:22]OFD Sender: No OFD packet to send [03:42:27]OFD Sender: No OFD packet to send [03:42:32]OFD Sender: No OFD packet to send [03:42:37]OFD Sender: No OFD packet to send [03:42:42]OFD Sender: No OFD packet to send [03:42:47]OFD Sender: No OFD packet to send [03:42:52]OFD Sender: No OFD packet to send [03:42:57]OFD Sender: No OFD packet to send [03:43:02]OFD Sender: No OFD packet to send [03:43:07]OFD Sender: No OFD packet to send [03:43:12]OFD Sender: No OFD packet to send [03:43:17]OFD Sender: No OFD packet to send [03:43:23]OFD Sender: No OFD packet to send [03:43:28]OFD Sender: No OFD packet to send [03:43:33]OFD Sender: No OFD packet to send [03:43:38]OFD Sender: No OFD packet to send [03:43:43]OFD Sender: No OFD packet to send [03:43:48]OFD Sender: No OFD packet to send [03:43:53]OFD Sender: No OFD packet to send [03:43:58]OFD Sender: No OFD packet to send [03:44:03]OFD Sender: No OFD packet to send [03:44:08]OFD Sender: No OFD packet to send [03:44:13]OFD Sender: No OFD packet to send [03:44:18]OFD Sender: No OFD packet to send [03:44:23]OFD Sender: No OFD packet to send [03:44:28]OFD Sender: No OFD packet to send [03:44:33]OFD Sender: No OFD packet to send [03:44:38]OFD Sender: No OFD packet to send [03:44:43]OFD Sender: No OFD packet to send [03:44:48]OFD Sender: No OFD packet to send [03:44:53]OFD Sender: No OFD packet to send [03:44:58]OFD Sender: No OFD packet to send [03:45:03]OFD Sender: No OFD packet to send [03:45:08]OFD Sender: No OFD packet to send [03:45:13]OFD Sender: No OFD packet to send [03:45:18]OFD Sender: No OFD packet to send [03:45:23]OFD Sender: No OFD packet to send [03:45:28]OFD Sender: No OFD packet to send [03:45:33]OFD Sender: No OFD packet to send [03:45:38]OFD Sender: No OFD packet to send [03:45:43]OFD Sender: No OFD packet to send [03:45:48]OFD Sender: No OFD packet to send [03:45:53]OFD Sender: No OFD packet to send [03:45:58]OFD Sender: No OFD packet to send [03:46:03]OFD Sender: No OFD packet to send [03:46:08]OFD Sender: No OFD packet to send [03:46:13]OFD Sender: No OFD packet to send [03:46:18]OFD Sender: No OFD packet to send [03:46:23]OFD Sender: No OFD packet to send [03:46:28]OFD Sender: No OFD packet to send [03:46:33]OFD Sender: No OFD packet to send [03:46:38]OFD Sender: No OFD packet to send [03:46:43]OFD Sender: No OFD packet to send [03:46:48]OFD Sender: No OFD packet to send [03:46:53]OFD Sender: No OFD packet to send [03:46:58]OFD Sender: No OFD packet to send [03:47:03]OFD Sender: No OFD packet to send [03:47:08]OFD Sender: No OFD packet to send [03:47:13]OFD Sender: No OFD packet to send [03:47:18]OFD Sender: No OFD packet to send [03:47:23]OFD Sender: No OFD packet to send [03:47:28]OFD Sender: No OFD packet to send [03:47:33]OFD Sender: No OFD packet to send [03:47:38]OFD Sender: No OFD packet to send [03:47:43]OFD Sender: No OFD packet to send [03:47:48]OFD Sender: No OFD packet to send [03:47:53]OFD Sender: No OFD packet to send [03:47:58]OFD Sender: No OFD packet to send [03:48:03]OFD Sender: No OFD packet to send [03:48:08]OFD Sender: No OFD packet to send [03:48:13]OFD Sender: No OFD packet to send [03:48:18]OFD Sender: No OFD packet to send [03:48:23]OFD Sender: No OFD packet to send [03:48:28]OFD Sender: No OFD packet to send [03:48:33]OFD Sender: No OFD packet to send [03:48:38]OFD Sender: No OFD packet to send [03:48:43]OFD Sender: No OFD packet to send [03:48:48]OFD Sender: No OFD packet to send [03:48:53]OFD Sender: No OFD packet to send [03:48:58]OFD Sender: No OFD packet to send [03:49:03]OFD Sender: No OFD packet to send [03:49:08]OFD Sender: No OFD packet to send [03:49:13]OFD Sender: No OFD packet to send [03:49:18]OFD Sender: No OFD packet to send [03:49:23]OFD Sender: No OFD packet to send [03:49:28]OFD Sender: No OFD packet to send [03:49:33]OFD Sender: No OFD packet to send [03:49:38]OFD Sender: No OFD packet to send [03:49:43]OFD Sender: No OFD packet to send [03:49:48]OFD Sender: No OFD packet to send [03:49:53]OFD Sender: No OFD packet to send [03:49:58]OFD Sender: No OFD packet to send [03:50:03]OFD Sender: No OFD packet to send [03:50:08]OFD Sender: No OFD packet to send [03:50:13]OFD Sender: No OFD packet to send [03:50:18]OFD Sender: No OFD packet to send [03:50:23]OFD Sender: No OFD packet to send [03:50:28]OFD Sender: No OFD packet to send [03:50:33]OFD Sender: No OFD packet to send [03:50:38]OFD Sender: No OFD packet to send [03:50:43]OFD Sender: No OFD packet to send [03:50:48]OFD Sender: No OFD packet to send [03:50:53]OFD Sender: No OFD packet to send [03:50:58]OFD Sender: No OFD packet to send [03:51:03]OFD Sender: No OFD packet to send [03:51:08]OFD Sender: No OFD packet to send [03:51:13]OFD Sender: No OFD packet to send [03:51:18]OFD Sender: No OFD packet to send [03:51:23]OFD Sender: No OFD packet to send [03:51:28]OFD Sender: No OFD packet to send [03:51:33]OFD Sender: No OFD packet to send [03:51:38]OFD Sender: No OFD packet to send [03:51:43]OFD Sender: No OFD packet to send [03:51:48]OFD Sender: No OFD packet to send [03:51:53]OFD Sender: No OFD packet to send [03:51:58]OFD Sender: No OFD packet to send [03:52:03]OFD Sender: No OFD packet to send [03:52:08]OFD Sender: No OFD packet to send [03:52:13]OFD Sender: No OFD packet to send [03:52:18]OFD Sender: No OFD packet to send [03:52:23]OFD Sender: No OFD packet to send [03:52:28]OFD Sender: No OFD packet to send [03:52:33]OFD Sender: No OFD packet to send [03:52:38]OFD Sender: No OFD packet to send [03:52:43]OFD Sender: No OFD packet to send [03:52:48]OFD Sender: No OFD packet to send [03:52:53]OFD Sender: No OFD packet to send [03:52:58]OFD Sender: No OFD packet to send [03:53:03]OFD Sender: No OFD packet to send [03:53:08]OFD Sender: No OFD packet to send [03:53:13]OFD Sender: No OFD packet to send [03:53:18]OFD Sender: No OFD packet to send [03:53:23]OFD Sender: No OFD packet to send [03:53:28]OFD Sender: No OFD packet to send [03:53:33]OFD Sender: No OFD packet to send [03:53:38]OFD Sender: No OFD packet to send [03:53:43]OFD Sender: No OFD packet to send [03:53:48]OFD Sender: No OFD packet to send [03:53:53]OFD Sender: No OFD packet to send [03:53:58]OFD Sender: No OFD packet to send [03:54:03]OFD Sender: No OFD packet to send [03:54:08]OFD Sender: No OFD packet to send [03:54:13]OFD Sender: No OFD packet to send [03:54:18]OFD Sender: No OFD packet to send [03:54:23]OFD Sender: No OFD packet to send [03:54:28]OFD Sender: No OFD packet to send [03:54:33]OFD Sender: No OFD packet to send [03:54:38]OFD Sender: No OFD packet to send [03:54:43]OFD Sender: No OFD packet to send [03:54:48]OFD Sender: No OFD packet to send [03:54:53]OFD Sender: No OFD packet to send [03:54:58]OFD Sender: No OFD packet to send [03:55:03]OFD Sender: No OFD packet to send [03:55:08]OFD Sender: No OFD packet to send [03:55:13]OFD Sender: No OFD packet to send [03:55:18]OFD Sender: No OFD packet to send [03:55:23]OFD Sender: No OFD packet to send [03:55:28]OFD Sender: No OFD packet to send [03:55:33]OFD Sender: No OFD packet to send [03:55:38]OFD Sender: No OFD packet to send [03:55:43]OFD Sender: No OFD packet to send [03:55:48]OFD Sender: No OFD packet to send [03:55:53]OFD Sender: No OFD packet to send [03:55:58]OFD Sender: No OFD packet to send [03:56:03]OFD Sender: No OFD packet to send [03:56:08]OFD Sender: No OFD packet to send [03:56:13]OFD Sender: No OFD packet to send [03:56:18]OFD Sender: No OFD packet to send [03:56:23]OFD Sender: No OFD packet to send [03:56:28]OFD Sender: No OFD packet to send [03:56:33]OFD Sender: No OFD packet to send [03:56:38]OFD Sender: No OFD packet to send [03:56:43]OFD Sender: No OFD packet to send [03:56:48]OFD Sender: No OFD packet to send [03:56:53]OFD Sender: No OFD packet to send [03:56:58]OFD Sender: No OFD packet to send [03:57:03]OFD Sender: No OFD packet to send [03:57:08]OFD Sender: No OFD packet to send [03:57:13]OFD Sender: No OFD packet to send [03:57:18]OFD Sender: No OFD packet to send [03:57:23]OFD Sender: No OFD packet to send [03:57:28]OFD Sender: No OFD packet to send [03:57:33]OFD Sender: No OFD packet to send [03:57:38]OFD Sender: No OFD packet to send [03:57:43]OFD Sender: No OFD packet to send [03:57:48]OFD Sender: No OFD packet to send [03:57:53]OFD Sender: No OFD packet to send [03:57:58]OFD Sender: No OFD packet to send [03:58:03]OFD Sender: No OFD packet to send [03:58:08]OFD Sender: No OFD packet to send [03:58:13]OFD Sender: No OFD packet to send [03:58:18]OFD Sender: No OFD packet to send [03:58:23]OFD Sender: No OFD packet to send [03:58:28]OFD Sender: No OFD packet to send [03:58:33]OFD Sender: No OFD packet to send [03:58:38]OFD Sender: No OFD packet to send [03:58:43]OFD Sender: No OFD packet to send [03:58:48]OFD Sender: No OFD packet to send [03:58:53]OFD Sender: No OFD packet to send [03:58:58]OFD Sender: No OFD packet to send [03:59:03]OFD Sender: No OFD packet to send [03:59:08]OFD Sender: No OFD packet to send [03:59:13]OFD Sender: No OFD packet to send [03:59:18]OFD Sender: No OFD packet to send [03:59:23]OFD Sender: No OFD packet to send [03:59:28]OFD Sender: No OFD packet to send [03:59:33]OFD Sender: No OFD packet to send [03:59:38]OFD Sender: No OFD packet to send [03:59:43]OFD Sender: No OFD packet to send [03:59:48]OFD Sender: No OFD packet to send [03:59:53]OFD Sender: No OFD packet to send [03:59:58]OFD Sender: No OFD packet to send [04:00:03]OFD Sender: No OFD packet to send [04:00:08]OFD Sender: No OFD packet to send [04:00:13]OFD Sender: No OFD packet to send [04:00:18]OFD Sender: No OFD packet to send [04:00:23]OFD Sender: No OFD packet to send [04:00:28]OFD Sender: No OFD packet to send [04:00:33]OFD Sender: No OFD packet to send [04:00:38]OFD Sender: No OFD packet to send [04:00:43]OFD Sender: No OFD packet to send [04:00:48]OFD Sender: No OFD packet to send [04:00:53]OFD Sender: No OFD packet to send [04:00:58]OFD Sender: No OFD packet to send [04:01:03]OFD Sender: No OFD packet to send [04:01:08]OFD Sender: No OFD packet to send [04:01:13]OFD Sender: No OFD packet to send [04:01:18]OFD Sender: No OFD packet to send [04:01:23]OFD Sender: No OFD packet to send [04:01:28]OFD Sender: No OFD packet to send [04:01:33]OFD Sender: No OFD packet to send [04:01:38]OFD Sender: No OFD packet to send [04:01:43]OFD Sender: No OFD packet to send [04:01:48]OFD Sender: No OFD packet to send [04:01:53]OFD Sender: No OFD packet to send [04:01:58]OFD Sender: No OFD packet to send [04:02:03]OFD Sender: No OFD packet to send [04:02:08]OFD Sender: No OFD packet to send [04:02:13]OFD Sender: No OFD packet to send [04:02:18]OFD Sender: No OFD packet to send [04:02:23]OFD Sender: No OFD packet to send [04:02:28]OFD Sender: No OFD packet to send [04:02:33]OFD Sender: No OFD packet to send [04:02:38]OFD Sender: No OFD packet to send [04:02:44]OFD Sender: No OFD packet to send [04:02:49]OFD Sender: No OFD packet to send [04:02:54]OFD Sender: No OFD packet to send [04:02:59]OFD Sender: No OFD packet to send [04:03:04]OFD Sender: No OFD packet to send [04:03:09]OFD Sender: No OFD packet to send [04:03:14]OFD Sender: No OFD packet to send [04:03:19]OFD Sender: No OFD packet to send [04:03:24]OFD Sender: No OFD packet to send [04:03:29]OFD Sender: No OFD packet to send [04:03:34]OFD Sender: No OFD packet to send [04:03:39]OFD Sender: No OFD packet to send [04:03:44]OFD Sender: No OFD packet to send [04:03:49]OFD Sender: No OFD packet to send [04:03:54]OFD Sender: No OFD packet to send [04:03:59]OFD Sender: No OFD packet to send [04:04:04]OFD Sender: No OFD packet to send [04:04:09]OFD Sender: No OFD packet to send [04:04:14]OFD Sender: No OFD packet to send [04:04:19]OFD Sender: No OFD packet to send [04:04:24]OFD Sender: No OFD packet to send [04:04:29]OFD Sender: No OFD packet to send [04:04:34]OFD Sender: No OFD packet to send [04:04:39]OFD Sender: No OFD packet to send [04:04:44]OFD Sender: No OFD packet to send [04:04:49]OFD Sender: No OFD packet to send [04:04:54]OFD Sender: No OFD packet to send [04:04:59]OFD Sender: No OFD packet to send [04:05:04]OFD Sender: No OFD packet to send [04:05:09]OFD Sender: No OFD packet to send [04:05:14]OFD Sender: No OFD packet to send [04:05:19]OFD Sender: No OFD packet to send [04:05:24]OFD Sender: No OFD packet to send [04:05:29]OFD Sender: No OFD packet to send [04:05:34]OFD Sender: No OFD packet to send [04:05:39]OFD Sender: No OFD packet to send [04:05:44]OFD Sender: No OFD packet to send [04:05:49]OFD Sender: No OFD packet to send [04:05:54]OFD Sender: No OFD packet to send [04:05:59]OFD Sender: No OFD packet to send [04:06:04]OFD Sender: No OFD packet to send [04:06:09]OFD Sender: No OFD packet to send [04:06:14]OFD Sender: No OFD packet to send [04:06:19]OFD Sender: No OFD packet to send [04:06:24]OFD Sender: No OFD packet to send [04:06:29]OFD Sender: No OFD packet to send [04:06:34]OFD Sender: No OFD packet to send [04:06:39]OFD Sender: No OFD packet to send [04:06:44]OFD Sender: No OFD packet to send [04:06:49]OFD Sender: No OFD packet to send [04:06:54]OFD Sender: No OFD packet to send [04:06:59]OFD Sender: No OFD packet to send [04:07:04]OFD Sender: No OFD packet to send [04:07:09]OFD Sender: No OFD packet to send [04:07:14]OFD Sender: No OFD packet to send [04:07:19]OFD Sender: No OFD packet to send [04:07:24]OFD Sender: No OFD packet to send [04:07:29]OFD Sender: No OFD packet to send [04:07:34]OFD Sender: No OFD packet to send [04:07:39]OFD Sender: No OFD packet to send [04:07:44]OFD Sender: No OFD packet to send [04:07:49]OFD Sender: No OFD packet to send [04:07:54]OFD Sender: No OFD packet to send [04:07:59]OFD Sender: No OFD packet to send [04:08:04]OFD Sender: No OFD packet to send [04:08:09]OFD Sender: No OFD packet to send [04:08:14]OFD Sender: No OFD packet to send [04:08:19]OFD Sender: No OFD packet to send [04:08:24]OFD Sender: No OFD packet to send [04:08:29]OFD Sender: No OFD packet to send [04:08:34]OFD Sender: No OFD packet to send [04:08:39]OFD Sender: No OFD packet to send [04:08:44]OFD Sender: No OFD packet to send [04:08:49]OFD Sender: No OFD packet to send [04:08:54]OFD Sender: No OFD packet to send [04:08:59]OFD Sender: No OFD packet to send [04:09:04]OFD Sender: No OFD packet to send [04:09:09]OFD Sender: No OFD packet to send [04:09:14]OFD Sender: No OFD packet to send [04:09:19]OFD Sender: No OFD packet to send [04:09:24]OFD Sender: No OFD packet to send [04:09:29]OFD Sender: No OFD packet to send [04:09:34]OFD Sender: No OFD packet to send [04:09:39]OFD Sender: No OFD packet to send [04:09:44]OFD Sender: No OFD packet to send [04:09:49]OFD Sender: No OFD packet to send [04:09:54]OFD Sender: No OFD packet to send [04:09:59]OFD Sender: No OFD packet to send [04:10:04]OFD Sender: No OFD packet to send [04:10:09]OFD Sender: No OFD packet to send [04:10:14]OFD Sender: No OFD packet to send [04:10:19]OFD Sender: No OFD packet to send [04:10:24]OFD Sender: No OFD packet to send [04:10:29]OFD Sender: No OFD packet to send [04:10:34]OFD Sender: No OFD packet to send [04:10:39]OFD Sender: No OFD packet to send [04:10:44]OFD Sender: No OFD packet to send [04:10:49]OFD Sender: No OFD packet to send [04:10:54]OFD Sender: No OFD packet to send [04:10:59]OFD Sender: No OFD packet to send [04:11:04]OFD Sender: No OFD packet to send [04:11:09]OFD Sender: No OFD packet to send [04:11:14]OFD Sender: No OFD packet to send [04:11:19]OFD Sender: No OFD packet to send [04:11:24]OFD Sender: No OFD packet to send [04:11:29]OFD Sender: No OFD packet to send [04:11:34]OFD Sender: No OFD packet to send [04:11:39]OFD Sender: No OFD packet to send [04:11:44]OFD Sender: No OFD packet to send [04:11:49]OFD Sender: No OFD packet to send [04:11:54]OFD Sender: No OFD packet to send [04:11:59]OFD Sender: No OFD packet to send [04:12:04]OFD Sender: No OFD packet to send [04:12:09]OFD Sender: No OFD packet to send [04:12:14]OFD Sender: No OFD packet to send [04:12:19]OFD Sender: No OFD packet to send [04:12:24]OFD Sender: No OFD packet to send [04:12:29]OFD Sender: No OFD packet to send [04:12:34]OFD Sender: No OFD packet to send [04:12:39]OFD Sender: No OFD packet to send [04:12:44]OFD Sender: No OFD packet to send [04:12:49]OFD Sender: No OFD packet to send [04:12:54]OFD Sender: No OFD packet to send [04:12:59]OFD Sender: No OFD packet to send [04:13:04]OFD Sender: No OFD packet to send [04:13:09]OFD Sender: No OFD packet to send [04:13:14]OFD Sender: No OFD packet to send [04:13:19]OFD Sender: No OFD packet to send [04:13:24]OFD Sender: No OFD packet to send [04:13:29]OFD Sender: No OFD packet to send [04:13:34]OFD Sender: No OFD packet to send [04:13:39]OFD Sender: No OFD packet to send [04:13:44]OFD Sender: No OFD packet to send [04:13:49]OFD Sender: No OFD packet to send [04:13:54]OFD Sender: No OFD packet to send [04:13:59]OFD Sender: No OFD packet to send [04:14:04]OFD Sender: No OFD packet to send [04:14:09]OFD Sender: No OFD packet to send [04:14:14]OFD Sender: No OFD packet to send [04:14:19]OFD Sender: No OFD packet to send [04:14:24]OFD Sender: No OFD packet to send [04:14:29]OFD Sender: No OFD packet to send [04:14:34]OFD Sender: No OFD packet to send [04:14:39]OFD Sender: No OFD packet to send [04:14:44]OFD Sender: No OFD packet to send [04:14:49]OFD Sender: No OFD packet to send [04:14:54]OFD Sender: No OFD packet to send [04:14:59]OFD Sender: No OFD packet to send [04:15:04]OFD Sender: No OFD packet to send [04:15:09]OFD Sender: No OFD packet to send [04:15:14]OFD Sender: No OFD packet to send [04:15:19]OFD Sender: No OFD packet to send [04:15:24]OFD Sender: No OFD packet to send [04:15:29]OFD Sender: No OFD packet to send [04:15:34]OFD Sender: No OFD packet to send [04:15:39]OFD Sender: No OFD packet to send [04:15:44]OFD Sender: No OFD packet to send [04:15:49]OFD Sender: No OFD packet to send [04:15:54]OFD Sender: No OFD packet to send [04:15:59]OFD Sender: No OFD packet to send [04:16:04]OFD Sender: No OFD packet to send [04:16:09]OFD Sender: No OFD packet to send [04:16:14]OFD Sender: No OFD packet to send [04:16:19]OFD Sender: No OFD packet to send [04:16:24]OFD Sender: No OFD packet to send [04:16:29]OFD Sender: No OFD packet to send [04:16:34]OFD Sender: No OFD packet to send [04:16:39]OFD Sender: No OFD packet to send [04:16:44]OFD Sender: No OFD packet to send [04:16:49]OFD Sender: No OFD packet to send [04:16:54]OFD Sender: No OFD packet to send [04:16:59]OFD Sender: No OFD packet to send [04:17:04]OFD Sender: No OFD packet to send [04:17:09]OFD Sender: No OFD packet to send [04:17:14]OFD Sender: No OFD packet to send [04:17:19]OFD Sender: No OFD packet to send [04:17:24]OFD Sender: No OFD packet to send [04:17:29]OFD Sender: No OFD packet to send [04:17:34]OFD Sender: No OFD packet to send [04:17:39]OFD Sender: No OFD packet to send [04:17:44]OFD Sender: No OFD packet to send [04:17:49]OFD Sender: No OFD packet to send [04:17:54]OFD Sender: No OFD packet to send [04:17:59]OFD Sender: No OFD packet to send [04:18:04]OFD Sender: No OFD packet to send [04:18:09]OFD Sender: No OFD packet to send [04:18:14]OFD Sender: No OFD packet to send [04:18:19]OFD Sender: No OFD packet to send [04:18:24]OFD Sender: No OFD packet to send [04:18:29]OFD Sender: No OFD packet to send [04:18:34]OFD Sender: No OFD packet to send [04:18:39]OFD Sender: No OFD packet to send [04:18:44]OFD Sender: No OFD packet to send [04:18:49]OFD Sender: No OFD packet to send [04:18:54]OFD Sender: No OFD packet to send [04:18:59]OFD Sender: No OFD packet to send [04:19:04]OFD Sender: No OFD packet to send [04:19:09]OFD Sender: No OFD packet to send [04:19:14]OFD Sender: No OFD packet to send [04:19:19]OFD Sender: No OFD packet to send [04:19:24]OFD Sender: No OFD packet to send [04:19:29]OFD Sender: No OFD packet to send [04:19:34]OFD Sender: No OFD packet to send [04:19:39]OFD Sender: No OFD packet to send [04:19:44]OFD Sender: No OFD packet to send [04:19:49]OFD Sender: No OFD packet to send [04:19:54]OFD Sender: No OFD packet to send [04:19:59]OFD Sender: No OFD packet to send [04:20:04]OFD Sender: No OFD packet to send [04:20:09]OFD Sender: No OFD packet to send [04:20:14]OFD Sender: No OFD packet to send [04:20:19]OFD Sender: No OFD packet to send [04:20:24]OFD Sender: No OFD packet to send [04:20:29]OFD Sender: No OFD packet to send [04:20:34]OFD Sender: No OFD packet to send [04:20:39]OFD Sender: No OFD packet to send [04:20:44]OFD Sender: No OFD packet to send [04:20:49]OFD Sender: No OFD packet to send [04:20:54]OFD Sender: No OFD packet to send [04:20:59]OFD Sender: No OFD packet to send [04:21:04]OFD Sender: No OFD packet to send [04:21:09]OFD Sender: No OFD packet to send [04:21:14]OFD Sender: No OFD packet to send [04:21:19]OFD Sender: No OFD packet to send [04:21:24]OFD Sender: No OFD packet to send [04:21:29]OFD Sender: No OFD packet to send [04:21:34]OFD Sender: No OFD packet to send [04:21:39]OFD Sender: No OFD packet to send [04:21:44]OFD Sender: No OFD packet to send [04:21:49]OFD Sender: No OFD packet to send [04:21:55]OFD Sender: No OFD packet to send [04:22:00]OFD Sender: No OFD packet to send [04:22:05]OFD Sender: No OFD packet to send [04:22:10]OFD Sender: No OFD packet to send [04:22:15]OFD Sender: No OFD packet to send [04:22:20]OFD Sender: No OFD packet to send [04:22:25]OFD Sender: No OFD packet to send [04:22:30]OFD Sender: No OFD packet to send [04:22:35]OFD Sender: No OFD packet to send [04:22:40]OFD Sender: No OFD packet to send [04:22:45]OFD Sender: No OFD packet to send [04:22:50]OFD Sender: No OFD packet to send [04:22:55]OFD Sender: No OFD packet to send [04:23:00]OFD Sender: No OFD packet to send [04:23:05]OFD Sender: No OFD packet to send [04:23:10]OFD Sender: No OFD packet to send [04:23:15]OFD Sender: No OFD packet to send [04:23:20]OFD Sender: No OFD packet to send [04:23:25]OFD Sender: No OFD packet to send [04:23:30]OFD Sender: No OFD packet to send [04:23:35]OFD Sender: No OFD packet to send [04:23:40]OFD Sender: No OFD packet to send [04:23:45]OFD Sender: No OFD packet to send [04:23:50]OFD Sender: No OFD packet to send [04:23:55]OFD Sender: No OFD packet to send [04:24:00]OFD Sender: No OFD packet to send [04:24:05]OFD Sender: No OFD packet to send [04:24:10]OFD Sender: No OFD packet to send [04:24:15]OFD Sender: No OFD packet to send [04:24:20]OFD Sender: No OFD packet to send [04:24:25]OFD Sender: No OFD packet to send [04:24:30]OFD Sender: No OFD packet to send [04:24:35]OFD Sender: No OFD packet to send [04:24:40]OFD Sender: No OFD packet to send [04:24:45]OFD Sender: No OFD packet to send [04:24:50]OFD Sender: No OFD packet to send [04:24:55]OFD Sender: No OFD packet to send [04:25:00]OFD Sender: No OFD packet to send [04:25:05]OFD Sender: No OFD packet to send [04:25:10]OFD Sender: No OFD packet to send [04:25:15]OFD Sender: No OFD packet to send [04:25:20]OFD Sender: No OFD packet to send [04:25:25]OFD Sender: No OFD packet to send [04:25:30]OFD Sender: No OFD packet to send [04:25:35]OFD Sender: No OFD packet to send [04:25:40]OFD Sender: No OFD packet to send [04:25:45]OFD Sender: No OFD packet to send [04:25:50]OFD Sender: No OFD packet to send [04:25:55]OFD Sender: No OFD packet to send [04:26:00]OFD Sender: No OFD packet to send [04:26:05]OFD Sender: No OFD packet to send [04:26:10]OFD Sender: No OFD packet to send [04:26:15]OFD Sender: No OFD packet to send [04:26:20]OFD Sender: No OFD packet to send [04:26:25]OFD Sender: No OFD packet to send [04:26:30]OFD Sender: No OFD packet to send [04:26:35]OFD Sender: No OFD packet to send [04:26:40]OFD Sender: No OFD packet to send [04:26:45]OFD Sender: No OFD packet to send [04:26:50]OFD Sender: No OFD packet to send [04:26:55]OFD Sender: No OFD packet to send [04:27:00]OFD Sender: No OFD packet to send [04:27:05]OFD Sender: No OFD packet to send [04:27:10]OFD Sender: No OFD packet to send [04:27:15]OFD Sender: No OFD packet to send [04:27:20]OFD Sender: No OFD packet to send [04:27:25]OFD Sender: No OFD packet to send [04:27:30]OFD Sender: No OFD packet to send [04:27:35]OFD Sender: No OFD packet to send [04:27:40]OFD Sender: No OFD packet to send [04:27:45]OFD Sender: No OFD packet to send [04:27:50]OFD Sender: No OFD packet to send [04:27:55]OFD Sender: No OFD packet to send [04:28:00]OFD Sender: No OFD packet to send [04:28:05]OFD Sender: No OFD packet to send [04:28:10]OFD Sender: No OFD packet to send [04:28:15]OFD Sender: No OFD packet to send [04:28:20]OFD Sender: No OFD packet to send [04:28:25]OFD Sender: No OFD packet to send [04:28:27]accept exits with 7 [04:28:27]New connection [04:28:27]New thread 3066752356 created [04:28:27]Thread 3066608996 joined [04:28:27]Waiting for new connection... [04:28:27] Sock 7.Parse request [04:28:27]Sock 7.Check first char [04:28:27]Sock 7.First char is OK [04:28:27]request: POST /json_proto HTTP/1.0 [04:28:27]Method: POST [04:28:27]URL: /json_proto [04:28:27]Method is POST - this is cgi request [04:28:27]url: /json_proto [04:28:27]query_string will be loaded in cgi processing [04:28:27]execute_cgi json_proto POST (null) [04:28:27]execute_cgi path=json_proto method=POST [04:28:27]POST find Content-Length [04:28:27]Host: 172.17.41.195:8080 [04:28:27]Content-Length: 800 [04:28:27]Content-Type: application/json [04:28:27] [04:28:27]POST finish read [04:28:27]Found Content-Length = 800 [04:28:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507930", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 53.550, "sum" : 4000.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 4000.19 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:28:27]execute_script... [04:28:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507930", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 53.550, "sum" : 4000.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 4000.19 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:28:27]POST & json_proto [04:28:27]process_json_proto [04:28:27]json parsed OK: [04:28:27]protocol is kg_v1.0 [04:28:27]action value=close_receipt [04:28:27]process_action close_receipt [04:28:27]cmd_close_receipt [04:28:27]MH_GetDate [04:28:27]Write to MH i2c: F0 00 00 58 1C 63 [04:28:27]Write i2c OK [04:28:27]MH_I2C_Read... [04:28:27]Read from MH i2c: F0 [04:28:27]MH_I2C_Read... [04:28:27]Read from MH i2c: F0 09 00 [04:28:27]MH_I2C_Read... [04:28:27]Read from MH i2c: F0 09 00 58 1C 00 6E 2E 48 66 FC 21 6F 64 A6 [04:28:27]GetLastDocTimeStamp 1716003162 [04:28:27]current date 1716006510 [04:28:27]FM_GetShiftState [04:28:27]SAM_PROTO_GetShiftState [04:28:27]wFMCommunicate request_size=4 [04:28:27]MH_SAM_APDU [04:28:27]CAPDU: 80 13 01 00 [04:28:27]Write to MH i2c: E2 08 00 59 1C 80 13 01 00 00 00 00 00 F2 [04:28:27]Write i2c OK [04:28:27]MH_I2C_Read... [04:28:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:28:27]Read from MH i2c: E2 [04:28:27]MH_I2C_Read... [04:28:27]Read from MH i2c: E2 0E 00 [04:28:27]MH_I2C_Read... [04:28:27]Read from MH i2c: E2 0E 00 59 1C 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 59 [04:28:27]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [04:28:27]wFMCommunicate OK [04:28:27]SAM_PROTO_GetShiftState done [04:28:27]FM_GetShiftState done [04:28:27]opened in 1715991483 [04:28:27]opened+sec_in_day 1716077883 [04:28:27]quantity*price = 400018 [04:28:27]sum+1 = 400020 [04:28:27]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 4000.19 НСП 1% : 35.40 НДС 12% : 424.80 Наличными: 0.00 Безнал.: 4000.19 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 5 18.05.2024 04:28 Смена: 359 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67766 ФПД: 202778777432059 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T042830&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67766&fm=202778777432059&tin=02508201610067®Number=0000000000091845&sum=400019 [04:28:28]StoreToDocumentArchive [04:28:28]shift 359 fd 67766 [04:28:28]save to /storage/0359/doc_00067766 [04:28:28]save last doc name /storage/0359/doc_00067766 to /storage/kkm_last_doc_name [04:28:28]save OK [04:28:28]Clear old archive folders... [04:28:28]ProcessDocumentItem done err = 0, tmpTLVsize=248 [04:28:28]tlvbuf is 01B5B390 [04:28:28]SAM_PROTO_ClearQueue [04:28:28]wFMCommunicate request_size=4 [04:28:28]MH_SAM_APDU [04:28:28]CAPDU: 80 09 00 00 [04:28:28]Write to MH i2c: E2 08 00 66 1C 80 09 00 00 00 00 00 00 F4 [04:28:28]Write i2c OK [04:28:28]MH_I2C_Read... [04:28:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:28:28]Read from MH i2c: E2 [04:28:28]MH_I2C_Read... [04:28:28]Read from MH i2c: E2 03 00 [04:28:28]MH_I2C_Read... [04:28:28]Read from MH i2c: E2 03 00 66 1C 00 90 00 F6 [04:28:28]RAPDU: 90 00 [04:28:28]wFMCommunicate OK [04:28:28]SAM_PROTO_ClearQueue done [04:28:28]KKMCreateOFDPacket [04:28:28]OFDProtocolAddRootSTLVToBuf [04:28:28]FM_MakeSignedData [04:28:28]FM_MakeSignedData [04:28:28]SAM_PROTO_SignData [04:28:28]wFMCommunicate request_size=4 [04:28:28]MH_SAM_APDU [04:28:28]CAPDU: 80 0D 01 02 [04:28:28]Write to MH i2c: E2 08 00 67 1C 80 0D 01 02 00 00 00 00 FC [04:28:28]Write i2c OK [04:28:28]MH_I2C_Read... [04:28:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:28:28]Read from MH i2c: E2 [04:28:28]MH_I2C_Read... [04:28:28]Read from MH i2c: E2 03 00 [04:28:28]MH_I2C_Read... [04:28:28]Read from MH i2c: E2 03 00 67 1C 00 90 00 F7 [04:28:28]RAPDU: 90 00 [04:28:28]wFMCommunicate OK [04:28:28]wFMCommunicate request_size=255 [04:28:28]MH_SAM_APDU [04:28:28]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2E D1 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 93 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 93 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F0 A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 93 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 6E 2E 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 B6 08 01 00 35 04 06 00 B8 6D 1C FF [04:28:28]Write to MH i2c: E2 02 01 68 1C 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2E D1 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 93 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 93 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F0 A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 93 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 6E 2E 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 B6 08 01 00 35 04 06 00 B8 6D 1C FF 00 00 ED [04:28:28]Write i2c OK [04:28:28]MH_I2C_Read... [04:28:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:28:28]Read from MH i2c: E2 [04:28:28]MH_I2C_Read... [04:28:28]Read from MH i2c: E2 03 00 [04:28:28]MH_I2C_Read... [04:28:28]Read from MH i2c: E2 03 00 68 1C 00 90 00 F8 [04:28:28]RAPDU: 90 00 [04:28:28]wFMCommunicate OK [04:28:28]wFMCommunicate request_size=7 [04:28:28]MH_SAM_APDU [04:28:28]CAPDU: 80 0D 02 02 02 2F FB [04:28:28]Write to MH i2c: E2 0A 00 69 1C 80 0D 02 02 02 00 2F FB 00 00 2D [04:28:28]Write i2c OK [04:28:28]MH_I2C_Read... [04:28:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:28:28]Read from MH i2c: E2 [04:28:28]MH_I2C_Read... [04:28:28]Read from MH i2c: E2 03 00 [04:28:28]MH_I2C_Read... [04:28:28]Read from MH i2c: E2 03 00 69 1C 00 90 00 F9 [04:28:28]RAPDU: 90 00 [04:28:28]wFMCommunicate OK [04:28:28]wFMCommunicate request_size=4 [04:28:28]MH_SAM_APDU [04:28:28]CAPDU: 80 0D 03 02 [04:28:28]Write to MH i2c: E2 08 00 6A 1C 80 0D 03 02 00 00 00 00 01 [04:28:28]Write i2c OK [04:28:28]MH_I2C_Read... [04:28:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:28:28]Read from MH i2c: E2 [04:28:28]MH_I2C_Read... [04:28:28]Read from MH i2c: E2 0B 00 [04:28:28]MH_I2C_Read... [04:28:28]Read from MH i2c: E2 0B 00 6A 1C 00 42 26 9B E7 E1 0E 79 F8 90 00 4C [04:28:28]RAPDU: 42 26 9B E7 E1 0E 79 F8 90 00 [04:28:28]wFMCommunicate OK [04:28:28]SAM_PROTO_SignData done [04:28:28]FM_MakeSignedData done [04:28:28]CreateOFDProtocolMessage [04:28:28]wFMCommunicate request_size=4 [04:28:28]MH_SAM_APDU [04:28:28]CAPDU: 80 11 00 00 [04:28:28]Write to MH i2c: E2 08 00 6B 1C 80 11 00 00 00 00 00 00 01 [04:28:28]Write i2c OK [04:28:28]MH_I2C_Read... [04:28:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:28:28]Read from MH i2c: E2 [04:28:28]MH_I2C_Read... [04:28:28]Read from MH i2c: E2 17 00 [04:28:28]MH_I2C_Read... [04:28:28]Read from MH i2c: E2 17 00 6B 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 57 [04:28:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [04:28:28]wFMCommunicate OK [04:28:28]CreateOFDProtocolMessage done [04:28:28]OFDSenderStorePacket 67766 [04:28:28]StoreOFDPacket docnum=67766 [04:28:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 F4 F3 04 01 3B 30 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2E D1 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 93 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 93 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F0 A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 93 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 6E 2E 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 B6 08 01 00 35 04 06 00 B8 6D 1C FF 2F FB 42 26 9B E7 E1 0E 79 F8 [04:28:28]CheckFolder [04:28:28]dirname=/storage/ofd_packets [04:28:28]CheckFolder done [04:28:28]ProducePacketName [04:28:28]name=ofd_packets/00067766 [04:28:28]NVStorageSaveData ofd_packets/00067766 [04:28:28]File name is /storage/ofd_packets/00067766 [04:28:28]Write 298 bytes [04:28:28]NVStorageSaveData done [04:28:28]OFDSenderStorePacket done [04:28:28]KKMCreateOFDPacket done [04:28:28]NVStorageSaveData kkm_last_timestamp [04:28:28]File name is /storage/kkm_last_timestamp [04:28:28]Write 4 bytes [04:28:28]NVStorageSaveData done [04:28:28]ExternCall_PrintAddStr [04:28:28]wPrintStart [04:28:28]Write to MH i2c: 01 00 00 6C 1C 88 [04:28:28]Write i2c OK [04:28:28]MH_I2C_Read... [04:28:28]Read from MH i2c: 01 [04:28:28]MH_I2C_Read... [04:28:28]Read from MH i2c: 01 07 00 [04:28:28]MH_I2C_Read... [04:28:28]Read from MH i2c: 01 07 00 6C 1C 00 00 00 00 00 FF 0F 9D [04:28:28]RasterBufferAndPrint [04:28:28]line Счет N : (1)507930 [04:28:28]line ИНН: 02508201610067 [04:28:28]line Контрольно-Кассовый Чек [04:28:28]line ПРОДАЖА [04:28:28]line ТРК (МРК, ГНК) : 31 [04:28:28]line Товар: 2710194210 [04:28:28]line ДТ-К-5 [04:28:28]line 53.550 * 74.70 [04:28:28]line = 4000.19 [04:28:28]line НДС 12% НСП 1% [04:28:28]line > о реализуемом товаре [04:28:28]line ИТОГО: 4000.19 [04:28:28]line НСП 1% : 35.40 [04:28:28]line НДС 12% : 424.80 [04:28:28]line Наличными: 0.00 [04:28:28]line Безнал.: 4000.19 [04:28:28]line Место: АЗС № 91 "Партнер Нефть" [04:28:28]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [04:28:28]line СНО: Общий режим [04:28:28]line Чек 5 18.05.2024 04:28 [04:28:28]line Смена: 359 ФФД: 1.0 [04:28:28]line ЗНМ: 0300000119 [04:28:28]line РНМ: 0000000000091845 [04:28:28]line Версия ККМ: 001 [04:28:28]line Платежная система: O! деньги [04:28:28]line ФМ: 0000000000871829 [04:28:28]line ФД: 67766 [04:28:28]line ФПД: 202778777432059 [04:28:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T042830&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67766&fm=202778777432059&tin=02508201610067®Number=0000000000091845&sum=400019 [04:28:29]OFD Sender: Processing packet 67766 [packets to send 35, broken 34] [04:28:29]ProducePacketName [04:28:29]name=ofd_packets/00067766 [04:28:29]OFD Sender: To server: pG, [04:28:29]CommunicateWithHost lk.salyk.kg:30040 [04:28:29]ConnectInit lk.salyk.kg [04:28:29]written 0, free lines is 4095 [04:28:29]Connected sock=10 [04:28:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 F4 F3 04 01 3B 30 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2E D1 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 93 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 93 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F0 A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 93 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 6E 2E 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 B6 08 01 00 35 04 06 00 B8 6D 1C FF 2F FB 42 26 9B E7 E1 0E 79 F8 [04:28:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 15 F5 47 00 AD 00 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 B6 08 01 00 F4 03 04 00 45 D6 47 66 B6 04 01 00 00 F1 77 7B 3D E9 4E 74 03 [04:28:29]CommunicateWithHost err = 0 [04:28:29]CheckOFDResponse [04:28:29]1017 (14) - 77093643461234 [04:28:29]1041 (16) - 0000000000871829 [04:28:29]1040 (4) - 67766 [04:28:29]1012 (4) - 17.05.2024 22:12 [04:28:29]1206 (1) - 0 [04:28:29]OFD Sender: Remove packet 67766 [04:28:29]ProducePacketName [04:28:29]name=ofd_packets/00067766 [04:28:29]NVStorageDeleteData [04:28:29]Write to MH i2c: 01 00 00 95 1C B1 [04:28:29]Write i2c OK [04:28:29]MH_I2C_Read... [04:28:29]Read from MH i2c: 01 [04:28:29]MH_I2C_Read... [04:28:29]Read from MH i2c: 01 07 00 [04:28:29]MH_I2C_Read... [04:28:29]Read from MH i2c: 01 07 00 95 1C 00 00 00 00 00 D9 0C 9D [04:28:29]RasterBufferAndPrint [04:28:29]line [04:28:29]line [04:28:29]line [04:28:29]line [04:28:29]line [04:28:29]written 0, free lines is 3297 [04:28:29]MH_Cut [04:28:29]Write to MH i2c: D1 01 00 9C 1C 01 8A [04:28:29]Write i2c OK [04:28:29]MH_I2C_Read... [04:28:29]Read from MH i2c: D1 [04:28:29]MH_I2C_Read... [04:28:29]Read from MH i2c: D1 01 00 [04:28:29]MH_I2C_Read... [04:28:29]Read from MH i2c: D1 01 00 9C 1C 00 89 [04:28:29]Write to MH i2c: 01 00 00 9D 1C B9 [04:28:29]Write i2c OK [04:28:29]MH_I2C_Read... [04:28:29]OFD Sender: No OFD packet to send [04:28:30]*** Cut start [04:28:30]*** Purtial cut [04:28:30]*** CUTSNS_PIN = 0 [04:28:30]*** Stage 1: CUTSNS_PIN = 1 [04:28:32]Read from MH i2c: 01 [04:28:32]MH_I2C_Read... [04:28:32]*** Stop cut motor [04:28:32]*** Cut end [04:28:32]Read from MH i2c: 01 07 00 [04:28:32]MH_I2C_Read... [04:28:32]Read from MH i2c: 01 07 00 9D 1C 00 00 00 00 00 FF 0F CE [04:28:32]process_action close_receipt done [04:28:32]requested_data is exist [04:28:32]produce_requested_data [04:28:32]requested_item fm.sn is exist - process it [04:28:32]wFMCommunicate request_size=4 [04:28:32]MH_SAM_APDU [04:28:32]CAPDU: 80 11 00 00 [04:28:32]Write to MH i2c: E2 08 00 9E 1C 80 11 00 00 00 00 00 00 34 [04:28:32]Write i2c OK [04:28:32]MH_I2C_Read... [04:28:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:28:32]Read from MH i2c: E2 [04:28:32]MH_I2C_Read... [04:28:32]Read from MH i2c: E2 17 00 [04:28:32]MH_I2C_Read... [04:28:32]Read from MH i2c: E2 17 00 9E 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 8A [04:28:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [04:28:32]wFMCommunicate OK [04:28:32]requested_item fd.num is exist - process it [04:28:32]SAM_PROTO_GetFieldsCounters [04:28:32]wFMCommunicate request_size=4 [04:28:32]MH_SAM_APDU [04:28:32]CAPDU: 80 13 00 00 [04:28:32]Write to MH i2c: E2 08 00 9F 1C 80 13 00 00 00 00 00 00 37 [04:28:32]Write i2c OK [04:28:32]MH_I2C_Read... [04:28:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:28:32]Read from MH i2c: E2 [04:28:32]MH_I2C_Read... [04:28:32]Read from MH i2c: E2 62 00 [04:28:32]MH_I2C_Read... [04:28:32]Read from MH i2c: E2 62 00 9F 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 B6 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 05 00 00 00 5E 04 04 00 05 00 00 00 57 04 04 00 06 00 00 00 19 04 04 00 00 00 00 00 90 00 93 [04:28:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 B6 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 05 00 00 00 5E 04 04 00 05 00 00 00 57 04 04 00 06 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:28:32]wFMCommunicate OK [04:28:32]SAM_PROTO_GetFieldsCounters done [04:28:32]requested_item shift.num is exist - process it [04:28:32]requested_item shift.opened is exist - process it [04:28:32]req_shift_opened [04:28:32]FM_GetShiftState [04:28:32]SAM_PROTO_GetShiftState [04:28:32]wFMCommunicate request_size=4 [04:28:32]MH_SAM_APDU [04:28:32]CAPDU: 80 13 01 00 [04:28:32]Write to MH i2c: E2 08 00 A0 1C 80 13 01 00 00 00 00 00 39 [04:28:32]Write i2c OK [04:28:32]MH_I2C_Read... [04:28:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:28:32]Read from MH i2c: E2 [04:28:32]MH_I2C_Read... [04:28:32]Read from MH i2c: E2 0E 00 [04:28:32]MH_I2C_Read... [04:28:32]Read from MH i2c: E2 0E 00 A0 1C 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 A0 [04:28:32]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [04:28:32]wFMCommunicate OK [04:28:32]SAM_PROTO_GetShiftState done [04:28:32]FM_GetShiftState done [04:28:32]req_shift_opened done [04:28:32]requested_item shift.open_date is exist - process it [04:28:32]req_shift_open_date [04:28:32]req_shift_open_date done [04:28:32]produce_requested_data done [04:28:32]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67766,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [04:28:32]process_action_free close_receipt [04:28:32]json_value_free [04:28:32]json_value_free done [04:28:32]process_json_proto returns [04:28:32]Send response to host [04:28:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67766,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [04:28:32]free response buf [04:28:32]execute_script done [04:28:32]execute_script returns [04:28:32]free content buf [04:28:32]Sock 7.Close socket [04:28:32]Sock 7.Thread stoped [04:28:34]OFD Sender: No OFD packet to send [04:28:39]OFD Sender: No OFD packet to send [04:28:44]OFD Sender: No OFD packet to send [04:28:49]OFD Sender: No OFD packet to send [04:28:55]OFD Sender: No OFD packet to send [04:29:00]OFD Sender: No OFD packet to send [04:29:05]OFD Sender: No OFD packet to send [04:29:08]accept exits with 9 [04:29:08]New connection [04:29:08]New thread 3066608996 created [04:29:08]Thread 3066752356 joined [04:29:08]Waiting for new connection... [04:29:08] Sock 9.Parse request [04:29:08]Sock 9.Check first char [04:29:08]Sock 9.First char is OK [04:29:08]request: POST /json_proto HTTP/1.0 [04:29:08]Method: POST [04:29:08]URL: /json_proto [04:29:08]Method is POST - this is cgi request [04:29:08]url: /json_proto [04:29:08]query_string will be loaded in cgi processing [04:29:08]execute_cgi json_proto POST (null) [04:29:08]execute_cgi path=json_proto method=POST [04:29:08]POST find Content-Length [04:29:08]Host: 172.17.41.195:8080 [04:29:08]Content-Length: 1209 [04:29:08]Content-Type: application/json [04:29:08] [04:29:08]POST finish read [04:29:08]Found Content-Length = 1209 [04:29:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0440\u0441\u0442\u0430\u043D\u0431\u0435\u043A\u043E\u0432 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)507931\u000A18.05.2024 04:11\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 41\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 24.100 x 74.70\u000A\u0418\u0422\u041E\u0413: 1800.27\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:29:08]execute_script... [04:29:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0440\u0441\u0442\u0430\u043D\u0431\u0435\u043A\u043E\u0432 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)507931\u000A18.05.2024 04:11\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 41\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 24.100 x 74.70\u000A\u0418\u0422\u041E\u0413: 1800.27\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:29:08]POST & json_proto [04:29:08]process_json_proto [04:29:08]json parsed OK: [04:29:08]protocol is kg_v1.0 [04:29:08]action value=print_text [04:29:08]process_action print_text [04:29:08]cmd_print_text [04:29:08]ExternCall_PrintAddStr [04:29:08]wPrintStart [04:29:08]Write to MH i2c: 01 00 00 A1 1C BD [04:29:08]Write i2c OK [04:29:08]MH_I2C_Read... [04:29:08]Read from MH i2c: 01 [04:29:08]MH_I2C_Read... [04:29:08]Read from MH i2c: 01 07 00 [04:29:08]MH_I2C_Read... [04:29:08]Read from MH i2c: 01 07 00 A1 1C 00 00 00 00 00 FF 0F D2 [04:29:08]RasterBufferAndPrint [04:29:08]line *****ТОВАРНЫЙ ЧЕК***** [04:29:08]line АЗС-91 [04:29:08]line Партнер нефть [04:29:08]line 02508201610067 [04:29:08]line Кассир : Арстанбеков Н. [04:29:08]line Счет N : (1)507931 [04:29:08]line 18.05.2024 04:11 [04:29:08]line ПРОДАЖА [04:29:08]line ТРК (МРК, ГНК): 41 [04:29:08]line Вид ГСМ : 2710194210 [04:29:08]line ДТ-К-5 [04:29:08]line 24.100 x 74.70 [04:29:08]line ИТОГ: 1800.27 [04:29:08]line Тип оплаты: Талоны: Топливная Карта [04:29:08]line 02750 [04:29:08]line ______________________ [04:29:08]line (подпись) [04:29:08]written 0, free lines is 4095 [04:29:09]Write to MH i2c: 01 00 00 B5 1C D1 [04:29:09]Write i2c OK [04:29:09]MH_I2C_Read... [04:29:09]Read from MH i2c: 01 [04:29:09]MH_I2C_Read... [04:29:09]Read from MH i2c: 01 07 00 [04:29:09]MH_I2C_Read... [04:29:09]Read from MH i2c: 01 07 00 B5 1C 00 00 00 00 00 0F 0E F5 [04:29:09]RasterBufferAndPrint [04:29:09]line [04:29:09]line [04:29:09]line [04:29:09]line [04:29:09]line [04:29:09]written 0, free lines is 3601 [04:29:09]MH_Cut [04:29:09]Write to MH i2c: D1 01 00 BC 1C 01 AA [04:29:09]Write i2c OK [04:29:09]MH_I2C_Read... [04:29:09]Read from MH i2c: D1 [04:29:09]MH_I2C_Read... [04:29:09]Read from MH i2c: D1 01 00 [04:29:09]MH_I2C_Read... [04:29:09]Read from MH i2c: D1 01 00 BC 1C 00 A9 [04:29:09]Write to MH i2c: 01 00 00 BD 1C D9 [04:29:09]Write i2c OK [04:29:09]MH_I2C_Read... [04:29:09]*** Cut start [04:29:09]*** Purtial cut [04:29:09]*** Stage 1: CUTSNS_PIN = 1 [04:29:10]Read from MH i2c: 01 [04:29:10]MH_I2C_Read... [04:29:10]*** Stop cut motor [04:29:10]*** Cut end [04:29:10]Read from MH i2c: 01 07 00 [04:29:10]MH_I2C_Read... [04:29:10]Read from MH i2c: 01 07 00 BD 1C 00 00 00 00 00 FF 0F EE [04:29:10]process_action print_text done [04:29:10]requested_data is exist [04:29:10]produce_requested_data [04:29:10]requested_item fm.sn is exist - process it [04:29:10]wFMCommunicate request_size=4 [04:29:10]MH_SAM_APDU [04:29:10]CAPDU: 80 11 00 00 [04:29:10]Write to MH i2c: E2 08 00 BE 1C 80 11 00 00 00 00 00 00 54 [04:29:10]Write i2c OK [04:29:10]MH_I2C_Read... [04:29:10]OFD Sender: No OFD packet to send [04:29:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:29:10]Read from MH i2c: E2 [04:29:10]MH_I2C_Read... [04:29:10]Read from MH i2c: E2 17 00 [04:29:10]MH_I2C_Read... [04:29:10]Read from MH i2c: E2 17 00 BE 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 AA [04:29:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [04:29:10]wFMCommunicate OK [04:29:10]requested_item fd.num is exist - process it [04:29:10]SAM_PROTO_GetFieldsCounters [04:29:10]wFMCommunicate request_size=4 [04:29:10]MH_SAM_APDU [04:29:10]CAPDU: 80 13 00 00 [04:29:10]Write to MH i2c: E2 08 00 BF 1C 80 13 00 00 00 00 00 00 57 [04:29:10]Write i2c OK [04:29:10]MH_I2C_Read... [04:29:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:29:10]Read from MH i2c: E2 [04:29:10]MH_I2C_Read... [04:29:10]Read from MH i2c: E2 62 00 [04:29:10]MH_I2C_Read... [04:29:10]Read from MH i2c: E2 62 00 BF 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 B6 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 05 00 00 00 5E 04 04 00 05 00 00 00 57 04 04 00 06 00 00 00 19 04 04 00 00 00 00 00 90 00 B3 [04:29:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 B6 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 05 00 00 00 5E 04 04 00 05 00 00 00 57 04 04 00 06 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:29:10]wFMCommunicate OK [04:29:10]SAM_PROTO_GetFieldsCounters done [04:29:10]requested_item shift.num is exist - process it [04:29:10]requested_item shift.opened is exist - process it [04:29:10]req_shift_opened [04:29:10]FM_GetShiftState [04:29:10]SAM_PROTO_GetShiftState [04:29:10]wFMCommunicate request_size=4 [04:29:10]MH_SAM_APDU [04:29:10]CAPDU: 80 13 01 00 [04:29:10]Write to MH i2c: E2 08 00 C0 1C 80 13 01 00 00 00 00 00 59 [04:29:10]Write i2c OK [04:29:10]MH_I2C_Read... [04:29:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:29:10]Read from MH i2c: E2 [04:29:10]MH_I2C_Read... [04:29:10]Read from MH i2c: E2 0E 00 [04:29:10]MH_I2C_Read... [04:29:10]Read from MH i2c: E2 0E 00 C0 1C 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 C0 [04:29:10]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [04:29:10]wFMCommunicate OK [04:29:10]SAM_PROTO_GetShiftState done [04:29:10]FM_GetShiftState done [04:29:10]req_shift_opened done [04:29:10]requested_item shift.open_date is exist - process it [04:29:10]req_shift_open_date [04:29:10]req_shift_open_date done [04:29:10]produce_requested_data done [04:29:10]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67766,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [04:29:10]process_action_free print_text [04:29:10]json_value_free [04:29:10]json_value_free done [04:29:10]process_json_proto returns [04:29:10]Send response to host [04:29:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67766,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [04:29:10]free response buf [04:29:10]execute_script done [04:29:10]execute_script returns [04:29:10]free content buf [04:29:10]Sock 9.Close socket [04:29:10]Sock 9.Thread stoped [04:29:15]OFD Sender: No OFD packet to send [04:29:20]OFD Sender: No OFD packet to send [04:29:25]OFD Sender: No OFD packet to send [04:29:30]OFD Sender: No OFD packet to send [04:29:35]OFD Sender: No OFD packet to send [04:29:40]OFD Sender: No OFD packet to send [04:29:45]OFD Sender: No OFD packet to send [04:29:50]OFD Sender: No OFD packet to send [04:29:55]OFD Sender: No OFD packet to send [04:30:00]OFD Sender: No OFD packet to send [04:30:05]OFD Sender: No OFD packet to send [04:30:10]OFD Sender: No OFD packet to send [04:30:15]OFD Sender: No OFD packet to send [04:30:20]OFD Sender: No OFD packet to send [04:30:25]OFD Sender: No OFD packet to send [04:30:30]OFD Sender: No OFD packet to send [04:30:35]OFD Sender: No OFD packet to send [04:30:40]OFD Sender: No OFD packet to send [04:30:45]OFD Sender: No OFD packet to send [04:30:50]OFD Sender: No OFD packet to send [04:30:55]OFD Sender: No OFD packet to send [04:31:00]OFD Sender: No OFD packet to send [04:31:05]OFD Sender: No OFD packet to send [04:31:10]OFD Sender: No OFD packet to send [04:31:15]OFD Sender: No OFD packet to send [04:31:20]OFD Sender: No OFD packet to send [04:31:25]OFD Sender: No OFD packet to send [04:31:30]OFD Sender: No OFD packet to send [04:31:35]OFD Sender: No OFD packet to send [04:31:40]OFD Sender: No OFD packet to send [04:31:45]OFD Sender: No OFD packet to send [04:31:50]OFD Sender: No OFD packet to send [04:31:55]OFD Sender: No OFD packet to send [04:32:00]OFD Sender: No OFD packet to send [04:32:05]OFD Sender: No OFD packet to send [04:32:10]accept exits with 7 [04:32:10]New connection [04:32:10]New thread 3066752356 created [04:32:10]Thread 3066608996 joined [04:32:10]Waiting for new connection... [04:32:10] Sock 7.Parse request [04:32:10]Sock 7.Check first char [04:32:10]Sock 7.First char is OK [04:32:10]request: POST /json_proto HTTP/1.0 [04:32:10]Method: POST [04:32:10]URL: /json_proto [04:32:10]Method is POST - this is cgi request [04:32:10]url: /json_proto [04:32:10]query_string will be loaded in cgi processing [04:32:10]execute_cgi json_proto POST (null) [04:32:10]execute_cgi path=json_proto method=POST [04:32:10]POST find Content-Length [04:32:10]Host: 172.17.41.195:8080 [04:32:10]Content-Length: 819 [04:32:10]Content-Type: application/json [04:32:10] [04:32:10]POST finish read [04:32:10]Found Content-Length = 819 [04:32:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507932", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.80, "quantity" : 29.950, "sum" : 2000.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 2000.66 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:32:10]execute_script... [04:32:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507932", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.80, "quantity" : 29.950, "sum" : 2000.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 2000.66 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:32:10]POST & json_proto [04:32:10]process_json_proto [04:32:10]json parsed OK: [04:32:10]protocol is kg_v1.0 [04:32:10]action value=close_receipt [04:32:10]process_action close_receipt [04:32:10]cmd_close_receipt [04:32:10]MH_GetDate [04:32:10]Write to MH i2c: F0 00 00 C1 1C CC [04:32:10]Write i2c OK [04:32:10]MH_I2C_Read... [04:32:10]Read from MH i2c: F0 [04:32:10]MH_I2C_Read... [04:32:10]Read from MH i2c: F0 09 00 [04:32:10]MH_I2C_Read... [04:32:10]Read from MH i2c: F0 09 00 C1 1C 00 4D 2F 48 66 FC 21 6F 64 EF [04:32:10]GetLastDocTimeStamp 1716006510 [04:32:10]current date 1716006733 [04:32:10]FM_GetShiftState [04:32:10]SAM_PROTO_GetShiftState [04:32:10]wFMCommunicate request_size=4 [04:32:10]MH_SAM_APDU [04:32:10]CAPDU: 80 13 01 00 [04:32:10]Write to MH i2c: E2 08 00 C2 1C 80 13 01 00 00 00 00 00 5B [04:32:10]Write i2c OK [04:32:10]MH_I2C_Read... [04:32:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:32:10]Read from MH i2c: E2 [04:32:10]MH_I2C_Read... [04:32:10]Read from MH i2c: E2 0E 00 [04:32:10]MH_I2C_Read... [04:32:10]Read from MH i2c: E2 0E 00 C2 1C 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 C2 [04:32:10]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [04:32:10]wFMCommunicate OK [04:32:10]SAM_PROTO_GetShiftState done [04:32:10]FM_GetShiftState done [04:32:10]opened in 1715991483 [04:32:10]opened+sec_in_day 1716077883 [04:32:10]quantity*price = 200066 [04:32:10]sum+1 = 200067 [04:32:10]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.66 НСП 1% : 17.70 НДС 12% : 212.46 Наличными: 0.00 Безнал.: 2000.66 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 6 18.05.2024 04:32 Смена: 359 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871829 ФД: 67767 ФПД: 41876064627379 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T043213&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67767&fm=41876064627379&tin=02508201610067®Number=0000000000091845&sum=200066 [04:32:11]StoreToDocumentArchive [04:32:11]shift 359 fd 67767 [04:32:11]save to /storage/0359/doc_00067767 [04:32:11]save last doc name /storage/0359/doc_00067767 to /storage/kkm_last_doc_name [04:32:11]save OK [04:32:11]Clear old archive folders... [04:32:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [04:32:11]tlvbuf is 01AE9340 [04:32:11]SAM_PROTO_ClearQueue [04:32:11]wFMCommunicate request_size=4 [04:32:11]MH_SAM_APDU [04:32:11]CAPDU: 80 09 00 00 [04:32:11]Write to MH i2c: E2 08 00 CF 1C 80 09 00 00 00 00 00 00 5D [04:32:11]Write i2c OK [04:32:11]MH_I2C_Read... [04:32:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:32:11]Read from MH i2c: E2 [04:32:11]MH_I2C_Read... [04:32:11]Read from MH i2c: E2 03 00 [04:32:11]MH_I2C_Read... [04:32:11]Read from MH i2c: E2 03 00 CF 1C 00 90 00 5F [04:32:11]RAPDU: 90 00 [04:32:11]wFMCommunicate OK [04:32:11]SAM_PROTO_ClearQueue done [04:32:11]KKMCreateOFDPacket [04:32:11]OFDProtocolAddRootSTLVToBuf [04:32:11]FM_MakeSignedData [04:32:11]FM_MakeSignedData [04:32:11]SAM_PROTO_SignData [04:32:11]wFMCommunicate request_size=4 [04:32:11]MH_SAM_APDU [04:32:11]CAPDU: 80 0D 01 02 [04:32:11]Write to MH i2c: E2 08 00 D0 1C 80 0D 01 02 00 00 00 00 65 [04:32:11]Write i2c OK [04:32:11]MH_I2C_Read... [04:32:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:32:11]Read from MH i2c: E2 [04:32:11]MH_I2C_Read... [04:32:11]Read from MH i2c: E2 03 00 [04:32:11]MH_I2C_Read... [04:32:11]Read from MH i2c: E2 03 00 D0 1C 00 90 00 60 [04:32:11]RAPDU: 90 00 [04:32:11]wFMCommunicate OK [04:32:11]wFMCommunicate request_size=255 [04:32:11]MH_SAM_APDU [04:32:11]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FE 74 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 82 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 82 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 82 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 4D 2F 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 B7 08 01 00 35 04 06 00 26 [04:32:11]Write to MH i2c: E2 02 01 D1 1C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FE 74 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 82 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 82 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 82 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 4D 2F 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 B7 08 01 00 35 04 06 00 26 00 00 8C [04:32:11]Write i2c OK [04:32:11]MH_I2C_Read... [04:32:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:32:11]Read from MH i2c: E2 [04:32:11]MH_I2C_Read... [04:32:11]Read from MH i2c: E2 03 00 [04:32:11]MH_I2C_Read... [04:32:11]Read from MH i2c: E2 03 00 D1 1C 00 90 00 61 [04:32:11]RAPDU: 90 00 [04:32:11]wFMCommunicate OK [04:32:11]wFMCommunicate request_size=10 [04:32:11]MH_SAM_APDU [04:32:11]CAPDU: 80 0D 02 02 05 16 07 F4 EA B3 [04:32:11]Write to MH i2c: E2 0D 00 D2 1C 80 0D 02 02 05 00 16 07 F4 EA B3 00 00 20 [04:32:11]Write i2c OK [04:32:11]MH_I2C_Read... [04:32:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:32:11]Read from MH i2c: E2 [04:32:11]MH_I2C_Read... [04:32:11]Read from MH i2c: E2 03 00 [04:32:11]MH_I2C_Read... [04:32:11]Read from MH i2c: E2 03 00 D2 1C 00 90 00 62 [04:32:11]RAPDU: 90 00 [04:32:11]wFMCommunicate OK [04:32:11]wFMCommunicate request_size=4 [04:32:11]MH_SAM_APDU [04:32:11]CAPDU: 80 0D 03 02 [04:32:11]Write to MH i2c: E2 08 00 D3 1C 80 0D 03 02 00 00 00 00 6A [04:32:11]Write i2c OK [04:32:11]MH_I2C_Read... [04:32:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:32:11]Read from MH i2c: E2 [04:32:11]MH_I2C_Read... [04:32:11]Read from MH i2c: E2 0B 00 [04:32:11]MH_I2C_Read... [04:32:11]Read from MH i2c: E2 0B 00 D3 1C 00 AC 58 CE D8 FF C0 92 20 90 00 86 [04:32:11]RAPDU: AC 58 CE D8 FF C0 92 20 90 00 [04:32:11]wFMCommunicate OK [04:32:11]SAM_PROTO_SignData done [04:32:11]FM_MakeSignedData done [04:32:11]CreateOFDProtocolMessage [04:32:11]wFMCommunicate request_size=4 [04:32:11]MH_SAM_APDU [04:32:11]CAPDU: 80 11 00 00 [04:32:11]Write to MH i2c: E2 08 00 D4 1C 80 11 00 00 00 00 00 00 6A [04:32:11]Write i2c OK [04:32:11]MH_I2C_Read... [04:32:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:32:11]Read from MH i2c: E2 [04:32:11]MH_I2C_Read... [04:32:11]Read from MH i2c: E2 17 00 [04:32:11]MH_I2C_Read... [04:32:11]Read from MH i2c: E2 17 00 D4 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 C0 [04:32:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [04:32:11]wFMCommunicate OK [04:32:11]CreateOFDProtocolMessage done [04:32:11]OFDSenderStorePacket 67767 [04:32:11]StoreOFDPacket docnum=67767 [04:32:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 1F 06 07 01 11 1C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FE 74 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 82 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 82 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 82 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 4D 2F 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 B7 08 01 00 35 04 06 00 26 16 07 F4 EA B3 AC 58 CE D8 FF C0 92 20 [04:32:11]CheckFolder [04:32:11]dirname=/storage/ofd_packets [04:32:11]CheckFolder done [04:32:11]ProducePacketName [04:32:11]name=ofd_packets/00067767 [04:32:11]NVStorageSaveData ofd_packets/00067767 [04:32:11]File name is /storage/ofd_packets/00067767 [04:32:11]Write 301 bytes [04:32:11]NVStorageSaveData done [04:32:11]OFDSenderStorePacket done [04:32:11]KKMCreateOFDPacket done [04:32:11]NVStorageSaveData kkm_last_timestamp [04:32:11]File name is /storage/kkm_last_timestamp [04:32:11]Write 4 bytes [04:32:11]NVStorageSaveData done [04:32:11]ExternCall_PrintAddStr [04:32:11]wPrintStart [04:32:11]Write to MH i2c: 01 00 00 D5 1C F1 [04:32:11]Write i2c OK [04:32:11]MH_I2C_Read... [04:32:11]Read from MH i2c: 01 [04:32:11]MH_I2C_Read... [04:32:11]Read from MH i2c: 01 07 00 [04:32:11]MH_I2C_Read... [04:32:11]Read from MH i2c: 01 07 00 D5 1C 00 00 00 00 00 FF 0F 06 [04:32:11]RasterBufferAndPrint [04:32:11]line Счет N : (1)507932 [04:32:11]line ИНН: 02508201610067 [04:32:11]line Контрольно-Кассовый Чек [04:32:11]line ПРОДАЖА [04:32:11]line ТРК (МРК, ГНК) : 23 [04:32:11]line Товар: 2710124130 [04:32:11]line Аи-92-К-5 [04:32:11]line 29.950 * 66.80 [04:32:11]line = 2000.66 [04:32:11]line НДС 12% НСП 1% [04:32:11]line > о реализуемом товаре [04:32:11]line ИТОГО: 2000.66 [04:32:11]line НСП 1% : 17.70 [04:32:11]line НДС 12% : 212.46 [04:32:11]line Наличными: 0.00 [04:32:11]line Безнал.: 2000.66 [04:32:11]line Место: АЗС № 91 "Партнер Нефть" [04:32:11]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [04:32:11]line СНО: Общий режим [04:32:11]line Чек 6 18.05.2024 04:32 [04:32:11]line Смена: 359 ФФД: 1.0 [04:32:11]line ЗНМ: 0300000119 [04:32:11]line РНМ: 0000000000091845 [04:32:11]line Версия ККМ: 001 [04:32:11]line Платежная система: Бакай Банк [04:32:11]line ФМ: 0000000000871829 [04:32:11]line ФД: 67767 [04:32:11]line ФПД: 41876064627379 [04:32:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T043213&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67767&fm=41876064627379&tin=02508201610067®Number=0000000000091845&sum=200066 [04:32:12]OFD Sender: Processing packet 67767 [packets to send 35, broken 34] [04:32:12]ProducePacketName [04:32:12]name=ofd_packets/00067767 [04:32:12]OFD Sender: To server: pG, [04:32:12]CommunicateWithHost lk.salyk.kg:30040 [04:32:12]ConnectInit lk.salyk.kg [04:32:12]written 0, free lines is 4095 [04:32:12]Write to MH i2c: 01 00 00 FE 1C 1A [04:32:12]Write i2c OK [04:32:12]MH_I2C_Read... [04:32:12]Read from MH i2c: 01 [04:32:12]MH_I2C_Read... [04:32:12]Read from MH i2c: 01 07 00 [04:32:12]MH_I2C_Read... [04:32:12]Read from MH i2c: 01 07 00 FE 1C 00 00 00 00 00 DE 0C 0B [04:32:12]RasterBufferAndPrint [04:32:12]line [04:32:12]line [04:32:12]line [04:32:12]line [04:32:12]line [04:32:12]written 0, free lines is 3300 [04:32:12]MH_Cut [04:32:12]Write to MH i2c: D1 01 00 05 1D 01 F4 [04:32:12]Write i2c OK [04:32:12]MH_I2C_Read... [04:32:12]Read from MH i2c: D1 [04:32:12]MH_I2C_Read... [04:32:12]Read from MH i2c: D1 01 00 [04:32:12]MH_I2C_Read... [04:32:12]Read from MH i2c: D1 01 00 05 1D 00 F3 [04:32:12]Write to MH i2c: 01 00 00 06 1D 23 [04:32:12]Write i2c OK [04:32:12]MH_I2C_Read... [04:32:13]*** Cut start [04:32:13]*** Purtial cut [04:32:13]*** CUTSNS_PIN = 0 [04:32:13]*** Stage 1: CUTSNS_PIN = 1 [04:32:15]Read from MH i2c: 01 [04:32:15]MH_I2C_Read... [04:32:15]*** Stop cut motor [04:32:15]*** Cut end [04:32:15]Read from MH i2c: 01 07 00 [04:32:15]MH_I2C_Read... [04:32:15]Read from MH i2c: 01 07 00 06 1D 00 00 00 00 00 FF 0F 38 [04:32:15]process_action close_receipt done [04:32:15]requested_data is exist [04:32:15]produce_requested_data [04:32:15]requested_item fm.sn is exist - process it [04:32:15]wFMCommunicate request_size=4 [04:32:15]MH_SAM_APDU [04:32:15]CAPDU: 80 11 00 00 [04:32:15]Write to MH i2c: E2 08 00 07 1D 80 11 00 00 00 00 00 00 9E [04:32:15]Write i2c OK [04:32:15]MH_I2C_Read... [04:32:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:32:15]Read from MH i2c: E2 [04:32:15]MH_I2C_Read... [04:32:15]Read from MH i2c: E2 17 00 [04:32:15]MH_I2C_Read... [04:32:15]Read from MH i2c: E2 17 00 07 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 F4 [04:32:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [04:32:15]wFMCommunicate OK [04:32:15]requested_item fd.num is exist - process it [04:32:15]SAM_PROTO_GetFieldsCounters [04:32:15]wFMCommunicate request_size=4 [04:32:15]MH_SAM_APDU [04:32:15]CAPDU: 80 13 00 00 [04:32:15]Write to MH i2c: E2 08 00 08 1D 80 13 00 00 00 00 00 00 A1 [04:32:15]Write i2c OK [04:32:15]MH_I2C_Read... [04:32:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:32:15]Read from MH i2c: E2 [04:32:15]MH_I2C_Read... [04:32:15]Read from MH i2c: E2 62 00 [04:32:15]MH_I2C_Read... [04:32:15]Read from MH i2c: E2 62 00 08 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 B7 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 06 00 00 00 5E 04 04 00 06 00 00 00 57 04 04 00 07 00 00 00 19 04 04 00 00 00 00 00 90 00 01 [04:32:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 B7 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 06 00 00 00 5E 04 04 00 06 00 00 00 57 04 04 00 07 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:32:15]wFMCommunicate OK [04:32:15]SAM_PROTO_GetFieldsCounters done [04:32:15]requested_item shift.num is exist - process it [04:32:15]requested_item shift.opened is exist - process it [04:32:15]req_shift_opened [04:32:15]FM_GetShiftState [04:32:15]SAM_PROTO_GetShiftState [04:32:15]wFMCommunicate request_size=4 [04:32:15]MH_SAM_APDU [04:32:15]CAPDU: 80 13 01 00 [04:32:15]Write to MH i2c: E2 08 00 09 1D 80 13 01 00 00 00 00 00 A3 [04:32:15]Write i2c OK [04:32:15]MH_I2C_Read... [04:32:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:32:15]Read from MH i2c: E2 [04:32:15]MH_I2C_Read... [04:32:15]Read from MH i2c: E2 0E 00 [04:32:15]MH_I2C_Read... [04:32:15]Read from MH i2c: E2 0E 00 09 1D 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 0A [04:32:15]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [04:32:15]wFMCommunicate OK [04:32:15]SAM_PROTO_GetShiftState done [04:32:15]FM_GetShiftState done [04:32:15]req_shift_opened done [04:32:15]requested_item shift.open_date is exist - process it [04:32:15]req_shift_open_date [04:32:15]req_shift_open_date done [04:32:15]produce_requested_data done [04:32:15]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67767,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [04:32:15]process_action_free close_receipt [04:32:15]json_value_free [04:32:15]json_value_free done [04:32:15]process_json_proto returns [04:32:15]Send response to host [04:32:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67767,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [04:32:15]free response buf [04:32:15]execute_script done [04:32:15]execute_script returns [04:32:15]free content buf [04:32:15]Sock 7.Close socket [04:32:15]Sock 7.Thread stoped [04:34:22]ConnectInit Can't connect to host [04:34:22]CommunicateWithHost connect error [04:34:22]CommunicateWithHost err = -1 [04:34:22]OFD Sender: Server communicate error [04:34:27]OFD Sender: Processing packet 67767 [packets to send 35, broken 34] [04:34:27]ProducePacketName [04:34:27]name=ofd_packets/00067767 [04:34:27]OFD Sender: To server: pG, [04:34:27]CommunicateWithHost lk.salyk.kg:30040 [04:34:27]ConnectInit lk.salyk.kg [04:34:27]Connected sock=7 [04:34:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 1F 06 07 01 11 1C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FE 74 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 82 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 82 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 82 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 4D 2F 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 B7 08 01 00 35 04 06 00 26 16 07 F4 EA B3 AC 58 CE D8 FF C0 92 20 [04:34:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 D8 4C 47 00 4C 8E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 B7 08 01 00 F4 03 04 00 AB D7 47 66 B6 04 01 00 00 4A F8 B0 FA D1 C9 26 45 [04:34:28]CommunicateWithHost err = 0 [04:34:28]CheckOFDResponse [04:34:28]1017 (14) - 77093643461234 [04:34:28]1041 (16) - 0000000000871829 [04:34:28]1040 (4) - 67767 [04:34:28]1012 (4) - 17.05.2024 22:18 [04:34:28]1206 (1) - 0 [04:34:28]OFD Sender: Remove packet 67767 [04:34:28]ProducePacketName [04:34:28]name=ofd_packets/00067767 [04:34:28]NVStorageDeleteData [04:34:28]OFD Sender: No OFD packet to send [04:34:33]OFD Sender: No OFD packet to send [04:34:38]OFD Sender: No OFD packet to send [04:34:43]OFD Sender: No OFD packet to send [04:34:48]OFD Sender: No OFD packet to send [04:34:53]OFD Sender: No OFD packet to send [04:34:58]OFD Sender: No OFD packet to send [04:35:03]OFD Sender: No OFD packet to send [04:35:08]OFD Sender: No OFD packet to send [04:35:13]OFD Sender: No OFD packet to send [04:35:18]OFD Sender: No OFD packet to send [04:35:23]OFD Sender: No OFD packet to send [04:35:28]OFD Sender: No OFD packet to send [04:35:33]OFD Sender: No OFD packet to send [04:35:38]OFD Sender: No OFD packet to send [04:35:43]OFD Sender: No OFD packet to send [04:35:48]OFD Sender: No OFD packet to send [04:35:53]OFD Sender: No OFD packet to send [04:35:58]OFD Sender: No OFD packet to send [04:36:03]OFD Sender: No OFD packet to send [04:36:08]OFD Sender: No OFD packet to send [04:36:13]OFD Sender: No OFD packet to send [04:36:18]OFD Sender: No OFD packet to send [04:36:23]OFD Sender: No OFD packet to send [04:36:28]OFD Sender: No OFD packet to send [04:36:33]OFD Sender: No OFD packet to send [04:36:38]OFD Sender: No OFD packet to send [04:36:43]OFD Sender: No OFD packet to send [04:36:48]OFD Sender: No OFD packet to send [04:36:53]OFD Sender: No OFD packet to send [04:36:58]OFD Sender: No OFD packet to send [04:37:03]OFD Sender: No OFD packet to send [04:37:08]OFD Sender: No OFD packet to send [04:37:13]OFD Sender: No OFD packet to send [04:37:18]OFD Sender: No OFD packet to send [04:37:23]OFD Sender: No OFD packet to send [04:37:28]OFD Sender: No OFD packet to send [04:37:33]OFD Sender: No OFD packet to send [04:37:38]OFD Sender: No OFD packet to send [04:37:43]OFD Sender: No OFD packet to send [04:37:48]OFD Sender: No OFD packet to send [04:37:53]OFD Sender: No OFD packet to send [04:37:58]OFD Sender: No OFD packet to send [04:38:03]OFD Sender: No OFD packet to send [04:38:08]OFD Sender: No OFD packet to send [04:38:13]OFD Sender: No OFD packet to send [04:38:18]OFD Sender: No OFD packet to send [04:38:23]OFD Sender: No OFD packet to send [04:38:28]OFD Sender: No OFD packet to send [04:38:33]OFD Sender: No OFD packet to send [04:38:38]OFD Sender: No OFD packet to send [04:38:43]OFD Sender: No OFD packet to send [04:38:48]OFD Sender: No OFD packet to send [04:38:53]OFD Sender: No OFD packet to send [04:38:58]OFD Sender: No OFD packet to send [04:39:03]OFD Sender: No OFD packet to send [04:39:08]OFD Sender: No OFD packet to send [04:39:13]OFD Sender: No OFD packet to send [04:39:18]OFD Sender: No OFD packet to send [04:39:23]OFD Sender: No OFD packet to send [04:39:28]OFD Sender: No OFD packet to send [04:39:33]OFD Sender: No OFD packet to send [04:39:38]OFD Sender: No OFD packet to send [04:39:43]OFD Sender: No OFD packet to send [04:39:48]OFD Sender: No OFD packet to send [04:39:53]OFD Sender: No OFD packet to send [04:39:58]OFD Sender: No OFD packet to send [04:40:03]OFD Sender: No OFD packet to send [04:40:08]OFD Sender: No OFD packet to send [04:40:13]OFD Sender: No OFD packet to send [04:40:18]OFD Sender: No OFD packet to send [04:40:23]OFD Sender: No OFD packet to send [04:40:28]OFD Sender: No OFD packet to send [04:40:33]OFD Sender: No OFD packet to send [04:40:38]OFD Sender: No OFD packet to send [04:40:43]OFD Sender: No OFD packet to send [04:40:48]OFD Sender: No OFD packet to send [04:40:53]OFD Sender: No OFD packet to send [04:40:58]OFD Sender: No OFD packet to send [04:41:03]OFD Sender: No OFD packet to send [04:41:08]OFD Sender: No OFD packet to send [04:41:13]OFD Sender: No OFD packet to send [04:41:18]OFD Sender: No OFD packet to send [04:41:23]OFD Sender: No OFD packet to send [04:41:28]OFD Sender: No OFD packet to send [04:41:33]OFD Sender: No OFD packet to send [04:41:38]OFD Sender: No OFD packet to send [04:41:43]OFD Sender: No OFD packet to send [04:41:48]OFD Sender: No OFD packet to send [04:41:53]OFD Sender: No OFD packet to send [04:41:58]OFD Sender: No OFD packet to send [04:42:03]OFD Sender: No OFD packet to send [04:42:08]OFD Sender: No OFD packet to send [04:42:14]OFD Sender: No OFD packet to send [04:42:19]OFD Sender: No OFD packet to send [04:42:24]OFD Sender: No OFD packet to send [04:42:29]OFD Sender: No OFD packet to send [04:42:34]OFD Sender: No OFD packet to send [04:42:39]OFD Sender: No OFD packet to send [04:42:44]OFD Sender: No OFD packet to send [04:42:49]OFD Sender: No OFD packet to send [04:42:54]OFD Sender: No OFD packet to send [04:42:59]OFD Sender: No OFD packet to send [04:43:04]OFD Sender: No OFD packet to send [04:43:09]OFD Sender: No OFD packet to send [04:43:14]OFD Sender: No OFD packet to send [04:43:19]OFD Sender: No OFD packet to send [04:43:24]OFD Sender: No OFD packet to send [04:43:29]OFD Sender: No OFD packet to send [04:43:34]OFD Sender: No OFD packet to send [04:43:39]OFD Sender: No OFD packet to send [04:43:44]OFD Sender: No OFD packet to send [04:43:49]OFD Sender: No OFD packet to send [04:43:54]OFD Sender: No OFD packet to send [04:43:59]OFD Sender: No OFD packet to send [04:44:04]OFD Sender: No OFD packet to send [04:44:09]OFD Sender: No OFD packet to send [04:44:14]OFD Sender: No OFD packet to send [04:44:19]OFD Sender: No OFD packet to send [04:44:24]OFD Sender: No OFD packet to send [04:44:29]OFD Sender: No OFD packet to send [04:44:34]OFD Sender: No OFD packet to send [04:44:39]OFD Sender: No OFD packet to send [04:44:44]OFD Sender: No OFD packet to send [04:44:49]OFD Sender: No OFD packet to send [04:44:54]OFD Sender: No OFD packet to send [04:44:59]OFD Sender: No OFD packet to send [04:45:04]OFD Sender: No OFD packet to send [04:45:09]OFD Sender: No OFD packet to send [04:45:14]OFD Sender: No OFD packet to send [04:45:19]OFD Sender: No OFD packet to send [04:45:24]OFD Sender: No OFD packet to send [04:45:29]OFD Sender: No OFD packet to send [04:45:34]OFD Sender: No OFD packet to send [04:45:39]OFD Sender: No OFD packet to send [04:45:44]OFD Sender: No OFD packet to send [04:45:49]OFD Sender: No OFD packet to send [04:45:54]OFD Sender: No OFD packet to send [04:45:59]OFD Sender: No OFD packet to send [04:46:04]OFD Sender: No OFD packet to send [04:46:09]OFD Sender: No OFD packet to send [04:46:14]OFD Sender: No OFD packet to send [04:46:19]OFD Sender: No OFD packet to send [04:46:24]OFD Sender: No OFD packet to send [04:46:29]OFD Sender: No OFD packet to send [04:46:34]OFD Sender: No OFD packet to send [04:46:39]OFD Sender: No OFD packet to send [04:46:44]OFD Sender: No OFD packet to send [04:46:49]OFD Sender: No OFD packet to send [04:46:54]OFD Sender: No OFD packet to send [04:46:59]OFD Sender: No OFD packet to send [04:47:04]OFD Sender: No OFD packet to send [04:47:09]OFD Sender: No OFD packet to send [04:47:14]OFD Sender: No OFD packet to send [04:47:19]OFD Sender: No OFD packet to send [04:47:24]OFD Sender: No OFD packet to send [04:47:29]OFD Sender: No OFD packet to send [04:47:34]OFD Sender: No OFD packet to send [04:47:39]OFD Sender: No OFD packet to send [04:47:44]OFD Sender: No OFD packet to send [04:47:49]OFD Sender: No OFD packet to send [04:47:54]OFD Sender: No OFD packet to send [04:47:59]OFD Sender: No OFD packet to send [04:48:04]OFD Sender: No OFD packet to send [04:48:09]OFD Sender: No OFD packet to send [04:48:14]OFD Sender: No OFD packet to send [04:48:19]OFD Sender: No OFD packet to send [04:48:24]OFD Sender: No OFD packet to send [04:48:29]OFD Sender: No OFD packet to send [04:48:30]accept exits with 9 [04:48:30]New connection [04:48:30]New thread 3066608996 created [04:48:30]Thread 3066752356 joined [04:48:30]Waiting for new connection... [04:48:30] Sock 9.Parse request [04:48:30]Sock 9.Check first char [04:48:30]Sock 9.First char is OK [04:48:30]request: POST /json_proto HTTP/1.0 [04:48:30]Method: POST [04:48:30]URL: /json_proto [04:48:30]Method is POST - this is cgi request [04:48:30]url: /json_proto [04:48:30]query_string will be loaded in cgi processing [04:48:30]execute_cgi json_proto POST (null) [04:48:30]execute_cgi path=json_proto method=POST [04:48:30]POST find Content-Length [04:48:30]Host: 172.17.41.195:8080 [04:48:30]Content-Length: 1222 [04:48:30]Content-Type: application/json [04:48:30] [04:48:30]POST finish read [04:48:30]Found Content-Length = 1222 [04:48:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0440\u0441\u0442\u0430\u043D\u0431\u0435\u043A\u043E\u0432 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)507933\u000A18.05.2024 04:30\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 100.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 7470.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3472460-463\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:48:30]execute_script... [04:48:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0440\u0441\u0442\u0430\u043D\u0431\u0435\u043A\u043E\u0432 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)507933\u000A18.05.2024 04:30\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 100.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 7470.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3472460-463\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:48:30]POST & json_proto [04:48:30]process_json_proto [04:48:30]json parsed OK: [04:48:30]protocol is kg_v1.0 [04:48:30]action value=print_text [04:48:30]process_action print_text [04:48:30]cmd_print_text [04:48:30]ExternCall_PrintAddStr [04:48:30]wPrintStart [04:48:30]Write to MH i2c: 01 00 00 0A 1D 27 [04:48:30]Write i2c OK [04:48:30]MH_I2C_Read... [04:48:30]Read from MH i2c: 01 [04:48:30]MH_I2C_Read... [04:48:30]Read from MH i2c: 01 07 00 [04:48:30]MH_I2C_Read... [04:48:30]Read from MH i2c: 01 07 00 0A 1D 00 00 00 00 00 FF 0F 3C [04:48:30]RasterBufferAndPrint [04:48:30]line *****ТОВАРНЫЙ ЧЕК***** [04:48:30]line АЗС-91 [04:48:30]line Партнер нефть [04:48:30]line 02508201610067 [04:48:30]line Кассир : Арстанбеков Н. [04:48:30]line Счет N : (1)507933 [04:48:30]line 18.05.2024 04:30 [04:48:30]line ПРОДАЖА [04:48:30]line ТРК (МРК, ГНК): 11 [04:48:30]line Вид ГСМ : 2710194210 [04:48:30]line ДТ-К-5 [04:48:30]line 100.000 x 74.70 [04:48:30]line ИТОГ: 7470.00 [04:48:30]line Тип оплаты: Талоны: Топливные Талоны [04:48:30]line 3472460-463 [04:48:30]line ______________________ [04:48:30]line (подпись) [04:48:30]written 0, free lines is 4095 [04:48:31]Write to MH i2c: 01 00 00 1E 1D 3B [04:48:31]Write i2c OK [04:48:31]MH_I2C_Read... [04:48:31]Read from MH i2c: 01 [04:48:31]MH_I2C_Read... [04:48:31]Read from MH i2c: 01 07 00 [04:48:31]MH_I2C_Read... [04:48:31]Read from MH i2c: 01 07 00 1E 1D 00 00 00 00 00 12 0E 62 [04:48:31]RasterBufferAndPrint [04:48:31]line [04:48:31]line [04:48:31]line [04:48:31]line [04:48:31]line [04:48:31]written 0, free lines is 3603 [04:48:31]MH_Cut [04:48:31]Write to MH i2c: D1 01 00 25 1D 01 14 [04:48:31]Write i2c OK [04:48:31]MH_I2C_Read... [04:48:31]Read from MH i2c: D1 [04:48:31]MH_I2C_Read... [04:48:31]Read from MH i2c: D1 01 00 [04:48:31]MH_I2C_Read... [04:48:31]Read from MH i2c: D1 01 00 25 1D 00 13 [04:48:31]Write to MH i2c: 01 00 00 26 1D 43 [04:48:31]Write i2c OK [04:48:31]MH_I2C_Read... [04:48:31]*** Cut start [04:48:31]*** Purtial cut [04:48:31]*** Stage 1: CUTSNS_PIN = 1 [04:48:32]Read from MH i2c: 01 [04:48:32]MH_I2C_Read... [04:48:32]*** Stop cut motor [04:48:32]*** Cut end [04:48:32]Read from MH i2c: 01 07 00 [04:48:32]MH_I2C_Read... [04:48:32]Read from MH i2c: 01 07 00 26 1D 00 00 00 00 00 FF 0F 58 [04:48:32]process_action print_text done [04:48:32]requested_data is exist [04:48:32]produce_requested_data [04:48:32]requested_item fm.sn is exist - process it [04:48:32]wFMCommunicate request_size=4 [04:48:32]MH_SAM_APDU [04:48:32]CAPDU: 80 11 00 00 [04:48:32]Write to MH i2c: E2 08 00 27 1D 80 11 00 00 00 00 00 00 BE [04:48:32]Write i2c OK [04:48:32]MH_I2C_Read... [04:48:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:48:32]Read from MH i2c: E2 [04:48:32]MH_I2C_Read... [04:48:32]Read from MH i2c: E2 17 00 [04:48:32]MH_I2C_Read... [04:48:32]Read from MH i2c: E2 17 00 27 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 14 [04:48:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [04:48:32]wFMCommunicate OK [04:48:32]requested_item fd.num is exist - process it [04:48:32]SAM_PROTO_GetFieldsCounters [04:48:32]wFMCommunicate request_size=4 [04:48:32]MH_SAM_APDU [04:48:32]CAPDU: 80 13 00 00 [04:48:32]Write to MH i2c: E2 08 00 28 1D 80 13 00 00 00 00 00 00 C1 [04:48:32]Write i2c OK [04:48:32]MH_I2C_Read... [04:48:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:48:32]Read from MH i2c: E2 [04:48:32]MH_I2C_Read... [04:48:32]Read from MH i2c: E2 62 00 [04:48:32]MH_I2C_Read... [04:48:32]Read from MH i2c: E2 62 00 28 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 B7 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 06 00 00 00 5E 04 04 00 06 00 00 00 57 04 04 00 07 00 00 00 19 04 04 00 00 00 00 00 90 00 21 [04:48:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 B7 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 06 00 00 00 5E 04 04 00 06 00 00 00 57 04 04 00 07 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:48:32]wFMCommunicate OK [04:48:32]SAM_PROTO_GetFieldsCounters done [04:48:32]requested_item shift.num is exist - process it [04:48:32]requested_item shift.opened is exist - process it [04:48:32]req_shift_opened [04:48:32]FM_GetShiftState [04:48:32]SAM_PROTO_GetShiftState [04:48:32]wFMCommunicate request_size=4 [04:48:32]MH_SAM_APDU [04:48:32]CAPDU: 80 13 01 00 [04:48:32]Write to MH i2c: E2 08 00 29 1D 80 13 01 00 00 00 00 00 C3 [04:48:32]Write i2c OK [04:48:32]MH_I2C_Read... [04:48:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:48:32]Read from MH i2c: E2 [04:48:32]MH_I2C_Read... [04:48:32]Read from MH i2c: E2 0E 00 [04:48:32]MH_I2C_Read... [04:48:32]Read from MH i2c: E2 0E 00 29 1D 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 2A [04:48:32]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [04:48:32]wFMCommunicate OK [04:48:32]SAM_PROTO_GetShiftState done [04:48:32]FM_GetShiftState done [04:48:32]req_shift_opened done [04:48:32]requested_item shift.open_date is exist - process it [04:48:32]req_shift_open_date [04:48:32]req_shift_open_date done [04:48:32]produce_requested_data done [04:48:32]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67767,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [04:48:32]process_action_free print_text [04:48:32]json_value_free [04:48:32]json_value_free done [04:48:32]process_json_proto returns [04:48:32]Send response to host [04:48:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67767,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [04:48:32]free response buf [04:48:32]execute_script done [04:48:32]execute_script returns [04:48:32]free content buf [04:48:32]Sock 9.Close socket [04:48:32]Sock 9.Thread stoped [04:48:34]OFD Sender: No OFD packet to send [04:48:39]OFD Sender: No OFD packet to send [04:48:44]OFD Sender: No OFD packet to send [04:48:49]OFD Sender: No OFD packet to send [04:48:54]OFD Sender: No OFD packet to send [04:48:59]OFD Sender: No OFD packet to send [04:49:04]OFD Sender: No OFD packet to send [04:49:09]OFD Sender: No OFD packet to send [04:49:14]OFD Sender: No OFD packet to send [04:49:19]OFD Sender: No OFD packet to send [04:49:24]OFD Sender: No OFD packet to send [04:49:29]OFD Sender: No OFD packet to send [04:49:34]OFD Sender: No OFD packet to send [04:49:39]OFD Sender: No OFD packet to send [04:49:44]OFD Sender: No OFD packet to send [04:49:49]OFD Sender: No OFD packet to send [04:49:54]OFD Sender: No OFD packet to send [04:49:59]OFD Sender: No OFD packet to send [04:50:04]OFD Sender: No OFD packet to send [04:50:09]OFD Sender: No OFD packet to send [04:50:14]OFD Sender: No OFD packet to send [04:50:19]OFD Sender: No OFD packet to send [04:50:24]OFD Sender: No OFD packet to send [04:50:29]OFD Sender: No OFD packet to send [04:50:34]OFD Sender: No OFD packet to send [04:50:39]OFD Sender: No OFD packet to send [04:50:44]OFD Sender: No OFD packet to send [04:50:49]OFD Sender: No OFD packet to send [04:50:54]OFD Sender: No OFD packet to send [04:50:59]OFD Sender: No OFD packet to send [04:51:04]OFD Sender: No OFD packet to send [04:51:09]OFD Sender: No OFD packet to send [04:51:14]OFD Sender: No OFD packet to send [04:51:19]OFD Sender: No OFD packet to send [04:51:24]OFD Sender: No OFD packet to send [04:51:29]OFD Sender: No OFD packet to send [04:51:34]OFD Sender: No OFD packet to send [04:51:39]OFD Sender: No OFD packet to send [04:51:44]OFD Sender: No OFD packet to send [04:51:49]OFD Sender: No OFD packet to send [04:51:54]OFD Sender: No OFD packet to send [04:51:59]OFD Sender: No OFD packet to send [04:52:04]OFD Sender: No OFD packet to send [04:52:09]OFD Sender: No OFD packet to send [04:52:14]OFD Sender: No OFD packet to send [04:52:19]OFD Sender: No OFD packet to send [04:52:24]OFD Sender: No OFD packet to send [04:52:29]OFD Sender: No OFD packet to send [04:52:34]OFD Sender: No OFD packet to send [04:52:39]OFD Sender: No OFD packet to send [04:52:44]OFD Sender: No OFD packet to send [04:52:49]OFD Sender: No OFD packet to send [04:52:54]OFD Sender: No OFD packet to send [04:52:59]OFD Sender: No OFD packet to send [04:53:04]OFD Sender: No OFD packet to send [04:53:09]OFD Sender: No OFD packet to send [04:53:14]OFD Sender: No OFD packet to send [04:53:19]OFD Sender: No OFD packet to send [04:53:24]OFD Sender: No OFD packet to send [04:53:29]OFD Sender: No OFD packet to send [04:53:34]OFD Sender: No OFD packet to send [04:53:39]OFD Sender: No OFD packet to send [04:53:44]OFD Sender: No OFD packet to send [04:53:49]OFD Sender: No OFD packet to send [04:53:54]OFD Sender: No OFD packet to send [04:53:59]OFD Sender: No OFD packet to send [04:54:04]OFD Sender: No OFD packet to send [04:54:09]OFD Sender: No OFD packet to send [04:54:12]accept exits with 7 [04:54:12]New connection [04:54:12]New thread 3066752356 created [04:54:12]Thread 3066608996 joined [04:54:12]Waiting for new connection... [04:54:12] Sock 7.Parse request [04:54:12]Sock 7.Check first char [04:54:12]Sock 7.First char is OK [04:54:12]request: POST /json_proto HTTP/1.0 [04:54:12]Method: POST [04:54:12]URL: /json_proto [04:54:12]Method is POST - this is cgi request [04:54:12]url: /json_proto [04:54:12]query_string will be loaded in cgi processing [04:54:12]execute_cgi json_proto POST (null) [04:54:12]execute_cgi path=json_proto method=POST [04:54:12]POST find Content-Length [04:54:12]Host: 172.17.41.195:8080 [04:54:12]Content-Length: 1230 [04:54:12]Content-Type: application/json [04:54:12] [04:54:12]POST finish read [04:54:12]Found Content-Length = 1230 [04:54:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0440\u0441\u0442\u0430\u043D\u0431\u0435\u043A\u043E\u0432 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)507934\u000A18.05.2024 04:36\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 110.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 8217.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3472461-889-888-887\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:54:12]execute_script... [04:54:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0440\u0441\u0442\u0430\u043D\u0431\u0435\u043A\u043E\u0432 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)507934\u000A18.05.2024 04:36\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 110.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 8217.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3472461-889-888-887\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:54:12]POST & json_proto [04:54:12]process_json_proto [04:54:12]json parsed OK: [04:54:12]protocol is kg_v1.0 [04:54:12]action value=print_text [04:54:12]process_action print_text [04:54:12]cmd_print_text [04:54:12]ExternCall_PrintAddStr [04:54:12]wPrintStart [04:54:12]Write to MH i2c: 01 00 00 2A 1D 47 [04:54:12]Write i2c OK [04:54:12]MH_I2C_Read... [04:54:12]Read from MH i2c: 01 [04:54:12]MH_I2C_Read... [04:54:12]Read from MH i2c: 01 07 00 [04:54:12]MH_I2C_Read... [04:54:12]Read from MH i2c: 01 07 00 2A 1D 00 00 00 00 00 FF 0F 5C [04:54:12]RasterBufferAndPrint [04:54:12]line *****ТОВАРНЫЙ ЧЕК***** [04:54:12]line АЗС-91 [04:54:12]line Партнер нефть [04:54:12]line 02508201610067 [04:54:12]line Кассир : Арстанбеков Н. [04:54:12]line Счет N : (1)507934 [04:54:12]line 18.05.2024 04:36 [04:54:12]line ПРОДАЖА [04:54:12]line ТРК (МРК, ГНК): 11 [04:54:12]line Вид ГСМ : 2710194210 [04:54:12]line ДТ-К-5 [04:54:12]line 110.000 x 74.70 [04:54:12]line ИТОГ: 8217.00 [04:54:12]line Тип оплаты: Талоны: Топливные Талоны [04:54:12]line 3472461-889-888-887 [04:54:12]line ______________________ [04:54:12]line (подпись) [04:54:12]written 0, free lines is 4095 [04:54:12]Write to MH i2c: 01 00 00 3E 1D 5B [04:54:12]Write i2c OK [04:54:12]MH_I2C_Read... [04:54:12]Read from MH i2c: 01 [04:54:12]MH_I2C_Read... [04:54:12]Read from MH i2c: 01 07 00 [04:54:12]MH_I2C_Read... [04:54:12]Read from MH i2c: 01 07 00 3E 1D 00 00 00 00 00 15 0E 85 [04:54:12]RasterBufferAndPrint [04:54:12]line [04:54:12]line [04:54:12]line [04:54:12]line [04:54:12]line [04:54:12]written 0, free lines is 3607 [04:54:12]MH_Cut [04:54:12]Write to MH i2c: D1 01 00 45 1D 01 34 [04:54:12]Write i2c OK [04:54:12]MH_I2C_Read... [04:54:12]Read from MH i2c: D1 [04:54:12]MH_I2C_Read... [04:54:12]Read from MH i2c: D1 01 00 [04:54:12]MH_I2C_Read... [04:54:12]Read from MH i2c: D1 01 00 45 1D 00 33 [04:54:12]Write to MH i2c: 01 00 00 46 1D 63 [04:54:12]Write i2c OK [04:54:12]MH_I2C_Read... [04:54:12]*** Cut start [04:54:12]*** Purtial cut [04:54:12]*** CUTSNS_PIN = 0 [04:54:13]*** Stage 1: CUTSNS_PIN = 1 [04:54:14]OFD Sender: No OFD packet to send [04:54:14]Read from MH i2c: 01 [04:54:14]MH_I2C_Read... [04:54:14]Read from MH i2c: 01 07 00 [04:54:14]MH_I2C_Read... [04:54:14]*** Stop cut motor [04:54:14]*** Cut end [04:54:14]Read from MH i2c: 01 07 00 46 1D 00 00 00 00 00 FF 0F 78 [04:54:14]process_action print_text done [04:54:14]requested_data is exist [04:54:14]produce_requested_data [04:54:14]requested_item fm.sn is exist - process it [04:54:14]wFMCommunicate request_size=4 [04:54:14]MH_SAM_APDU [04:54:14]CAPDU: 80 11 00 00 [04:54:14]Write to MH i2c: E2 08 00 47 1D 80 11 00 00 00 00 00 00 DE [04:54:14]Write i2c OK [04:54:14]MH_I2C_Read... [04:54:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:54:15]Read from MH i2c: E2 [04:54:15]MH_I2C_Read... [04:54:15]Read from MH i2c: E2 17 00 [04:54:15]MH_I2C_Read... [04:54:15]Read from MH i2c: E2 17 00 47 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 34 [04:54:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [04:54:15]wFMCommunicate OK [04:54:15]requested_item fd.num is exist - process it [04:54:15]SAM_PROTO_GetFieldsCounters [04:54:15]wFMCommunicate request_size=4 [04:54:15]MH_SAM_APDU [04:54:15]CAPDU: 80 13 00 00 [04:54:15]Write to MH i2c: E2 08 00 48 1D 80 13 00 00 00 00 00 00 E1 [04:54:15]Write i2c OK [04:54:15]MH_I2C_Read... [04:54:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:54:15]Read from MH i2c: E2 [04:54:15]MH_I2C_Read... [04:54:15]Read from MH i2c: E2 62 00 [04:54:15]MH_I2C_Read... [04:54:15]Read from MH i2c: E2 62 00 48 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 B7 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 06 00 00 00 5E 04 04 00 06 00 00 00 57 04 04 00 07 00 00 00 19 04 04 00 00 00 00 00 90 00 41 [04:54:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 B7 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 06 00 00 00 5E 04 04 00 06 00 00 00 57 04 04 00 07 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:54:15]wFMCommunicate OK [04:54:15]SAM_PROTO_GetFieldsCounters done [04:54:15]requested_item shift.num is exist - process it [04:54:15]requested_item shift.opened is exist - process it [04:54:15]req_shift_opened [04:54:15]FM_GetShiftState [04:54:15]SAM_PROTO_GetShiftState [04:54:15]wFMCommunicate request_size=4 [04:54:15]MH_SAM_APDU [04:54:15]CAPDU: 80 13 01 00 [04:54:15]Write to MH i2c: E2 08 00 49 1D 80 13 01 00 00 00 00 00 E3 [04:54:15]Write i2c OK [04:54:15]MH_I2C_Read... [04:54:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:54:15]Read from MH i2c: E2 [04:54:15]MH_I2C_Read... [04:54:15]Read from MH i2c: E2 0E 00 [04:54:15]MH_I2C_Read... [04:54:15]Read from MH i2c: E2 0E 00 49 1D 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 4A [04:54:15]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [04:54:15]wFMCommunicate OK [04:54:15]SAM_PROTO_GetShiftState done [04:54:15]FM_GetShiftState done [04:54:15]req_shift_opened done [04:54:15]requested_item shift.open_date is exist - process it [04:54:15]req_shift_open_date [04:54:15]req_shift_open_date done [04:54:15]produce_requested_data done [04:54:15]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67767,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [04:54:15]process_action_free print_text [04:54:15]json_value_free [04:54:15]json_value_free done [04:54:15]process_json_proto returns [04:54:15]Send response to host [04:54:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67767,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [04:54:15]free response buf [04:54:15]execute_script done [04:54:15]execute_script returns [04:54:15]free content buf [04:54:15]Sock 7.Close socket [04:54:15]Sock 7.Thread stoped [04:54:19]OFD Sender: No OFD packet to send [04:54:24]OFD Sender: No OFD packet to send [04:54:29]OFD Sender: No OFD packet to send [04:54:34]OFD Sender: No OFD packet to send [04:54:39]OFD Sender: No OFD packet to send [04:54:44]OFD Sender: No OFD packet to send [04:54:49]OFD Sender: No OFD packet to send [04:54:54]OFD Sender: No OFD packet to send [04:54:59]OFD Sender: No OFD packet to send [04:55:04]OFD Sender: No OFD packet to send [04:55:09]OFD Sender: No OFD packet to send [04:55:14]OFD Sender: No OFD packet to send [04:55:19]OFD Sender: No OFD packet to send [04:55:24]OFD Sender: No OFD packet to send [04:55:29]OFD Sender: No OFD packet to send [04:55:34]OFD Sender: No OFD packet to send [04:55:39]OFD Sender: No OFD packet to send [04:55:44]OFD Sender: No OFD packet to send [04:55:49]OFD Sender: No OFD packet to send [04:55:54]OFD Sender: No OFD packet to send [04:55:59]OFD Sender: No OFD packet to send [04:56:04]OFD Sender: No OFD packet to send [04:56:09]OFD Sender: No OFD packet to send [04:56:14]OFD Sender: No OFD packet to send [04:56:19]OFD Sender: No OFD packet to send [04:56:24]OFD Sender: No OFD packet to send [04:56:29]OFD Sender: No OFD packet to send [04:56:34]OFD Sender: No OFD packet to send [04:56:39]OFD Sender: No OFD packet to send [04:56:44]OFD Sender: No OFD packet to send [04:56:49]OFD Sender: No OFD packet to send [04:56:54]OFD Sender: No OFD packet to send [04:56:59]OFD Sender: No OFD packet to send [04:57:04]OFD Sender: No OFD packet to send [04:57:09]OFD Sender: No OFD packet to send [04:57:14]OFD Sender: No OFD packet to send [04:57:19]OFD Sender: No OFD packet to send [04:57:24]OFD Sender: No OFD packet to send [04:57:29]OFD Sender: No OFD packet to send [04:57:34]OFD Sender: No OFD packet to send [04:57:39]OFD Sender: No OFD packet to send [04:57:44]OFD Sender: No OFD packet to send [04:57:49]OFD Sender: No OFD packet to send [04:57:54]OFD Sender: No OFD packet to send [04:57:59]OFD Sender: No OFD packet to send [04:58:04]OFD Sender: No OFD packet to send [04:58:09]OFD Sender: No OFD packet to send [04:58:14]OFD Sender: No OFD packet to send [04:58:19]OFD Sender: No OFD packet to send [04:58:24]OFD Sender: No OFD packet to send [04:58:29]OFD Sender: No OFD packet to send [04:58:34]OFD Sender: No OFD packet to send [04:58:39]OFD Sender: No OFD packet to send [04:58:44]OFD Sender: No OFD packet to send [04:58:49]OFD Sender: No OFD packet to send [04:58:54]OFD Sender: No OFD packet to send [04:58:59]OFD Sender: No OFD packet to send [04:59:04]OFD Sender: No OFD packet to send [04:59:09]OFD Sender: No OFD packet to send [04:59:14]OFD Sender: No OFD packet to send [04:59:19]OFD Sender: No OFD packet to send [04:59:24]OFD Sender: No OFD packet to send [04:59:29]OFD Sender: No OFD packet to send [04:59:34]OFD Sender: No OFD packet to send [04:59:39]OFD Sender: No OFD packet to send [04:59:44]OFD Sender: No OFD packet to send [04:59:49]OFD Sender: No OFD packet to send [04:59:54]OFD Sender: No OFD packet to send [04:59:59]OFD Sender: No OFD packet to send [05:00:04]OFD Sender: No OFD packet to send [05:00:09]OFD Sender: No OFD packet to send [05:00:14]OFD Sender: No OFD packet to send [05:00:19]OFD Sender: No OFD packet to send [05:00:24]OFD Sender: No OFD packet to send [05:00:29]OFD Sender: No OFD packet to send [05:00:34]OFD Sender: No OFD packet to send [05:00:39]OFD Sender: No OFD packet to send [05:00:44]OFD Sender: No OFD packet to send [05:00:49]OFD Sender: No OFD packet to send [05:00:54]OFD Sender: No OFD packet to send [05:00:59]OFD Sender: No OFD packet to send [05:01:04]OFD Sender: No OFD packet to send [05:01:09]OFD Sender: No OFD packet to send [05:01:15]OFD Sender: No OFD packet to send [05:01:20]OFD Sender: No OFD packet to send [05:01:25]OFD Sender: No OFD packet to send [05:01:30]OFD Sender: No OFD packet to send [05:01:35]OFD Sender: No OFD packet to send [05:01:40]OFD Sender: No OFD packet to send [05:01:45]OFD Sender: No OFD packet to send [05:01:50]OFD Sender: No OFD packet to send [05:01:55]OFD Sender: No OFD packet to send [05:02:00]OFD Sender: No OFD packet to send [05:02:05]OFD Sender: No OFD packet to send [05:02:10]OFD Sender: No OFD packet to send [05:02:15]OFD Sender: No OFD packet to send [05:02:20]OFD Sender: No OFD packet to send [05:02:25]OFD Sender: No OFD packet to send [05:02:30]OFD Sender: No OFD packet to send [05:02:35]OFD Sender: No OFD packet to send [05:02:40]OFD Sender: No OFD packet to send [05:02:45]OFD Sender: No OFD packet to send [05:02:50]OFD Sender: No OFD packet to send [05:02:55]OFD Sender: No OFD packet to send [05:03:00]OFD Sender: No OFD packet to send [05:03:05]OFD Sender: No OFD packet to send [05:03:10]OFD Sender: No OFD packet to send [05:03:15]OFD Sender: No OFD packet to send [05:03:20]OFD Sender: No OFD packet to send [05:03:25]OFD Sender: No OFD packet to send [05:03:30]OFD Sender: No OFD packet to send [05:03:35]OFD Sender: No OFD packet to send [05:03:40]OFD Sender: No OFD packet to send [05:03:45]OFD Sender: No OFD packet to send [05:03:50]OFD Sender: No OFD packet to send [05:03:55]OFD Sender: No OFD packet to send [05:04:00]OFD Sender: No OFD packet to send [05:04:05]OFD Sender: No OFD packet to send [05:04:10]OFD Sender: No OFD packet to send [05:04:15]OFD Sender: No OFD packet to send [05:04:20]OFD Sender: No OFD packet to send [05:04:25]OFD Sender: No OFD packet to send [05:04:30]OFD Sender: No OFD packet to send [05:04:35]OFD Sender: No OFD packet to send [05:04:40]OFD Sender: No OFD packet to send [05:04:45]OFD Sender: No OFD packet to send [05:04:50]OFD Sender: No OFD packet to send [05:04:55]OFD Sender: No OFD packet to send [05:05:00]OFD Sender: No OFD packet to send [05:05:05]OFD Sender: No OFD packet to send [05:05:10]OFD Sender: No OFD packet to send [05:05:15]OFD Sender: No OFD packet to send [05:05:20]OFD Sender: No OFD packet to send [05:05:25]OFD Sender: No OFD packet to send [05:05:30]OFD Sender: No OFD packet to send [05:05:35]OFD Sender: No OFD packet to send [05:05:40]OFD Sender: No OFD packet to send [05:05:45]OFD Sender: No OFD packet to send [05:05:50]OFD Sender: No OFD packet to send [05:05:55]OFD Sender: No OFD packet to send [05:06:00]OFD Sender: No OFD packet to send [05:06:05]OFD Sender: No OFD packet to send [05:06:10]OFD Sender: No OFD packet to send [05:06:15]OFD Sender: No OFD packet to send [05:06:20]OFD Sender: No OFD packet to send [05:06:25]OFD Sender: No OFD packet to send [05:06:30]OFD Sender: No OFD packet to send [05:06:35]OFD Sender: No OFD packet to send [05:06:40]OFD Sender: No OFD packet to send [05:06:45]OFD Sender: No OFD packet to send [05:06:50]OFD Sender: No OFD packet to send [05:06:55]OFD Sender: No OFD packet to send [05:07:00]OFD Sender: No OFD packet to send [05:07:05]OFD Sender: No OFD packet to send [05:07:10]OFD Sender: No OFD packet to send [05:07:15]OFD Sender: No OFD packet to send [05:07:20]OFD Sender: No OFD packet to send [05:07:25]OFD Sender: No OFD packet to send [05:07:30]OFD Sender: No OFD packet to send [05:07:35]OFD Sender: No OFD packet to send [05:07:40]OFD Sender: No OFD packet to send [05:07:45]OFD Sender: No OFD packet to send [05:07:50]OFD Sender: No OFD packet to send [05:07:55]OFD Sender: No OFD packet to send [05:08:00]OFD Sender: No OFD packet to send [05:08:05]OFD Sender: No OFD packet to send [05:08:10]OFD Sender: No OFD packet to send [05:08:15]OFD Sender: No OFD packet to send [05:08:20]OFD Sender: No OFD packet to send [05:08:25]OFD Sender: No OFD packet to send [05:08:30]OFD Sender: No OFD packet to send [05:08:35]OFD Sender: No OFD packet to send [05:08:40]OFD Sender: No OFD packet to send [05:08:45]OFD Sender: No OFD packet to send [05:08:50]OFD Sender: No OFD packet to send [05:08:55]OFD Sender: No OFD packet to send [05:09:00]OFD Sender: No OFD packet to send [05:09:05]OFD Sender: No OFD packet to send [05:09:10]OFD Sender: No OFD packet to send [05:09:15]OFD Sender: No OFD packet to send [05:09:20]OFD Sender: No OFD packet to send [05:09:25]OFD Sender: No OFD packet to send [05:09:30]OFD Sender: No OFD packet to send [05:09:35]OFD Sender: No OFD packet to send [05:09:40]OFD Sender: No OFD packet to send [05:09:45]OFD Sender: No OFD packet to send [05:09:50]OFD Sender: No OFD packet to send [05:09:55]OFD Sender: No OFD packet to send [05:10:00]OFD Sender: No OFD packet to send [05:10:05]OFD Sender: No OFD packet to send [05:10:10]OFD Sender: No OFD packet to send [05:10:15]OFD Sender: No OFD packet to send [05:10:20]OFD Sender: No OFD packet to send [05:10:25]OFD Sender: No OFD packet to send [05:10:30]OFD Sender: No OFD packet to send [05:10:35]OFD Sender: No OFD packet to send [05:10:40]OFD Sender: No OFD packet to send [05:10:45]OFD Sender: No OFD packet to send [05:10:50]OFD Sender: No OFD packet to send [05:10:55]OFD Sender: No OFD packet to send [05:11:00]OFD Sender: No OFD packet to send [05:11:05]OFD Sender: No OFD packet to send [05:11:10]OFD Sender: No OFD packet to send [05:11:15]OFD Sender: No OFD packet to send [05:11:20]OFD Sender: No OFD packet to send [05:11:25]OFD Sender: No OFD packet to send [05:11:30]OFD Sender: No OFD packet to send [05:11:35]OFD Sender: No OFD packet to send [05:11:40]OFD Sender: No OFD packet to send [05:11:45]OFD Sender: No OFD packet to send [05:11:50]OFD Sender: No OFD packet to send [05:11:55]OFD Sender: No OFD packet to send [05:12:00]OFD Sender: No OFD packet to send [05:12:05]OFD Sender: No OFD packet to send [05:12:10]OFD Sender: No OFD packet to send [05:12:15]OFD Sender: No OFD packet to send [05:12:20]OFD Sender: No OFD packet to send [05:12:25]OFD Sender: No OFD packet to send [05:12:30]OFD Sender: No OFD packet to send [05:12:35]OFD Sender: No OFD packet to send [05:12:40]OFD Sender: No OFD packet to send [05:12:45]OFD Sender: No OFD packet to send [05:12:50]OFD Sender: No OFD packet to send [05:12:55]OFD Sender: No OFD packet to send [05:13:00]OFD Sender: No OFD packet to send [05:13:05]OFD Sender: No OFD packet to send [05:13:10]OFD Sender: No OFD packet to send [05:13:15]OFD Sender: No OFD packet to send [05:13:20]OFD Sender: No OFD packet to send [05:13:25]OFD Sender: No OFD packet to send [05:13:30]OFD Sender: No OFD packet to send [05:13:35]OFD Sender: No OFD packet to send [05:13:40]OFD Sender: No OFD packet to send [05:13:45]OFD Sender: No OFD packet to send [05:13:50]OFD Sender: No OFD packet to send [05:13:55]OFD Sender: No OFD packet to send [05:14:00]OFD Sender: No OFD packet to send [05:14:05]OFD Sender: No OFD packet to send [05:14:10]OFD Sender: No OFD packet to send [05:14:15]OFD Sender: No OFD packet to send [05:14:20]OFD Sender: No OFD packet to send [05:14:25]OFD Sender: No OFD packet to send [05:14:30]OFD Sender: No OFD packet to send [05:14:35]OFD Sender: No OFD packet to send [05:14:40]OFD Sender: No OFD packet to send [05:14:45]OFD Sender: No OFD packet to send [05:14:50]OFD Sender: No OFD packet to send [05:14:55]OFD Sender: No OFD packet to send [05:15:00]OFD Sender: No OFD packet to send [05:15:05]OFD Sender: No OFD packet to send [05:15:10]OFD Sender: No OFD packet to send [05:15:15]OFD Sender: No OFD packet to send [05:15:20]OFD Sender: No OFD packet to send [05:15:25]OFD Sender: No OFD packet to send [05:15:30]OFD Sender: No OFD packet to send [05:15:35]OFD Sender: No OFD packet to send [05:15:40]OFD Sender: No OFD packet to send [05:15:45]OFD Sender: No OFD packet to send [05:15:50]OFD Sender: No OFD packet to send [05:15:55]OFD Sender: No OFD packet to send [05:16:00]OFD Sender: No OFD packet to send [05:16:05]OFD Sender: No OFD packet to send [05:16:10]OFD Sender: No OFD packet to send [05:16:15]OFD Sender: No OFD packet to send [05:16:20]OFD Sender: No OFD packet to send [05:16:25]OFD Sender: No OFD packet to send [05:16:30]OFD Sender: No OFD packet to send [05:16:35]OFD Sender: No OFD packet to send [05:16:40]OFD Sender: No OFD packet to send [05:16:45]OFD Sender: No OFD packet to send [05:16:50]OFD Sender: No OFD packet to send [05:16:55]OFD Sender: No OFD packet to send [05:17:00]OFD Sender: No OFD packet to send [05:17:05]OFD Sender: No OFD packet to send [05:17:10]OFD Sender: No OFD packet to send [05:17:15]OFD Sender: No OFD packet to send [05:17:20]OFD Sender: No OFD packet to send [05:17:25]OFD Sender: No OFD packet to send [05:17:30]OFD Sender: No OFD packet to send [05:17:35]OFD Sender: No OFD packet to send [05:17:40]OFD Sender: No OFD packet to send [05:17:45]OFD Sender: No OFD packet to send [05:17:50]OFD Sender: No OFD packet to send [05:17:55]OFD Sender: No OFD packet to send [05:18:00]OFD Sender: No OFD packet to send [05:18:05]OFD Sender: No OFD packet to send [05:18:10]OFD Sender: No OFD packet to send [05:18:15]accept exits with 9 [05:18:15]New connection [05:18:15]New thread 3066608996 created [05:18:15]Thread 3066752356 joined [05:18:15]Waiting for new connection... [05:18:15] Sock 9.Parse request [05:18:15]Sock 9.Check first char [05:18:15]Sock 9.First char is OK [05:18:15]request: POST /json_proto HTTP/1.0 [05:18:15]Method: POST [05:18:15]URL: /json_proto [05:18:15]Method is POST - this is cgi request [05:18:15]url: /json_proto [05:18:15]query_string will be loaded in cgi processing [05:18:15]execute_cgi json_proto POST (null) [05:18:15]execute_cgi path=json_proto method=POST [05:18:15]POST find Content-Length [05:18:15]Host: 172.17.41.195:8080 [05:18:15]Content-Length: 1209 [05:18:15]Content-Type: application/json [05:18:15] [05:18:15]POST finish read [05:18:15]Found Content-Length = 1209 [05:18:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0440\u0441\u0442\u0430\u043D\u0431\u0435\u043A\u043E\u0432 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)507935\u000A18.05.2024 05:00\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 40.170 x 74.70\u000A\u0418\u0422\u041E\u0413: 3000.70\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:18:15]execute_script... [05:18:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0440\u0441\u0442\u0430\u043D\u0431\u0435\u043A\u043E\u0432 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)507935\u000A18.05.2024 05:00\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 40.170 x 74.70\u000A\u0418\u0422\u041E\u0413: 3000.70\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:18:15]POST & json_proto [05:18:15]process_json_proto [05:18:15]json parsed OK: [05:18:15]protocol is kg_v1.0 [05:18:15]action value=print_text [05:18:15]process_action print_text [05:18:15]cmd_print_text [05:18:15]ExternCall_PrintAddStr [05:18:15]wPrintStart [05:18:15]Write to MH i2c: 01 00 00 4A 1D 67 [05:18:15]Write i2c OK [05:18:15]MH_I2C_Read... [05:18:15]Read from MH i2c: 01 [05:18:15]MH_I2C_Read... [05:18:15]Read from MH i2c: 01 07 00 [05:18:15]MH_I2C_Read... [05:18:15]Read from MH i2c: 01 07 00 4A 1D 00 00 00 00 00 FF 0F 7C [05:18:15]RasterBufferAndPrint [05:18:15]line *****ТОВАРНЫЙ ЧЕК***** [05:18:15]line АЗС-91 [05:18:15]line Партнер нефть [05:18:15]line 02508201610067 [05:18:15]line Кассир : Арстанбеков Н. [05:18:15]line Счет N : (1)507935 [05:18:15]line 18.05.2024 05:00 [05:18:15]line ПРОДАЖА [05:18:15]line ТРК (МРК, ГНК): 31 [05:18:15]line Вид ГСМ : 2710194210 [05:18:15]line ДТ-К-5 [05:18:15]line 40.170 x 74.70 [05:18:15]line ИТОГ: 3000.70 [05:18:15]line Тип оплаты: Талоны: Топливная Карта [05:18:15]line 02750 [05:18:15]line ______________________ [05:18:15]line (подпись) [05:18:15]written 0, free lines is 4095 [05:18:15]Write to MH i2c: 01 00 00 5E 1D 7B [05:18:15]Write i2c OK [05:18:15]MH_I2C_Read... [05:18:15]Read from MH i2c: 01 [05:18:15]MH_I2C_Read... [05:18:15]Read from MH i2c: 01 07 00 [05:18:15]MH_I2C_Read... [05:18:15]Read from MH i2c: 01 07 00 5E 1D 00 00 00 00 00 10 0E A0 [05:18:15]RasterBufferAndPrint [05:18:15]line [05:18:15]line [05:18:15]line [05:18:15]line [05:18:15]line [05:18:15]written 0, free lines is 3601 [05:18:15]MH_Cut [05:18:15]Write to MH i2c: D1 01 00 65 1D 01 54 [05:18:15]Write i2c OK [05:18:15]MH_I2C_Read... [05:18:15]Read from MH i2c: D1 [05:18:15]MH_I2C_Read... [05:18:15]Read from MH i2c: D1 01 00 [05:18:15]MH_I2C_Read... [05:18:15]Read from MH i2c: D1 01 00 65 1D 00 53 [05:18:15]Write to MH i2c: 01 00 00 66 1D 83 [05:18:15]Write i2c OK [05:18:15]MH_I2C_Read... [05:18:15]OFD Sender: No OFD packet to send [05:18:16]*** Cut start [05:18:16]*** Purtial cut [05:18:16]*** Stage 1: CUTSNS_PIN = 1 [05:18:16]Read from MH i2c: 01 [05:18:16]MH_I2C_Read... [05:18:16]*** Stop cut motor [05:18:16]*** Cut end [05:18:16]Read from MH i2c: 01 07 00 [05:18:16]MH_I2C_Read... [05:18:16]Read from MH i2c: 01 07 00 66 1D 00 00 00 00 00 FF 0F 98 [05:18:16]process_action print_text done [05:18:16]requested_data is exist [05:18:16]produce_requested_data [05:18:16]requested_item fm.sn is exist - process it [05:18:16]wFMCommunicate request_size=4 [05:18:16]MH_SAM_APDU [05:18:16]CAPDU: 80 11 00 00 [05:18:16]Write to MH i2c: E2 08 00 67 1D 80 11 00 00 00 00 00 00 FE [05:18:16]Write i2c OK [05:18:16]MH_I2C_Read... [05:18:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:18:16]Read from MH i2c: E2 [05:18:16]MH_I2C_Read... [05:18:16]Read from MH i2c: E2 17 00 [05:18:16]MH_I2C_Read... [05:18:16]Read from MH i2c: E2 17 00 67 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 54 [05:18:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [05:18:16]wFMCommunicate OK [05:18:16]requested_item fd.num is exist - process it [05:18:16]SAM_PROTO_GetFieldsCounters [05:18:16]wFMCommunicate request_size=4 [05:18:16]MH_SAM_APDU [05:18:16]CAPDU: 80 13 00 00 [05:18:16]Write to MH i2c: E2 08 00 68 1D 80 13 00 00 00 00 00 00 01 [05:18:16]Write i2c OK [05:18:16]MH_I2C_Read... [05:18:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:18:16]Read from MH i2c: E2 [05:18:16]MH_I2C_Read... [05:18:16]Read from MH i2c: E2 62 00 [05:18:16]MH_I2C_Read... [05:18:16]Read from MH i2c: E2 62 00 68 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 B7 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 06 00 00 00 5E 04 04 00 06 00 00 00 57 04 04 00 07 00 00 00 19 04 04 00 00 00 00 00 90 00 61 [05:18:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 B7 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 06 00 00 00 5E 04 04 00 06 00 00 00 57 04 04 00 07 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:18:16]wFMCommunicate OK [05:18:16]SAM_PROTO_GetFieldsCounters done [05:18:16]requested_item shift.num is exist - process it [05:18:16]requested_item shift.opened is exist - process it [05:18:16]req_shift_opened [05:18:16]FM_GetShiftState [05:18:16]SAM_PROTO_GetShiftState [05:18:16]wFMCommunicate request_size=4 [05:18:16]MH_SAM_APDU [05:18:16]CAPDU: 80 13 01 00 [05:18:16]Write to MH i2c: E2 08 00 69 1D 80 13 01 00 00 00 00 00 03 [05:18:16]Write i2c OK [05:18:16]MH_I2C_Read... [05:18:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:18:16]Read from MH i2c: E2 [05:18:16]MH_I2C_Read... [05:18:16]Read from MH i2c: E2 0E 00 [05:18:16]MH_I2C_Read... [05:18:16]Read from MH i2c: E2 0E 00 69 1D 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 6A [05:18:16]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [05:18:16]wFMCommunicate OK [05:18:16]SAM_PROTO_GetShiftState done [05:18:16]FM_GetShiftState done [05:18:16]req_shift_opened done [05:18:16]requested_item shift.open_date is exist - process it [05:18:16]req_shift_open_date [05:18:16]req_shift_open_date done [05:18:16]produce_requested_data done [05:18:16]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67767,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [05:18:16]process_action_free print_text [05:18:16]json_value_free [05:18:16]json_value_free done [05:18:16]process_json_proto returns [05:18:16]Send response to host [05:18:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67767,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [05:18:16]free response buf [05:18:16]execute_script done [05:18:16]execute_script returns [05:18:16]free content buf [05:18:16]Sock 9.Close socket [05:18:16]Sock 9.Thread stoped [05:18:20]OFD Sender: No OFD packet to send [05:18:25]OFD Sender: No OFD packet to send [05:18:30]OFD Sender: No OFD packet to send [05:18:35]OFD Sender: No OFD packet to send [05:18:40]OFD Sender: No OFD packet to send [05:18:45]OFD Sender: No OFD packet to send [05:18:50]OFD Sender: No OFD packet to send [05:18:55]OFD Sender: No OFD packet to send [05:19:00]OFD Sender: No OFD packet to send [05:19:05]OFD Sender: No OFD packet to send [05:19:10]OFD Sender: No OFD packet to send [05:19:15]OFD Sender: No OFD packet to send [05:19:20]OFD Sender: No OFD packet to send [05:19:25]OFD Sender: No OFD packet to send [05:19:30]OFD Sender: No OFD packet to send [05:19:35]OFD Sender: No OFD packet to send [05:19:40]OFD Sender: No OFD packet to send [05:19:45]OFD Sender: No OFD packet to send [05:19:50]OFD Sender: No OFD packet to send [05:19:55]OFD Sender: No OFD packet to send [05:20:00]OFD Sender: No OFD packet to send [05:20:05]OFD Sender: No OFD packet to send [05:20:11]OFD Sender: No OFD packet to send [05:20:16]OFD Sender: No OFD packet to send [05:20:21]OFD Sender: No OFD packet to send [05:20:26]OFD Sender: No OFD packet to send [05:20:31]OFD Sender: No OFD packet to send [05:20:36]OFD Sender: No OFD packet to send [05:20:41]OFD Sender: No OFD packet to send [05:20:46]OFD Sender: No OFD packet to send [05:20:51]OFD Sender: No OFD packet to send [05:20:56]OFD Sender: No OFD packet to send [05:21:01]OFD Sender: No OFD packet to send [05:21:06]OFD Sender: No OFD packet to send [05:21:11]OFD Sender: No OFD packet to send [05:21:16]OFD Sender: No OFD packet to send [05:21:21]OFD Sender: No OFD packet to send [05:21:26]OFD Sender: No OFD packet to send [05:21:31]OFD Sender: No OFD packet to send [05:21:36]OFD Sender: No OFD packet to send [05:21:41]OFD Sender: No OFD packet to send [05:21:46]OFD Sender: No OFD packet to send [05:21:51]OFD Sender: No OFD packet to send [05:21:56]OFD Sender: No OFD packet to send [05:22:01]OFD Sender: No OFD packet to send [05:22:06]OFD Sender: No OFD packet to send [05:22:11]OFD Sender: No OFD packet to send [05:22:16]OFD Sender: No OFD packet to send [05:22:21]OFD Sender: No OFD packet to send [05:22:26]OFD Sender: No OFD packet to send [05:22:31]OFD Sender: No OFD packet to send [05:22:36]OFD Sender: No OFD packet to send [05:22:41]OFD Sender: No OFD packet to send [05:22:46]OFD Sender: No OFD packet to send [05:22:51]OFD Sender: No OFD packet to send [05:22:56]OFD Sender: No OFD packet to send [05:23:01]OFD Sender: No OFD packet to send [05:23:06]OFD Sender: No OFD packet to send [05:23:11]OFD Sender: No OFD packet to send [05:23:16]OFD Sender: No OFD packet to send [05:23:21]OFD Sender: No OFD packet to send [05:23:26]OFD Sender: No OFD packet to send [05:23:31]OFD Sender: No OFD packet to send [05:23:36]OFD Sender: No OFD packet to send [05:23:41]OFD Sender: No OFD packet to send [05:23:46]OFD Sender: No OFD packet to send [05:23:51]OFD Sender: No OFD packet to send [05:23:56]OFD Sender: No OFD packet to send [05:24:01]OFD Sender: No OFD packet to send [05:24:06]OFD Sender: No OFD packet to send [05:24:11]OFD Sender: No OFD packet to send [05:24:16]OFD Sender: No OFD packet to send [05:24:21]OFD Sender: No OFD packet to send [05:24:26]OFD Sender: No OFD packet to send [05:24:31]OFD Sender: No OFD packet to send [05:24:36]OFD Sender: No OFD packet to send [05:24:41]OFD Sender: No OFD packet to send [05:24:46]OFD Sender: No OFD packet to send [05:24:51]OFD Sender: No OFD packet to send [05:24:56]OFD Sender: No OFD packet to send [05:25:01]OFD Sender: No OFD packet to send [05:25:06]OFD Sender: No OFD packet to send [05:25:11]OFD Sender: No OFD packet to send [05:25:16]OFD Sender: No OFD packet to send [05:25:21]OFD Sender: No OFD packet to send [05:25:26]OFD Sender: No OFD packet to send [05:25:31]OFD Sender: No OFD packet to send [05:25:36]OFD Sender: No OFD packet to send [05:25:41]OFD Sender: No OFD packet to send [05:25:46]OFD Sender: No OFD packet to send [05:25:51]OFD Sender: No OFD packet to send [05:25:56]OFD Sender: No OFD packet to send [05:26:01]OFD Sender: No OFD packet to send [05:26:06]OFD Sender: No OFD packet to send [05:26:11]OFD Sender: No OFD packet to send [05:26:16]OFD Sender: No OFD packet to send [05:26:21]OFD Sender: No OFD packet to send [05:26:26]OFD Sender: No OFD packet to send [05:26:31]OFD Sender: No OFD packet to send [05:26:36]OFD Sender: No OFD packet to send [05:26:41]OFD Sender: No OFD packet to send [05:26:46]OFD Sender: No OFD packet to send [05:26:51]OFD Sender: No OFD packet to send [05:26:56]OFD Sender: No OFD packet to send [05:27:01]OFD Sender: No OFD packet to send [05:27:06]OFD Sender: No OFD packet to send [05:27:11]OFD Sender: No OFD packet to send [05:27:16]OFD Sender: No OFD packet to send [05:27:21]OFD Sender: No OFD packet to send [05:27:26]OFD Sender: No OFD packet to send [05:27:31]OFD Sender: No OFD packet to send [05:27:36]OFD Sender: No OFD packet to send [05:27:41]OFD Sender: No OFD packet to send [05:27:46]OFD Sender: No OFD packet to send [05:27:51]OFD Sender: No OFD packet to send [05:27:56]OFD Sender: No OFD packet to send [05:28:01]OFD Sender: No OFD packet to send [05:28:06]OFD Sender: No OFD packet to send [05:28:11]OFD Sender: No OFD packet to send [05:28:16]OFD Sender: No OFD packet to send [05:28:21]OFD Sender: No OFD packet to send [05:28:26]OFD Sender: No OFD packet to send [05:28:31]OFD Sender: No OFD packet to send [05:28:36]OFD Sender: No OFD packet to send [05:28:41]OFD Sender: No OFD packet to send [05:28:46]OFD Sender: No OFD packet to send [05:28:51]OFD Sender: No OFD packet to send [05:28:56]OFD Sender: No OFD packet to send [05:29:01]OFD Sender: No OFD packet to send [05:29:06]OFD Sender: No OFD packet to send [05:29:11]OFD Sender: No OFD packet to send [05:29:16]OFD Sender: No OFD packet to send [05:29:21]OFD Sender: No OFD packet to send [05:29:26]OFD Sender: No OFD packet to send [05:29:31]OFD Sender: No OFD packet to send [05:29:36]OFD Sender: No OFD packet to send [05:29:41]OFD Sender: No OFD packet to send [05:29:46]OFD Sender: No OFD packet to send [05:29:51]OFD Sender: No OFD packet to send [05:29:56]OFD Sender: No OFD packet to send [05:30:01]OFD Sender: No OFD packet to send [05:30:06]OFD Sender: No OFD packet to send [05:30:11]OFD Sender: No OFD packet to send [05:30:16]OFD Sender: No OFD packet to send [05:30:21]OFD Sender: No OFD packet to send [05:30:26]OFD Sender: No OFD packet to send [05:30:31]OFD Sender: No OFD packet to send [05:30:36]OFD Sender: No OFD packet to send [05:30:41]OFD Sender: No OFD packet to send [05:30:46]OFD Sender: No OFD packet to send [05:30:51]OFD Sender: No OFD packet to send [05:30:56]OFD Sender: No OFD packet to send [05:31:01]OFD Sender: No OFD packet to send [05:31:06]OFD Sender: No OFD packet to send [05:31:11]OFD Sender: No OFD packet to send [05:31:16]OFD Sender: No OFD packet to send [05:31:21]OFD Sender: No OFD packet to send [05:31:26]OFD Sender: No OFD packet to send [05:31:31]OFD Sender: No OFD packet to send [05:31:36]OFD Sender: No OFD packet to send [05:31:41]OFD Sender: No OFD packet to send [05:31:46]OFD Sender: No OFD packet to send [05:31:51]OFD Sender: No OFD packet to send [05:31:56]OFD Sender: No OFD packet to send [05:32:01]OFD Sender: No OFD packet to send [05:32:06]OFD Sender: No OFD packet to send [05:32:11]OFD Sender: No OFD packet to send [05:32:16]OFD Sender: No OFD packet to send [05:32:21]OFD Sender: No OFD packet to send [05:32:26]OFD Sender: No OFD packet to send [05:32:31]OFD Sender: No OFD packet to send [05:32:36]OFD Sender: No OFD packet to send [05:32:41]OFD Sender: No OFD packet to send [05:32:46]OFD Sender: No OFD packet to send [05:32:51]OFD Sender: No OFD packet to send [05:32:56]OFD Sender: No OFD packet to send [05:33:01]OFD Sender: No OFD packet to send [05:33:06]OFD Sender: No OFD packet to send [05:33:11]OFD Sender: No OFD packet to send [05:33:16]OFD Sender: No OFD packet to send [05:33:21]OFD Sender: No OFD packet to send [05:33:26]OFD Sender: No OFD packet to send [05:33:31]OFD Sender: No OFD packet to send [05:33:36]OFD Sender: No OFD packet to send [05:33:41]OFD Sender: No OFD packet to send [05:33:46]OFD Sender: No OFD packet to send [05:33:51]OFD Sender: No OFD packet to send [05:33:56]OFD Sender: No OFD packet to send [05:34:01]OFD Sender: No OFD packet to send [05:34:06]OFD Sender: No OFD packet to send [05:34:11]OFD Sender: No OFD packet to send [05:34:16]OFD Sender: No OFD packet to send [05:34:21]OFD Sender: No OFD packet to send [05:34:26]OFD Sender: No OFD packet to send [05:34:31]OFD Sender: No OFD packet to send [05:34:36]OFD Sender: No OFD packet to send [05:34:41]OFD Sender: No OFD packet to send [05:34:46]OFD Sender: No OFD packet to send [05:34:51]OFD Sender: No OFD packet to send [05:34:56]OFD Sender: No OFD packet to send [05:35:01]OFD Sender: No OFD packet to send [05:35:06]OFD Sender: No OFD packet to send [05:35:11]OFD Sender: No OFD packet to send [05:35:16]OFD Sender: No OFD packet to send [05:35:21]OFD Sender: No OFD packet to send [05:35:26]OFD Sender: No OFD packet to send [05:35:31]OFD Sender: No OFD packet to send [05:35:36]OFD Sender: No OFD packet to send [05:35:41]OFD Sender: No OFD packet to send [05:35:46]OFD Sender: No OFD packet to send [05:35:51]OFD Sender: No OFD packet to send [05:35:56]OFD Sender: No OFD packet to send [05:36:01]OFD Sender: No OFD packet to send [05:36:06]OFD Sender: No OFD packet to send [05:36:11]OFD Sender: No OFD packet to send [05:36:16]OFD Sender: No OFD packet to send [05:36:21]OFD Sender: No OFD packet to send [05:36:26]OFD Sender: No OFD packet to send [05:36:31]OFD Sender: No OFD packet to send [05:36:36]OFD Sender: No OFD packet to send [05:36:41]OFD Sender: No OFD packet to send [05:36:46]OFD Sender: No OFD packet to send [05:36:51]OFD Sender: No OFD packet to send [05:36:56]OFD Sender: No OFD packet to send [05:37:01]OFD Sender: No OFD packet to send [05:37:06]OFD Sender: No OFD packet to send [05:37:11]OFD Sender: No OFD packet to send [05:37:16]OFD Sender: No OFD packet to send [05:37:21]OFD Sender: No OFD packet to send [05:37:26]OFD Sender: No OFD packet to send [05:37:31]OFD Sender: No OFD packet to send [05:37:36]OFD Sender: No OFD packet to send [05:37:41]OFD Sender: No OFD packet to send [05:37:46]OFD Sender: No OFD packet to send [05:37:51]OFD Sender: No OFD packet to send [05:37:56]OFD Sender: No OFD packet to send [05:38:01]OFD Sender: No OFD packet to send [05:38:06]OFD Sender: No OFD packet to send [05:38:11]OFD Sender: No OFD packet to send [05:38:16]OFD Sender: No OFD packet to send [05:38:21]OFD Sender: No OFD packet to send [05:38:26]OFD Sender: No OFD packet to send [05:38:31]OFD Sender: No OFD packet to send [05:38:36]OFD Sender: No OFD packet to send [05:38:41]OFD Sender: No OFD packet to send [05:38:46]OFD Sender: No OFD packet to send [05:38:51]OFD Sender: No OFD packet to send [05:38:56]OFD Sender: No OFD packet to send [05:39:01]OFD Sender: No OFD packet to send [05:39:06]OFD Sender: No OFD packet to send [05:39:11]OFD Sender: No OFD packet to send [05:39:16]OFD Sender: No OFD packet to send [05:39:22]OFD Sender: No OFD packet to send [05:39:27]OFD Sender: No OFD packet to send [05:39:32]OFD Sender: No OFD packet to send [05:39:37]OFD Sender: No OFD packet to send [05:39:42]OFD Sender: No OFD packet to send [05:39:47]OFD Sender: No OFD packet to send [05:39:52]OFD Sender: No OFD packet to send [05:39:57]OFD Sender: No OFD packet to send [05:40:02]OFD Sender: No OFD packet to send [05:40:07]OFD Sender: No OFD packet to send [05:40:12]OFD Sender: No OFD packet to send [05:40:17]OFD Sender: No OFD packet to send [05:40:22]OFD Sender: No OFD packet to send [05:40:27]OFD Sender: No OFD packet to send [05:40:32]OFD Sender: No OFD packet to send [05:40:37]OFD Sender: No OFD packet to send [05:40:42]OFD Sender: No OFD packet to send [05:40:47]OFD Sender: No OFD packet to send [05:40:52]OFD Sender: No OFD packet to send [05:40:57]OFD Sender: No OFD packet to send [05:41:02]OFD Sender: No OFD packet to send [05:41:07]OFD Sender: No OFD packet to send [05:41:12]OFD Sender: No OFD packet to send [05:41:13]accept exits with 7 [05:41:13]New connection [05:41:13]New thread 3066752356 created [05:41:13]Thread 3066608996 joined [05:41:13]Waiting for new connection... [05:41:13] Sock 7.Parse request [05:41:13]Sock 7.Check first char [05:41:13]Sock 7.First char is OK [05:41:13]request: POST /json_proto HTTP/1.0 [05:41:13]Method: POST [05:41:13]URL: /json_proto [05:41:13]Method is POST - this is cgi request [05:41:13]url: /json_proto [05:41:13]query_string will be loaded in cgi processing [05:41:13]execute_cgi json_proto POST (null) [05:41:13]execute_cgi path=json_proto method=POST [05:41:13]POST find Content-Length [05:41:13]Host: 172.17.41.195:8080 [05:41:13]Content-Length: 816 [05:41:13]Content-Type: application/json [05:41:13] [05:41:13]POST finish read [05:41:13]Found Content-Length = 816 [05:41:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507936", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 13.390, "sum" : 1000.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.23 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:41:13]execute_script... [05:41:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507936", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 13.390, "sum" : 1000.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.23 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:41:13]POST & json_proto [05:41:13]process_json_proto [05:41:13]json parsed OK: [05:41:13]protocol is kg_v1.0 [05:41:13]action value=close_receipt [05:41:13]process_action close_receipt [05:41:13]cmd_close_receipt [05:41:13]MH_GetDate [05:41:13]Write to MH i2c: F0 00 00 6A 1D 76 [05:41:13]Write i2c OK [05:41:13]MH_I2C_Read... [05:41:13]Read from MH i2c: F0 [05:41:13]MH_I2C_Read... [05:41:13]Read from MH i2c: F0 09 00 [05:41:13]MH_I2C_Read... [05:41:13]Read from MH i2c: F0 09 00 6A 1D 00 7D 3F 48 66 FC 21 6F 64 D9 [05:41:13]GetLastDocTimeStamp 1716006733 [05:41:13]current date 1716010877 [05:41:13]FM_GetShiftState [05:41:13]SAM_PROTO_GetShiftState [05:41:13]wFMCommunicate request_size=4 [05:41:13]MH_SAM_APDU [05:41:13]CAPDU: 80 13 01 00 [05:41:13]Write to MH i2c: E2 08 00 6B 1D 80 13 01 00 00 00 00 00 05 [05:41:13]Write i2c OK [05:41:13]MH_I2C_Read... [05:41:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:41:13]Read from MH i2c: E2 [05:41:13]MH_I2C_Read... [05:41:13]Read from MH i2c: E2 0E 00 [05:41:13]MH_I2C_Read... [05:41:13]Read from MH i2c: E2 0E 00 6B 1D 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 6C [05:41:13]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [05:41:13]wFMCommunicate OK [05:41:13]SAM_PROTO_GetShiftState done [05:41:13]FM_GetShiftState done [05:41:13]opened in 1715991483 [05:41:13]opened+sec_in_day 1716077883 [05:41:13]quantity*price = 100023 [05:41:13]sum+1 = 100024 [05:41:13]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.23 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.23 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 7 18.05.2024 05:41 Смена: 359 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871829 ФД: 67768 ФПД: 247575832885718 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T054117&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67768&fm=247575832885718&tin=02508201610067®Number=0000000000091845&sum=100023 [05:41:14]StoreToDocumentArchive [05:41:14]shift 359 fd 67768 [05:41:14]save to /storage/0359/doc_00067768 [05:41:14]save last doc name /storage/0359/doc_00067768 to /storage/kkm_last_doc_name [05:41:14]save OK [05:41:14]Clear old archive folders... [05:41:14]ProcessDocumentItem done err = 0, tmpTLVsize=248 [05:41:14]tlvbuf is B6E77750 [05:41:14]SAM_PROTO_ClearQueue [05:41:14]wFMCommunicate request_size=4 [05:41:14]MH_SAM_APDU [05:41:14]CAPDU: 80 09 00 00 [05:41:14]Write to MH i2c: E2 08 00 78 1D 80 09 00 00 00 00 00 00 07 [05:41:14]Write i2c OK [05:41:14]MH_I2C_Read... [05:41:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:41:14]Read from MH i2c: E2 [05:41:14]MH_I2C_Read... [05:41:14]Read from MH i2c: E2 03 00 [05:41:14]MH_I2C_Read... [05:41:14]Read from MH i2c: E2 03 00 78 1D 00 90 00 09 [05:41:14]RAPDU: 90 00 [05:41:14]wFMCommunicate OK [05:41:14]SAM_PROTO_ClearQueue done [05:41:14]KKMCreateOFDPacket [05:41:14]OFDProtocolAddRootSTLVToBuf [05:41:14]FM_MakeSignedData [05:41:14]FM_MakeSignedData [05:41:14]SAM_PROTO_SignData [05:41:14]wFMCommunicate request_size=4 [05:41:14]MH_SAM_APDU [05:41:14]CAPDU: 80 0D 01 02 [05:41:14]Write to MH i2c: E2 08 00 79 1D 80 0D 01 02 00 00 00 00 0F [05:41:14]Write i2c OK [05:41:14]MH_I2C_Read... [05:41:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:41:14]Read from MH i2c: E2 [05:41:14]MH_I2C_Read... [05:41:14]Read from MH i2c: E2 03 00 [05:41:14]MH_I2C_Read... [05:41:14]Read from MH i2c: E2 03 00 79 1D 00 90 00 0A [05:41:14]RAPDU: 90 00 [05:41:14]wFMCommunicate OK [05:41:14]wFMCommunicate request_size=255 [05:41:14]MH_SAM_APDU [05:41:14]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4E 34 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 B7 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B7 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B7 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 7D 3F 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 B8 08 01 00 35 04 06 00 E1 2B 3D 92 [05:41:14]Write to MH i2c: E2 02 01 7A 1D 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4E 34 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 B7 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B7 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B7 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 7D 3F 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 B8 08 01 00 35 04 06 00 E1 2B 3D 92 00 00 8C [05:41:15]Write i2c OK [05:41:15]MH_I2C_Read... [05:41:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:41:15]Read from MH i2c: E2 [05:41:15]MH_I2C_Read... [05:41:15]Read from MH i2c: E2 03 00 [05:41:15]MH_I2C_Read... [05:41:15]Read from MH i2c: E2 03 00 7A 1D 00 90 00 0B [05:41:15]RAPDU: 90 00 [05:41:15]wFMCommunicate OK [05:41:15]wFMCommunicate request_size=7 [05:41:15]MH_SAM_APDU [05:41:15]CAPDU: 80 0D 02 02 02 F9 D6 [05:41:15]Write to MH i2c: E2 0A 00 7B 1D 80 0D 02 02 02 00 F9 D6 00 00 E5 [05:41:15]Write i2c OK [05:41:15]MH_I2C_Read... [05:41:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:41:15]Read from MH i2c: E2 [05:41:15]MH_I2C_Read... [05:41:15]Read from MH i2c: E2 03 00 [05:41:15]MH_I2C_Read... [05:41:15]Read from MH i2c: E2 03 00 7B 1D 00 90 00 0C [05:41:15]RAPDU: 90 00 [05:41:15]wFMCommunicate OK [05:41:15]wFMCommunicate request_size=4 [05:41:15]MH_SAM_APDU [05:41:15]CAPDU: 80 0D 03 02 [05:41:15]Write to MH i2c: E2 08 00 7C 1D 80 0D 03 02 00 00 00 00 14 [05:41:15]Write i2c OK [05:41:15]MH_I2C_Read... [05:41:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:41:15]Read from MH i2c: E2 [05:41:15]MH_I2C_Read... [05:41:15]Read from MH i2c: E2 0B 00 [05:41:15]MH_I2C_Read... [05:41:15]Read from MH i2c: E2 0B 00 7C 1D 00 D6 55 DE 40 0E 54 87 FF 90 00 46 [05:41:15]RAPDU: D6 55 DE 40 0E 54 87 FF 90 00 [05:41:15]wFMCommunicate OK [05:41:15]SAM_PROTO_SignData done [05:41:15]FM_MakeSignedData done [05:41:15]CreateOFDProtocolMessage [05:41:15]wFMCommunicate request_size=4 [05:41:15]MH_SAM_APDU [05:41:15]CAPDU: 80 11 00 00 [05:41:15]Write to MH i2c: E2 08 00 7D 1D 80 11 00 00 00 00 00 00 14 [05:41:15]Write i2c OK [05:41:15]MH_I2C_Read... [05:41:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:41:15]Read from MH i2c: E2 [05:41:15]MH_I2C_Read... [05:41:15]Read from MH i2c: E2 17 00 [05:41:15]MH_I2C_Read... [05:41:15]Read from MH i2c: E2 17 00 7D 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 6A [05:41:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [05:41:15]wFMCommunicate OK [05:41:15]CreateOFDProtocolMessage done [05:41:15]OFDSenderStorePacket 67768 [05:41:15]StoreOFDPacket docnum=67768 [05:41:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 43 A9 04 01 83 1B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4E 34 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 B7 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B7 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B7 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 7D 3F 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 B8 08 01 00 35 04 06 00 E1 2B 3D 92 F9 D6 D6 55 DE 40 0E 54 87 FF [05:41:15]CheckFolder [05:41:15]dirname=/storage/ofd_packets [05:41:15]CheckFolder done [05:41:15]ProducePacketName [05:41:15]name=ofd_packets/00067768 [05:41:15]NVStorageSaveData ofd_packets/00067768 [05:41:15]File name is /storage/ofd_packets/00067768 [05:41:15]Write 298 bytes [05:41:15]NVStorageSaveData done [05:41:15]OFDSenderStorePacket done [05:41:15]KKMCreateOFDPacket done [05:41:15]NVStorageSaveData kkm_last_timestamp [05:41:15]File name is /storage/kkm_last_timestamp [05:41:15]Write 4 bytes [05:41:15]NVStorageSaveData done [05:41:15]ExternCall_PrintAddStr [05:41:15]wPrintStart [05:41:15]Write to MH i2c: 01 00 00 7E 1D 9B [05:41:15]Write i2c OK [05:41:15]MH_I2C_Read... [05:41:15]Read from MH i2c: 01 [05:41:15]MH_I2C_Read... [05:41:15]Read from MH i2c: 01 07 00 [05:41:15]MH_I2C_Read... [05:41:15]Read from MH i2c: 01 07 00 7E 1D 00 00 00 00 00 FF 0F B0 [05:41:15]RasterBufferAndPrint [05:41:15]line Счет N : (1)507936 [05:41:15]line ИНН: 02508201610067 [05:41:15]line Контрольно-Кассовый Чек [05:41:15]line ПРОДАЖА [05:41:15]line ТРК (МРК, ГНК) : 11 [05:41:15]line Товар: 2710194210 [05:41:15]line ДТ-К-5 [05:41:15]line 13.390 * 74.70 [05:41:15]line = 1000.23 [05:41:15]line НДС 12% НСП 1% [05:41:15]line > о реализуемом товаре [05:41:15]line ИТОГО: 1000.23 [05:41:15]line НСП 1% : 8.85 [05:41:15]line НДС 12% : 106.22 [05:41:15]line Наличными: 0.00 [05:41:15]line Безнал.: 1000.23 [05:41:15]line Место: АЗС № 91 "Партнер Нефть" [05:41:15]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [05:41:15]line СНО: Общий режим [05:41:15]line Чек 7 18.05.2024 05:41 [05:41:15]line Смена: 359 ФФД: 1.0 [05:41:15]line ЗНМ: 0300000119 [05:41:15]line РНМ: 0000000000091845 [05:41:15]line Версия ККМ: 001 [05:41:15]line Платежная система: Бакай Банк [05:41:15]line ФМ: 0000000000871829 [05:41:15]line ФД: 67768 [05:41:15]line ФПД: 247575832885718 [05:41:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T054117&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67768&fm=247575832885718&tin=02508201610067®Number=0000000000091845&sum=100023 [05:41:15]OFD Sender: Processing packet 67768 [packets to send 35, broken 34] [05:41:15]ProducePacketName [05:41:15]name=ofd_packets/00067768 [05:41:15]OFD Sender: To server: pG, [05:41:15]CommunicateWithHost lk.salyk.kg:30040 [05:41:15]ConnectInit lk.salyk.kg [05:41:15]written 0, free lines is 4095 [05:41:15]Connected sock=10 [05:41:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 43 A9 04 01 83 1B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4E 34 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 B7 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B7 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B7 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 7D 3F 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 B8 08 01 00 35 04 06 00 E1 2B 3D 92 F9 D6 D6 55 DE 40 0E 54 87 FF [05:41:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 89 88 47 00 33 DD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 B8 08 01 00 F4 03 04 00 53 E7 47 66 B6 04 01 00 00 34 75 50 C2 9F B8 11 18 [05:41:16]CommunicateWithHost err = 0 [05:41:16]CheckOFDResponse [05:41:16]1017 (14) - 77093643461234 [05:41:16]1041 (16) - 0000000000871829 [05:41:16]1040 (4) - 67768 [05:41:16]1012 (4) - 17.05.2024 23:25 [05:41:16]1206 (1) - 0 [05:41:16]OFD Sender: Remove packet 67768 [05:41:16]ProducePacketName [05:41:16]name=ofd_packets/00067768 [05:41:16]NVStorageDeleteData [05:41:16]Write to MH i2c: 01 00 00 A7 1D C4 [05:41:16]Write i2c OK [05:41:16]MH_I2C_Read... [05:41:16]Read from MH i2c: 01 [05:41:16]MH_I2C_Read... [05:41:16]Read from MH i2c: 01 07 00 [05:41:16]MH_I2C_Read... [05:41:16]Read from MH i2c: 01 07 00 A7 1D 00 00 00 00 00 D8 0C AF [05:41:16]RasterBufferAndPrint [05:41:16]line [05:41:16]line [05:41:16]line [05:41:16]line [05:41:16]line [05:41:16]written 0, free lines is 3296 [05:41:16]MH_Cut [05:41:16]Write to MH i2c: D1 01 00 AE 1D 01 9D [05:41:16]Write i2c OK [05:41:16]MH_I2C_Read... [05:41:16]Read from MH i2c: D1 [05:41:16]MH_I2C_Read... [05:41:16]Read from MH i2c: D1 01 00 [05:41:16]MH_I2C_Read... [05:41:16]Read from MH i2c: D1 01 00 AE 1D 00 9C [05:41:16]Write to MH i2c: 01 00 00 AF 1D CC [05:41:16]Write i2c OK [05:41:16]MH_I2C_Read... [05:41:16]OFD Sender: No OFD packet to send [05:41:17]*** Cut start [05:41:17]*** Purtial cut [05:41:17]*** CUTSNS_PIN = 0 [05:41:17]*** Stage 1: CUTSNS_PIN = 1 [05:41:19]Read from MH i2c: 01 [05:41:19]MH_I2C_Read... [05:41:19]*** Stop cut motor [05:41:19]*** Cut end [05:41:19]Read from MH i2c: 01 07 00 [05:41:19]MH_I2C_Read... [05:41:19]Read from MH i2c: 01 07 00 AF 1D 00 00 00 00 00 FF 0F E1 [05:41:19]process_action close_receipt done [05:41:19]requested_data is exist [05:41:19]produce_requested_data [05:41:19]requested_item fm.sn is exist - process it [05:41:19]wFMCommunicate request_size=4 [05:41:19]MH_SAM_APDU [05:41:19]CAPDU: 80 11 00 00 [05:41:19]Write to MH i2c: E2 08 00 B0 1D 80 11 00 00 00 00 00 00 47 [05:41:19]Write i2c OK [05:41:19]MH_I2C_Read... [05:41:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:41:19]Read from MH i2c: E2 [05:41:19]MH_I2C_Read... [05:41:19]Read from MH i2c: E2 17 00 [05:41:19]MH_I2C_Read... [05:41:19]Read from MH i2c: E2 17 00 B0 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 9D [05:41:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [05:41:19]wFMCommunicate OK [05:41:19]requested_item fd.num is exist - process it [05:41:19]SAM_PROTO_GetFieldsCounters [05:41:19]wFMCommunicate request_size=4 [05:41:19]MH_SAM_APDU [05:41:19]CAPDU: 80 13 00 00 [05:41:19]Write to MH i2c: E2 08 00 B1 1D 80 13 00 00 00 00 00 00 4A [05:41:19]Write i2c OK [05:41:19]MH_I2C_Read... [05:41:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:41:19]Read from MH i2c: E2 [05:41:19]MH_I2C_Read... [05:41:19]Read from MH i2c: E2 62 00 [05:41:19]MH_I2C_Read... [05:41:19]Read from MH i2c: E2 62 00 B1 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 B8 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 07 00 00 00 5E 04 04 00 07 00 00 00 57 04 04 00 08 00 00 00 19 04 04 00 00 00 00 00 90 00 AE [05:41:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 B8 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 07 00 00 00 5E 04 04 00 07 00 00 00 57 04 04 00 08 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:41:19]wFMCommunicate OK [05:41:19]SAM_PROTO_GetFieldsCounters done [05:41:19]requested_item shift.num is exist - process it [05:41:19]requested_item shift.opened is exist - process it [05:41:19]req_shift_opened [05:41:19]FM_GetShiftState [05:41:19]SAM_PROTO_GetShiftState [05:41:19]wFMCommunicate request_size=4 [05:41:19]MH_SAM_APDU [05:41:19]CAPDU: 80 13 01 00 [05:41:19]Write to MH i2c: E2 08 00 B2 1D 80 13 01 00 00 00 00 00 4C [05:41:19]Write i2c OK [05:41:19]MH_I2C_Read... [05:41:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:41:19]Read from MH i2c: E2 [05:41:19]MH_I2C_Read... [05:41:19]Read from MH i2c: E2 0E 00 [05:41:19]MH_I2C_Read... [05:41:19]Read from MH i2c: E2 0E 00 B2 1D 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 B3 [05:41:19]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [05:41:19]wFMCommunicate OK [05:41:19]SAM_PROTO_GetShiftState done [05:41:19]FM_GetShiftState done [05:41:19]req_shift_opened done [05:41:19]requested_item shift.open_date is exist - process it [05:41:19]req_shift_open_date [05:41:19]req_shift_open_date done [05:41:19]produce_requested_data done [05:41:19]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67768,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [05:41:19]process_action_free close_receipt [05:41:19]json_value_free [05:41:19]json_value_free done [05:41:19]process_json_proto returns [05:41:19]Send response to host [05:41:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67768,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [05:41:19]free response buf [05:41:19]execute_script done [05:41:19]execute_script returns [05:41:19]free content buf [05:41:19]Sock 7.Close socket [05:41:19]Sock 7.Thread stoped [05:41:21]OFD Sender: No OFD packet to send [05:41:26]OFD Sender: No OFD packet to send [05:41:31]OFD Sender: No OFD packet to send [05:41:36]OFD Sender: No OFD packet to send [05:41:41]OFD Sender: No OFD packet to send [05:41:46]OFD Sender: No OFD packet to send [05:41:51]OFD Sender: No OFD packet to send [05:41:56]OFD Sender: No OFD packet to send [05:42:01]OFD Sender: No OFD packet to send [05:42:06]OFD Sender: No OFD packet to send [05:42:11]OFD Sender: No OFD packet to send [05:42:16]OFD Sender: No OFD packet to send [05:42:21]OFD Sender: No OFD packet to send [05:42:26]OFD Sender: No OFD packet to send [05:42:31]OFD Sender: No OFD packet to send [05:42:36]OFD Sender: No OFD packet to send [05:42:41]OFD Sender: No OFD packet to send [05:42:46]OFD Sender: No OFD packet to send [05:42:51]OFD Sender: No OFD packet to send [05:42:56]OFD Sender: No OFD packet to send [05:43:01]OFD Sender: No OFD packet to send [05:43:06]OFD Sender: No OFD packet to send [05:43:11]OFD Sender: No OFD packet to send [05:43:16]OFD Sender: No OFD packet to send [05:43:21]OFD Sender: No OFD packet to send [05:43:26]OFD Sender: No OFD packet to send [05:43:31]OFD Sender: No OFD packet to send [05:43:36]OFD Sender: No OFD packet to send [05:43:41]OFD Sender: No OFD packet to send [05:43:46]OFD Sender: No OFD packet to send [05:43:51]OFD Sender: No OFD packet to send [05:43:56]OFD Sender: No OFD packet to send [05:44:01]OFD Sender: No OFD packet to send [05:44:06]OFD Sender: No OFD packet to send [05:44:11]OFD Sender: No OFD packet to send [05:44:16]OFD Sender: No OFD packet to send [05:44:21]OFD Sender: No OFD packet to send [05:44:26]OFD Sender: No OFD packet to send [05:44:31]OFD Sender: No OFD packet to send [05:44:36]OFD Sender: No OFD packet to send [05:44:41]OFD Sender: No OFD packet to send [05:44:46]OFD Sender: No OFD packet to send [05:44:51]OFD Sender: No OFD packet to send [05:44:56]OFD Sender: No OFD packet to send [05:45:01]OFD Sender: No OFD packet to send [05:45:06]OFD Sender: No OFD packet to send [05:45:11]OFD Sender: No OFD packet to send [05:45:16]OFD Sender: No OFD packet to send [05:45:21]OFD Sender: No OFD packet to send [05:45:26]OFD Sender: No OFD packet to send [05:45:31]OFD Sender: No OFD packet to send [05:45:36]OFD Sender: No OFD packet to send [05:45:41]OFD Sender: No OFD packet to send [05:45:46]OFD Sender: No OFD packet to send [05:45:51]OFD Sender: No OFD packet to send [05:45:56]OFD Sender: No OFD packet to send [05:46:01]OFD Sender: No OFD packet to send [05:46:06]OFD Sender: No OFD packet to send [05:46:11]OFD Sender: No OFD packet to send [05:46:16]OFD Sender: No OFD packet to send [05:46:21]OFD Sender: No OFD packet to send [05:46:26]OFD Sender: No OFD packet to send [05:46:31]OFD Sender: No OFD packet to send [05:46:36]OFD Sender: No OFD packet to send [05:46:41]OFD Sender: No OFD packet to send [05:46:46]OFD Sender: No OFD packet to send [05:46:51]OFD Sender: No OFD packet to send [05:46:56]OFD Sender: No OFD packet to send [05:47:01]OFD Sender: No OFD packet to send [05:47:06]OFD Sender: No OFD packet to send [05:47:11]OFD Sender: No OFD packet to send [05:47:16]OFD Sender: No OFD packet to send [05:47:21]OFD Sender: No OFD packet to send [05:47:26]OFD Sender: No OFD packet to send [05:47:31]OFD Sender: No OFD packet to send [05:47:36]OFD Sender: No OFD packet to send [05:47:41]OFD Sender: No OFD packet to send [05:47:46]OFD Sender: No OFD packet to send [05:47:51]OFD Sender: No OFD packet to send [05:47:56]OFD Sender: No OFD packet to send [05:48:01]OFD Sender: No OFD packet to send [05:48:06]OFD Sender: No OFD packet to send [05:48:11]OFD Sender: No OFD packet to send [05:48:16]OFD Sender: No OFD packet to send [05:48:21]OFD Sender: No OFD packet to send [05:48:26]OFD Sender: No OFD packet to send [05:48:31]OFD Sender: No OFD packet to send [05:48:36]OFD Sender: No OFD packet to send [05:48:41]OFD Sender: No OFD packet to send [05:48:46]OFD Sender: No OFD packet to send [05:48:51]OFD Sender: No OFD packet to send [05:48:56]OFD Sender: No OFD packet to send [05:49:01]OFD Sender: No OFD packet to send [05:49:06]OFD Sender: No OFD packet to send [05:49:11]OFD Sender: No OFD packet to send [05:49:16]OFD Sender: No OFD packet to send [05:49:21]OFD Sender: No OFD packet to send [05:49:26]OFD Sender: No OFD packet to send [05:49:31]OFD Sender: No OFD packet to send [05:49:37]OFD Sender: No OFD packet to send [05:49:42]OFD Sender: No OFD packet to send [05:49:47]OFD Sender: No OFD packet to send [05:49:52]OFD Sender: No OFD packet to send [05:49:57]OFD Sender: No OFD packet to send [05:50:02]OFD Sender: No OFD packet to send [05:50:07]OFD Sender: No OFD packet to send [05:50:12]OFD Sender: No OFD packet to send [05:50:17]OFD Sender: No OFD packet to send [05:50:22]OFD Sender: No OFD packet to send [05:50:27]OFD Sender: No OFD packet to send [05:50:32]OFD Sender: No OFD packet to send [05:50:37]OFD Sender: No OFD packet to send [05:50:42]OFD Sender: No OFD packet to send [05:50:47]OFD Sender: No OFD packet to send [05:50:52]OFD Sender: No OFD packet to send [05:50:57]OFD Sender: No OFD packet to send [05:51:02]OFD Sender: No OFD packet to send [05:51:07]OFD Sender: No OFD packet to send [05:51:12]OFD Sender: No OFD packet to send [05:51:17]OFD Sender: No OFD packet to send [05:51:22]OFD Sender: No OFD packet to send [05:51:27]OFD Sender: No OFD packet to send [05:51:32]OFD Sender: No OFD packet to send [05:51:37]OFD Sender: No OFD packet to send [05:51:42]OFD Sender: No OFD packet to send [05:51:47]OFD Sender: No OFD packet to send [05:51:52]OFD Sender: No OFD packet to send [05:51:57]OFD Sender: No OFD packet to send [05:52:02]OFD Sender: No OFD packet to send [05:52:07]OFD Sender: No OFD packet to send [05:52:12]OFD Sender: No OFD packet to send [05:52:17]OFD Sender: No OFD packet to send [05:52:22]OFD Sender: No OFD packet to send [05:52:27]OFD Sender: No OFD packet to send [05:52:32]OFD Sender: No OFD packet to send [05:52:37]OFD Sender: No OFD packet to send [05:52:42]OFD Sender: No OFD packet to send [05:52:47]OFD Sender: No OFD packet to send [05:52:52]OFD Sender: No OFD packet to send [05:52:57]OFD Sender: No OFD packet to send [05:53:02]OFD Sender: No OFD packet to send [05:53:07]OFD Sender: No OFD packet to send [05:53:12]OFD Sender: No OFD packet to send [05:53:17]OFD Sender: No OFD packet to send [05:53:22]OFD Sender: No OFD packet to send [05:53:27]OFD Sender: No OFD packet to send [05:53:32]OFD Sender: No OFD packet to send [05:53:37]OFD Sender: No OFD packet to send [05:53:42]OFD Sender: No OFD packet to send [05:53:47]OFD Sender: No OFD packet to send [05:53:52]OFD Sender: No OFD packet to send [05:53:57]OFD Sender: No OFD packet to send [05:54:02]OFD Sender: No OFD packet to send [05:54:07]OFD Sender: No OFD packet to send [05:54:12]OFD Sender: No OFD packet to send [05:54:17]OFD Sender: No OFD packet to send [05:54:22]OFD Sender: No OFD packet to send [05:54:27]OFD Sender: No OFD packet to send [05:54:32]OFD Sender: No OFD packet to send [05:54:37]OFD Sender: No OFD packet to send [05:54:42]OFD Sender: No OFD packet to send [05:54:47]OFD Sender: No OFD packet to send [05:54:52]OFD Sender: No OFD packet to send [05:54:57]OFD Sender: No OFD packet to send [05:55:02]OFD Sender: No OFD packet to send [05:55:07]OFD Sender: No OFD packet to send [05:55:12]OFD Sender: No OFD packet to send [05:55:17]OFD Sender: No OFD packet to send [05:55:22]OFD Sender: No OFD packet to send [05:55:27]OFD Sender: No OFD packet to send [05:55:32]OFD Sender: No OFD packet to send [05:55:37]OFD Sender: No OFD packet to send [05:55:42]OFD Sender: No OFD packet to send [05:55:47]OFD Sender: No OFD packet to send [05:55:52]OFD Sender: No OFD packet to send [05:55:57]OFD Sender: No OFD packet to send [05:56:02]OFD Sender: No OFD packet to send [05:56:07]OFD Sender: No OFD packet to send [05:56:12]OFD Sender: No OFD packet to send [05:56:17]OFD Sender: No OFD packet to send [05:56:22]OFD Sender: No OFD packet to send [05:56:27]OFD Sender: No OFD packet to send [05:56:32]OFD Sender: No OFD packet to send [05:56:37]OFD Sender: No OFD packet to send [05:56:42]OFD Sender: No OFD packet to send [05:56:47]OFD Sender: No OFD packet to send [05:56:52]OFD Sender: No OFD packet to send [05:56:57]OFD Sender: No OFD packet to send [05:57:02]OFD Sender: No OFD packet to send [05:57:07]OFD Sender: No OFD packet to send [05:57:12]OFD Sender: No OFD packet to send [05:57:17]OFD Sender: No OFD packet to send [05:57:22]OFD Sender: No OFD packet to send [05:57:27]OFD Sender: No OFD packet to send [05:57:32]OFD Sender: No OFD packet to send [05:57:37]OFD Sender: No OFD packet to send [05:57:42]OFD Sender: No OFD packet to send [05:57:47]OFD Sender: No OFD packet to send [05:57:52]OFD Sender: No OFD packet to send [05:57:57]OFD Sender: No OFD packet to send [05:58:02]OFD Sender: No OFD packet to send [05:58:07]OFD Sender: No OFD packet to send [05:58:12]OFD Sender: No OFD packet to send [05:58:17]OFD Sender: No OFD packet to send [05:58:22]OFD Sender: No OFD packet to send [05:58:27]OFD Sender: No OFD packet to send [05:58:32]OFD Sender: No OFD packet to send [05:58:37]OFD Sender: No OFD packet to send [05:58:42]OFD Sender: No OFD packet to send [05:58:47]OFD Sender: No OFD packet to send [05:58:52]OFD Sender: No OFD packet to send [05:58:57]OFD Sender: No OFD packet to send [05:59:02]OFD Sender: No OFD packet to send [05:59:07]OFD Sender: No OFD packet to send [05:59:12]OFD Sender: No OFD packet to send [05:59:17]OFD Sender: No OFD packet to send [05:59:22]OFD Sender: No OFD packet to send [05:59:27]OFD Sender: No OFD packet to send [05:59:32]OFD Sender: No OFD packet to send [05:59:37]OFD Sender: No OFD packet to send [05:59:42]OFD Sender: No OFD packet to send [05:59:47]OFD Sender: No OFD packet to send [05:59:52]OFD Sender: No OFD packet to send [05:59:57]OFD Sender: No OFD packet to send [06:00:02]OFD Sender: No OFD packet to send [06:00:07]OFD Sender: No OFD packet to send [06:00:12]OFD Sender: No OFD packet to send [06:00:17]OFD Sender: No OFD packet to send [06:00:22]OFD Sender: No OFD packet to send [06:00:27]OFD Sender: No OFD packet to send [06:00:32]OFD Sender: No OFD packet to send [06:00:37]OFD Sender: No OFD packet to send [06:00:42]OFD Sender: No OFD packet to send [06:00:47]OFD Sender: No OFD packet to send [06:00:52]OFD Sender: No OFD packet to send [06:00:57]OFD Sender: No OFD packet to send [06:01:02]OFD Sender: No OFD packet to send [06:01:07]OFD Sender: No OFD packet to send [06:01:12]OFD Sender: No OFD packet to send [06:01:15]accept exits with 9 [06:01:15]New connection [06:01:15]New thread 3066608996 created [06:01:15]Thread 3066752356 joined [06:01:15]Waiting for new connection... [06:01:15] Sock 9.Parse request [06:01:15]Sock 9.Check first char [06:01:15]Sock 9.First char is OK [06:01:15]request: POST /json_proto HTTP/1.0 [06:01:15]Method: POST [06:01:15]URL: /json_proto [06:01:15]Method is POST - this is cgi request [06:01:15]url: /json_proto [06:01:15]query_string will be loaded in cgi processing [06:01:15]execute_cgi json_proto POST (null) [06:01:15]execute_cgi path=json_proto method=POST [06:01:15]POST find Content-Length [06:01:15]Host: 172.17.41.195:8080 [06:01:15]Content-Length: 671 [06:01:15]Content-Type: application/json [06:01:15] [06:01:15]POST finish read [06:01:15]Found Content-Length = 671 [06:01:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507937", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.80, "quantity" : 11.800, "sum" : 800.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:01:15]execute_script... [06:01:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507937", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.80, "quantity" : 11.800, "sum" : 800.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:01:15]POST & json_proto [06:01:15]process_json_proto [06:01:15]json parsed OK: [06:01:15]protocol is kg_v1.0 [06:01:15]action value=close_receipt [06:01:15]process_action close_receipt [06:01:15]cmd_close_receipt [06:01:15]MH_GetDate [06:01:15]Write to MH i2c: F0 00 00 B3 1D BF [06:01:15]Write i2c OK [06:01:15]MH_I2C_Read... [06:01:15]Read from MH i2c: F0 [06:01:15]MH_I2C_Read... [06:01:15]Read from MH i2c: F0 09 00 [06:01:15]MH_I2C_Read... [06:01:15]Read from MH i2c: F0 09 00 B3 1D 00 2F 44 48 66 FC 21 6F 64 D9 [06:01:15]GetLastDocTimeStamp 1716010877 [06:01:15]current date 1716012079 [06:01:15]FM_GetShiftState [06:01:15]SAM_PROTO_GetShiftState [06:01:15]wFMCommunicate request_size=4 [06:01:15]MH_SAM_APDU [06:01:15]CAPDU: 80 13 01 00 [06:01:15]Write to MH i2c: E2 08 00 B4 1D 80 13 01 00 00 00 00 00 4E [06:01:15]Write i2c OK [06:01:15]MH_I2C_Read... [06:01:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:01:15]Read from MH i2c: E2 [06:01:15]MH_I2C_Read... [06:01:15]Read from MH i2c: E2 0E 00 [06:01:15]MH_I2C_Read... [06:01:15]Read from MH i2c: E2 0E 00 B4 1D 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 B5 [06:01:15]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [06:01:15]wFMCommunicate OK [06:01:15]SAM_PROTO_GetShiftState done [06:01:15]FM_GetShiftState done [06:01:15]opened in 1715991483 [06:01:15]opened+sec_in_day 1716077883 [06:01:15]quantity*price = 80004 [06:01:15]sum+1 = 80005 [06:01:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.04 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.96 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 8 18.05.2024 06:01 Смена: 359 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67769 ФПД: 42668759780999 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T060119&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67769&fm=42668759780999&tin=02508201610067®Number=0000000000091845&sum=80000 [06:01:16]StoreToDocumentArchive [06:01:16]shift 359 fd 67769 [06:01:16]save to /storage/0359/doc_00067769 [06:01:16]save last doc name /storage/0359/doc_00067769 to /storage/kkm_last_doc_name [06:01:16]save OK [06:01:16]Clear old archive folders... [06:01:16]ProcessDocumentItem done err = 0, tmpTLVsize=252 [06:01:16]tlvbuf is 01B3A8B0 [06:01:16]SAM_PROTO_ClearQueue [06:01:16]wFMCommunicate request_size=4 [06:01:16]MH_SAM_APDU [06:01:16]CAPDU: 80 09 00 00 [06:01:16]Write to MH i2c: E2 08 00 C1 1D 80 09 00 00 00 00 00 00 50 [06:01:16]Write i2c OK [06:01:16]MH_I2C_Read... [06:01:16]Read from MH i2c: E2 [06:01:16]MH_I2C_Read... [06:01:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:01:16]Read from MH i2c: E2 03 00 [06:01:16]MH_I2C_Read... [06:01:16]Read from MH i2c: E2 03 00 C1 1D 00 90 00 52 [06:01:16]RAPDU: 90 00 [06:01:16]wFMCommunicate OK [06:01:16]SAM_PROTO_ClearQueue done [06:01:16]KKMCreateOFDPacket [06:01:16]OFDProtocolAddRootSTLVToBuf [06:01:16]FM_MakeSignedData [06:01:16]FM_MakeSignedData [06:01:16]SAM_PROTO_SignData [06:01:16]wFMCommunicate request_size=4 [06:01:16]MH_SAM_APDU [06:01:16]CAPDU: 80 0D 01 02 [06:01:16]Write to MH i2c: E2 08 00 C2 1D 80 0D 01 02 00 00 00 00 58 [06:01:16]Write i2c OK [06:01:16]MH_I2C_Read... [06:01:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:01:16]Read from MH i2c: E2 [06:01:16]MH_I2C_Read... [06:01:16]Read from MH i2c: E2 03 00 [06:01:16]MH_I2C_Read... [06:01:16]Read from MH i2c: E2 03 00 C2 1D 00 90 00 53 [06:01:16]RAPDU: 90 00 [06:01:16]wFMCommunicate OK [06:01:16]wFMCommunicate request_size=255 [06:01:16]MH_SAM_APDU [06:01:16]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 18 2E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 84 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 2F 44 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 B9 08 01 00 35 04 06 00 [06:01:16]Write to MH i2c: E2 02 01 C3 1D 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 18 2E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 84 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 2F 44 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 B9 08 01 00 35 04 06 00 00 00 06 [06:01:16]Write i2c OK [06:01:16]MH_I2C_Read... [06:01:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:01:16]Read from MH i2c: E2 [06:01:16]MH_I2C_Read... [06:01:16]Read from MH i2c: E2 03 00 [06:01:16]MH_I2C_Read... [06:01:16]Read from MH i2c: E2 03 00 C3 1D 00 90 00 54 [06:01:16]RAPDU: 90 00 [06:01:16]wFMCommunicate OK [06:01:16]wFMCommunicate request_size=11 [06:01:16]MH_SAM_APDU [06:01:16]CAPDU: 80 0D 02 02 06 26 CE 98 45 0E 87 [06:01:16]Write to MH i2c: E2 0E 00 C4 1D 80 0D 02 02 06 00 26 CE 98 45 0E 87 00 00 CD [06:01:16]Write i2c OK [06:01:16]MH_I2C_Read... [06:01:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:01:17]Read from MH i2c: E2 [06:01:17]MH_I2C_Read... [06:01:17]Read from MH i2c: E2 03 00 [06:01:17]MH_I2C_Read... [06:01:17]Read from MH i2c: E2 03 00 C4 1D 00 90 00 55 [06:01:17]RAPDU: 90 00 [06:01:17]wFMCommunicate OK [06:01:17]wFMCommunicate request_size=4 [06:01:17]MH_SAM_APDU [06:01:17]CAPDU: 80 0D 03 02 [06:01:17]Write to MH i2c: E2 08 00 C5 1D 80 0D 03 02 00 00 00 00 5D [06:01:17]Write i2c OK [06:01:17]MH_I2C_Read... [06:01:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:01:17]Read from MH i2c: E2 [06:01:17]MH_I2C_Read... [06:01:17]Read from MH i2c: E2 0B 00 [06:01:17]MH_I2C_Read... [06:01:17]Read from MH i2c: E2 0B 00 C5 1D 00 19 39 F9 6D D0 7A D9 A5 90 00 DE [06:01:17]RAPDU: 19 39 F9 6D D0 7A D9 A5 90 00 [06:01:17]wFMCommunicate OK [06:01:17]SAM_PROTO_SignData done [06:01:17]FM_MakeSignedData done [06:01:17]CreateOFDProtocolMessage [06:01:17]wFMCommunicate request_size=4 [06:01:17]MH_SAM_APDU [06:01:17]CAPDU: 80 11 00 00 [06:01:17]Write to MH i2c: E2 08 00 C6 1D 80 11 00 00 00 00 00 00 5D [06:01:17]Write i2c OK [06:01:17]MH_I2C_Read... [06:01:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:01:17]Read from MH i2c: E2 [06:01:17]MH_I2C_Read... [06:01:17]Read from MH i2c: E2 17 00 [06:01:17]MH_I2C_Read... [06:01:17]Read from MH i2c: E2 17 00 C6 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 B3 [06:01:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [06:01:17]wFMCommunicate OK [06:01:17]CreateOFDProtocolMessage done [06:01:17]OFDSenderStorePacket 67769 [06:01:17]StoreOFDPacket docnum=67769 [06:01:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 01 00 00 A5 84 08 01 5A 1F 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 18 2E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 84 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 2F 44 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 B9 08 01 00 35 04 06 00 26 CE 98 45 0E 87 19 39 F9 6D D0 7A D9 A5 [06:01:17]CheckFolder [06:01:17]dirname=/storage/ofd_packets [06:01:17]CheckFolder done [06:01:17]ProducePacketName [06:01:17]name=ofd_packets/00067769 [06:01:17]NVStorageSaveData ofd_packets/00067769 [06:01:17]File name is /storage/ofd_packets/00067769 [06:01:17]Write 302 bytes [06:01:17]NVStorageSaveData done [06:01:17]OFDSenderStorePacket done [06:01:17]KKMCreateOFDPacket done [06:01:17]NVStorageSaveData kkm_last_timestamp [06:01:17]File name is /storage/kkm_last_timestamp [06:01:17]Write 4 bytes [06:01:17]NVStorageSaveData done [06:01:17]ExternCall_PrintAddStr [06:01:17]wPrintStart [06:01:17]Write to MH i2c: 01 00 00 C7 1D E4 [06:01:17]Write i2c OK [06:01:17]MH_I2C_Read... [06:01:17]Read from MH i2c: 01 [06:01:17]MH_I2C_Read... [06:01:17]Read from MH i2c: 01 07 00 [06:01:17]MH_I2C_Read... [06:01:17]Read from MH i2c: 01 07 00 C7 1D 00 00 00 00 00 FF 0F F9 [06:01:17]RasterBufferAndPrint [06:01:17]line Счет N : (1)507937 [06:01:17]line ИНН: 02508201610067 [06:01:17]line Контрольно-Кассовый Чек [06:01:17]line ПРОДАЖА [06:01:17]line ТРК (МРК, ГНК) : 42 [06:01:17]line Товар: 2710124130 [06:01:17]line Super-92-К-5 [06:01:17]line 11.800 * 67.80 [06:01:17]line = 800.04 [06:01:17]line НДС 12% НСП 1% [06:01:17]line > о реализуемом товаре [06:01:17]line ОКРУГЛЕНИЕ: -0.04 [06:01:17]line ИТОГО: 800.00 [06:01:17]line Внесено: 800.00 [06:01:17]line СДАЧА: 0.00 [06:01:17]line НСП 1% : 7.08 [06:01:17]line НДС 12% : 84.96 [06:01:17]line Наличными: 800.00 [06:01:17]line Безнал.: 0.00 [06:01:17]line Место: АЗС № 91 "Партнер Нефть" [06:01:17]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [06:01:17]line СНО: Общий режим [06:01:17]line Чек 8 18.05.2024 06:01 [06:01:17]line Смена: 359 ФФД: 1.0 [06:01:17]line ЗНМ: 0300000119 [06:01:17]line РНМ: 0000000000091845 [06:01:17]line Версия ККМ: 001 [06:01:17]line ФМ: 0000000000871829 [06:01:17]line ФД: 67769 [06:01:17]line ФПД: 42668759780999 [06:01:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T060119&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67769&fm=42668759780999&tin=02508201610067®Number=0000000000091845&sum=80000 [06:01:17]written 0, free lines is 4095 [06:01:17]OFD Sender: Processing packet 67769 [packets to send 35, broken 34] [06:01:17]ProducePacketName [06:01:17]name=ofd_packets/00067769 [06:01:17]OFD Sender: To server: pG, [06:01:17]CommunicateWithHost lk.salyk.kg:30040 [06:01:17]ConnectInit lk.salyk.kg [06:01:17]Connected sock=10 [06:01:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 01 00 00 A5 84 08 01 5A 1F 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 18 2E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 84 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 2F 44 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 B9 08 01 00 35 04 06 00 26 CE 98 45 0E 87 19 39 F9 6D D0 7A D9 A5 [06:01:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 46 C6 47 00 72 E1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 B9 08 01 00 F4 03 04 00 05 EC 47 66 B6 04 01 00 00 AF 1B 31 03 CE 56 46 ED [06:01:17]CommunicateWithHost err = 0 [06:01:17]CheckOFDResponse [06:01:17]1017 (14) - 77093643461234 [06:01:17]1041 (16) - 0000000000871829 [06:01:17]1040 (4) - 67769 [06:01:17]1012 (4) - 17.05.2024 23:45 [06:01:17]1206 (1) - 0 [06:01:17]OFD Sender: Remove packet 67769 [06:01:17]ProducePacketName [06:01:17]name=ofd_packets/00067769 [06:01:17]NVStorageDeleteData [06:01:17]Write to MH i2c: 01 00 00 F1 1D 0E [06:01:17]Write i2c OK [06:01:17]MH_I2C_Read... [06:01:17]Read from MH i2c: 01 [06:01:17]MH_I2C_Read... [06:01:17]Read from MH i2c: 01 07 00 [06:01:17]MH_I2C_Read... [06:01:17]Read from MH i2c: 01 07 00 F1 1D 00 00 00 00 00 C8 0C E9 [06:01:17]RasterBufferAndPrint [06:01:17]line [06:01:17]line [06:01:17]line [06:01:17]line [06:01:17]line [06:01:17]written 0, free lines is 3278 [06:01:17]MH_Cut [06:01:17]Write to MH i2c: D1 01 00 F8 1D 01 E7 [06:01:17]Write i2c OK [06:01:17]MH_I2C_Read... [06:01:17]Read from MH i2c: D1 [06:01:17]MH_I2C_Read... [06:01:17]Read from MH i2c: D1 01 00 [06:01:17]MH_I2C_Read... [06:01:17]Read from MH i2c: D1 01 00 F8 1D 00 E6 [06:01:17]Write to MH i2c: 01 00 00 F9 1D 16 [06:01:17]Write i2c OK [06:01:17]MH_I2C_Read... [06:01:18]OFD Sender: No OFD packet to send [06:01:18]*** Cut start [06:01:18]*** Purtial cut [06:01:18]*** Stage 1: CUTSNS_PIN = 1 [06:01:19]Read from MH i2c: 01 [06:01:19]MH_I2C_Read... [06:01:19]*** Stop cut motor [06:01:19]*** Cut end [06:01:19]Read from MH i2c: 01 07 00 [06:01:19]MH_I2C_Read... [06:01:19]Read from MH i2c: 01 07 00 F9 1D 00 00 00 00 00 FF 0F 2B [06:01:19]process_action close_receipt done [06:01:19]requested_data is exist [06:01:19]produce_requested_data [06:01:19]requested_item fm.sn is exist - process it [06:01:19]wFMCommunicate request_size=4 [06:01:19]MH_SAM_APDU [06:01:19]CAPDU: 80 11 00 00 [06:01:19]Write to MH i2c: E2 08 00 FA 1D 80 11 00 00 00 00 00 00 91 [06:01:19]Write i2c OK [06:01:19]MH_I2C_Read... [06:01:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:01:19]Read from MH i2c: E2 [06:01:19]MH_I2C_Read... [06:01:19]Read from MH i2c: E2 17 00 [06:01:19]MH_I2C_Read... [06:01:19]Read from MH i2c: E2 17 00 FA 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 E7 [06:01:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [06:01:19]wFMCommunicate OK [06:01:19]requested_item fd.num is exist - process it [06:01:19]SAM_PROTO_GetFieldsCounters [06:01:19]wFMCommunicate request_size=4 [06:01:19]MH_SAM_APDU [06:01:19]CAPDU: 80 13 00 00 [06:01:19]Write to MH i2c: E2 08 00 FB 1D 80 13 00 00 00 00 00 00 94 [06:01:19]Write i2c OK [06:01:19]MH_I2C_Read... [06:01:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:01:19]Read from MH i2c: E2 [06:01:19]MH_I2C_Read... [06:01:19]Read from MH i2c: E2 62 00 [06:01:19]MH_I2C_Read... [06:01:19]Read from MH i2c: E2 62 00 FB 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 B9 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 08 00 00 00 5E 04 04 00 08 00 00 00 57 04 04 00 09 00 00 00 19 04 04 00 00 00 00 00 90 00 FC [06:01:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 B9 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 08 00 00 00 5E 04 04 00 08 00 00 00 57 04 04 00 09 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:01:19]wFMCommunicate OK [06:01:19]SAM_PROTO_GetFieldsCounters done [06:01:19]requested_item shift.num is exist - process it [06:01:19]requested_item shift.opened is exist - process it [06:01:19]req_shift_opened [06:01:19]FM_GetShiftState [06:01:19]SAM_PROTO_GetShiftState [06:01:19]wFMCommunicate request_size=4 [06:01:19]MH_SAM_APDU [06:01:19]CAPDU: 80 13 01 00 [06:01:19]Write to MH i2c: E2 08 00 FC 1D 80 13 01 00 00 00 00 00 96 [06:01:19]Write i2c OK [06:01:19]MH_I2C_Read... [06:01:19]Read from MH i2c: E2 [06:01:19]MH_I2C_Read... [06:01:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:01:19]Read from MH i2c: E2 0E 00 [06:01:19]MH_I2C_Read... [06:01:19]Read from MH i2c: E2 0E 00 FC 1D 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 FD [06:01:19]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [06:01:19]wFMCommunicate OK [06:01:19]SAM_PROTO_GetShiftState done [06:01:19]FM_GetShiftState done [06:01:19]req_shift_opened done [06:01:19]requested_item shift.open_date is exist - process it [06:01:19]req_shift_open_date [06:01:19]req_shift_open_date done [06:01:19]produce_requested_data done [06:01:19]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67769,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [06:01:19]process_action_free close_receipt [06:01:19]json_value_free [06:01:19]json_value_free done [06:01:19]process_json_proto returns [06:01:19]Send response to host [06:01:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67769,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [06:01:19]free response buf [06:01:19]execute_script done [06:01:19]execute_script returns [06:01:19]free content buf [06:01:19]Sock 9.Close socket [06:01:19]Sock 9.Thread stoped [06:01:23]OFD Sender: No OFD packet to send [06:01:28]OFD Sender: No OFD packet to send [06:01:33]OFD Sender: No OFD packet to send [06:01:38]OFD Sender: No OFD packet to send [06:01:43]OFD Sender: No OFD packet to send [06:01:48]OFD Sender: No OFD packet to send [06:01:53]OFD Sender: No OFD packet to send [06:01:58]OFD Sender: No OFD packet to send [06:02:03]OFD Sender: No OFD packet to send [06:02:08]OFD Sender: No OFD packet to send [06:02:13]OFD Sender: No OFD packet to send [06:02:18]OFD Sender: No OFD packet to send [06:02:23]OFD Sender: No OFD packet to send [06:02:28]OFD Sender: No OFD packet to send [06:02:33]OFD Sender: No OFD packet to send [06:02:38]OFD Sender: No OFD packet to send [06:02:43]OFD Sender: No OFD packet to send [06:02:48]OFD Sender: No OFD packet to send [06:02:53]OFD Sender: No OFD packet to send [06:02:58]OFD Sender: No OFD packet to send [06:03:03]OFD Sender: No OFD packet to send [06:03:08]OFD Sender: No OFD packet to send [06:03:13]OFD Sender: No OFD packet to send [06:03:18]OFD Sender: No OFD packet to send [06:03:23]OFD Sender: No OFD packet to send [06:03:28]OFD Sender: No OFD packet to send [06:03:33]OFD Sender: No OFD packet to send [06:03:38]OFD Sender: No OFD packet to send [06:03:43]OFD Sender: No OFD packet to send [06:03:48]OFD Sender: No OFD packet to send [06:03:53]OFD Sender: No OFD packet to send [06:03:58]OFD Sender: No OFD packet to send [06:04:03]OFD Sender: No OFD packet to send [06:04:08]OFD Sender: No OFD packet to send [06:04:13]OFD Sender: No OFD packet to send [06:04:18]OFD Sender: No OFD packet to send [06:04:23]OFD Sender: No OFD packet to send [06:04:28]OFD Sender: No OFD packet to send [06:04:33]OFD Sender: No OFD packet to send [06:04:38]OFD Sender: No OFD packet to send [06:04:43]OFD Sender: No OFD packet to send [06:04:48]OFD Sender: No OFD packet to send [06:04:53]OFD Sender: No OFD packet to send [06:04:58]OFD Sender: No OFD packet to send [06:05:03]OFD Sender: No OFD packet to send [06:05:08]OFD Sender: No OFD packet to send [06:05:13]OFD Sender: No OFD packet to send [06:05:18]OFD Sender: No OFD packet to send [06:05:23]OFD Sender: No OFD packet to send [06:05:28]OFD Sender: No OFD packet to send [06:05:33]OFD Sender: No OFD packet to send [06:05:38]OFD Sender: No OFD packet to send [06:05:43]OFD Sender: No OFD packet to send [06:05:48]OFD Sender: No OFD packet to send [06:05:53]OFD Sender: No OFD packet to send [06:05:58]OFD Sender: No OFD packet to send [06:06:03]OFD Sender: No OFD packet to send [06:06:08]OFD Sender: No OFD packet to send [06:06:13]OFD Sender: No OFD packet to send [06:06:18]OFD Sender: No OFD packet to send [06:06:23]OFD Sender: No OFD packet to send [06:06:28]OFD Sender: No OFD packet to send [06:06:33]OFD Sender: No OFD packet to send [06:06:38]OFD Sender: No OFD packet to send [06:06:43]OFD Sender: No OFD packet to send [06:06:48]OFD Sender: No OFD packet to send [06:06:53]OFD Sender: No OFD packet to send [06:06:58]OFD Sender: No OFD packet to send [06:07:03]OFD Sender: No OFD packet to send [06:07:08]OFD Sender: No OFD packet to send [06:07:13]OFD Sender: No OFD packet to send [06:07:18]OFD Sender: No OFD packet to send [06:07:23]OFD Sender: No OFD packet to send [06:07:28]OFD Sender: No OFD packet to send [06:07:33]OFD Sender: No OFD packet to send [06:07:38]OFD Sender: No OFD packet to send [06:07:43]OFD Sender: No OFD packet to send [06:07:48]OFD Sender: No OFD packet to send [06:07:53]OFD Sender: No OFD packet to send [06:07:58]OFD Sender: No OFD packet to send [06:08:03]OFD Sender: No OFD packet to send [06:08:08]OFD Sender: No OFD packet to send [06:08:13]OFD Sender: No OFD packet to send [06:08:18]OFD Sender: No OFD packet to send [06:08:23]OFD Sender: No OFD packet to send [06:08:28]OFD Sender: No OFD packet to send [06:08:33]OFD Sender: No OFD packet to send [06:08:38]OFD Sender: No OFD packet to send [06:08:43]OFD Sender: No OFD packet to send [06:08:48]OFD Sender: No OFD packet to send [06:08:53]OFD Sender: No OFD packet to send [06:08:58]OFD Sender: No OFD packet to send [06:09:03]OFD Sender: No OFD packet to send [06:09:08]OFD Sender: No OFD packet to send [06:09:13]OFD Sender: No OFD packet to send [06:09:18]OFD Sender: No OFD packet to send [06:09:23]OFD Sender: No OFD packet to send [06:09:28]OFD Sender: No OFD packet to send [06:09:33]OFD Sender: No OFD packet to send [06:09:38]OFD Sender: No OFD packet to send [06:09:43]OFD Sender: No OFD packet to send [06:09:48]OFD Sender: No OFD packet to send [06:09:53]OFD Sender: No OFD packet to send [06:09:58]OFD Sender: No OFD packet to send [06:10:03]OFD Sender: No OFD packet to send [06:10:08]OFD Sender: No OFD packet to send [06:10:13]OFD Sender: No OFD packet to send [06:10:14]accept exits with 7 [06:10:14]New connection [06:10:14]New thread 3066752356 created [06:10:14]Thread 3066608996 joined [06:10:14]Waiting for new connection... [06:10:14] Sock 7.Parse request [06:10:14]Sock 7.Check first char [06:10:14]Sock 7.First char is OK [06:10:14]request: POST /json_proto HTTP/1.0 [06:10:14]Method: POST [06:10:14]URL: /json_proto [06:10:14]Method is POST - this is cgi request [06:10:14]url: /json_proto [06:10:14]query_string will be loaded in cgi processing [06:10:14]execute_cgi json_proto POST (null) [06:10:14]execute_cgi path=json_proto method=POST [06:10:14]POST find Content-Length [06:10:14]Host: 172.17.41.195:8080 [06:10:14]Content-Length: 671 [06:10:14]Content-Type: application/json [06:10:14] [06:10:14]POST finish read [06:10:14]Found Content-Length = 671 [06:10:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507938", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:10:14]execute_script... [06:10:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507938", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:10:14]POST & json_proto [06:10:14]process_json_proto [06:10:14]json parsed OK: [06:10:14]protocol is kg_v1.0 [06:10:14]action value=close_receipt [06:10:14]process_action close_receipt [06:10:14]cmd_close_receipt [06:10:14]MH_GetDate [06:10:14]Write to MH i2c: F0 00 00 FD 1D 09 [06:10:14]Write i2c OK [06:10:14]MH_I2C_Read... [06:10:14]Read from MH i2c: F0 [06:10:14]MH_I2C_Read... [06:10:14]Read from MH i2c: F0 09 00 [06:10:14]MH_I2C_Read... [06:10:14]Read from MH i2c: F0 09 00 FD 1D 00 4A 46 48 66 FC 21 6F 64 40 [06:10:14]GetLastDocTimeStamp 1716012079 [06:10:14]current date 1716012618 [06:10:14]FM_GetShiftState [06:10:14]SAM_PROTO_GetShiftState [06:10:14]wFMCommunicate request_size=4 [06:10:14]MH_SAM_APDU [06:10:14]CAPDU: 80 13 01 00 [06:10:14]Write to MH i2c: E2 08 00 FE 1D 80 13 01 00 00 00 00 00 98 [06:10:14]Write i2c OK [06:10:14]MH_I2C_Read... [06:10:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:10:14]Read from MH i2c: E2 [06:10:14]MH_I2C_Read... [06:10:14]Read from MH i2c: E2 0E 00 [06:10:14]MH_I2C_Read... [06:10:14]Read from MH i2c: E2 0E 00 FE 1D 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 FF [06:10:14]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [06:10:14]wFMCommunicate OK [06:10:14]SAM_PROTO_GetShiftState done [06:10:14]FM_GetShiftState done [06:10:14]opened in 1715991483 [06:10:14]opened+sec_in_day 1716077883 [06:10:14]quantity*price = 70037 [06:10:14]sum+1 = 70038 [06:10:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 9 18.05.2024 06:10 Смена: 359 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67770 ФПД: 48275149037391 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T061018&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67770&fm=48275149037391&tin=02508201610067®Number=0000000000091845&sum=70000 [06:10:15]StoreToDocumentArchive [06:10:15]shift 359 fd 67770 [06:10:15]save to /storage/0359/doc_00067770 [06:10:15]save last doc name /storage/0359/doc_00067770 to /storage/kkm_last_doc_name [06:10:15]save OK [06:10:15]Clear old archive folders... [06:10:15]ProcessDocumentItem done err = 0, tmpTLVsize=252 [06:10:15]tlvbuf is 01B26B80 [06:10:15]SAM_PROTO_ClearQueue [06:10:15]wFMCommunicate request_size=4 [06:10:15]MH_SAM_APDU [06:10:15]CAPDU: 80 09 00 00 [06:10:15]Write to MH i2c: E2 08 00 0B 1E 80 09 00 00 00 00 00 00 9B [06:10:15]Write i2c OK [06:10:15]MH_I2C_Read... [06:10:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:10:15]Read from MH i2c: E2 [06:10:15]MH_I2C_Read... [06:10:15]Read from MH i2c: E2 03 00 [06:10:15]MH_I2C_Read... [06:10:15]Read from MH i2c: E2 03 00 0B 1E 00 90 00 9D [06:10:15]RAPDU: 90 00 [06:10:15]wFMCommunicate OK [06:10:15]SAM_PROTO_ClearQueue done [06:10:15]KKMCreateOFDPacket [06:10:15]OFDProtocolAddRootSTLVToBuf [06:10:15]FM_MakeSignedData [06:10:15]FM_MakeSignedData [06:10:15]SAM_PROTO_SignData [06:10:15]wFMCommunicate request_size=4 [06:10:15]MH_SAM_APDU [06:10:15]CAPDU: 80 0D 01 02 [06:10:15]Write to MH i2c: E2 08 00 0C 1E 80 0D 01 02 00 00 00 00 A3 [06:10:15]Write i2c OK [06:10:15]MH_I2C_Read... [06:10:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:10:15]Read from MH i2c: E2 [06:10:15]MH_I2C_Read... [06:10:15]Read from MH i2c: E2 03 00 [06:10:15]MH_I2C_Read... [06:10:15]Read from MH i2c: E2 03 00 0C 1E 00 90 00 9E [06:10:15]RAPDU: 90 00 [06:10:15]wFMCommunicate OK [06:10:15]wFMCommunicate request_size=255 [06:10:15]MH_SAM_APDU [06:10:15]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 4A 46 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 BA 08 01 00 35 04 06 00 [06:10:15]Write to MH i2c: E2 02 01 0D 1E 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 4A 46 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 BA 08 01 00 35 04 06 00 00 00 AA [06:10:15]Write i2c OK [06:10:15]MH_I2C_Read... [06:10:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:10:15]Read from MH i2c: E2 [06:10:15]MH_I2C_Read... [06:10:15]Read from MH i2c: E2 03 00 [06:10:15]MH_I2C_Read... [06:10:15]Read from MH i2c: E2 03 00 0D 1E 00 90 00 9F [06:10:15]RAPDU: 90 00 [06:10:15]wFMCommunicate OK [06:10:15]wFMCommunicate request_size=11 [06:10:15]MH_SAM_APDU [06:10:15]CAPDU: 80 0D 02 02 06 2B E7 EF 1C 1F 4F [06:10:15]Write to MH i2c: E2 0E 00 0E 1E 80 0D 02 02 06 00 2B E7 EF 1C 1F 4F 00 00 3D [06:10:15]Write i2c OK [06:10:15]MH_I2C_Read... [06:10:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:10:15]Read from MH i2c: E2 [06:10:15]MH_I2C_Read... [06:10:15]Read from MH i2c: E2 03 00 [06:10:15]MH_I2C_Read... [06:10:15]Read from MH i2c: E2 03 00 0E 1E 00 90 00 A0 [06:10:15]RAPDU: 90 00 [06:10:15]wFMCommunicate OK [06:10:15]wFMCommunicate request_size=4 [06:10:15]MH_SAM_APDU [06:10:15]CAPDU: 80 0D 03 02 [06:10:15]Write to MH i2c: E2 08 00 0F 1E 80 0D 03 02 00 00 00 00 A8 [06:10:15]Write i2c OK [06:10:15]MH_I2C_Read... [06:10:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:10:15]Read from MH i2c: E2 [06:10:15]MH_I2C_Read... [06:10:15]Read from MH i2c: E2 0B 00 [06:10:15]MH_I2C_Read... [06:10:15]Read from MH i2c: E2 0B 00 0F 1E 00 C1 A2 E9 C7 41 B7 FF 99 90 00 4C [06:10:15]RAPDU: C1 A2 E9 C7 41 B7 FF 99 90 00 [06:10:15]wFMCommunicate OK [06:10:15]SAM_PROTO_SignData done [06:10:15]FM_MakeSignedData done [06:10:15]CreateOFDProtocolMessage [06:10:15]wFMCommunicate request_size=4 [06:10:15]MH_SAM_APDU [06:10:15]CAPDU: 80 11 00 00 [06:10:15]Write to MH i2c: E2 08 00 10 1E 80 11 00 00 00 00 00 00 A8 [06:10:15]Write i2c OK [06:10:15]MH_I2C_Read... [06:10:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:10:15]Read from MH i2c: E2 [06:10:15]MH_I2C_Read... [06:10:15]Read from MH i2c: E2 17 00 [06:10:15]MH_I2C_Read... [06:10:15]Read from MH i2c: E2 17 00 10 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 FE [06:10:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [06:10:15]wFMCommunicate OK [06:10:15]CreateOFDProtocolMessage done [06:10:15]OFDSenderStorePacket 67770 [06:10:15]StoreOFDPacket docnum=67770 [06:10:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 01 00 00 30 EE 08 01 6B 49 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 4A 46 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 BA 08 01 00 35 04 06 00 2B E7 EF 1C 1F 4F C1 A2 E9 C7 41 B7 FF 99 [06:10:15]CheckFolder [06:10:15]dirname=/storage/ofd_packets [06:10:15]CheckFolder done [06:10:15]ProducePacketName [06:10:15]name=ofd_packets/00067770 [06:10:15]NVStorageSaveData ofd_packets/00067770 [06:10:15]File name is /storage/ofd_packets/00067770 [06:10:15]Write 302 bytes [06:10:15]NVStorageSaveData done [06:10:15]OFDSenderStorePacket done [06:10:15]KKMCreateOFDPacket done [06:10:15]NVStorageSaveData kkm_last_timestamp [06:10:15]File name is /storage/kkm_last_timestamp [06:10:15]Write 4 bytes [06:10:15]NVStorageSaveData done [06:10:15]ExternCall_PrintAddStr [06:10:15]wPrintStart [06:10:15]Write to MH i2c: 01 00 00 11 1E 2F [06:10:15]Write i2c OK [06:10:15]MH_I2C_Read... [06:10:15]Read from MH i2c: 01 [06:10:15]MH_I2C_Read... [06:10:15]Read from MH i2c: 01 07 00 [06:10:15]MH_I2C_Read... [06:10:15]Read from MH i2c: 01 07 00 11 1E 00 00 00 00 00 FF 0F 44 [06:10:15]RasterBufferAndPrint [06:10:15]line Счет N : (1)507938 [06:10:15]line ИНН: 02508201610067 [06:10:15]line Контрольно-Кассовый Чек [06:10:15]line ПРОДАЖА [06:10:15]line ТРК (МРК, ГНК) : 42 [06:10:15]line Товар: 2710124130 [06:10:15]line Super-92-К-5 [06:10:15]line 10.330 * 67.80 [06:10:15]line = 700.37 [06:10:15]line НДС 12% НСП 1% [06:10:15]line > о реализуемом товаре [06:10:15]line ОКРУГЛЕНИЕ: -0.37 [06:10:15]line ИТОГО: 700.00 [06:10:15]line Внесено: 700.00 [06:10:15]line СДАЧА: 0.00 [06:10:15]line НСП 1% : 6.20 [06:10:15]line НДС 12% : 74.38 [06:10:15]line Наличными: 700.00 [06:10:15]line Безнал.: 0.00 [06:10:15]line Место: АЗС № 91 "Партнер Нефть" [06:10:15]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [06:10:15]line СНО: Общий режим [06:10:15]line Чек 9 18.05.2024 06:10 [06:10:15]line Смена: 359 ФФД: 1.0 [06:10:15]line ЗНМ: 0300000119 [06:10:15]line РНМ: 0000000000091845 [06:10:15]line Версия ККМ: 001 [06:10:15]line ФМ: 0000000000871829 [06:10:15]line ФД: 67770 [06:10:15]line ФПД: 48275149037391 [06:10:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T061018&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67770&fm=48275149037391&tin=02508201610067®Number=0000000000091845&sum=70000 [06:10:16]written 0, free lines is 4095 [06:10:16]OFD Sender: Processing packet 67770 [packets to send 35, broken 34] [06:10:16]ProducePacketName [06:10:16]name=ofd_packets/00067770 [06:10:16]OFD Sender: To server: pG, [06:10:16]CommunicateWithHost lk.salyk.kg:30040 [06:10:16]ConnectInit lk.salyk.kg [06:10:16]Connected sock=10 [06:10:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 01 00 00 30 EE 08 01 6B 49 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 4A 46 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 BA 08 01 00 35 04 06 00 2B E7 EF 1C 1F 4F C1 A2 E9 C7 41 B7 FF 99 [06:10:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 CB CC 47 00 1C 60 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 BA 08 01 00 F4 03 04 00 20 EE 47 66 B6 04 01 00 00 5A 75 C6 AF 37 AA C9 0C [06:10:16]CommunicateWithHost err = 0 [06:10:16]CheckOFDResponse [06:10:16]1017 (14) - 77093643461234 [06:10:16]1041 (16) - 0000000000871829 [06:10:16]1040 (4) - 67770 [06:10:16]1012 (4) - 17.05.2024 23:54 [06:10:16]1206 (1) - 0 [06:10:16]OFD Sender: Remove packet 67770 [06:10:16]ProducePacketName [06:10:16]name=ofd_packets/00067770 [06:10:16]NVStorageDeleteData [06:10:16]Write to MH i2c: 01 00 00 3B 1E 59 [06:10:16]Write i2c OK [06:10:16]MH_I2C_Read... [06:10:16]Read from MH i2c: 01 [06:10:16]MH_I2C_Read... [06:10:16]Read from MH i2c: 01 07 00 [06:10:16]MH_I2C_Read... [06:10:16]Read from MH i2c: 01 07 00 3B 1E 00 00 00 00 00 C6 0C 32 [06:10:16]RasterBufferAndPrint [06:10:16]line [06:10:16]line [06:10:16]line [06:10:16]line [06:10:16]line [06:10:16]written 0, free lines is 3275 [06:10:16]MH_Cut [06:10:16]Write to MH i2c: D1 01 00 42 1E 01 32 [06:10:16]Write i2c OK [06:10:16]MH_I2C_Read... [06:10:16]Read from MH i2c: D1 [06:10:16]MH_I2C_Read... [06:10:16]Read from MH i2c: D1 01 00 [06:10:16]MH_I2C_Read... [06:10:16]Read from MH i2c: D1 01 00 42 1E 00 31 [06:10:16]Write to MH i2c: 01 00 00 43 1E 61 [06:10:16]Write i2c OK [06:10:16]MH_I2C_Read... [06:10:17]OFD Sender: No OFD packet to send [06:10:17]*** Cut start [06:10:17]*** Purtial cut [06:10:17]*** CUTSNS_PIN = 0 [06:10:17]*** Stage 1: CUTSNS_PIN = 1 [06:10:19]Read from MH i2c: 01 [06:10:19]MH_I2C_Read... [06:10:19]*** Stop cut motor [06:10:19]*** Cut end [06:10:19]Read from MH i2c: 01 07 00 [06:10:19]MH_I2C_Read... [06:10:19]Read from MH i2c: 01 07 00 43 1E 00 00 00 00 00 FF 0F 76 [06:10:19]process_action close_receipt done [06:10:19]requested_data is exist [06:10:19]produce_requested_data [06:10:19]requested_item fm.sn is exist - process it [06:10:19]wFMCommunicate request_size=4 [06:10:19]MH_SAM_APDU [06:10:19]CAPDU: 80 11 00 00 [06:10:19]Write to MH i2c: E2 08 00 44 1E 80 11 00 00 00 00 00 00 DC [06:10:19]Write i2c OK [06:10:19]MH_I2C_Read... [06:10:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:10:19]Read from MH i2c: E2 [06:10:19]MH_I2C_Read... [06:10:19]Read from MH i2c: E2 17 00 [06:10:19]MH_I2C_Read... [06:10:19]Read from MH i2c: E2 17 00 44 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 32 [06:10:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [06:10:19]wFMCommunicate OK [06:10:19]requested_item fd.num is exist - process it [06:10:19]SAM_PROTO_GetFieldsCounters [06:10:19]wFMCommunicate request_size=4 [06:10:19]MH_SAM_APDU [06:10:19]CAPDU: 80 13 00 00 [06:10:19]Write to MH i2c: E2 08 00 45 1E 80 13 00 00 00 00 00 00 DF [06:10:19]Write i2c OK [06:10:19]MH_I2C_Read... [06:10:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:10:19]Read from MH i2c: E2 [06:10:19]MH_I2C_Read... [06:10:19]Read from MH i2c: E2 62 00 [06:10:19]MH_I2C_Read... [06:10:19]Read from MH i2c: E2 62 00 45 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 BA 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 4B [06:10:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 BA 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:10:19]wFMCommunicate OK [06:10:19]SAM_PROTO_GetFieldsCounters done [06:10:19]requested_item shift.num is exist - process it [06:10:19]requested_item shift.opened is exist - process it [06:10:19]req_shift_opened [06:10:19]FM_GetShiftState [06:10:19]SAM_PROTO_GetShiftState [06:10:19]wFMCommunicate request_size=4 [06:10:19]MH_SAM_APDU [06:10:19]CAPDU: 80 13 01 00 [06:10:19]Write to MH i2c: E2 08 00 46 1E 80 13 01 00 00 00 00 00 E1 [06:10:19]Write i2c OK [06:10:19]MH_I2C_Read... [06:10:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:10:19]Read from MH i2c: E2 [06:10:19]MH_I2C_Read... [06:10:19]Read from MH i2c: E2 0E 00 [06:10:19]MH_I2C_Read... [06:10:19]Read from MH i2c: E2 0E 00 46 1E 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 48 [06:10:19]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [06:10:19]wFMCommunicate OK [06:10:19]SAM_PROTO_GetShiftState done [06:10:19]FM_GetShiftState done [06:10:19]req_shift_opened done [06:10:19]requested_item shift.open_date is exist - process it [06:10:19]req_shift_open_date [06:10:19]req_shift_open_date done [06:10:19]produce_requested_data done [06:10:19]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67770,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [06:10:19]process_action_free close_receipt [06:10:19]json_value_free [06:10:19]json_value_free done [06:10:19]process_json_proto returns [06:10:19]Send response to host [06:10:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67770,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [06:10:19]free response buf [06:10:19]execute_script done [06:10:19]execute_script returns [06:10:19]free content buf [06:10:19]Sock 7.Close socket [06:10:19]Sock 7.Thread stoped [06:10:22]OFD Sender: No OFD packet to send [06:10:27]OFD Sender: No OFD packet to send [06:10:32]OFD Sender: No OFD packet to send [06:10:37]OFD Sender: No OFD packet to send [06:10:42]OFD Sender: No OFD packet to send [06:10:47]OFD Sender: No OFD packet to send [06:10:52]OFD Sender: No OFD packet to send [06:10:57]OFD Sender: No OFD packet to send [06:11:02]OFD Sender: No OFD packet to send [06:11:07]OFD Sender: No OFD packet to send [06:11:12]OFD Sender: No OFD packet to send [06:11:17]OFD Sender: No OFD packet to send [06:11:22]OFD Sender: No OFD packet to send [06:11:27]OFD Sender: No OFD packet to send [06:11:32]OFD Sender: No OFD packet to send [06:11:37]OFD Sender: No OFD packet to send [06:11:42]OFD Sender: No OFD packet to send [06:11:47]OFD Sender: No OFD packet to send [06:11:52]OFD Sender: No OFD packet to send [06:11:57]OFD Sender: No OFD packet to send [06:12:02]OFD Sender: No OFD packet to send [06:12:07]OFD Sender: No OFD packet to send [06:12:12]OFD Sender: No OFD packet to send [06:12:17]OFD Sender: No OFD packet to send [06:12:22]OFD Sender: No OFD packet to send [06:12:27]OFD Sender: No OFD packet to send [06:12:32]OFD Sender: No OFD packet to send [06:12:37]OFD Sender: No OFD packet to send [06:12:42]OFD Sender: No OFD packet to send [06:12:47]OFD Sender: No OFD packet to send [06:12:52]OFD Sender: No OFD packet to send [06:12:57]OFD Sender: No OFD packet to send [06:13:02]OFD Sender: No OFD packet to send [06:13:07]OFD Sender: No OFD packet to send [06:13:12]OFD Sender: No OFD packet to send [06:13:17]OFD Sender: No OFD packet to send [06:13:22]OFD Sender: No OFD packet to send [06:13:27]OFD Sender: No OFD packet to send [06:13:32]OFD Sender: No OFD packet to send [06:13:37]OFD Sender: No OFD packet to send [06:13:42]OFD Sender: No OFD packet to send [06:13:47]OFD Sender: No OFD packet to send [06:13:52]OFD Sender: No OFD packet to send [06:13:57]OFD Sender: No OFD packet to send [06:14:02]OFD Sender: No OFD packet to send [06:14:07]OFD Sender: No OFD packet to send [06:14:12]OFD Sender: No OFD packet to send [06:14:17]OFD Sender: No OFD packet to send [06:14:22]OFD Sender: No OFD packet to send [06:14:27]OFD Sender: No OFD packet to send [06:14:32]OFD Sender: No OFD packet to send [06:14:37]OFD Sender: No OFD packet to send [06:14:42]OFD Sender: No OFD packet to send [06:14:47]OFD Sender: No OFD packet to send [06:14:52]OFD Sender: No OFD packet to send [06:14:57]OFD Sender: No OFD packet to send [06:15:02]OFD Sender: No OFD packet to send [06:15:07]OFD Sender: No OFD packet to send [06:15:12]OFD Sender: No OFD packet to send [06:15:17]OFD Sender: No OFD packet to send [06:15:22]OFD Sender: No OFD packet to send [06:15:27]OFD Sender: No OFD packet to send [06:15:32]OFD Sender: No OFD packet to send [06:15:37]OFD Sender: No OFD packet to send [06:15:42]OFD Sender: No OFD packet to send [06:15:47]OFD Sender: No OFD packet to send [06:15:52]OFD Sender: No OFD packet to send [06:15:57]OFD Sender: No OFD packet to send [06:16:02]OFD Sender: No OFD packet to send [06:16:07]OFD Sender: No OFD packet to send [06:16:12]OFD Sender: No OFD packet to send [06:16:17]OFD Sender: No OFD packet to send [06:16:22]OFD Sender: No OFD packet to send [06:16:27]OFD Sender: No OFD packet to send [06:16:32]OFD Sender: No OFD packet to send [06:16:37]OFD Sender: No OFD packet to send [06:16:42]OFD Sender: No OFD packet to send [06:16:47]OFD Sender: No OFD packet to send [06:16:52]OFD Sender: No OFD packet to send [06:16:57]OFD Sender: No OFD packet to send [06:17:02]OFD Sender: No OFD packet to send [06:17:07]OFD Sender: No OFD packet to send [06:17:12]OFD Sender: No OFD packet to send [06:17:16]accept exits with 9 [06:17:16]New connection [06:17:16]New thread 3066608996 created [06:17:16]Thread 3066752356 joined [06:17:16]Waiting for new connection... [06:17:16] Sock 9.Parse request [06:17:16]Sock 9.Check first char [06:17:16]Sock 9.First char is OK [06:17:16]request: POST /json_proto HTTP/1.0 [06:17:16]Method: POST [06:17:16]URL: /json_proto [06:17:16]Method is POST - this is cgi request [06:17:16]url: /json_proto [06:17:16]query_string will be loaded in cgi processing [06:17:16]execute_cgi json_proto POST (null) [06:17:16]execute_cgi path=json_proto method=POST [06:17:16]POST find Content-Length [06:17:16]Host: 172.17.41.195:8080 [06:17:16]Content-Length: 675 [06:17:16]Content-Type: application/json [06:17:16] [06:17:16]POST finish read [06:17:16]Found Content-Length = 675 [06:17:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507939", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:17:16]execute_script... [06:17:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507939", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:17:16]POST & json_proto [06:17:16]process_json_proto [06:17:16]json parsed OK: [06:17:16]protocol is kg_v1.0 [06:17:16]action value=close_receipt [06:17:16]process_action close_receipt [06:17:16]cmd_close_receipt [06:17:16]MH_GetDate [06:17:16]Write to MH i2c: F0 00 00 47 1E 54 [06:17:16]Write i2c OK [06:17:16]MH_I2C_Read... [06:17:16]Read from MH i2c: F0 [06:17:16]MH_I2C_Read... [06:17:16]Read from MH i2c: F0 09 00 [06:17:16]MH_I2C_Read... [06:17:16]Read from MH i2c: F0 09 00 47 1E 00 F0 47 48 66 FC 21 6F 64 32 [06:17:16]GetLastDocTimeStamp 1716012618 [06:17:16]current date 1716013040 [06:17:16]FM_GetShiftState [06:17:16]SAM_PROTO_GetShiftState [06:17:16]wFMCommunicate request_size=4 [06:17:16]MH_SAM_APDU [06:17:16]CAPDU: 80 13 01 00 [06:17:16]Write to MH i2c: E2 08 00 48 1E 80 13 01 00 00 00 00 00 E3 [06:17:16]Write i2c OK [06:17:16]MH_I2C_Read... [06:17:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:17:16]Read from MH i2c: E2 [06:17:16]MH_I2C_Read... [06:17:16]Read from MH i2c: E2 0E 00 [06:17:16]MH_I2C_Read... [06:17:16]Read from MH i2c: E2 0E 00 48 1E 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 4A [06:17:16]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [06:17:16]wFMCommunicate OK [06:17:16]SAM_PROTO_GetShiftState done [06:17:16]FM_GetShiftState done [06:17:16]opened in 1715991483 [06:17:16]opened+sec_in_day 1716077883 [06:17:16]quantity*price = 100005 [06:17:16]sum+1 = 100006 [06:17:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 10 18.05.2024 06:17 Смена: 359 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67771 ФПД: 98309861151825 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T061720&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67771&fm=98309861151825&tin=02508201610067®Number=0000000000091845&sum=100000 [06:17:17]StoreToDocumentArchive [06:17:17]shift 359 fd 67771 [06:17:17]save to /storage/0359/doc_00067771 [06:17:17]save last doc name /storage/0359/doc_00067771 to /storage/kkm_last_doc_name [06:17:17]save OK [06:17:17]Clear old archive folders... [06:17:17]ProcessDocumentItem done err = 0, tmpTLVsize=252 [06:17:17]tlvbuf is 01B2FA20 [06:17:17]SAM_PROTO_ClearQueue [06:17:17]wFMCommunicate request_size=4 [06:17:17]MH_SAM_APDU [06:17:17]CAPDU: 80 09 00 00 [06:17:17]Write to MH i2c: E2 08 00 55 1E 80 09 00 00 00 00 00 00 E5 [06:17:17]Write i2c OK [06:17:17]MH_I2C_Read... [06:17:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:17:17]Read from MH i2c: E2 [06:17:17]MH_I2C_Read... [06:17:17]Read from MH i2c: E2 03 00 [06:17:17]MH_I2C_Read... [06:17:17]Read from MH i2c: E2 03 00 55 1E 00 90 00 E7 [06:17:17]RAPDU: 90 00 [06:17:17]wFMCommunicate OK [06:17:17]SAM_PROTO_ClearQueue done [06:17:17]KKMCreateOFDPacket [06:17:17]OFDProtocolAddRootSTLVToBuf [06:17:17]FM_MakeSignedData [06:17:17]FM_MakeSignedData [06:17:17]SAM_PROTO_SignData [06:17:17]wFMCommunicate request_size=4 [06:17:17]MH_SAM_APDU [06:17:17]CAPDU: 80 0D 01 02 [06:17:17]Write to MH i2c: E2 08 00 56 1E 80 0D 01 02 00 00 00 00 ED [06:17:17]Write i2c OK [06:17:17]MH_I2C_Read... [06:17:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:17:17]Read from MH i2c: E2 [06:17:17]MH_I2C_Read... [06:17:17]Read from MH i2c: E2 03 00 [06:17:17]MH_I2C_Read... [06:17:17]Read from MH i2c: E2 03 00 56 1E 00 90 00 E8 [06:17:17]RAPDU: 90 00 [06:17:17]wFMCommunicate OK [06:17:17]wFMCommunicate request_size=255 [06:17:17]MH_SAM_APDU [06:17:17]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 F0 47 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 BB 08 01 00 35 04 06 00 [06:17:17]Write to MH i2c: E2 02 01 57 1E 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 F0 47 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 BB 08 01 00 35 04 06 00 00 00 45 [06:17:17]Write i2c OK [06:17:17]MH_I2C_Read... [06:17:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:17:18]Read from MH i2c: E2 [06:17:18]MH_I2C_Read... [06:17:18]Read from MH i2c: E2 03 00 [06:17:18]MH_I2C_Read... [06:17:18]Read from MH i2c: E2 03 00 57 1E 00 90 00 E9 [06:17:18]RAPDU: 90 00 [06:17:18]wFMCommunicate OK [06:17:18]wFMCommunicate request_size=11 [06:17:18]MH_SAM_APDU [06:17:18]CAPDU: 80 0D 02 02 06 59 69 8C 5A 14 51 [06:17:18]Write to MH i2c: E2 0E 00 58 1E 80 0D 02 02 06 00 59 69 8C 5A 14 51 00 00 09 [06:17:18]Write i2c OK [06:17:18]MH_I2C_Read... [06:17:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:17:18]Read from MH i2c: E2 [06:17:18]MH_I2C_Read... [06:17:18]Read from MH i2c: E2 03 00 [06:17:18]MH_I2C_Read... [06:17:18]Read from MH i2c: E2 03 00 58 1E 00 90 00 EA [06:17:18]RAPDU: 90 00 [06:17:18]wFMCommunicate OK [06:17:18]wFMCommunicate request_size=4 [06:17:18]MH_SAM_APDU [06:17:18]CAPDU: 80 0D 03 02 [06:17:18]Write to MH i2c: E2 08 00 59 1E 80 0D 03 02 00 00 00 00 F2 [06:17:18]Write i2c OK [06:17:18]MH_I2C_Read... [06:17:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:17:18]Read from MH i2c: E2 [06:17:18]MH_I2C_Read... [06:17:18]Read from MH i2c: E2 0B 00 [06:17:18]MH_I2C_Read... [06:17:18]Read from MH i2c: E2 0B 00 59 1E 00 8B 50 D6 A6 10 B9 52 69 90 00 CE [06:17:18]RAPDU: 8B 50 D6 A6 10 B9 52 69 90 00 [06:17:18]wFMCommunicate OK [06:17:18]SAM_PROTO_SignData done [06:17:18]FM_MakeSignedData done [06:17:18]CreateOFDProtocolMessage [06:17:18]wFMCommunicate request_size=4 [06:17:18]MH_SAM_APDU [06:17:18]CAPDU: 80 11 00 00 [06:17:18]Write to MH i2c: E2 08 00 5A 1E 80 11 00 00 00 00 00 00 F2 [06:17:18]Write i2c OK [06:17:18]MH_I2C_Read... [06:17:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:17:18]Read from MH i2c: E2 [06:17:18]MH_I2C_Read... [06:17:18]Read from MH i2c: E2 17 00 [06:17:18]MH_I2C_Read... [06:17:18]Read from MH i2c: E2 17 00 5A 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 48 [06:17:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [06:17:18]wFMCommunicate OK [06:17:18]CreateOFDProtocolMessage done [06:17:18]OFDSenderStorePacket 67771 [06:17:18]StoreOFDPacket docnum=67771 [06:17:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 01 00 00 11 D8 08 01 9A DB 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 F0 47 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 BB 08 01 00 35 04 06 00 59 69 8C 5A 14 51 8B 50 D6 A6 10 B9 52 69 [06:17:18]CheckFolder [06:17:18]dirname=/storage/ofd_packets [06:17:18]CheckFolder done [06:17:18]ProducePacketName [06:17:18]name=ofd_packets/00067771 [06:17:18]NVStorageSaveData ofd_packets/00067771 [06:17:18]File name is /storage/ofd_packets/00067771 [06:17:18]Write 302 bytes [06:17:18]NVStorageSaveData done [06:17:18]OFDSenderStorePacket done [06:17:18]KKMCreateOFDPacket done [06:17:18]NVStorageSaveData kkm_last_timestamp [06:17:18]File name is /storage/kkm_last_timestamp [06:17:18]Write 4 bytes [06:17:18]NVStorageSaveData done [06:17:18]ExternCall_PrintAddStr [06:17:18]wPrintStart [06:17:18]Write to MH i2c: 01 00 00 5B 1E 79 [06:17:18]Write i2c OK [06:17:18]MH_I2C_Read... [06:17:18]Read from MH i2c: 01 [06:17:18]MH_I2C_Read... [06:17:18]Read from MH i2c: 01 07 00 [06:17:18]MH_I2C_Read... [06:17:18]Read from MH i2c: 01 07 00 5B 1E 00 00 00 00 00 FF 0F 8E [06:17:18]RasterBufferAndPrint [06:17:18]line Счет N : (1)507939 [06:17:18]line ИНН: 02508201610067 [06:17:18]line Контрольно-Кассовый Чек [06:17:18]line ПРОДАЖА [06:17:18]line ТРК (МРК, ГНК) : 32 [06:17:18]line Товар: 2710124130 [06:17:18]line Super-92-К-5 [06:17:18]line 14.750 * 67.80 [06:17:18]line = 1000.05 [06:17:18]line НДС 12% НСП 1% [06:17:18]line > о реализуемом товаре [06:17:18]line ОКРУГЛЕНИЕ: -0.05 [06:17:18]line ИТОГО: 1000.00 [06:17:18]line Внесено: 1000.00 [06:17:18]line СДАЧА: 0.00 [06:17:18]line НСП 1% : 8.85 [06:17:18]line НДС 12% : 106.20 [06:17:18]line Наличными: 1000.00 [06:17:18]line Безнал.: 0.00 [06:17:18]line Место: АЗС № 91 "Партнер Нефть" [06:17:18]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [06:17:18]line СНО: Общий режим [06:17:18]line Чек 10 18.05.2024 06:17 [06:17:18]line Смена: 359 ФФД: 1.0 [06:17:18]line ЗНМ: 0300000119 [06:17:18]line РНМ: 0000000000091845 [06:17:18]line Версия ККМ: 001 [06:17:18]line ФМ: 0000000000871829 [06:17:18]line ФД: 67771 [06:17:18]line ФПД: 98309861151825 [06:17:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T061720&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67771&fm=98309861151825&tin=02508201610067®Number=0000000000091845&sum=100000 [06:17:18]written 0, free lines is 4095 [06:17:18]OFD Sender: Processing packet 67771 [packets to send 35, broken 34] [06:17:18]ProducePacketName [06:17:18]name=ofd_packets/00067771 [06:17:18]OFD Sender: To server: pG, [06:17:18]CommunicateWithHost lk.salyk.kg:30040 [06:17:18]ConnectInit lk.salyk.kg [06:17:18]Connected sock=10 [06:17:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 01 00 00 11 D8 08 01 9A DB 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 F0 47 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 BB 08 01 00 35 04 06 00 59 69 8C 5A 14 51 8B 50 D6 A6 10 B9 52 69 [06:17:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 C2 21 47 00 F2 D8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 BB 08 01 00 F4 03 04 00 C6 EF 47 66 B6 04 01 00 00 06 FC AF 3D F5 A3 BC D9 [06:17:18]CommunicateWithHost err = 0 [06:17:18]CheckOFDResponse [06:17:18]1017 (14) - 77093643461234 [06:17:18]1041 (16) - 0000000000871829 [06:17:18]1040 (4) - 67771 [06:17:18]1012 (4) - 18.05.2024 00:01 [06:17:18]1206 (1) - 0 [06:17:18]OFD Sender: Remove packet 67771 [06:17:18]ProducePacketName [06:17:18]name=ofd_packets/00067771 [06:17:18]NVStorageDeleteData [06:17:19]Write to MH i2c: 01 00 00 85 1E A3 [06:17:19]Write i2c OK [06:17:19]MH_I2C_Read... [06:17:19]Read from MH i2c: 01 [06:17:19]MH_I2C_Read... [06:17:19]Read from MH i2c: 01 07 00 [06:17:19]MH_I2C_Read... [06:17:19]Read from MH i2c: 01 07 00 85 1E 00 00 00 00 00 D4 0C 8A [06:17:19]RasterBufferAndPrint [06:17:19]line [06:17:19]line [06:17:19]line [06:17:19]line [06:17:19]line [06:17:19]written 0, free lines is 3290 [06:17:19]MH_Cut [06:17:19]Write to MH i2c: D1 01 00 8C 1E 01 7C [06:17:19]Write i2c OK [06:17:19]MH_I2C_Read... [06:17:19]Read from MH i2c: D1 [06:17:19]MH_I2C_Read... [06:17:19]Read from MH i2c: D1 01 00 [06:17:19]MH_I2C_Read... [06:17:19]Read from MH i2c: D1 01 00 8C 1E 00 7B [06:17:19]Write to MH i2c: 01 00 00 8D 1E AB [06:17:19]Write i2c OK [06:17:19]MH_I2C_Read... [06:17:19]OFD Sender: No OFD packet to send [06:17:19]*** Cut start [06:17:19]*** Purtial cut [06:17:19]*** Stage 1: CUTSNS_PIN = 1 [06:17:20]Read from MH i2c: 01 [06:17:20]MH_I2C_Read... [06:17:20]*** Stop cut motor [06:17:20]*** Cut end [06:17:20]Read from MH i2c: 01 07 00 [06:17:20]MH_I2C_Read... [06:17:20]Read from MH i2c: 01 07 00 8D 1E 00 00 00 00 00 FF 0F C0 [06:17:20]process_action close_receipt done [06:17:20]requested_data is exist [06:17:20]produce_requested_data [06:17:20]requested_item fm.sn is exist - process it [06:17:20]wFMCommunicate request_size=4 [06:17:20]MH_SAM_APDU [06:17:20]CAPDU: 80 11 00 00 [06:17:20]Write to MH i2c: E2 08 00 8E 1E 80 11 00 00 00 00 00 00 26 [06:17:20]Write i2c OK [06:17:20]MH_I2C_Read... [06:17:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:17:20]Read from MH i2c: E2 [06:17:20]MH_I2C_Read... [06:17:20]Read from MH i2c: E2 17 00 [06:17:20]MH_I2C_Read... [06:17:20]Read from MH i2c: E2 17 00 8E 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 7C [06:17:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [06:17:20]wFMCommunicate OK [06:17:20]requested_item fd.num is exist - process it [06:17:20]SAM_PROTO_GetFieldsCounters [06:17:20]wFMCommunicate request_size=4 [06:17:20]MH_SAM_APDU [06:17:20]CAPDU: 80 13 00 00 [06:17:20]Write to MH i2c: E2 08 00 8F 1E 80 13 00 00 00 00 00 00 29 [06:17:20]Write i2c OK [06:17:20]MH_I2C_Read... [06:17:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:17:20]Read from MH i2c: E2 [06:17:20]MH_I2C_Read... [06:17:20]Read from MH i2c: E2 62 00 [06:17:20]MH_I2C_Read... [06:17:20]Read from MH i2c: E2 62 00 8F 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 BB 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 99 [06:17:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 BB 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:17:20]wFMCommunicate OK [06:17:20]SAM_PROTO_GetFieldsCounters done [06:17:20]requested_item shift.num is exist - process it [06:17:20]requested_item shift.opened is exist - process it [06:17:20]req_shift_opened [06:17:20]FM_GetShiftState [06:17:20]SAM_PROTO_GetShiftState [06:17:20]wFMCommunicate request_size=4 [06:17:20]MH_SAM_APDU [06:17:20]CAPDU: 80 13 01 00 [06:17:20]Write to MH i2c: E2 08 00 90 1E 80 13 01 00 00 00 00 00 2B [06:17:20]Write i2c OK [06:17:20]MH_I2C_Read... [06:17:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:17:20]Read from MH i2c: E2 [06:17:20]MH_I2C_Read... [06:17:20]Read from MH i2c: E2 0E 00 [06:17:20]MH_I2C_Read... [06:17:20]Read from MH i2c: E2 0E 00 90 1E 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 92 [06:17:20]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [06:17:20]wFMCommunicate OK [06:17:20]SAM_PROTO_GetShiftState done [06:17:20]FM_GetShiftState done [06:17:20]req_shift_opened done [06:17:20]requested_item shift.open_date is exist - process it [06:17:20]req_shift_open_date [06:17:20]req_shift_open_date done [06:17:20]produce_requested_data done [06:17:20]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67771,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [06:17:20]process_action_free close_receipt [06:17:20]json_value_free [06:17:20]json_value_free done [06:17:20]process_json_proto returns [06:17:20]Send response to host [06:17:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67771,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [06:17:20]free response buf [06:17:20]execute_script done [06:17:20]execute_script returns [06:17:20]free content buf [06:17:20]Sock 9.Close socket [06:17:20]Sock 9.Thread stoped [06:17:24]OFD Sender: No OFD packet to send [06:17:29]OFD Sender: No OFD packet to send [06:17:34]OFD Sender: No OFD packet to send [06:17:39]OFD Sender: No OFD packet to send [06:17:44]OFD Sender: No OFD packet to send [06:17:45]accept exits with 7 [06:17:45]New connection [06:17:45]New thread 3066752356 created [06:17:45]Thread 3066608996 joined [06:17:45]Waiting for new connection... [06:17:45] Sock 7.Parse request [06:17:45]Sock 7.Check first char [06:17:45]Sock 7.First char is OK [06:17:45]request: POST /json_proto HTTP/1.0 [06:17:45]Method: POST [06:17:45]URL: /json_proto [06:17:45]Method is POST - this is cgi request [06:17:45]url: /json_proto [06:17:45]query_string will be loaded in cgi processing [06:17:45]execute_cgi json_proto POST (null) [06:17:45]execute_cgi path=json_proto method=POST [06:17:45]POST find Content-Length [06:17:45]Host: 172.17.41.195:8080 [06:17:45]Content-Length: 677 [06:17:45]Content-Type: application/json [06:17:45] [06:17:45]POST finish read [06:17:45]Found Content-Length = 677 [06:17:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507940", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.80, "quantity" : 7.490, "sum" : 500.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:17:45]execute_script... [06:17:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507940", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.80, "quantity" : 7.490, "sum" : 500.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:17:45]POST & json_proto [06:17:45]process_json_proto [06:17:45]json parsed OK: [06:17:45]protocol is kg_v1.0 [06:17:45]action value=close_receipt [06:17:45]process_action close_receipt [06:17:45]cmd_close_receipt [06:17:45]MH_GetDate [06:17:45]Write to MH i2c: F0 00 00 91 1E 9E [06:17:45]Write i2c OK [06:17:45]MH_I2C_Read... [06:17:45]Read from MH i2c: F0 [06:17:45]MH_I2C_Read... [06:17:45]Read from MH i2c: F0 09 00 [06:17:45]MH_I2C_Read... [06:17:45]Read from MH i2c: F0 09 00 91 1E 00 0D 48 48 66 FC 21 6F 64 9A [06:17:45]GetLastDocTimeStamp 1716013040 [06:17:45]current date 1716013069 [06:17:45]FM_GetShiftState [06:17:45]SAM_PROTO_GetShiftState [06:17:45]wFMCommunicate request_size=4 [06:17:45]MH_SAM_APDU [06:17:45]CAPDU: 80 13 01 00 [06:17:45]Write to MH i2c: E2 08 00 92 1E 80 13 01 00 00 00 00 00 2D [06:17:45]Write i2c OK [06:17:45]MH_I2C_Read... [06:17:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:17:45]Read from MH i2c: E2 [06:17:45]MH_I2C_Read... [06:17:45]Read from MH i2c: E2 0E 00 [06:17:45]MH_I2C_Read... [06:17:45]Read from MH i2c: E2 0E 00 92 1E 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 94 [06:17:45]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [06:17:45]wFMCommunicate OK [06:17:45]SAM_PROTO_GetShiftState done [06:17:45]FM_GetShiftState done [06:17:45]opened in 1715991483 [06:17:45]opened+sec_in_day 1716077883 [06:17:45]quantity*price = 50033 [06:17:45]sum+1 = 50034 [06:17:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.33 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.13 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 11 18.05.2024 06:17 Смена: 359 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67772 ФПД: 38465243679237 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T061749&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67772&fm=38465243679237&tin=02508201610067®Number=0000000000091845&sum=50000 [06:17:46]StoreToDocumentArchive [06:17:46]shift 359 fd 67772 [06:17:46]save to /storage/0359/doc_00067772 [06:17:46]save last doc name /storage/0359/doc_00067772 to /storage/kkm_last_doc_name [06:17:46]save OK [06:17:46]Clear old archive folders... [06:17:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:17:46]tlvbuf is 01B456C0 [06:17:46]SAM_PROTO_ClearQueue [06:17:46]wFMCommunicate request_size=4 [06:17:46]MH_SAM_APDU [06:17:46]CAPDU: 80 09 00 00 [06:17:46]Write to MH i2c: E2 08 00 9F 1E 80 09 00 00 00 00 00 00 2F [06:17:46]Write i2c OK [06:17:46]MH_I2C_Read... [06:17:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:17:46]Read from MH i2c: E2 [06:17:46]MH_I2C_Read... [06:17:46]Read from MH i2c: E2 03 00 [06:17:46]MH_I2C_Read... [06:17:46]Read from MH i2c: E2 03 00 9F 1E 00 90 00 31 [06:17:46]RAPDU: 90 00 [06:17:46]wFMCommunicate OK [06:17:46]SAM_PROTO_ClearQueue done [06:17:46]KKMCreateOFDPacket [06:17:46]OFDProtocolAddRootSTLVToBuf [06:17:46]FM_MakeSignedData [06:17:46]FM_MakeSignedData [06:17:46]SAM_PROTO_SignData [06:17:46]wFMCommunicate request_size=4 [06:17:46]MH_SAM_APDU [06:17:46]CAPDU: 80 0D 01 02 [06:17:46]Write to MH i2c: E2 08 00 A0 1E 80 0D 01 02 00 00 00 00 37 [06:17:46]Write i2c OK [06:17:46]MH_I2C_Read... [06:17:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:17:46]Read from MH i2c: E2 [06:17:46]MH_I2C_Read... [06:17:46]Read from MH i2c: E2 03 00 [06:17:46]MH_I2C_Read... [06:17:46]Read from MH i2c: E2 03 00 A0 1E 00 90 00 32 [06:17:46]RAPDU: 90 00 [06:17:46]wFMCommunicate OK [06:17:46]wFMCommunicate request_size=255 [06:17:46]MH_SAM_APDU [06:17:46]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 42 1D 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 0D 48 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 BC 08 01 00 35 04 06 00 22 [06:17:46]Write to MH i2c: E2 02 01 A1 1E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 42 1D 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 0D 48 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 BC 08 01 00 35 04 06 00 22 00 00 1F [06:17:46]Write i2c OK [06:17:46]MH_I2C_Read... [06:17:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:17:47]Read from MH i2c: E2 [06:17:47]MH_I2C_Read... [06:17:47]Read from MH i2c: E2 03 00 [06:17:47]MH_I2C_Read... [06:17:47]Read from MH i2c: E2 03 00 A1 1E 00 90 00 33 [06:17:47]RAPDU: 90 00 [06:17:47]wFMCommunicate OK [06:17:47]wFMCommunicate request_size=10 [06:17:47]MH_SAM_APDU [06:17:47]CAPDU: 80 0D 02 02 05 FB E3 2F 8A 05 [06:17:47]Write to MH i2c: E2 0D 00 A2 1E 80 0D 02 02 05 00 FB E3 2F 8A 05 00 00 E0 [06:17:47]Write i2c OK [06:17:47]MH_I2C_Read... [06:17:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:17:47]Read from MH i2c: E2 [06:17:47]MH_I2C_Read... [06:17:47]Read from MH i2c: E2 03 00 [06:17:47]MH_I2C_Read... [06:17:47]Read from MH i2c: E2 03 00 A2 1E 00 90 00 34 [06:17:47]RAPDU: 90 00 [06:17:47]wFMCommunicate OK [06:17:47]wFMCommunicate request_size=4 [06:17:47]MH_SAM_APDU [06:17:47]CAPDU: 80 0D 03 02 [06:17:47]Write to MH i2c: E2 08 00 A3 1E 80 0D 03 02 00 00 00 00 3C [06:17:47]Write i2c OK [06:17:47]MH_I2C_Read... [06:17:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:17:47]Read from MH i2c: E2 [06:17:47]MH_I2C_Read... [06:17:47]Read from MH i2c: E2 0B 00 [06:17:47]MH_I2C_Read... [06:17:47]Read from MH i2c: E2 0B 00 A3 1E 00 DC DE 0B 9E 37 6A 08 93 90 00 DC [06:17:47]RAPDU: DC DE 0B 9E 37 6A 08 93 90 00 [06:17:47]wFMCommunicate OK [06:17:47]SAM_PROTO_SignData done [06:17:47]FM_MakeSignedData done [06:17:47]CreateOFDProtocolMessage [06:17:47]wFMCommunicate request_size=4 [06:17:47]MH_SAM_APDU [06:17:47]CAPDU: 80 11 00 00 [06:17:47]Write to MH i2c: E2 08 00 A4 1E 80 11 00 00 00 00 00 00 3C [06:17:47]Write i2c OK [06:17:47]MH_I2C_Read... [06:17:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:17:47]Read from MH i2c: E2 [06:17:47]MH_I2C_Read... [06:17:47]Read from MH i2c: E2 17 00 [06:17:47]MH_I2C_Read... [06:17:47]Read from MH i2c: E2 17 00 A4 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 92 [06:17:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [06:17:47]wFMCommunicate OK [06:17:47]CreateOFDProtocolMessage done [06:17:47]OFDSenderStorePacket 67772 [06:17:47]StoreOFDPacket docnum=67772 [06:17:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 DE 68 07 01 FB 84 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 42 1D 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 0D 48 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 BC 08 01 00 35 04 06 00 22 FB E3 2F 8A 05 DC DE 0B 9E 37 6A 08 93 [06:17:47]CheckFolder [06:17:47]dirname=/storage/ofd_packets [06:17:47]CheckFolder done [06:17:47]ProducePacketName [06:17:47]name=ofd_packets/00067772 [06:17:47]NVStorageSaveData ofd_packets/00067772 [06:17:47]File name is /storage/ofd_packets/00067772 [06:17:47]Write 301 bytes [06:17:47]NVStorageSaveData done [06:17:47]OFDSenderStorePacket done [06:17:47]KKMCreateOFDPacket done [06:17:47]NVStorageSaveData kkm_last_timestamp [06:17:47]File name is /storage/kkm_last_timestamp [06:17:47]Write 4 bytes [06:17:47]NVStorageSaveData done [06:17:47]ExternCall_PrintAddStr [06:17:47]wPrintStart [06:17:47]Write to MH i2c: 01 00 00 A5 1E C3 [06:17:47]Write i2c OK [06:17:47]MH_I2C_Read... [06:17:47]Read from MH i2c: 01 [06:17:47]MH_I2C_Read... [06:17:47]Read from MH i2c: 01 07 00 [06:17:47]MH_I2C_Read... [06:17:47]Read from MH i2c: 01 07 00 A5 1E 00 00 00 00 00 FF 0F D8 [06:17:47]RasterBufferAndPrint [06:17:47]line Счет N : (1)507940 [06:17:47]line ИНН: 02508201610067 [06:17:47]line Контрольно-Кассовый Чек [06:17:47]line ПРОДАЖА [06:17:47]line ТРК (МРК, ГНК) : 13 [06:17:47]line Товар: 2710124130 [06:17:47]line Аи-92-К-5 [06:17:47]line 7.490 * 66.80 [06:17:47]line = 500.33 [06:17:47]line НДС 12% НСП 1% [06:17:47]line > о реализуемом товаре [06:17:47]line ОКРУГЛЕНИЕ: -0.33 [06:17:47]line ИТОГО: 500.00 [06:17:47]line Внесено: 500.00 [06:17:47]line СДАЧА: 0.00 [06:17:47]line НСП 1% : 4.43 [06:17:47]line НДС 12% : 53.13 [06:17:47]line Наличными: 500.00 [06:17:47]line Безнал.: 0.00 [06:17:47]line Место: АЗС № 91 "Партнер Нефть" [06:17:47]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [06:17:47]line СНО: Общий режим [06:17:47]line Чек 11 18.05.2024 06:17 [06:17:47]line Смена: 359 ФФД: 1.0 [06:17:47]line ЗНМ: 0300000119 [06:17:47]line РНМ: 0000000000091845 [06:17:47]line Версия ККМ: 001 [06:17:47]line ФМ: 0000000000871829 [06:17:47]line ФД: 67772 [06:17:47]line ФПД: 38465243679237 [06:17:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T061749&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67772&fm=38465243679237&tin=02508201610067®Number=0000000000091845&sum=50000 [06:17:47]OFD Sender: Processing packet 67772 [packets to send 35, broken 34] [06:17:47]ProducePacketName [06:17:47]name=ofd_packets/00067772 [06:17:47]OFD Sender: To server: pG, [06:17:47]CommunicateWithHost lk.salyk.kg:30040 [06:17:47]ConnectInit lk.salyk.kg [06:17:47]written 0, free lines is 4095 [06:17:47]Connected sock=10 [06:17:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 DE 68 07 01 FB 84 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 42 1D 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 0D 48 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 BC 08 01 00 35 04 06 00 22 FB E3 2F 8A 05 DC DE 0B 9E 37 6A 08 93 [06:17:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 3C 86 47 00 52 16 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 BC 08 01 00 F4 03 04 00 E3 EF 47 66 B6 04 01 00 00 2A A7 1C 77 44 A9 57 BB [06:17:47]CommunicateWithHost err = 0 [06:17:47]CheckOFDResponse [06:17:47]1017 (14) - 77093643461234 [06:17:47]1041 (16) - 0000000000871829 [06:17:47]1040 (4) - 67772 [06:17:47]1012 (4) - 18.05.2024 00:01 [06:17:47]1206 (1) - 0 [06:17:47]OFD Sender: Remove packet 67772 [06:17:47]ProducePacketName [06:17:47]name=ofd_packets/00067772 [06:17:47]NVStorageDeleteData [06:17:47]Write to MH i2c: 01 00 00 CF 1E ED [06:17:47]Write i2c OK [06:17:47]MH_I2C_Read... [06:17:47]Read from MH i2c: 01 [06:17:47]MH_I2C_Read... [06:17:47]Read from MH i2c: 01 07 00 [06:17:47]MH_I2C_Read... [06:17:47]Read from MH i2c: 01 07 00 CF 1E 00 00 00 00 00 C4 0C C4 [06:17:47]RasterBufferAndPrint [06:17:47]line [06:17:47]line [06:17:47]line [06:17:47]line [06:17:47]line [06:17:47]written 0, free lines is 3273 [06:17:47]MH_Cut [06:17:47]Write to MH i2c: D1 01 00 D6 1E 01 C6 [06:17:47]Write i2c OK [06:17:47]MH_I2C_Read... [06:17:47]Read from MH i2c: D1 [06:17:47]MH_I2C_Read... [06:17:47]Read from MH i2c: D1 01 00 [06:17:47]MH_I2C_Read... [06:17:47]Read from MH i2c: D1 01 00 D6 1E 00 C5 [06:17:47]Write to MH i2c: 01 00 00 D7 1E F5 [06:17:47]Write i2c OK [06:17:47]MH_I2C_Read... [06:17:48]OFD Sender: No OFD packet to send [06:17:48]*** Cut start [06:17:48]*** Purtial cut [06:17:48]*** CUTSNS_PIN = 0 [06:17:49]*** Stage 1: CUTSNS_PIN = 1 [06:17:50]Read from MH i2c: 01 [06:17:50]MH_I2C_Read... [06:17:50]*** Stop cut motor [06:17:50]*** Cut end [06:17:50]Read from MH i2c: 01 07 00 [06:17:50]MH_I2C_Read... [06:17:50]Read from MH i2c: 01 07 00 D7 1E 00 00 00 00 00 FF 0F 0A [06:17:50]process_action close_receipt done [06:17:50]requested_data is exist [06:17:50]produce_requested_data [06:17:50]requested_item fm.sn is exist - process it [06:17:50]wFMCommunicate request_size=4 [06:17:50]MH_SAM_APDU [06:17:50]CAPDU: 80 11 00 00 [06:17:50]Write to MH i2c: E2 08 00 D8 1E 80 11 00 00 00 00 00 00 70 [06:17:50]Write i2c OK [06:17:50]MH_I2C_Read... [06:17:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:17:50]Read from MH i2c: E2 [06:17:50]MH_I2C_Read... [06:17:50]Read from MH i2c: E2 17 00 [06:17:50]MH_I2C_Read... [06:17:50]Read from MH i2c: E2 17 00 D8 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 C6 [06:17:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [06:17:50]wFMCommunicate OK [06:17:50]requested_item fd.num is exist - process it [06:17:50]SAM_PROTO_GetFieldsCounters [06:17:50]wFMCommunicate request_size=4 [06:17:50]MH_SAM_APDU [06:17:50]CAPDU: 80 13 00 00 [06:17:50]Write to MH i2c: E2 08 00 D9 1E 80 13 00 00 00 00 00 00 73 [06:17:50]Write i2c OK [06:17:50]MH_I2C_Read... [06:17:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:17:51]Read from MH i2c: E2 [06:17:51]MH_I2C_Read... [06:17:51]Read from MH i2c: E2 62 00 [06:17:51]MH_I2C_Read... [06:17:51]Read from MH i2c: E2 62 00 D9 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 BC 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 E7 [06:17:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 BC 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:17:51]wFMCommunicate OK [06:17:51]SAM_PROTO_GetFieldsCounters done [06:17:51]requested_item shift.num is exist - process it [06:17:51]requested_item shift.opened is exist - process it [06:17:51]req_shift_opened [06:17:51]FM_GetShiftState [06:17:51]SAM_PROTO_GetShiftState [06:17:51]wFMCommunicate request_size=4 [06:17:51]MH_SAM_APDU [06:17:51]CAPDU: 80 13 01 00 [06:17:51]Write to MH i2c: E2 08 00 DA 1E 80 13 01 00 00 00 00 00 75 [06:17:51]Write i2c OK [06:17:51]MH_I2C_Read... [06:17:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:17:51]Read from MH i2c: E2 [06:17:51]MH_I2C_Read... [06:17:51]Read from MH i2c: E2 0E 00 [06:17:51]MH_I2C_Read... [06:17:51]Read from MH i2c: E2 0E 00 DA 1E 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 DC [06:17:51]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [06:17:51]wFMCommunicate OK [06:17:51]SAM_PROTO_GetShiftState done [06:17:51]FM_GetShiftState done [06:17:51]req_shift_opened done [06:17:51]requested_item shift.open_date is exist - process it [06:17:51]req_shift_open_date [06:17:51]req_shift_open_date done [06:17:51]produce_requested_data done [06:17:51]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67772,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [06:17:51]process_action_free close_receipt [06:17:51]json_value_free [06:17:51]json_value_free done [06:17:51]process_json_proto returns [06:17:51]Send response to host [06:17:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67772,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [06:17:51]free response buf [06:17:51]execute_script done [06:17:51]execute_script returns [06:17:51]free content buf [06:17:51]Sock 7.Close socket [06:17:51]Sock 7.Thread stoped [06:17:53]OFD Sender: No OFD packet to send [06:17:58]OFD Sender: No OFD packet to send [06:18:03]OFD Sender: No OFD packet to send [06:18:08]OFD Sender: No OFD packet to send [06:18:13]OFD Sender: No OFD packet to send [06:18:18]OFD Sender: No OFD packet to send [06:18:23]OFD Sender: No OFD packet to send [06:18:28]OFD Sender: No OFD packet to send [06:18:33]OFD Sender: No OFD packet to send [06:18:38]OFD Sender: No OFD packet to send [06:18:43]OFD Sender: No OFD packet to send [06:18:48]OFD Sender: No OFD packet to send [06:18:53]OFD Sender: No OFD packet to send [06:18:58]OFD Sender: No OFD packet to send [06:19:03]OFD Sender: No OFD packet to send [06:19:08]OFD Sender: No OFD packet to send [06:19:13]OFD Sender: No OFD packet to send [06:19:18]OFD Sender: No OFD packet to send [06:19:23]OFD Sender: No OFD packet to send [06:19:28]OFD Sender: No OFD packet to send [06:19:33]OFD Sender: No OFD packet to send [06:19:38]OFD Sender: No OFD packet to send [06:19:43]OFD Sender: No OFD packet to send [06:19:48]OFD Sender: No OFD packet to send [06:19:53]OFD Sender: No OFD packet to send [06:19:58]OFD Sender: No OFD packet to send [06:20:03]OFD Sender: No OFD packet to send [06:20:08]OFD Sender: No OFD packet to send [06:20:13]OFD Sender: No OFD packet to send [06:20:18]OFD Sender: No OFD packet to send [06:20:23]OFD Sender: No OFD packet to send [06:20:28]OFD Sender: No OFD packet to send [06:20:33]OFD Sender: No OFD packet to send [06:20:38]OFD Sender: No OFD packet to send [06:20:43]OFD Sender: No OFD packet to send [06:20:48]OFD Sender: No OFD packet to send [06:20:53]OFD Sender: No OFD packet to send [06:20:58]OFD Sender: No OFD packet to send [06:21:03]OFD Sender: No OFD packet to send [06:21:08]OFD Sender: No OFD packet to send [06:21:13]OFD Sender: No OFD packet to send [06:21:18]OFD Sender: No OFD packet to send [06:21:23]OFD Sender: No OFD packet to send [06:21:28]OFD Sender: No OFD packet to send [06:21:33]OFD Sender: No OFD packet to send [06:21:38]OFD Sender: No OFD packet to send [06:21:43]OFD Sender: No OFD packet to send [06:21:48]OFD Sender: No OFD packet to send [06:21:53]OFD Sender: No OFD packet to send [06:21:58]OFD Sender: No OFD packet to send [06:22:03]OFD Sender: No OFD packet to send [06:22:08]OFD Sender: No OFD packet to send [06:22:13]OFD Sender: No OFD packet to send [06:22:18]OFD Sender: No OFD packet to send [06:22:23]OFD Sender: No OFD packet to send [06:22:28]OFD Sender: No OFD packet to send [06:22:33]OFD Sender: No OFD packet to send [06:22:38]OFD Sender: No OFD packet to send [06:22:43]OFD Sender: No OFD packet to send [06:22:43]accept exits with 9 [06:22:43]New connection [06:22:43]New thread 3066608996 created [06:22:43]Thread 3066752356 joined [06:22:43]Waiting for new connection... [06:22:43] Sock 9.Parse request [06:22:43]Sock 9.Check first char [06:22:43]Sock 9.First char is OK [06:22:43]request: POST /json_proto HTTP/1.0 [06:22:43]Method: POST [06:22:43]URL: /json_proto [06:22:43]Method is POST - this is cgi request [06:22:43]url: /json_proto [06:22:43]query_string will be loaded in cgi processing [06:22:43]execute_cgi json_proto POST (null) [06:22:43]execute_cgi path=json_proto method=POST [06:22:43]POST find Content-Length [06:22:43]Host: 172.17.41.195:8080 [06:22:43]Content-Length: 679 [06:22:43]Content-Type: application/json [06:22:43] [06:22:43]POST finish read [06:22:43]Found Content-Length = 679 [06:22:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507941", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 13.390, "sum" : 1000.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:22:43]execute_script... [06:22:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507941", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 13.390, "sum" : 1000.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:22:43]POST & json_proto [06:22:43]process_json_proto [06:22:43]json parsed OK: [06:22:43]protocol is kg_v1.0 [06:22:43]action value=close_receipt [06:22:43]process_action close_receipt [06:22:43]cmd_close_receipt [06:22:43]MH_GetDate [06:22:43]Write to MH i2c: F0 00 00 DB 1E E8 [06:22:43]Write i2c OK [06:22:43]MH_I2C_Read... [06:22:43]Read from MH i2c: F0 [06:22:43]MH_I2C_Read... [06:22:43]Read from MH i2c: F0 09 00 [06:22:43]MH_I2C_Read... [06:22:43]Read from MH i2c: F0 09 00 DB 1E 00 37 49 48 66 FC 21 6F 64 0F [06:22:43]GetLastDocTimeStamp 1716013069 [06:22:43]current date 1716013367 [06:22:43]FM_GetShiftState [06:22:43]SAM_PROTO_GetShiftState [06:22:43]wFMCommunicate request_size=4 [06:22:43]MH_SAM_APDU [06:22:43]CAPDU: 80 13 01 00 [06:22:43]Write to MH i2c: E2 08 00 DC 1E 80 13 01 00 00 00 00 00 77 [06:22:43]Write i2c OK [06:22:43]MH_I2C_Read... [06:22:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:22:43]Read from MH i2c: E2 [06:22:43]MH_I2C_Read... [06:22:43]Read from MH i2c: E2 0E 00 [06:22:43]MH_I2C_Read... [06:22:43]Read from MH i2c: E2 0E 00 DC 1E 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 DE [06:22:43]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [06:22:43]wFMCommunicate OK [06:22:43]SAM_PROTO_GetShiftState done [06:22:43]FM_GetShiftState done [06:22:43]opened in 1715991483 [06:22:43]opened+sec_in_day 1716077883 [06:22:43]quantity*price = 100023 [06:22:43]sum+1 = 100024 [06:22:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.23 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 12 18.05.2024 06:22 Смена: 359 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67773 ФПД: 29782179913943 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T062247&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67773&fm=29782179913943&tin=02508201610067®Number=0000000000091845&sum=100000 [06:22:45]StoreToDocumentArchive [06:22:45]shift 359 fd 67773 [06:22:45]save to /storage/0359/doc_00067773 [06:22:45]save last doc name /storage/0359/doc_00067773 to /storage/kkm_last_doc_name [06:22:45]save OK [06:22:45]Clear old archive folders... [06:22:45]ProcessDocumentItem done err = 0, tmpTLVsize=248 [06:22:45]tlvbuf is B6F24630 [06:22:45]SAM_PROTO_ClearQueue [06:22:45]wFMCommunicate request_size=4 [06:22:45]MH_SAM_APDU [06:22:45]CAPDU: 80 09 00 00 [06:22:45]Write to MH i2c: E2 08 00 E9 1E 80 09 00 00 00 00 00 00 79 [06:22:45]Write i2c OK [06:22:45]MH_I2C_Read... [06:22:45]Read from MH i2c: E2 [06:22:45]MH_I2C_Read... [06:22:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:22:45]Read from MH i2c: E2 03 00 [06:22:45]MH_I2C_Read... [06:22:45]Read from MH i2c: E2 03 00 E9 1E 00 90 00 7B [06:22:45]RAPDU: 90 00 [06:22:45]wFMCommunicate OK [06:22:45]SAM_PROTO_ClearQueue done [06:22:45]KKMCreateOFDPacket [06:22:45]OFDProtocolAddRootSTLVToBuf [06:22:45]FM_MakeSignedData [06:22:45]FM_MakeSignedData [06:22:45]SAM_PROTO_SignData [06:22:45]wFMCommunicate request_size=4 [06:22:45]MH_SAM_APDU [06:22:45]CAPDU: 80 0D 01 02 [06:22:45]Write to MH i2c: E2 08 00 EA 1E 80 0D 01 02 00 00 00 00 81 [06:22:45]Write i2c OK [06:22:45]MH_I2C_Read... [06:22:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:22:45]Read from MH i2c: E2 [06:22:45]MH_I2C_Read... [06:22:45]Read from MH i2c: E2 03 00 [06:22:45]MH_I2C_Read... [06:22:45]Read from MH i2c: E2 03 00 EA 1E 00 90 00 7C [06:22:45]RAPDU: 90 00 [06:22:45]wFMCommunicate OK [06:22:45]wFMCommunicate request_size=255 [06:22:45]MH_SAM_APDU [06:22:45]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4E 34 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 B7 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 37 49 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 BD 08 01 00 35 04 06 00 1B 16 34 41 [06:22:45]Write to MH i2c: E2 02 01 EB 1E 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4E 34 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 B7 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 37 49 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 BD 08 01 00 35 04 06 00 1B 16 34 41 00 00 69 [06:22:45]Write i2c OK [06:22:45]MH_I2C_Read... [06:22:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:22:45]Read from MH i2c: E2 [06:22:45]MH_I2C_Read... [06:22:45]Read from MH i2c: E2 03 00 [06:22:45]MH_I2C_Read... [06:22:45]Read from MH i2c: E2 03 00 EB 1E 00 90 00 7D [06:22:45]RAPDU: 90 00 [06:22:45]wFMCommunicate OK [06:22:45]wFMCommunicate request_size=7 [06:22:45]MH_SAM_APDU [06:22:45]CAPDU: 80 0D 02 02 02 20 D7 [06:22:45]Write to MH i2c: E2 0A 00 EC 1E 80 0D 02 02 02 00 20 D7 00 00 7F [06:22:45]Write i2c OK [06:22:45]MH_I2C_Read... [06:22:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:22:45]Read from MH i2c: E2 [06:22:45]MH_I2C_Read... [06:22:45]Read from MH i2c: E2 03 00 [06:22:45]MH_I2C_Read... [06:22:45]Read from MH i2c: E2 03 00 EC 1E 00 90 00 7E [06:22:45]RAPDU: 90 00 [06:22:45]wFMCommunicate OK [06:22:45]wFMCommunicate request_size=4 [06:22:45]MH_SAM_APDU [06:22:45]CAPDU: 80 0D 03 02 [06:22:45]Write to MH i2c: E2 08 00 ED 1E 80 0D 03 02 00 00 00 00 86 [06:22:45]Write i2c OK [06:22:45]MH_I2C_Read... [06:22:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:22:45]Read from MH i2c: E2 [06:22:45]MH_I2C_Read... [06:22:45]Read from MH i2c: E2 0B 00 [06:22:45]MH_I2C_Read... [06:22:45]Read from MH i2c: E2 0B 00 ED 1E 00 63 53 29 4F AC 31 11 79 90 00 1C [06:22:45]RAPDU: 63 53 29 4F AC 31 11 79 90 00 [06:22:45]wFMCommunicate OK [06:22:45]SAM_PROTO_SignData done [06:22:45]FM_MakeSignedData done [06:22:45]CreateOFDProtocolMessage [06:22:45]wFMCommunicate request_size=4 [06:22:45]MH_SAM_APDU [06:22:45]CAPDU: 80 11 00 00 [06:22:45]Write to MH i2c: E2 08 00 EE 1E 80 11 00 00 00 00 00 00 86 [06:22:45]Write i2c OK [06:22:45]MH_I2C_Read... [06:22:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:22:45]Read from MH i2c: E2 [06:22:45]MH_I2C_Read... [06:22:45]Read from MH i2c: E2 17 00 [06:22:45]MH_I2C_Read... [06:22:45]Read from MH i2c: E2 17 00 EE 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 DC [06:22:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [06:22:45]wFMCommunicate OK [06:22:45]CreateOFDProtocolMessage done [06:22:45]OFDSenderStorePacket 67773 [06:22:45]StoreOFDPacket docnum=67773 [06:22:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 C0 76 04 01 B9 A4 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4E 34 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 B7 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 37 49 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 BD 08 01 00 35 04 06 00 1B 16 34 41 20 D7 63 53 29 4F AC 31 11 79 [06:22:45]CheckFolder [06:22:45]dirname=/storage/ofd_packets [06:22:45]CheckFolder done [06:22:45]ProducePacketName [06:22:45]name=ofd_packets/00067773 [06:22:45]NVStorageSaveData ofd_packets/00067773 [06:22:45]File name is /storage/ofd_packets/00067773 [06:22:45]Write 298 bytes [06:22:45]NVStorageSaveData done [06:22:45]OFDSenderStorePacket done [06:22:45]KKMCreateOFDPacket done [06:22:45]NVStorageSaveData kkm_last_timestamp [06:22:45]File name is /storage/kkm_last_timestamp [06:22:45]Write 4 bytes [06:22:45]NVStorageSaveData done [06:22:45]ExternCall_PrintAddStr [06:22:45]wPrintStart [06:22:45]Write to MH i2c: 01 00 00 EF 1E 0D [06:22:45]Write i2c OK [06:22:45]MH_I2C_Read... [06:22:45]Read from MH i2c: 01 [06:22:45]MH_I2C_Read... [06:22:45]Read from MH i2c: 01 07 00 [06:22:45]MH_I2C_Read... [06:22:45]Read from MH i2c: 01 07 00 EF 1E 00 00 00 00 00 FF 0F 22 [06:22:45]RasterBufferAndPrint [06:22:45]line Счет N : (1)507941 [06:22:45]line ИНН: 02508201610067 [06:22:45]line Контрольно-Кассовый Чек [06:22:45]line ПРОДАЖА [06:22:45]line ТРК (МРК, ГНК) : 31 [06:22:45]line Товар: 2710194210 [06:22:45]line ДТ-К-5 [06:22:45]line 13.390 * 74.70 [06:22:45]line = 1000.23 [06:22:45]line НДС 12% НСП 1% [06:22:45]line > о реализуемом товаре [06:22:45]line ОКРУГЛЕНИЕ: -0.23 [06:22:45]line ИТОГО: 1000.00 [06:22:45]line Внесено: 1000.00 [06:22:45]line СДАЧА: 0.00 [06:22:45]line НСП 1% : 8.85 [06:22:45]line НДС 12% : 106.22 [06:22:45]line Наличными: 1000.00 [06:22:45]line Безнал.: 0.00 [06:22:45]line Место: АЗС № 91 "Партнер Нефть" [06:22:45]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [06:22:45]line СНО: Общий режим [06:22:45]line Чек 12 18.05.2024 06:22 [06:22:45]line Смена: 359 ФФД: 1.0 [06:22:45]line ЗНМ: 0300000119 [06:22:45]line РНМ: 0000000000091845 [06:22:45]line Версия ККМ: 001 [06:22:45]line ФМ: 0000000000871829 [06:22:45]line ФД: 67773 [06:22:45]line ФПД: 29782179913943 [06:22:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T062247&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67773&fm=29782179913943&tin=02508201610067®Number=0000000000091845&sum=100000 [06:22:45]OFD Sender: Processing packet 67773 [packets to send 35, broken 34] [06:22:45]ProducePacketName [06:22:45]name=ofd_packets/00067773 [06:22:45]OFD Sender: To server: pG, [06:22:45]CommunicateWithHost lk.salyk.kg:30040 [06:22:45]ConnectInit lk.salyk.kg [06:22:45]written 0, free lines is 4095 [06:22:46]Connected sock=10 [06:22:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 C0 76 04 01 B9 A4 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4E 34 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 B7 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 37 49 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 BD 08 01 00 35 04 06 00 1B 16 34 41 20 D7 63 53 29 4F AC 31 11 79 [06:22:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 F9 26 47 00 C8 0E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 BD 08 01 00 F4 03 04 00 0E F1 47 66 B6 04 01 00 00 18 42 67 E3 AC AB D7 ED [06:22:46]CommunicateWithHost err = 0 [06:22:46]CheckOFDResponse [06:22:46]1017 (14) - 77093643461234 [06:22:46]1041 (16) - 0000000000871829 [06:22:46]1040 (4) - 67773 [06:22:46]1012 (4) - 18.05.2024 00:06 [06:22:46]1206 (1) - 0 [06:22:46]OFD Sender: Remove packet 67773 [06:22:46]ProducePacketName [06:22:46]name=ofd_packets/00067773 [06:22:46]NVStorageDeleteData [06:22:46]Write to MH i2c: 01 00 00 19 1F 38 [06:22:46]Write i2c OK [06:22:46]MH_I2C_Read... [06:22:46]Read from MH i2c: 01 [06:22:46]MH_I2C_Read... [06:22:46]Read from MH i2c: 01 07 00 [06:22:46]MH_I2C_Read... [06:22:46]Read from MH i2c: 01 07 00 19 1F 00 00 00 00 00 C9 0C 14 [06:22:46]RasterBufferAndPrint [06:22:46]line [06:22:46]line [06:22:46]line [06:22:46]line [06:22:46]line [06:22:46]written 0, free lines is 3279 [06:22:46]MH_Cut [06:22:46]Write to MH i2c: D1 01 00 20 1F 01 11 [06:22:46]Write i2c OK [06:22:46]MH_I2C_Read... [06:22:46]Read from MH i2c: D1 [06:22:46]MH_I2C_Read... [06:22:46]Read from MH i2c: D1 01 00 [06:22:46]MH_I2C_Read... [06:22:46]Read from MH i2c: D1 01 00 20 1F 00 10 [06:22:46]Write to MH i2c: 01 00 00 21 1F 40 [06:22:46]Write i2c OK [06:22:46]MH_I2C_Read... [06:22:46]OFD Sender: No OFD packet to send [06:22:47]*** Cut start [06:22:47]*** Purtial cut [06:22:47]*** Stage 1: CUTSNS_PIN = 1 [06:22:47]Read from MH i2c: 01 [06:22:47]MH_I2C_Read... [06:22:47]*** Stop cut motor [06:22:47]*** Cut end [06:22:47]Read from MH i2c: 01 07 00 [06:22:47]MH_I2C_Read... [06:22:47]Read from MH i2c: 01 07 00 21 1F 00 00 00 00 00 FF 0F 55 [06:22:47]process_action close_receipt done [06:22:47]requested_data is exist [06:22:47]produce_requested_data [06:22:47]requested_item fm.sn is exist - process it [06:22:47]wFMCommunicate request_size=4 [06:22:47]MH_SAM_APDU [06:22:47]CAPDU: 80 11 00 00 [06:22:47]Write to MH i2c: E2 08 00 22 1F 80 11 00 00 00 00 00 00 BB [06:22:47]Write i2c OK [06:22:47]MH_I2C_Read... [06:22:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:22:47]Read from MH i2c: E2 [06:22:47]MH_I2C_Read... [06:22:47]Read from MH i2c: E2 17 00 [06:22:47]MH_I2C_Read... [06:22:47]Read from MH i2c: E2 17 00 22 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 11 [06:22:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [06:22:47]wFMCommunicate OK [06:22:47]requested_item fd.num is exist - process it [06:22:47]SAM_PROTO_GetFieldsCounters [06:22:47]wFMCommunicate request_size=4 [06:22:47]MH_SAM_APDU [06:22:47]CAPDU: 80 13 00 00 [06:22:47]Write to MH i2c: E2 08 00 23 1F 80 13 00 00 00 00 00 00 BE [06:22:47]Write i2c OK [06:22:47]MH_I2C_Read... [06:22:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:22:47]Read from MH i2c: E2 [06:22:47]MH_I2C_Read... [06:22:47]Read from MH i2c: E2 62 00 [06:22:47]MH_I2C_Read... [06:22:47]Read from MH i2c: E2 62 00 23 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 BD 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 36 [06:22:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 BD 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:22:47]wFMCommunicate OK [06:22:47]SAM_PROTO_GetFieldsCounters done [06:22:47]requested_item shift.num is exist - process it [06:22:47]requested_item shift.opened is exist - process it [06:22:47]req_shift_opened [06:22:47]FM_GetShiftState [06:22:47]SAM_PROTO_GetShiftState [06:22:47]wFMCommunicate request_size=4 [06:22:47]MH_SAM_APDU [06:22:47]CAPDU: 80 13 01 00 [06:22:47]Write to MH i2c: E2 08 00 24 1F 80 13 01 00 00 00 00 00 C0 [06:22:47]Write i2c OK [06:22:47]MH_I2C_Read... [06:22:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:22:47]Read from MH i2c: E2 [06:22:47]MH_I2C_Read... [06:22:47]Read from MH i2c: E2 0E 00 [06:22:47]MH_I2C_Read... [06:22:47]Read from MH i2c: E2 0E 00 24 1F 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 27 [06:22:47]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [06:22:47]wFMCommunicate OK [06:22:47]SAM_PROTO_GetShiftState done [06:22:47]FM_GetShiftState done [06:22:47]req_shift_opened done [06:22:47]requested_item shift.open_date is exist - process it [06:22:47]req_shift_open_date [06:22:47]req_shift_open_date done [06:22:47]produce_requested_data done [06:22:47]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67773,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [06:22:47]process_action_free close_receipt [06:22:47]json_value_free [06:22:47]json_value_free done [06:22:47]process_json_proto returns [06:22:47]Send response to host [06:22:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67773,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [06:22:47]free response buf [06:22:47]execute_script done [06:22:47]execute_script returns [06:22:47]free content buf [06:22:47]Sock 9.Close socket [06:22:47]Sock 9.Thread stoped [06:22:51]OFD Sender: No OFD packet to send [06:22:56]OFD Sender: No OFD packet to send [06:23:01]OFD Sender: No OFD packet to send [06:23:06]OFD Sender: No OFD packet to send [06:23:11]OFD Sender: No OFD packet to send [06:23:16]OFD Sender: No OFD packet to send [06:23:21]OFD Sender: No OFD packet to send [06:23:26]OFD Sender: No OFD packet to send [06:23:31]OFD Sender: No OFD packet to send [06:23:36]OFD Sender: No OFD packet to send [06:23:41]OFD Sender: No OFD packet to send [06:23:46]OFD Sender: No OFD packet to send [06:23:51]OFD Sender: No OFD packet to send [06:23:56]OFD Sender: No OFD packet to send [06:24:01]OFD Sender: No OFD packet to send [06:24:06]OFD Sender: No OFD packet to send [06:24:11]OFD Sender: No OFD packet to send [06:24:16]OFD Sender: No OFD packet to send [06:24:21]OFD Sender: No OFD packet to send [06:24:26]OFD Sender: No OFD packet to send [06:24:31]OFD Sender: No OFD packet to send [06:24:36]OFD Sender: No OFD packet to send [06:24:41]OFD Sender: No OFD packet to send [06:24:46]OFD Sender: No OFD packet to send [06:24:51]OFD Sender: No OFD packet to send [06:24:56]OFD Sender: No OFD packet to send [06:25:01]OFD Sender: No OFD packet to send [06:25:06]OFD Sender: No OFD packet to send [06:25:11]OFD Sender: No OFD packet to send [06:25:16]OFD Sender: No OFD packet to send [06:25:21]OFD Sender: No OFD packet to send [06:25:26]OFD Sender: No OFD packet to send [06:25:31]OFD Sender: No OFD packet to send [06:25:36]OFD Sender: No OFD packet to send [06:25:41]OFD Sender: No OFD packet to send [06:25:46]OFD Sender: No OFD packet to send [06:25:51]OFD Sender: No OFD packet to send [06:25:56]OFD Sender: No OFD packet to send [06:26:01]OFD Sender: No OFD packet to send [06:26:06]OFD Sender: No OFD packet to send [06:26:11]OFD Sender: No OFD packet to send [06:26:16]OFD Sender: No OFD packet to send [06:26:21]OFD Sender: No OFD packet to send [06:26:26]OFD Sender: No OFD packet to send [06:26:31]OFD Sender: No OFD packet to send [06:26:36]OFD Sender: No OFD packet to send [06:26:41]OFD Sender: No OFD packet to send [06:26:46]OFD Sender: No OFD packet to send [06:26:51]OFD Sender: No OFD packet to send [06:26:56]OFD Sender: No OFD packet to send [06:27:01]OFD Sender: No OFD packet to send [06:27:06]OFD Sender: No OFD packet to send [06:27:11]OFD Sender: No OFD packet to send [06:27:16]OFD Sender: No OFD packet to send [06:27:21]OFD Sender: No OFD packet to send [06:27:26]OFD Sender: No OFD packet to send [06:27:31]OFD Sender: No OFD packet to send [06:27:36]OFD Sender: No OFD packet to send [06:27:41]OFD Sender: No OFD packet to send [06:27:46]OFD Sender: No OFD packet to send [06:27:51]OFD Sender: No OFD packet to send [06:27:56]OFD Sender: No OFD packet to send [06:28:01]OFD Sender: No OFD packet to send [06:28:06]OFD Sender: No OFD packet to send [06:28:11]OFD Sender: No OFD packet to send [06:28:17]OFD Sender: No OFD packet to send [06:28:22]OFD Sender: No OFD packet to send [06:28:27]OFD Sender: No OFD packet to send [06:28:32]OFD Sender: No OFD packet to send [06:28:37]OFD Sender: No OFD packet to send [06:28:42]OFD Sender: No OFD packet to send [06:28:47]OFD Sender: No OFD packet to send [06:28:52]OFD Sender: No OFD packet to send [06:28:57]OFD Sender: No OFD packet to send [06:29:02]OFD Sender: No OFD packet to send [06:29:07]OFD Sender: No OFD packet to send [06:29:12]OFD Sender: No OFD packet to send [06:29:17]OFD Sender: No OFD packet to send [06:29:22]OFD Sender: No OFD packet to send [06:29:27]OFD Sender: No OFD packet to send [06:29:32]OFD Sender: No OFD packet to send [06:29:37]OFD Sender: No OFD packet to send [06:29:42]OFD Sender: No OFD packet to send [06:29:47]OFD Sender: No OFD packet to send [06:29:52]OFD Sender: No OFD packet to send [06:29:57]OFD Sender: No OFD packet to send [06:30:02]OFD Sender: No OFD packet to send [06:30:07]OFD Sender: No OFD packet to send [06:30:12]OFD Sender: No OFD packet to send [06:30:17]OFD Sender: No OFD packet to send [06:30:22]OFD Sender: No OFD packet to send [06:30:27]OFD Sender: No OFD packet to send [06:30:32]OFD Sender: No OFD packet to send [06:30:37]OFD Sender: No OFD packet to send [06:30:42]OFD Sender: No OFD packet to send [06:30:47]OFD Sender: No OFD packet to send [06:30:52]OFD Sender: No OFD packet to send [06:30:57]OFD Sender: No OFD packet to send [06:31:02]OFD Sender: No OFD packet to send [06:31:07]OFD Sender: No OFD packet to send [06:31:12]OFD Sender: No OFD packet to send [06:31:17]OFD Sender: No OFD packet to send [06:31:22]OFD Sender: No OFD packet to send [06:31:27]OFD Sender: No OFD packet to send [06:31:32]OFD Sender: No OFD packet to send [06:31:37]OFD Sender: No OFD packet to send [06:31:42]OFD Sender: No OFD packet to send [06:31:44]accept exits with 7 [06:31:44]New connection [06:31:44]New thread 3066752356 created [06:31:44]Thread 3066608996 joined [06:31:44]Waiting for new connection... [06:31:44] Sock 7.Parse request [06:31:44]Sock 7.Check first char [06:31:44]Sock 7.First char is OK [06:31:44]request: POST /json_proto HTTP/1.0 [06:31:44]Method: POST [06:31:44]URL: /json_proto [06:31:44]Method is POST - this is cgi request [06:31:44]url: /json_proto [06:31:44]query_string will be loaded in cgi processing [06:31:44]execute_cgi json_proto POST (null) [06:31:44]execute_cgi path=json_proto method=POST [06:31:44]POST find Content-Length [06:31:44]Host: 172.17.41.195:8080 [06:31:44]Content-Length: 677 [06:31:44]Content-Type: application/json [06:31:44] [06:31:44]POST finish read [06:31:44]Found Content-Length = 677 [06:31:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507942", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.80, "quantity" : 8.990, "sum" : 600.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:31:44]execute_script... [06:31:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507942", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.80, "quantity" : 8.990, "sum" : 600.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:31:44]POST & json_proto [06:31:44]process_json_proto [06:31:44]json parsed OK: [06:31:44]protocol is kg_v1.0 [06:31:44]action value=close_receipt [06:31:44]process_action close_receipt [06:31:44]cmd_close_receipt [06:31:44]MH_GetDate [06:31:44]Write to MH i2c: F0 00 00 25 1F 33 [06:31:44]Write i2c OK [06:31:44]MH_I2C_Read... [06:31:44]Read from MH i2c: F0 [06:31:44]MH_I2C_Read... [06:31:44]Read from MH i2c: F0 09 00 [06:31:44]MH_I2C_Read... [06:31:44]Read from MH i2c: F0 09 00 25 1F 00 54 4B 48 66 FC 21 6F 64 79 [06:31:44]GetLastDocTimeStamp 1716013367 [06:31:44]current date 1716013908 [06:31:44]FM_GetShiftState [06:31:44]SAM_PROTO_GetShiftState [06:31:44]wFMCommunicate request_size=4 [06:31:44]MH_SAM_APDU [06:31:44]CAPDU: 80 13 01 00 [06:31:44]Write to MH i2c: E2 08 00 26 1F 80 13 01 00 00 00 00 00 C2 [06:31:44]Write i2c OK [06:31:44]MH_I2C_Read... [06:31:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:31:44]Read from MH i2c: E2 [06:31:44]MH_I2C_Read... [06:31:44]Read from MH i2c: E2 0E 00 [06:31:44]MH_I2C_Read... [06:31:44]Read from MH i2c: E2 0E 00 26 1F 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 29 [06:31:44]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [06:31:44]wFMCommunicate OK [06:31:44]SAM_PROTO_GetShiftState done [06:31:44]FM_GetShiftState done [06:31:44]opened in 1715991483 [06:31:44]opened+sec_in_day 1716077883 [06:31:44]quantity*price = 60053 [06:31:44]sum+1 = 60054 [06:31:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.77 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 13 18.05.2024 06:31 Смена: 359 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67774 ФПД: 204812854306564 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T063148&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67774&fm=204812854306564&tin=02508201610067®Number=0000000000091845&sum=60000 [06:31:45]StoreToDocumentArchive [06:31:45]shift 359 fd 67774 [06:31:45]save to /storage/0359/doc_00067774 [06:31:45]save last doc name /storage/0359/doc_00067774 to /storage/kkm_last_doc_name [06:31:45]save OK [06:31:45]Clear old archive folders... [06:31:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:31:45]tlvbuf is B6E903F0 [06:31:45]SAM_PROTO_ClearQueue [06:31:45]wFMCommunicate request_size=4 [06:31:45]MH_SAM_APDU [06:31:45]CAPDU: 80 09 00 00 [06:31:45]Write to MH i2c: E2 08 00 33 1F 80 09 00 00 00 00 00 00 C4 [06:31:45]Write i2c OK [06:31:45]MH_I2C_Read... [06:31:46]Read from MH i2c: E2 [06:31:46]MH_I2C_Read... [06:31:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:31:46]Read from MH i2c: E2 03 00 [06:31:46]MH_I2C_Read... [06:31:46]Read from MH i2c: E2 03 00 33 1F 00 90 00 C6 [06:31:46]RAPDU: 90 00 [06:31:46]wFMCommunicate OK [06:31:46]SAM_PROTO_ClearQueue done [06:31:46]KKMCreateOFDPacket [06:31:46]OFDProtocolAddRootSTLVToBuf [06:31:46]FM_MakeSignedData [06:31:46]FM_MakeSignedData [06:31:46]SAM_PROTO_SignData [06:31:46]wFMCommunicate request_size=4 [06:31:46]MH_SAM_APDU [06:31:46]CAPDU: 80 0D 01 02 [06:31:46]Write to MH i2c: E2 08 00 34 1F 80 0D 01 02 00 00 00 00 CC [06:31:46]Write i2c OK [06:31:46]MH_I2C_Read... [06:31:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:31:46]Read from MH i2c: E2 [06:31:46]MH_I2C_Read... [06:31:46]Read from MH i2c: E2 03 00 [06:31:46]MH_I2C_Read... [06:31:46]Read from MH i2c: E2 03 00 34 1F 00 90 00 C7 [06:31:46]RAPDU: 90 00 [06:31:46]wFMCommunicate OK [06:31:46]wFMCommunicate request_size=255 [06:31:46]MH_SAM_APDU [06:31:46]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1E 23 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 95 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 54 4B 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 BE 08 01 00 35 04 06 00 BA [06:31:46]Write to MH i2c: E2 02 01 35 1F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1E 23 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 95 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 54 4B 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 BE 08 01 00 35 04 06 00 BA 00 00 BA [06:31:46]Write i2c OK [06:31:46]MH_I2C_Read... [06:31:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:31:46]Read from MH i2c: E2 [06:31:46]MH_I2C_Read... [06:31:46]Read from MH i2c: E2 03 00 [06:31:46]MH_I2C_Read... [06:31:46]Read from MH i2c: E2 03 00 35 1F 00 90 00 C8 [06:31:46]RAPDU: 90 00 [06:31:46]wFMCommunicate OK [06:31:46]wFMCommunicate request_size=10 [06:31:46]MH_SAM_APDU [06:31:46]CAPDU: 80 0D 02 02 05 46 B5 6D 27 04 [06:31:46]Write to MH i2c: E2 0D 00 36 1F 80 0D 02 02 05 00 46 B5 6D 27 04 00 00 6C [06:31:46]Write i2c OK [06:31:46]MH_I2C_Read... [06:31:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:31:46]Read from MH i2c: E2 [06:31:46]MH_I2C_Read... [06:31:46]Read from MH i2c: E2 03 00 [06:31:46]MH_I2C_Read... [06:31:46]Read from MH i2c: E2 03 00 36 1F 00 90 00 C9 [06:31:46]RAPDU: 90 00 [06:31:46]wFMCommunicate OK [06:31:46]wFMCommunicate request_size=4 [06:31:46]MH_SAM_APDU [06:31:46]CAPDU: 80 0D 03 02 [06:31:46]Write to MH i2c: E2 08 00 37 1F 80 0D 03 02 00 00 00 00 D1 [06:31:46]Write i2c OK [06:31:46]MH_I2C_Read... [06:31:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:31:46]Read from MH i2c: E2 [06:31:46]MH_I2C_Read... [06:31:46]Read from MH i2c: E2 0B 00 [06:31:46]MH_I2C_Read... [06:31:46]Read from MH i2c: E2 0B 00 37 1F 00 8A 26 B9 42 5A 31 0F 42 90 00 59 [06:31:46]RAPDU: 8A 26 B9 42 5A 31 0F 42 90 00 [06:31:46]wFMCommunicate OK [06:31:46]SAM_PROTO_SignData done [06:31:46]FM_MakeSignedData done [06:31:46]CreateOFDProtocolMessage [06:31:46]wFMCommunicate request_size=4 [06:31:46]MH_SAM_APDU [06:31:46]CAPDU: 80 11 00 00 [06:31:46]Write to MH i2c: E2 08 00 38 1F 80 11 00 00 00 00 00 00 D1 [06:31:46]Write i2c OK [06:31:46]MH_I2C_Read... [06:31:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:31:46]Read from MH i2c: E2 [06:31:46]MH_I2C_Read... [06:31:46]Read from MH i2c: E2 17 00 [06:31:46]MH_I2C_Read... [06:31:46]Read from MH i2c: E2 17 00 38 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 27 [06:31:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [06:31:46]wFMCommunicate OK [06:31:46]CreateOFDProtocolMessage done [06:31:46]OFDSenderStorePacket 67774 [06:31:46]StoreOFDPacket docnum=67774 [06:31:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 4E 2A 07 01 BB D9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1E 23 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 95 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 54 4B 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 BE 08 01 00 35 04 06 00 BA 46 B5 6D 27 04 8A 26 B9 42 5A 31 0F 42 [06:31:46]CheckFolder [06:31:46]dirname=/storage/ofd_packets [06:31:46]CheckFolder done [06:31:46]ProducePacketName [06:31:46]name=ofd_packets/00067774 [06:31:46]NVStorageSaveData ofd_packets/00067774 [06:31:46]File name is /storage/ofd_packets/00067774 [06:31:46]Write 301 bytes [06:31:46]NVStorageSaveData done [06:31:46]OFDSenderStorePacket done [06:31:46]KKMCreateOFDPacket done [06:31:46]NVStorageSaveData kkm_last_timestamp [06:31:46]File name is /storage/kkm_last_timestamp [06:31:46]Write 4 bytes [06:31:46]NVStorageSaveData done [06:31:46]ExternCall_PrintAddStr [06:31:46]wPrintStart [06:31:46]Write to MH i2c: 01 00 00 39 1F 58 [06:31:46]Write i2c OK [06:31:46]MH_I2C_Read... [06:31:46]Read from MH i2c: 01 [06:31:46]MH_I2C_Read... [06:31:46]Read from MH i2c: 01 07 00 [06:31:46]MH_I2C_Read... [06:31:46]Read from MH i2c: 01 07 00 39 1F 00 00 00 00 00 FF 0F 6D [06:31:46]RasterBufferAndPrint [06:31:46]line Счет N : (1)507942 [06:31:46]line ИНН: 02508201610067 [06:31:46]line Контрольно-Кассовый Чек [06:31:46]line ПРОДАЖА [06:31:46]line ТРК (МРК, ГНК) : 33 [06:31:46]line Товар: 2710124130 [06:31:46]line Аи-92-К-5 [06:31:46]line 8.990 * 66.80 [06:31:46]line = 600.53 [06:31:46]line НДС 12% НСП 1% [06:31:46]line > о реализуемом товаре [06:31:46]line ОКРУГЛЕНИЕ: -0.53 [06:31:46]line ИТОГО: 600.00 [06:31:46]line Внесено: 600.00 [06:31:46]line СДАЧА: 0.00 [06:31:46]line НСП 1% : 5.31 [06:31:46]line НДС 12% : 63.77 [06:31:46]line Наличными: 600.00 [06:31:46]line Безнал.: 0.00 [06:31:46]line Место: АЗС № 91 "Партнер Нефть" [06:31:46]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [06:31:46]line СНО: Общий режим [06:31:46]line Чек 13 18.05.2024 06:31 [06:31:46]line Смена: 359 ФФД: 1.0 [06:31:46]line ЗНМ: 0300000119 [06:31:46]line РНМ: 0000000000091845 [06:31:46]line Версия ККМ: 001 [06:31:46]line ФМ: 0000000000871829 [06:31:46]line ФД: 67774 [06:31:46]line ФПД: 204812854306564 [06:31:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T063148&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67774&fm=204812854306564&tin=02508201610067®Number=0000000000091845&sum=60000 [06:31:46]written 0, free lines is 4095 [06:31:46]OFD Sender: Processing packet 67774 [packets to send 35, broken 34] [06:31:46]ProducePacketName [06:31:46]name=ofd_packets/00067774 [06:31:46]OFD Sender: To server: pG, [06:31:46]CommunicateWithHost lk.salyk.kg:30040 [06:31:46]ConnectInit lk.salyk.kg [06:31:46]Connected sock=10 [06:31:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 4E 2A 07 01 BB D9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1E 23 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 95 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 54 4B 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 BE 08 01 00 35 04 06 00 BA 46 B5 6D 27 04 8A 26 B9 42 5A 31 0F 42 [06:31:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 6E CF 47 00 C2 79 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 BE 08 01 00 F4 03 04 00 2A F3 47 66 B6 04 01 00 00 DE 10 17 72 84 0F 82 04 [06:31:47]CommunicateWithHost err = 0 [06:31:47]CheckOFDResponse [06:31:47]1017 (14) - 77093643461234 [06:31:47]1041 (16) - 0000000000871829 [06:31:47]1040 (4) - 67774 [06:31:47]1012 (4) - 18.05.2024 00:15 [06:31:47]1206 (1) - 0 [06:31:47]OFD Sender: Remove packet 67774 [06:31:47]ProducePacketName [06:31:47]name=ofd_packets/00067774 [06:31:47]NVStorageDeleteData [06:31:47]Write to MH i2c: 01 00 00 63 1F 82 [06:31:47]Write i2c OK [06:31:47]MH_I2C_Read... [06:31:47]Read from MH i2c: 01 [06:31:47]MH_I2C_Read... [06:31:47]Read from MH i2c: 01 07 00 [06:31:47]MH_I2C_Read... [06:31:47]Read from MH i2c: 01 07 00 63 1F 00 00 00 00 00 CB 0C 60 [06:31:47]RasterBufferAndPrint [06:31:47]line [06:31:47]line [06:31:47]line [06:31:47]line [06:31:47]line [06:31:47]written 0, free lines is 3281 [06:31:47]MH_Cut [06:31:47]Write to MH i2c: D1 01 00 6A 1F 01 5B [06:31:47]Write i2c OK [06:31:47]MH_I2C_Read... [06:31:47]Read from MH i2c: D1 [06:31:47]MH_I2C_Read... [06:31:47]Read from MH i2c: D1 01 00 [06:31:47]MH_I2C_Read... [06:31:47]Read from MH i2c: D1 01 00 6A 1F 00 5A [06:31:47]Write to MH i2c: 01 00 00 6B 1F 8A [06:31:47]Write i2c OK [06:31:47]MH_I2C_Read... [06:31:47]OFD Sender: No OFD packet to send [06:31:48]*** Cut start [06:31:48]*** Purtial cut [06:31:48]*** CUTSNS_PIN = 0 [06:31:48]*** Stage 1: CUTSNS_PIN = 1 [06:31:50]Read from MH i2c: 01 [06:31:50]MH_I2C_Read... [06:31:50]*** Stop cut motor [06:31:50]*** Cut end [06:31:50]Read from MH i2c: 01 07 00 [06:31:50]MH_I2C_Read... [06:31:50]Read from MH i2c: 01 07 00 6B 1F 00 00 00 00 00 FF 0F 9F [06:31:50]process_action close_receipt done [06:31:50]requested_data is exist [06:31:50]produce_requested_data [06:31:50]requested_item fm.sn is exist - process it [06:31:50]wFMCommunicate request_size=4 [06:31:50]MH_SAM_APDU [06:31:50]CAPDU: 80 11 00 00 [06:31:50]Write to MH i2c: E2 08 00 6C 1F 80 11 00 00 00 00 00 00 05 [06:31:50]Write i2c OK [06:31:50]MH_I2C_Read... [06:31:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:31:50]Read from MH i2c: E2 [06:31:50]MH_I2C_Read... [06:31:50]Read from MH i2c: E2 17 00 [06:31:50]MH_I2C_Read... [06:31:50]Read from MH i2c: E2 17 00 6C 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 5B [06:31:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [06:31:50]wFMCommunicate OK [06:31:50]requested_item fd.num is exist - process it [06:31:50]SAM_PROTO_GetFieldsCounters [06:31:50]wFMCommunicate request_size=4 [06:31:50]MH_SAM_APDU [06:31:50]CAPDU: 80 13 00 00 [06:31:50]Write to MH i2c: E2 08 00 6D 1F 80 13 00 00 00 00 00 00 08 [06:31:50]Write i2c OK [06:31:50]MH_I2C_Read... [06:31:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:31:50]Read from MH i2c: E2 [06:31:50]MH_I2C_Read... [06:31:50]Read from MH i2c: E2 62 00 [06:31:50]MH_I2C_Read... [06:31:50]Read from MH i2c: E2 62 00 6D 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 BE 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 84 [06:31:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 BE 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:31:50]wFMCommunicate OK [06:31:50]SAM_PROTO_GetFieldsCounters done [06:31:50]requested_item shift.num is exist - process it [06:31:50]requested_item shift.opened is exist - process it [06:31:50]req_shift_opened [06:31:50]FM_GetShiftState [06:31:50]SAM_PROTO_GetShiftState [06:31:50]wFMCommunicate request_size=4 [06:31:50]MH_SAM_APDU [06:31:50]CAPDU: 80 13 01 00 [06:31:50]Write to MH i2c: E2 08 00 6E 1F 80 13 01 00 00 00 00 00 0A [06:31:50]Write i2c OK [06:31:50]MH_I2C_Read... [06:31:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:31:50]Read from MH i2c: E2 [06:31:50]MH_I2C_Read... [06:31:50]Read from MH i2c: E2 0E 00 [06:31:50]MH_I2C_Read... [06:31:50]Read from MH i2c: E2 0E 00 6E 1F 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 71 [06:31:50]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [06:31:50]wFMCommunicate OK [06:31:50]SAM_PROTO_GetShiftState done [06:31:50]FM_GetShiftState done [06:31:50]req_shift_opened done [06:31:50]requested_item shift.open_date is exist - process it [06:31:50]req_shift_open_date [06:31:50]req_shift_open_date done [06:31:50]produce_requested_data done [06:31:50]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67774,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [06:31:50]process_action_free close_receipt [06:31:50]json_value_free [06:31:50]json_value_free done [06:31:50]process_json_proto returns [06:31:50]Send response to host [06:31:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67774,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [06:31:50]free response buf [06:31:50]execute_script done [06:31:50]execute_script returns [06:31:50]free content buf [06:31:50]Sock 7.Close socket [06:31:50]Sock 7.Thread stoped [06:31:52]OFD Sender: No OFD packet to send [06:31:57]OFD Sender: No OFD packet to send [06:32:02]OFD Sender: No OFD packet to send [06:32:07]OFD Sender: No OFD packet to send [06:32:12]OFD Sender: No OFD packet to send [06:32:17]OFD Sender: No OFD packet to send [06:32:22]OFD Sender: No OFD packet to send [06:32:27]OFD Sender: No OFD packet to send [06:32:32]OFD Sender: No OFD packet to send [06:32:37]OFD Sender: No OFD packet to send [06:32:42]OFD Sender: No OFD packet to send [06:32:47]OFD Sender: No OFD packet to send [06:32:52]OFD Sender: No OFD packet to send [06:32:57]OFD Sender: No OFD packet to send [06:33:02]OFD Sender: No OFD packet to send [06:33:07]OFD Sender: No OFD packet to send [06:33:12]OFD Sender: No OFD packet to send [06:33:17]OFD Sender: No OFD packet to send [06:33:22]OFD Sender: No OFD packet to send [06:33:27]OFD Sender: No OFD packet to send [06:33:32]OFD Sender: No OFD packet to send [06:33:37]OFD Sender: No OFD packet to send [06:33:42]OFD Sender: No OFD packet to send [06:33:47]OFD Sender: No OFD packet to send [06:33:52]OFD Sender: No OFD packet to send [06:33:57]OFD Sender: No OFD packet to send [06:34:02]OFD Sender: No OFD packet to send [06:34:07]OFD Sender: No OFD packet to send [06:34:12]OFD Sender: No OFD packet to send [06:34:17]OFD Sender: No OFD packet to send [06:34:22]OFD Sender: No OFD packet to send [06:34:27]OFD Sender: No OFD packet to send [06:34:32]OFD Sender: No OFD packet to send [06:34:37]OFD Sender: No OFD packet to send [06:34:42]OFD Sender: No OFD packet to send [06:34:47]OFD Sender: No OFD packet to send [06:34:52]OFD Sender: No OFD packet to send [06:34:57]OFD Sender: No OFD packet to send [06:35:02]OFD Sender: No OFD packet to send [06:35:07]OFD Sender: No OFD packet to send [06:35:12]OFD Sender: No OFD packet to send [06:35:17]OFD Sender: No OFD packet to send [06:35:22]OFD Sender: No OFD packet to send [06:35:27]OFD Sender: No OFD packet to send [06:35:32]OFD Sender: No OFD packet to send [06:35:37]OFD Sender: No OFD packet to send [06:35:42]OFD Sender: No OFD packet to send [06:35:47]OFD Sender: No OFD packet to send [06:35:52]OFD Sender: No OFD packet to send [06:35:57]OFD Sender: No OFD packet to send [06:36:02]OFD Sender: No OFD packet to send [06:36:07]OFD Sender: No OFD packet to send [06:36:12]OFD Sender: No OFD packet to send [06:36:17]OFD Sender: No OFD packet to send [06:36:22]OFD Sender: No OFD packet to send [06:36:27]OFD Sender: No OFD packet to send [06:36:32]OFD Sender: No OFD packet to send [06:36:37]OFD Sender: No OFD packet to send [06:36:42]OFD Sender: No OFD packet to send [06:36:47]OFD Sender: No OFD packet to send [06:36:52]OFD Sender: No OFD packet to send [06:36:57]OFD Sender: No OFD packet to send [06:37:02]OFD Sender: No OFD packet to send [06:37:07]OFD Sender: No OFD packet to send [06:37:12]OFD Sender: No OFD packet to send [06:37:17]OFD Sender: No OFD packet to send [06:37:22]OFD Sender: No OFD packet to send [06:37:27]OFD Sender: No OFD packet to send [06:37:32]OFD Sender: No OFD packet to send [06:37:37]OFD Sender: No OFD packet to send [06:37:42]OFD Sender: No OFD packet to send [06:37:47]OFD Sender: No OFD packet to send [06:37:52]OFD Sender: No OFD packet to send [06:37:57]OFD Sender: No OFD packet to send [06:38:02]OFD Sender: No OFD packet to send [06:38:07]OFD Sender: No OFD packet to send [06:38:12]OFD Sender: No OFD packet to send [06:38:17]OFD Sender: No OFD packet to send [06:38:22]OFD Sender: No OFD packet to send [06:38:27]OFD Sender: No OFD packet to send [06:38:33]OFD Sender: No OFD packet to send [06:38:38]OFD Sender: No OFD packet to send [06:38:43]OFD Sender: No OFD packet to send [06:38:48]OFD Sender: No OFD packet to send [06:38:53]OFD Sender: No OFD packet to send [06:38:58]OFD Sender: No OFD packet to send [06:39:03]OFD Sender: No OFD packet to send [06:39:08]OFD Sender: No OFD packet to send [06:39:13]OFD Sender: No OFD packet to send [06:39:18]OFD Sender: No OFD packet to send [06:39:23]OFD Sender: No OFD packet to send [06:39:28]OFD Sender: No OFD packet to send [06:39:33]OFD Sender: No OFD packet to send [06:39:38]OFD Sender: No OFD packet to send [06:39:43]OFD Sender: No OFD packet to send [06:39:48]OFD Sender: No OFD packet to send [06:39:53]OFD Sender: No OFD packet to send [06:39:58]OFD Sender: No OFD packet to send [06:40:03]OFD Sender: No OFD packet to send [06:40:08]OFD Sender: No OFD packet to send [06:40:13]OFD Sender: No OFD packet to send [06:40:18]OFD Sender: No OFD packet to send [06:40:23]OFD Sender: No OFD packet to send [06:40:28]OFD Sender: No OFD packet to send [06:40:33]OFD Sender: No OFD packet to send [06:40:38]OFD Sender: No OFD packet to send [06:40:43]OFD Sender: No OFD packet to send [06:40:48]OFD Sender: No OFD packet to send [06:40:53]OFD Sender: No OFD packet to send [06:40:58]OFD Sender: No OFD packet to send [06:41:03]OFD Sender: No OFD packet to send [06:41:08]OFD Sender: No OFD packet to send [06:41:13]OFD Sender: No OFD packet to send [06:41:18]OFD Sender: No OFD packet to send [06:41:23]OFD Sender: No OFD packet to send [06:41:28]OFD Sender: No OFD packet to send [06:41:33]OFD Sender: No OFD packet to send [06:41:38]OFD Sender: No OFD packet to send [06:41:43]OFD Sender: No OFD packet to send [06:41:48]OFD Sender: No OFD packet to send [06:41:53]OFD Sender: No OFD packet to send [06:41:58]OFD Sender: No OFD packet to send [06:42:03]OFD Sender: No OFD packet to send [06:42:08]OFD Sender: No OFD packet to send [06:42:13]OFD Sender: No OFD packet to send [06:42:18]OFD Sender: No OFD packet to send [06:42:23]OFD Sender: No OFD packet to send [06:42:28]OFD Sender: No OFD packet to send [06:42:33]OFD Sender: No OFD packet to send [06:42:38]OFD Sender: No OFD packet to send [06:42:43]OFD Sender: No OFD packet to send [06:42:48]OFD Sender: No OFD packet to send [06:42:53]OFD Sender: No OFD packet to send [06:42:58]OFD Sender: No OFD packet to send [06:43:03]OFD Sender: No OFD packet to send [06:43:08]OFD Sender: No OFD packet to send [06:43:13]OFD Sender: No OFD packet to send [06:43:18]OFD Sender: No OFD packet to send [06:43:23]OFD Sender: No OFD packet to send [06:43:28]OFD Sender: No OFD packet to send [06:43:33]OFD Sender: No OFD packet to send [06:43:38]OFD Sender: No OFD packet to send [06:43:43]OFD Sender: No OFD packet to send [06:43:48]OFD Sender: No OFD packet to send [06:43:53]OFD Sender: No OFD packet to send [06:43:58]OFD Sender: No OFD packet to send [06:44:03]OFD Sender: No OFD packet to send [06:44:08]OFD Sender: No OFD packet to send [06:44:13]OFD Sender: No OFD packet to send [06:44:18]OFD Sender: No OFD packet to send [06:44:23]OFD Sender: No OFD packet to send [06:44:28]OFD Sender: No OFD packet to send [06:44:33]OFD Sender: No OFD packet to send [06:44:38]OFD Sender: No OFD packet to send [06:44:43]OFD Sender: No OFD packet to send [06:44:48]OFD Sender: No OFD packet to send [06:44:53]OFD Sender: No OFD packet to send [06:44:58]OFD Sender: No OFD packet to send [06:45:03]OFD Sender: No OFD packet to send [06:45:08]OFD Sender: No OFD packet to send [06:45:13]OFD Sender: No OFD packet to send [06:45:18]OFD Sender: No OFD packet to send [06:45:23]OFD Sender: No OFD packet to send [06:45:28]OFD Sender: No OFD packet to send [06:45:33]OFD Sender: No OFD packet to send [06:45:38]OFD Sender: No OFD packet to send [06:45:43]OFD Sender: No OFD packet to send [06:45:48]OFD Sender: No OFD packet to send [06:45:53]OFD Sender: No OFD packet to send [06:45:58]OFD Sender: No OFD packet to send [06:46:03]OFD Sender: No OFD packet to send [06:46:08]OFD Sender: No OFD packet to send [06:46:13]OFD Sender: No OFD packet to send [06:46:18]OFD Sender: No OFD packet to send [06:46:23]OFD Sender: No OFD packet to send [06:46:28]OFD Sender: No OFD packet to send [06:46:33]OFD Sender: No OFD packet to send [06:46:38]OFD Sender: No OFD packet to send [06:46:43]OFD Sender: No OFD packet to send [06:46:48]OFD Sender: No OFD packet to send [06:46:53]OFD Sender: No OFD packet to send [06:46:58]OFD Sender: No OFD packet to send [06:47:03]OFD Sender: No OFD packet to send [06:47:08]OFD Sender: No OFD packet to send [06:47:13]OFD Sender: No OFD packet to send [06:47:18]OFD Sender: No OFD packet to send [06:47:23]OFD Sender: No OFD packet to send [06:47:28]OFD Sender: No OFD packet to send [06:47:33]OFD Sender: No OFD packet to send [06:47:38]OFD Sender: No OFD packet to send [06:47:43]OFD Sender: No OFD packet to send [06:47:48]OFD Sender: No OFD packet to send [06:47:53]OFD Sender: No OFD packet to send [06:47:58]OFD Sender: No OFD packet to send [06:48:03]OFD Sender: No OFD packet to send [06:48:08]OFD Sender: No OFD packet to send [06:48:13]OFD Sender: No OFD packet to send [06:48:18]OFD Sender: No OFD packet to send [06:48:23]OFD Sender: No OFD packet to send [06:48:28]OFD Sender: No OFD packet to send [06:48:33]OFD Sender: No OFD packet to send [06:48:38]OFD Sender: No OFD packet to send [06:48:43]OFD Sender: No OFD packet to send [06:48:48]OFD Sender: No OFD packet to send [06:48:53]OFD Sender: No OFD packet to send [06:48:58]OFD Sender: No OFD packet to send [06:49:03]OFD Sender: No OFD packet to send [06:49:08]OFD Sender: No OFD packet to send [06:49:13]OFD Sender: No OFD packet to send [06:49:18]OFD Sender: No OFD packet to send [06:49:23]OFD Sender: No OFD packet to send [06:49:28]OFD Sender: No OFD packet to send [06:49:33]OFD Sender: No OFD packet to send [06:49:38]OFD Sender: No OFD packet to send [06:49:43]OFD Sender: No OFD packet to send [06:49:48]OFD Sender: No OFD packet to send [06:49:53]OFD Sender: No OFD packet to send [06:49:58]OFD Sender: No OFD packet to send [06:50:03]OFD Sender: No OFD packet to send [06:50:08]OFD Sender: No OFD packet to send [06:50:13]OFD Sender: No OFD packet to send [06:50:18]OFD Sender: No OFD packet to send [06:50:23]OFD Sender: No OFD packet to send [06:50:28]OFD Sender: No OFD packet to send [06:50:33]OFD Sender: No OFD packet to send [06:50:38]OFD Sender: No OFD packet to send [06:50:43]OFD Sender: No OFD packet to send [06:50:48]OFD Sender: No OFD packet to send [06:50:53]OFD Sender: No OFD packet to send [06:50:58]OFD Sender: No OFD packet to send [06:51:03]OFD Sender: No OFD packet to send [06:51:08]OFD Sender: No OFD packet to send [06:51:13]OFD Sender: No OFD packet to send [06:51:18]OFD Sender: No OFD packet to send [06:51:23]OFD Sender: No OFD packet to send [06:51:28]OFD Sender: No OFD packet to send [06:51:33]OFD Sender: No OFD packet to send [06:51:38]OFD Sender: No OFD packet to send [06:51:43]OFD Sender: No OFD packet to send [06:51:48]OFD Sender: No OFD packet to send [06:51:53]OFD Sender: No OFD packet to send [06:51:58]OFD Sender: No OFD packet to send [06:52:03]OFD Sender: No OFD packet to send [06:52:08]OFD Sender: No OFD packet to send [06:52:13]OFD Sender: No OFD packet to send [06:52:18]OFD Sender: No OFD packet to send [06:52:23]OFD Sender: No OFD packet to send [06:52:28]accept exits with 9 [06:52:28]New connection [06:52:28]New thread 3066608996 created [06:52:28]Thread 3066752356 joined [06:52:28]Waiting for new connection... [06:52:28] Sock 9.Parse request [06:52:28]Sock 9.Check first char [06:52:28]Sock 9.First char is OK [06:52:28]request: POST /json_proto HTTP/1.0 [06:52:28]Method: POST [06:52:28]URL: /json_proto [06:52:28]Method is POST - this is cgi request [06:52:28]url: /json_proto [06:52:28]query_string will be loaded in cgi processing [06:52:28]execute_cgi json_proto POST (null) [06:52:28]execute_cgi path=json_proto method=POST [06:52:28]POST find Content-Length [06:52:28]Host: 172.17.41.195:8080 [06:52:28]Content-Length: 677 [06:52:28]Content-Type: application/json [06:52:28] [06:52:28]POST finish read [06:52:28]Found Content-Length = 677 [06:52:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507943", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.80, "quantity" : 8.990, "sum" : 600.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:52:28]execute_script... [06:52:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507943", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.80, "quantity" : 8.990, "sum" : 600.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:52:28]POST & json_proto [06:52:28]process_json_proto [06:52:28]json parsed OK: [06:52:28]protocol is kg_v1.0 [06:52:28]action value=close_receipt [06:52:28]process_action close_receipt [06:52:28]cmd_close_receipt [06:52:28]MH_GetDate [06:52:28]Write to MH i2c: F0 00 00 6F 1F 7D [06:52:28]Write i2c OK [06:52:28]MH_I2C_Read... [06:52:28]Read from MH i2c: F0 [06:52:28]MH_I2C_Read... [06:52:28]Read from MH i2c: F0 09 00 [06:52:28]MH_I2C_Read... [06:52:28]Read from MH i2c: F0 09 00 6F 1F 00 30 50 48 66 FC 21 6F 64 A4 [06:52:28]GetLastDocTimeStamp 1716013908 [06:52:28]current date 1716015152 [06:52:28]FM_GetShiftState [06:52:28]SAM_PROTO_GetShiftState [06:52:28]wFMCommunicate request_size=4 [06:52:28]MH_SAM_APDU [06:52:28]CAPDU: 80 13 01 00 [06:52:28]Write to MH i2c: E2 08 00 70 1F 80 13 01 00 00 00 00 00 0C [06:52:28]Write i2c OK [06:52:28]MH_I2C_Read... [06:52:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:52:28]Read from MH i2c: E2 [06:52:28]MH_I2C_Read... [06:52:28]Read from MH i2c: E2 0E 00 [06:52:28]MH_I2C_Read... [06:52:28]Read from MH i2c: E2 0E 00 70 1F 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 73 [06:52:28]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [06:52:28]wFMCommunicate OK [06:52:28]SAM_PROTO_GetShiftState done [06:52:28]FM_GetShiftState done [06:52:28]opened in 1715991483 [06:52:28]opened+sec_in_day 1716077883 [06:52:28]quantity*price = 60053 [06:52:28]sum+1 = 60054 [06:52:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.77 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 14 18.05.2024 06:52 Смена: 359 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67775 ФПД: 226397624876112 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T065232&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67775&fm=226397624876112&tin=02508201610067®Number=0000000000091845&sum=60000 [06:52:29]StoreToDocumentArchive [06:52:29]shift 359 fd 67775 [06:52:29]save to /storage/0359/doc_00067775 [06:52:29]save last doc name /storage/0359/doc_00067775 to /storage/kkm_last_doc_name [06:52:29]save OK [06:52:29]Clear old archive folders... [06:52:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:52:29]tlvbuf is 01B5B490 [06:52:29]SAM_PROTO_ClearQueue [06:52:29]wFMCommunicate request_size=4 [06:52:29]MH_SAM_APDU [06:52:29]CAPDU: 80 09 00 00 [06:52:29]Write to MH i2c: E2 08 00 7D 1F 80 09 00 00 00 00 00 00 0E [06:52:29]Write i2c OK [06:52:29]MH_I2C_Read... [06:52:29]Read from MH i2c: E2 [06:52:29]MH_I2C_Read... [06:52:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:52:29]Read from MH i2c: E2 03 00 [06:52:29]MH_I2C_Read... [06:52:29]Read from MH i2c: E2 03 00 7D 1F 00 90 00 10 [06:52:29]RAPDU: 90 00 [06:52:29]wFMCommunicate OK [06:52:29]SAM_PROTO_ClearQueue done [06:52:29]KKMCreateOFDPacket [06:52:29]OFDProtocolAddRootSTLVToBuf [06:52:29]FM_MakeSignedData [06:52:29]FM_MakeSignedData [06:52:29]SAM_PROTO_SignData [06:52:29]wFMCommunicate request_size=4 [06:52:29]MH_SAM_APDU [06:52:29]CAPDU: 80 0D 01 02 [06:52:29]Write to MH i2c: E2 08 00 7E 1F 80 0D 01 02 00 00 00 00 16 [06:52:29]Write i2c OK [06:52:29]MH_I2C_Read... [06:52:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:52:29]Read from MH i2c: E2 [06:52:29]MH_I2C_Read... [06:52:29]Read from MH i2c: E2 03 00 [06:52:29]MH_I2C_Read... [06:52:29]Read from MH i2c: E2 03 00 7E 1F 00 90 00 11 [06:52:29]RAPDU: 90 00 [06:52:29]wFMCommunicate OK [06:52:29]wFMCommunicate request_size=255 [06:52:29]MH_SAM_APDU [06:52:29]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1E 23 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 95 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 30 50 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 BF 08 01 00 35 04 06 00 CD [06:52:29]Write to MH i2c: E2 02 01 7F 1F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1E 23 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 95 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 30 50 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 BF 08 01 00 35 04 06 00 CD 00 00 FA [06:52:29]Write i2c OK [06:52:29]MH_I2C_Read... [06:52:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:52:30]Read from MH i2c: E2 [06:52:30]MH_I2C_Read... [06:52:30]Read from MH i2c: E2 03 00 [06:52:30]MH_I2C_Read... [06:52:30]Read from MH i2c: E2 03 00 7F 1F 00 90 00 12 [06:52:30]RAPDU: 90 00 [06:52:30]wFMCommunicate OK [06:52:30]wFMCommunicate request_size=10 [06:52:30]MH_SAM_APDU [06:52:30]CAPDU: 80 0D 02 02 05 E8 4E 02 3C 50 [06:52:30]Write to MH i2c: E2 0D 00 80 1F 80 0D 02 02 05 00 E8 4E 02 3C 50 00 00 E7 [06:52:30]Write i2c OK [06:52:30]MH_I2C_Read... [06:52:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:52:30]Read from MH i2c: E2 [06:52:30]MH_I2C_Read... [06:52:30]Read from MH i2c: E2 03 00 [06:52:30]MH_I2C_Read... [06:52:30]Read from MH i2c: E2 03 00 80 1F 00 90 00 13 [06:52:30]RAPDU: 90 00 [06:52:30]wFMCommunicate OK [06:52:30]wFMCommunicate request_size=4 [06:52:30]MH_SAM_APDU [06:52:30]CAPDU: 80 0D 03 02 [06:52:30]Write to MH i2c: E2 08 00 81 1F 80 0D 03 02 00 00 00 00 1B [06:52:30]Write i2c OK [06:52:30]MH_I2C_Read... [06:52:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:52:30]Read from MH i2c: E2 [06:52:30]MH_I2C_Read... [06:52:30]Read from MH i2c: E2 0B 00 [06:52:30]MH_I2C_Read... [06:52:30]Read from MH i2c: E2 0B 00 81 1F 00 DF AF C8 00 14 E0 5B B1 90 00 72 [06:52:30]RAPDU: DF AF C8 00 14 E0 5B B1 90 00 [06:52:30]wFMCommunicate OK [06:52:30]SAM_PROTO_SignData done [06:52:30]FM_MakeSignedData done [06:52:30]CreateOFDProtocolMessage [06:52:30]wFMCommunicate request_size=4 [06:52:30]MH_SAM_APDU [06:52:30]CAPDU: 80 11 00 00 [06:52:30]Write to MH i2c: E2 08 00 82 1F 80 11 00 00 00 00 00 00 1B [06:52:30]Write i2c OK [06:52:30]MH_I2C_Read... [06:52:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:52:30]Read from MH i2c: E2 [06:52:30]MH_I2C_Read... [06:52:30]Read from MH i2c: E2 17 00 [06:52:30]MH_I2C_Read... [06:52:30]Read from MH i2c: E2 17 00 82 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 71 [06:52:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [06:52:30]wFMCommunicate OK [06:52:30]CreateOFDProtocolMessage done [06:52:30]OFDSenderStorePacket 67775 [06:52:30]StoreOFDPacket docnum=67775 [06:52:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 B5 C3 07 01 7B DE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1E 23 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 95 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 30 50 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 BF 08 01 00 35 04 06 00 CD E8 4E 02 3C 50 DF AF C8 00 14 E0 5B B1 [06:52:30]CheckFolder [06:52:30]dirname=/storage/ofd_packets [06:52:30]CheckFolder done [06:52:30]ProducePacketName [06:52:30]name=ofd_packets/00067775 [06:52:30]NVStorageSaveData ofd_packets/00067775 [06:52:30]File name is /storage/ofd_packets/00067775 [06:52:30]Write 301 bytes [06:52:30]NVStorageSaveData done [06:52:30]OFDSenderStorePacket done [06:52:30]KKMCreateOFDPacket done [06:52:30]NVStorageSaveData kkm_last_timestamp [06:52:30]File name is /storage/kkm_last_timestamp [06:52:30]Write 4 bytes [06:52:30]NVStorageSaveData done [06:52:30]ExternCall_PrintAddStr [06:52:30]wPrintStart [06:52:30]Write to MH i2c: 01 00 00 83 1F A2 [06:52:30]Write i2c OK [06:52:30]MH_I2C_Read... [06:52:30]Read from MH i2c: 01 [06:52:30]MH_I2C_Read... [06:52:30]Read from MH i2c: 01 07 00 [06:52:30]MH_I2C_Read... [06:52:30]Read from MH i2c: 01 07 00 83 1F 00 00 00 00 00 FF 0F B7 [06:52:30]RasterBufferAndPrint [06:52:30]line Счет N : (1)507943 [06:52:30]line ИНН: 02508201610067 [06:52:30]line Контрольно-Кассовый Чек [06:52:30]line ПРОДАЖА [06:52:30]line ТРК (МРК, ГНК) : 23 [06:52:30]line Товар: 2710124130 [06:52:30]line Аи-92-К-5 [06:52:30]line 8.990 * 66.80 [06:52:30]line = 600.53 [06:52:30]line НДС 12% НСП 1% [06:52:30]line > о реализуемом товаре [06:52:30]line ОКРУГЛЕНИЕ: -0.53 [06:52:30]line ИТОГО: 600.00 [06:52:30]line Внесено: 600.00 [06:52:30]line СДАЧА: 0.00 [06:52:30]line НСП 1% : 5.31 [06:52:30]line НДС 12% : 63.77 [06:52:30]line Наличными: 600.00 [06:52:30]line Безнал.: 0.00 [06:52:30]line Место: АЗС № 91 "Партнер Нефть" [06:52:30]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [06:52:30]line СНО: Общий режим [06:52:30]line Чек 14 18.05.2024 06:52 [06:52:30]line Смена: 359 ФФД: 1.0 [06:52:30]line ЗНМ: 0300000119 [06:52:30]line РНМ: 0000000000091845 [06:52:30]line Версия ККМ: 001 [06:52:30]line ФМ: 0000000000871829 [06:52:30]line ФД: 67775 [06:52:30]line ФПД: 226397624876112 [06:52:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T065232&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67775&fm=226397624876112&tin=02508201610067®Number=0000000000091845&sum=60000 [06:52:30]written 0, free lines is 4095 [06:52:30]OFD Sender: Processing packet 67775 [packets to send 35, broken 34] [06:52:30]ProducePacketName [06:52:30]name=ofd_packets/00067775 [06:52:30]OFD Sender: To server: pG, [06:52:30]CommunicateWithHost lk.salyk.kg:30040 [06:52:30]ConnectInit lk.salyk.kg [06:52:30]Connected sock=7 [06:52:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 B5 C3 07 01 7B DE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1E 23 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 95 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 30 50 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 BF 08 01 00 35 04 06 00 CD E8 4E 02 3C 50 DF AF C8 00 14 E0 5B B1 [06:52:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 4C 47 47 00 FB 72 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 BF 08 01 00 F4 03 04 00 06 F8 47 66 B6 04 01 00 00 CC EC 96 0A 9A 05 4F 05 [06:52:30]CommunicateWithHost err = 0 [06:52:30]CheckOFDResponse [06:52:30]1017 (14) - 77093643461234 [06:52:30]1041 (16) - 0000000000871829 [06:52:30]1040 (4) - 67775 [06:52:30]1012 (4) - 18.05.2024 00:36 [06:52:30]1206 (1) - 0 [06:52:30]OFD Sender: Remove packet 67775 [06:52:30]ProducePacketName [06:52:30]name=ofd_packets/00067775 [06:52:30]NVStorageDeleteData [06:52:31]Write to MH i2c: 01 00 00 AD 1F CC [06:52:31]Write i2c OK [06:52:31]MH_I2C_Read... [06:52:31]Read from MH i2c: 01 [06:52:31]MH_I2C_Read... [06:52:31]Read from MH i2c: 01 07 00 [06:52:31]MH_I2C_Read... [06:52:31]Read from MH i2c: 01 07 00 AD 1F 00 00 00 00 00 C7 0C A6 [06:52:31]RasterBufferAndPrint [06:52:31]line [06:52:31]line [06:52:31]line [06:52:31]line [06:52:31]line [06:52:31]written 0, free lines is 3276 [06:52:31]MH_Cut [06:52:31]Write to MH i2c: D1 01 00 B4 1F 01 A5 [06:52:31]Write i2c OK [06:52:31]MH_I2C_Read... [06:52:31]Read from MH i2c: D1 [06:52:31]MH_I2C_Read... [06:52:31]Read from MH i2c: D1 01 00 [06:52:31]MH_I2C_Read... [06:52:31]Read from MH i2c: D1 01 00 B4 1F 00 A4 [06:52:31]Write to MH i2c: 01 00 00 B5 1F D4 [06:52:31]Write i2c OK [06:52:31]MH_I2C_Read... [06:52:31]OFD Sender: No OFD packet to send [06:52:31]*** Cut start [06:52:31]*** Purtial cut [06:52:31]*** Stage 1: CUTSNS_PIN = 1 [06:52:32]Read from MH i2c: 01 [06:52:32]MH_I2C_Read... [06:52:32]*** Stop cut motor [06:52:32]*** Cut end [06:52:32]Read from MH i2c: 01 07 00 [06:52:32]MH_I2C_Read... [06:52:32]Read from MH i2c: 01 07 00 B5 1F 00 00 00 00 00 FF 0F E9 [06:52:32]process_action close_receipt done [06:52:32]requested_data is exist [06:52:32]produce_requested_data [06:52:32]requested_item fm.sn is exist - process it [06:52:32]wFMCommunicate request_size=4 [06:52:32]MH_SAM_APDU [06:52:32]CAPDU: 80 11 00 00 [06:52:32]Write to MH i2c: E2 08 00 B6 1F 80 11 00 00 00 00 00 00 4F [06:52:32]Write i2c OK [06:52:32]MH_I2C_Read... [06:52:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:52:32]Read from MH i2c: E2 [06:52:32]MH_I2C_Read... [06:52:32]Read from MH i2c: E2 17 00 [06:52:32]MH_I2C_Read... [06:52:32]Read from MH i2c: E2 17 00 B6 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 A5 [06:52:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [06:52:32]wFMCommunicate OK [06:52:32]requested_item fd.num is exist - process it [06:52:32]SAM_PROTO_GetFieldsCounters [06:52:32]wFMCommunicate request_size=4 [06:52:32]MH_SAM_APDU [06:52:32]CAPDU: 80 13 00 00 [06:52:32]Write to MH i2c: E2 08 00 B7 1F 80 13 00 00 00 00 00 00 52 [06:52:32]Write i2c OK [06:52:32]MH_I2C_Read... [06:52:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:52:32]Read from MH i2c: E2 [06:52:32]MH_I2C_Read... [06:52:32]Read from MH i2c: E2 62 00 [06:52:32]MH_I2C_Read... [06:52:32]Read from MH i2c: E2 62 00 B7 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 BF 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 D2 [06:52:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 BF 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:52:32]wFMCommunicate OK [06:52:32]SAM_PROTO_GetFieldsCounters done [06:52:32]requested_item shift.num is exist - process it [06:52:32]requested_item shift.opened is exist - process it [06:52:32]req_shift_opened [06:52:32]FM_GetShiftState [06:52:32]SAM_PROTO_GetShiftState [06:52:32]wFMCommunicate request_size=4 [06:52:32]MH_SAM_APDU [06:52:32]CAPDU: 80 13 01 00 [06:52:32]Write to MH i2c: E2 08 00 B8 1F 80 13 01 00 00 00 00 00 54 [06:52:32]Write i2c OK [06:52:32]MH_I2C_Read... [06:52:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:52:32]Read from MH i2c: E2 [06:52:32]MH_I2C_Read... [06:52:32]Read from MH i2c: E2 0E 00 [06:52:32]MH_I2C_Read... [06:52:32]Read from MH i2c: E2 0E 00 B8 1F 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 BB [06:52:32]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [06:52:32]wFMCommunicate OK [06:52:32]SAM_PROTO_GetShiftState done [06:52:32]FM_GetShiftState done [06:52:32]req_shift_opened done [06:52:32]requested_item shift.open_date is exist - process it [06:52:32]req_shift_open_date [06:52:32]req_shift_open_date done [06:52:32]produce_requested_data done [06:52:32]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67775,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [06:52:32]process_action_free close_receipt [06:52:32]json_value_free [06:52:32]json_value_free done [06:52:32]process_json_proto returns [06:52:32]Send response to host [06:52:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67775,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [06:52:32]free response buf [06:52:32]execute_script done [06:52:32]execute_script returns [06:52:32]free content buf [06:52:32]Sock 9.Close socket [06:52:32]Sock 9.Thread stoped [06:52:36]OFD Sender: No OFD packet to send [06:52:37]accept exits with 10 [06:52:37]New connection [06:52:37]New thread 3066752356 created [06:52:37]Thread 3066608996 joined [06:52:37]Waiting for new connection... [06:52:37] Sock 10.Parse request [06:52:37]Sock 10.Check first char [06:52:37]Sock 10.First char is OK [06:52:37]request: POST /json_proto HTTP/1.0 [06:52:37]Method: POST [06:52:37]URL: /json_proto [06:52:37]Method is POST - this is cgi request [06:52:37]url: /json_proto [06:52:37]query_string will be loaded in cgi processing [06:52:37]execute_cgi json_proto POST (null) [06:52:37]execute_cgi path=json_proto method=POST [06:52:37]POST find Content-Length [06:52:37]Host: 172.17.41.195:8080 [06:52:37]Content-Length: 679 [06:52:37]Content-Type: application/json [06:52:37] [06:52:37]POST finish read [06:52:37]Found Content-Length = 679 [06:52:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507944", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 13.390, "sum" : 1000.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:52:37]execute_script... [06:52:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507944", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 13.390, "sum" : 1000.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:52:37]POST & json_proto [06:52:37]process_json_proto [06:52:37]json parsed OK: [06:52:37]protocol is kg_v1.0 [06:52:37]action value=close_receipt [06:52:37]process_action close_receipt [06:52:37]cmd_close_receipt [06:52:37]MH_GetDate [06:52:37]Write to MH i2c: F0 00 00 B9 1F C7 [06:52:37]Write i2c OK [06:52:37]MH_I2C_Read... [06:52:37]Read from MH i2c: F0 [06:52:37]MH_I2C_Read... [06:52:37]Read from MH i2c: F0 09 00 [06:52:37]MH_I2C_Read... [06:52:37]Read from MH i2c: F0 09 00 B9 1F 00 39 50 48 66 FC 21 6F 64 F7 [06:52:37]GetLastDocTimeStamp 1716015152 [06:52:37]current date 1716015161 [06:52:37]FM_GetShiftState [06:52:37]SAM_PROTO_GetShiftState [06:52:37]wFMCommunicate request_size=4 [06:52:37]MH_SAM_APDU [06:52:37]CAPDU: 80 13 01 00 [06:52:37]Write to MH i2c: E2 08 00 BA 1F 80 13 01 00 00 00 00 00 56 [06:52:37]Write i2c OK [06:52:37]MH_I2C_Read... [06:52:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:52:37]Read from MH i2c: E2 [06:52:37]MH_I2C_Read... [06:52:37]Read from MH i2c: E2 0E 00 [06:52:37]MH_I2C_Read... [06:52:37]Read from MH i2c: E2 0E 00 BA 1F 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 BD [06:52:37]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [06:52:37]wFMCommunicate OK [06:52:37]SAM_PROTO_GetShiftState done [06:52:37]FM_GetShiftState done [06:52:37]opened in 1715991483 [06:52:37]opened+sec_in_day 1716077883 [06:52:37]quantity*price = 100023 [06:52:37]sum+1 = 100024 [06:52:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.23 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 15 18.05.2024 06:52 Смена: 359 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67776 ФПД: 155534867584923 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T065241&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67776&fm=155534867584923&tin=02508201610067®Number=0000000000091845&sum=100000 [06:52:38]StoreToDocumentArchive [06:52:38]shift 359 fd 67776 [06:52:38]save to /storage/0359/doc_00067776 [06:52:38]save last doc name /storage/0359/doc_00067776 to /storage/kkm_last_doc_name [06:52:38]save OK [06:52:38]Clear old archive folders... [06:52:38]ProcessDocumentItem done err = 0, tmpTLVsize=248 [06:52:38]tlvbuf is 01BA7E70 [06:52:38]SAM_PROTO_ClearQueue [06:52:38]wFMCommunicate request_size=4 [06:52:38]MH_SAM_APDU [06:52:38]CAPDU: 80 09 00 00 [06:52:38]Write to MH i2c: E2 08 00 C7 1F 80 09 00 00 00 00 00 00 58 [06:52:38]Write i2c OK [06:52:38]MH_I2C_Read... [06:52:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:52:38]Read from MH i2c: E2 [06:52:38]MH_I2C_Read... [06:52:38]Read from MH i2c: E2 03 00 [06:52:38]MH_I2C_Read... [06:52:38]Read from MH i2c: E2 03 00 C7 1F 00 90 00 5A [06:52:38]RAPDU: 90 00 [06:52:38]wFMCommunicate OK [06:52:38]SAM_PROTO_ClearQueue done [06:52:38]KKMCreateOFDPacket [06:52:38]OFDProtocolAddRootSTLVToBuf [06:52:38]FM_MakeSignedData [06:52:38]FM_MakeSignedData [06:52:38]SAM_PROTO_SignData [06:52:38]wFMCommunicate request_size=4 [06:52:38]MH_SAM_APDU [06:52:38]CAPDU: 80 0D 01 02 [06:52:38]Write to MH i2c: E2 08 00 C8 1F 80 0D 01 02 00 00 00 00 60 [06:52:38]Write i2c OK [06:52:38]MH_I2C_Read... [06:52:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:52:38]Read from MH i2c: E2 [06:52:38]MH_I2C_Read... [06:52:38]Read from MH i2c: E2 03 00 [06:52:38]MH_I2C_Read... [06:52:38]Read from MH i2c: E2 03 00 C8 1F 00 90 00 5B [06:52:38]RAPDU: 90 00 [06:52:38]wFMCommunicate OK [06:52:38]wFMCommunicate request_size=255 [06:52:38]MH_SAM_APDU [06:52:38]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4E 34 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 B7 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 39 50 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 C0 08 01 00 35 04 06 00 8D 75 48 88 [06:52:38]Write to MH i2c: E2 02 01 C9 1F 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4E 34 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 B7 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 39 50 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 C0 08 01 00 35 04 06 00 8D 75 48 88 00 00 83 [06:52:38]Write i2c OK [06:52:38]MH_I2C_Read... [06:52:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:52:38]Read from MH i2c: E2 [06:52:38]MH_I2C_Read... [06:52:38]Read from MH i2c: E2 03 00 [06:52:38]MH_I2C_Read... [06:52:38]Read from MH i2c: E2 03 00 C9 1F 00 90 00 5C [06:52:38]RAPDU: 90 00 [06:52:38]wFMCommunicate OK [06:52:38]wFMCommunicate request_size=7 [06:52:38]MH_SAM_APDU [06:52:38]CAPDU: 80 0D 02 02 02 57 9B [06:52:38]Write to MH i2c: E2 0A 00 CA 1F 80 0D 02 02 02 00 57 9B 00 00 59 [06:52:38]Write i2c OK [06:52:38]MH_I2C_Read... [06:52:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:52:38]Read from MH i2c: E2 [06:52:38]MH_I2C_Read... [06:52:38]Read from MH i2c: E2 03 00 [06:52:38]MH_I2C_Read... [06:52:38]Read from MH i2c: E2 03 00 CA 1F 00 90 00 5D [06:52:38]RAPDU: 90 00 [06:52:38]wFMCommunicate OK [06:52:38]wFMCommunicate request_size=4 [06:52:38]MH_SAM_APDU [06:52:38]CAPDU: 80 0D 03 02 [06:52:38]Write to MH i2c: E2 08 00 CB 1F 80 0D 03 02 00 00 00 00 65 [06:52:38]Write i2c OK [06:52:38]MH_I2C_Read... [06:52:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:52:38]Read from MH i2c: E2 [06:52:38]MH_I2C_Read... [06:52:38]Read from MH i2c: E2 0B 00 [06:52:38]MH_I2C_Read... [06:52:38]Read from MH i2c: E2 0B 00 CB 1F 00 6E A0 FC 42 D0 AD A5 FC 90 00 D0 [06:52:38]RAPDU: 6E A0 FC 42 D0 AD A5 FC 90 00 [06:52:38]wFMCommunicate OK [06:52:38]SAM_PROTO_SignData done [06:52:38]FM_MakeSignedData done [06:52:38]CreateOFDProtocolMessage [06:52:38]wFMCommunicate request_size=4 [06:52:38]MH_SAM_APDU [06:52:38]CAPDU: 80 11 00 00 [06:52:38]Write to MH i2c: E2 08 00 CC 1F 80 11 00 00 00 00 00 00 65 [06:52:38]Write i2c OK [06:52:38]MH_I2C_Read... [06:52:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:52:38]Read from MH i2c: E2 [06:52:38]MH_I2C_Read... [06:52:38]Read from MH i2c: E2 17 00 [06:52:38]MH_I2C_Read... [06:52:38]Read from MH i2c: E2 17 00 CC 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 BB [06:52:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [06:52:38]wFMCommunicate OK [06:52:38]CreateOFDProtocolMessage done [06:52:38]OFDSenderStorePacket 67776 [06:52:38]StoreOFDPacket docnum=67776 [06:52:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 AB BD 04 01 EA 3F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4E 34 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 B7 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 39 50 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 C0 08 01 00 35 04 06 00 8D 75 48 88 57 9B 6E A0 FC 42 D0 AD A5 FC [06:52:38]CheckFolder [06:52:38]dirname=/storage/ofd_packets [06:52:38]CheckFolder done [06:52:38]ProducePacketName [06:52:38]name=ofd_packets/00067776 [06:52:38]NVStorageSaveData ofd_packets/00067776 [06:52:38]File name is /storage/ofd_packets/00067776 [06:52:38]Write 298 bytes [06:52:38]NVStorageSaveData done [06:52:38]OFDSenderStorePacket done [06:52:38]KKMCreateOFDPacket done [06:52:39]NVStorageSaveData kkm_last_timestamp [06:52:39]File name is /storage/kkm_last_timestamp [06:52:39]Write 4 bytes [06:52:39]NVStorageSaveData done [06:52:39]ExternCall_PrintAddStr [06:52:39]wPrintStart [06:52:39]Write to MH i2c: 01 00 00 CD 1F EC [06:52:39]Write i2c OK [06:52:39]MH_I2C_Read... [06:52:39]Read from MH i2c: 01 [06:52:39]MH_I2C_Read... [06:52:39]Read from MH i2c: 01 07 00 [06:52:39]MH_I2C_Read... [06:52:39]Read from MH i2c: 01 07 00 CD 1F 00 00 00 00 00 FF 0F 01 [06:52:39]RasterBufferAndPrint [06:52:39]line Счет N : (1)507944 [06:52:39]line ИНН: 02508201610067 [06:52:39]line Контрольно-Кассовый Чек [06:52:39]line ПРОДАЖА [06:52:39]line ТРК (МРК, ГНК) : 11 [06:52:39]line Товар: 2710194210 [06:52:39]line ДТ-К-5 [06:52:39]line 13.390 * 74.70 [06:52:39]line = 1000.23 [06:52:39]line НДС 12% НСП 1% [06:52:39]line > о реализуемом товаре [06:52:39]line ОКРУГЛЕНИЕ: -0.23 [06:52:39]line ИТОГО: 1000.00 [06:52:39]line Внесено: 1000.00 [06:52:39]line СДАЧА: 0.00 [06:52:39]line НСП 1% : 8.85 [06:52:39]line НДС 12% : 106.22 [06:52:39]line Наличными: 1000.00 [06:52:39]line Безнал.: 0.00 [06:52:39]line Место: АЗС № 91 "Партнер Нефть" [06:52:39]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [06:52:39]line СНО: Общий режим [06:52:39]line Чек 15 18.05.2024 06:52 [06:52:39]line Смена: 359 ФФД: 1.0 [06:52:39]line ЗНМ: 0300000119 [06:52:39]line РНМ: 0000000000091845 [06:52:39]line Версия ККМ: 001 [06:52:39]line ФМ: 0000000000871829 [06:52:39]line ФД: 67776 [06:52:39]line ФПД: 155534867584923 [06:52:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T065241&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67776&fm=155534867584923&tin=02508201610067®Number=0000000000091845&sum=100000 [06:52:39]written 0, free lines is 4095 [06:52:39]OFD Sender: Processing packet 67776 [packets to send 35, broken 34] [06:52:39]ProducePacketName [06:52:39]name=ofd_packets/00067776 [06:52:39]OFD Sender: To server: pG, [06:52:39]CommunicateWithHost lk.salyk.kg:30040 [06:52:39]ConnectInit lk.salyk.kg [06:52:39]Connected sock=9 [06:52:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 AB BD 04 01 EA 3F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4E 34 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 B7 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 39 50 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 C0 08 01 00 35 04 06 00 8D 75 48 88 57 9B 6E A0 FC 42 D0 AD A5 FC [06:52:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 86 0C 47 00 0C 99 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 C0 08 01 00 F4 03 04 00 0F F8 47 66 B6 04 01 00 00 35 12 C1 EF 74 F2 3C 76 [06:52:39]CommunicateWithHost err = 0 [06:52:39]CheckOFDResponse [06:52:39]1017 (14) - 77093643461234 [06:52:39]1041 (16) - 0000000000871829 [06:52:39]1040 (4) - 67776 [06:52:39]1012 (4) - 18.05.2024 00:36 [06:52:39]1206 (1) - 0 [06:52:39]OFD Sender: Remove packet 67776 [06:52:39]ProducePacketName [06:52:39]name=ofd_packets/00067776 [06:52:39]NVStorageDeleteData [06:52:39]Write to MH i2c: 01 00 00 F7 1F 16 [06:52:39]Write i2c OK [06:52:39]MH_I2C_Read... [06:52:39]Read from MH i2c: 01 [06:52:39]MH_I2C_Read... [06:52:39]Read from MH i2c: 01 07 00 [06:52:39]MH_I2C_Read... [06:52:39]Read from MH i2c: 01 07 00 F7 1F 00 00 00 00 00 DC 0C 05 [06:52:39]RasterBufferAndPrint [06:52:39]line [06:52:39]line [06:52:39]line [06:52:39]line [06:52:39]line [06:52:39]written 0, free lines is 3300 [06:52:39]MH_Cut [06:52:39]Write to MH i2c: D1 01 00 FE 1F 01 EF [06:52:39]Write i2c OK [06:52:39]MH_I2C_Read... [06:52:39]Read from MH i2c: D1 [06:52:39]MH_I2C_Read... [06:52:39]Read from MH i2c: D1 01 00 [06:52:39]MH_I2C_Read... [06:52:39]Read from MH i2c: D1 01 00 FE 1F 00 EE [06:52:39]Write to MH i2c: 01 00 00 FF 1F 1E [06:52:39]Write i2c OK [06:52:39]MH_I2C_Read... [06:52:39]OFD Sender: No OFD packet to send [06:52:40]*** Cut start [06:52:40]*** Purtial cut [06:52:40]*** CUTSNS_PIN = 0 [06:52:40]*** Stage 1: CUTSNS_PIN = 1 [06:52:42]Read from MH i2c: 01 [06:52:42]MH_I2C_Read... [06:52:42]*** Stop cut motor [06:52:42]*** Cut end [06:52:42]Read from MH i2c: 01 07 00 [06:52:42]MH_I2C_Read... [06:52:42]Read from MH i2c: 01 07 00 FF 1F 00 00 00 00 00 FF 0F 33 [06:52:42]process_action close_receipt done [06:52:42]requested_data is exist [06:52:42]produce_requested_data [06:52:42]requested_item fm.sn is exist - process it [06:52:42]wFMCommunicate request_size=4 [06:52:42]MH_SAM_APDU [06:52:42]CAPDU: 80 11 00 00 [06:52:42]Write to MH i2c: E2 08 00 00 20 80 11 00 00 00 00 00 00 9A [06:52:42]Write i2c OK [06:52:42]MH_I2C_Read... [06:52:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:52:42]Read from MH i2c: E2 [06:52:42]MH_I2C_Read... [06:52:42]Read from MH i2c: E2 17 00 [06:52:42]MH_I2C_Read... [06:52:42]Read from MH i2c: E2 17 00 00 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 F0 [06:52:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [06:52:42]wFMCommunicate OK [06:52:42]requested_item fd.num is exist - process it [06:52:42]SAM_PROTO_GetFieldsCounters [06:52:42]wFMCommunicate request_size=4 [06:52:42]MH_SAM_APDU [06:52:42]CAPDU: 80 13 00 00 [06:52:42]Write to MH i2c: E2 08 00 01 20 80 13 00 00 00 00 00 00 9D [06:52:42]Write i2c OK [06:52:42]MH_I2C_Read... [06:52:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:52:42]Read from MH i2c: E2 [06:52:42]MH_I2C_Read... [06:52:42]Read from MH i2c: E2 62 00 [06:52:42]MH_I2C_Read... [06:52:42]Read from MH i2c: E2 62 00 01 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 C0 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 0F 00 00 00 5E 04 04 00 0F 00 00 00 57 04 04 00 10 00 00 00 19 04 04 00 00 00 00 00 90 00 21 [06:52:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 C0 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 0F 00 00 00 5E 04 04 00 0F 00 00 00 57 04 04 00 10 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:52:42]wFMCommunicate OK [06:52:42]SAM_PROTO_GetFieldsCounters done [06:52:42]requested_item shift.num is exist - process it [06:52:42]requested_item shift.opened is exist - process it [06:52:42]req_shift_opened [06:52:42]FM_GetShiftState [06:52:42]SAM_PROTO_GetShiftState [06:52:42]wFMCommunicate request_size=4 [06:52:42]MH_SAM_APDU [06:52:42]CAPDU: 80 13 01 00 [06:52:42]Write to MH i2c: E2 08 00 02 20 80 13 01 00 00 00 00 00 9F [06:52:42]Write i2c OK [06:52:42]MH_I2C_Read... [06:52:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:52:42]Read from MH i2c: E2 [06:52:42]MH_I2C_Read... [06:52:42]Read from MH i2c: E2 0E 00 [06:52:42]MH_I2C_Read... [06:52:42]Read from MH i2c: E2 0E 00 02 20 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 06 [06:52:42]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [06:52:42]wFMCommunicate OK [06:52:42]SAM_PROTO_GetShiftState done [06:52:42]FM_GetShiftState done [06:52:42]req_shift_opened done [06:52:42]requested_item shift.open_date is exist - process it [06:52:42]req_shift_open_date [06:52:42]req_shift_open_date done [06:52:42]produce_requested_data done [06:52:42]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67776,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [06:52:42]process_action_free close_receipt [06:52:42]json_value_free [06:52:42]json_value_free done [06:52:42]process_json_proto returns [06:52:42]Send response to host [06:52:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67776,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [06:52:42]free response buf [06:52:42]execute_script done [06:52:42]execute_script returns [06:52:42]free content buf [06:52:42]Sock 10.Close socket [06:52:42]Sock 10.Thread stoped [06:52:44]OFD Sender: No OFD packet to send [06:52:49]OFD Sender: No OFD packet to send [06:52:54]OFD Sender: No OFD packet to send [06:52:59]OFD Sender: No OFD packet to send [06:53:04]OFD Sender: No OFD packet to send [06:53:09]OFD Sender: No OFD packet to send [06:53:14]OFD Sender: No OFD packet to send [06:53:19]OFD Sender: No OFD packet to send [06:53:24]OFD Sender: No OFD packet to send [06:53:29]OFD Sender: No OFD packet to send [06:53:34]OFD Sender: No OFD packet to send [06:53:39]OFD Sender: No OFD packet to send [06:53:44]OFD Sender: No OFD packet to send [06:53:49]OFD Sender: No OFD packet to send [06:53:54]OFD Sender: No OFD packet to send [06:53:59]OFD Sender: No OFD packet to send [06:54:04]OFD Sender: No OFD packet to send [06:54:09]OFD Sender: No OFD packet to send [06:54:14]OFD Sender: No OFD packet to send [06:54:19]OFD Sender: No OFD packet to send [06:54:24]OFD Sender: No OFD packet to send [06:54:29]OFD Sender: No OFD packet to send [06:54:34]OFD Sender: No OFD packet to send [06:54:39]OFD Sender: No OFD packet to send [06:54:44]OFD Sender: No OFD packet to send [06:54:49]OFD Sender: No OFD packet to send [06:54:55]OFD Sender: No OFD packet to send [06:55:00]OFD Sender: No OFD packet to send [06:55:05]OFD Sender: No OFD packet to send [06:55:10]OFD Sender: No OFD packet to send [06:55:15]OFD Sender: No OFD packet to send [06:55:20]OFD Sender: No OFD packet to send [06:55:25]OFD Sender: No OFD packet to send [06:55:30]OFD Sender: No OFD packet to send [06:55:35]OFD Sender: No OFD packet to send [06:55:40]OFD Sender: No OFD packet to send [06:55:45]OFD Sender: No OFD packet to send [06:55:50]OFD Sender: No OFD packet to send [06:55:55]OFD Sender: No OFD packet to send [06:55:57]accept exits with 7 [06:55:57]New connection [06:55:57]New thread 3066608996 created [06:55:57]Thread 3066752356 joined [06:55:57]Waiting for new connection... [06:55:57] Sock 7.Parse request [06:55:57]Sock 7.Check first char [06:55:57]Sock 7.First char is OK [06:55:57]request: POST /json_proto HTTP/1.0 [06:55:57]Method: POST [06:55:57]URL: /json_proto [06:55:57]Method is POST - this is cgi request [06:55:57]url: /json_proto [06:55:57]query_string will be loaded in cgi processing [06:55:57]execute_cgi json_proto POST (null) [06:55:57]execute_cgi path=json_proto method=POST [06:55:57]POST find Content-Length [06:55:57]Host: 172.17.41.195:8080 [06:55:57]Content-Length: 682 [06:55:57]Content-Type: application/json [06:55:57] [06:55:57]POST finish read [06:55:57]Found Content-Length = 682 [06:55:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507945", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.80, "quantity" : 14.980, "sum" : 1000.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:55:57]execute_script... [06:55:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507945", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.80, "quantity" : 14.980, "sum" : 1000.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:55:57]POST & json_proto [06:55:57]process_json_proto [06:55:57]json parsed OK: [06:55:57]protocol is kg_v1.0 [06:55:57]action value=close_receipt [06:55:57]process_action close_receipt [06:55:57]cmd_close_receipt [06:55:57]MH_GetDate [06:55:57]Write to MH i2c: F0 00 00 03 20 12 [06:55:57]Write i2c OK [06:55:57]MH_I2C_Read... [06:55:57]Read from MH i2c: F0 [06:55:57]MH_I2C_Read... [06:55:57]Read from MH i2c: F0 09 00 [06:55:57]MH_I2C_Read... [06:55:57]Read from MH i2c: F0 09 00 03 20 00 01 51 48 66 FC 21 6F 64 0B [06:55:57]GetLastDocTimeStamp 1716015161 [06:55:57]current date 1716015361 [06:55:57]FM_GetShiftState [06:55:57]SAM_PROTO_GetShiftState [06:55:57]wFMCommunicate request_size=4 [06:55:57]MH_SAM_APDU [06:55:57]CAPDU: 80 13 01 00 [06:55:57]Write to MH i2c: E2 08 00 04 20 80 13 01 00 00 00 00 00 A1 [06:55:57]Write i2c OK [06:55:57]MH_I2C_Read... [06:55:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:55:57]Read from MH i2c: E2 [06:55:57]MH_I2C_Read... [06:55:57]Read from MH i2c: E2 0E 00 [06:55:57]MH_I2C_Read... [06:55:57]Read from MH i2c: E2 0E 00 04 20 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 08 [06:55:57]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [06:55:57]wFMCommunicate OK [06:55:57]SAM_PROTO_GetShiftState done [06:55:57]FM_GetShiftState done [06:55:57]opened in 1715991483 [06:55:57]opened+sec_in_day 1716077883 [06:55:57]quantity*price = 100066 [06:55:57]sum+1 = 100067 [06:55:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 16 18.05.2024 06:56 Смена: 359 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67777 ФПД: 120473931223106 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T065601&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67777&fm=120473931223106&tin=02508201610067®Number=0000000000091845&sum=100000 [06:55:58]StoreToDocumentArchive [06:55:58]shift 359 fd 67777 [06:55:58]save to /storage/0359/doc_00067777 [06:55:58]save last doc name /storage/0359/doc_00067777 to /storage/kkm_last_doc_name [06:55:58]save OK [06:55:58]Clear old archive folders... [06:55:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:55:58]tlvbuf is 01AF9730 [06:55:58]SAM_PROTO_ClearQueue [06:55:58]wFMCommunicate request_size=4 [06:55:58]MH_SAM_APDU [06:55:58]CAPDU: 80 09 00 00 [06:55:58]Write to MH i2c: E2 08 00 11 20 80 09 00 00 00 00 00 00 A3 [06:55:58]Write i2c OK [06:55:58]MH_I2C_Read... [06:55:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:55:58]Read from MH i2c: E2 [06:55:58]MH_I2C_Read... [06:55:58]Read from MH i2c: E2 03 00 [06:55:58]MH_I2C_Read... [06:55:58]Read from MH i2c: E2 03 00 11 20 00 90 00 A5 [06:55:58]RAPDU: 90 00 [06:55:58]wFMCommunicate OK [06:55:58]SAM_PROTO_ClearQueue done [06:55:58]KKMCreateOFDPacket [06:55:58]OFDProtocolAddRootSTLVToBuf [06:55:58]FM_MakeSignedData [06:55:58]FM_MakeSignedData [06:55:58]SAM_PROTO_SignData [06:55:58]wFMCommunicate request_size=4 [06:55:58]MH_SAM_APDU [06:55:58]CAPDU: 80 0D 01 02 [06:55:58]Write to MH i2c: E2 08 00 12 20 80 0D 01 02 00 00 00 00 AB [06:55:58]Write i2c OK [06:55:58]MH_I2C_Read... [06:55:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:55:58]Read from MH i2c: E2 [06:55:58]MH_I2C_Read... [06:55:58]Read from MH i2c: E2 03 00 [06:55:58]MH_I2C_Read... [06:55:58]Read from MH i2c: E2 03 00 12 20 00 90 00 A6 [06:55:58]RAPDU: 90 00 [06:55:58]wFMCommunicate OK [06:55:58]wFMCommunicate request_size=255 [06:55:58]MH_SAM_APDU [06:55:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 84 3A 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 01 51 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 C1 08 01 00 35 04 06 00 6D [06:55:58]Write to MH i2c: E2 02 01 13 20 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 84 3A 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 01 51 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 C1 08 01 00 35 04 06 00 6D 00 00 33 [06:55:58]Write i2c OK [06:55:58]MH_I2C_Read... [06:55:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:55:58]Read from MH i2c: E2 [06:55:58]MH_I2C_Read... [06:55:58]Read from MH i2c: E2 03 00 [06:55:58]MH_I2C_Read... [06:55:58]Read from MH i2c: E2 03 00 13 20 00 90 00 A7 [06:55:58]RAPDU: 90 00 [06:55:58]wFMCommunicate OK [06:55:58]wFMCommunicate request_size=10 [06:55:58]MH_SAM_APDU [06:55:58]CAPDU: 80 0D 02 02 05 92 05 E0 10 42 [06:55:58]Write to MH i2c: E2 0D 00 14 20 80 0D 02 02 05 00 92 05 E0 10 42 00 00 81 [06:55:58]Write i2c OK [06:55:58]MH_I2C_Read... [06:55:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:55:58]Read from MH i2c: E2 [06:55:58]MH_I2C_Read... [06:55:58]Read from MH i2c: E2 03 00 [06:55:58]MH_I2C_Read... [06:55:58]Read from MH i2c: E2 03 00 14 20 00 90 00 A8 [06:55:58]RAPDU: 90 00 [06:55:58]wFMCommunicate OK [06:55:58]wFMCommunicate request_size=4 [06:55:58]MH_SAM_APDU [06:55:58]CAPDU: 80 0D 03 02 [06:55:58]Write to MH i2c: E2 08 00 15 20 80 0D 03 02 00 00 00 00 B0 [06:55:58]Write i2c OK [06:55:58]MH_I2C_Read... [06:55:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:55:58]Read from MH i2c: E2 [06:55:58]MH_I2C_Read... [06:55:58]Read from MH i2c: E2 0B 00 [06:55:58]MH_I2C_Read... [06:55:58]Read from MH i2c: E2 0B 00 15 20 00 82 1D CC 18 3F 85 F4 19 90 00 05 [06:55:58]RAPDU: 82 1D CC 18 3F 85 F4 19 90 00 [06:55:58]wFMCommunicate OK [06:55:58]SAM_PROTO_SignData done [06:55:58]FM_MakeSignedData done [06:55:58]CreateOFDProtocolMessage [06:55:58]wFMCommunicate request_size=4 [06:55:58]MH_SAM_APDU [06:55:58]CAPDU: 80 11 00 00 [06:55:58]Write to MH i2c: E2 08 00 16 20 80 11 00 00 00 00 00 00 B0 [06:55:58]Write i2c OK [06:55:58]MH_I2C_Read... [06:55:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:55:58]Read from MH i2c: E2 [06:55:58]MH_I2C_Read... [06:55:58]Read from MH i2c: E2 17 00 [06:55:58]MH_I2C_Read... [06:55:58]Read from MH i2c: E2 17 00 16 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 06 [06:55:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [06:55:58]wFMCommunicate OK [06:55:58]CreateOFDProtocolMessage done [06:55:58]OFDSenderStorePacket 67777 [06:55:58]StoreOFDPacket docnum=67777 [06:55:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 59 D9 07 01 92 70 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 84 3A 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 01 51 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 C1 08 01 00 35 04 06 00 6D 92 05 E0 10 42 82 1D CC 18 3F 85 F4 19 [06:55:58]CheckFolder [06:55:58]dirname=/storage/ofd_packets [06:55:58]CheckFolder done [06:55:58]ProducePacketName [06:55:58]name=ofd_packets/00067777 [06:55:58]NVStorageSaveData ofd_packets/00067777 [06:55:58]File name is /storage/ofd_packets/00067777 [06:55:58]Write 301 bytes [06:55:58]NVStorageSaveData done [06:55:58]OFDSenderStorePacket done [06:55:58]KKMCreateOFDPacket done [06:55:58]NVStorageSaveData kkm_last_timestamp [06:55:58]File name is /storage/kkm_last_timestamp [06:55:58]Write 4 bytes [06:55:58]NVStorageSaveData done [06:55:58]ExternCall_PrintAddStr [06:55:58]wPrintStart [06:55:58]Write to MH i2c: 01 00 00 17 20 37 [06:55:58]Write i2c OK [06:55:58]MH_I2C_Read... [06:55:58]Read from MH i2c: 01 [06:55:58]MH_I2C_Read... [06:55:58]Read from MH i2c: 01 07 00 [06:55:58]MH_I2C_Read... [06:55:58]Read from MH i2c: 01 07 00 17 20 00 00 00 00 00 FF 0F 4C [06:55:58]RasterBufferAndPrint [06:55:58]line Счет N : (1)507945 [06:55:58]line ИНН: 02508201610067 [06:55:58]line Контрольно-Кассовый Чек [06:55:58]line ПРОДАЖА [06:55:58]line ТРК (МРК, ГНК) : 23 [06:55:58]line Товар: 2710124130 [06:55:58]line Аи-92-К-5 [06:55:58]line 14.980 * 66.80 [06:55:58]line = 1000.66 [06:55:58]line НДС 12% НСП 1% [06:55:58]line > о реализуемом товаре [06:55:58]line ОКРУГЛЕНИЕ: -0.66 [06:55:58]line ИТОГО: 1000.00 [06:55:58]line Внесено: 1000.00 [06:55:58]line СДАЧА: 0.00 [06:55:58]line НСП 1% : 8.85 [06:55:58]line НДС 12% : 106.26 [06:55:58]line Наличными: 1000.00 [06:55:58]line Безнал.: 0.00 [06:55:58]line Место: АЗС № 91 "Партнер Нефть" [06:55:58]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [06:55:58]line СНО: Общий режим [06:55:58]line Чек 16 18.05.2024 06:56 [06:55:58]line Смена: 359 ФФД: 1.0 [06:55:58]line ЗНМ: 0300000119 [06:55:58]line РНМ: 0000000000091845 [06:55:58]line Версия ККМ: 001 [06:55:58]line ФМ: 0000000000871829 [06:55:58]line ФД: 67777 [06:55:58]line ФПД: 120473931223106 [06:55:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T065601&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67777&fm=120473931223106&tin=02508201610067®Number=0000000000091845&sum=100000 [06:55:59]written 0, free lines is 4095 [06:55:59]OFD Sender: Processing packet 67777 [packets to send 35, broken 34] [06:55:59]ProducePacketName [06:55:59]name=ofd_packets/00067777 [06:55:59]OFD Sender: To server: pG, [06:55:59]CommunicateWithHost lk.salyk.kg:30040 [06:55:59]ConnectInit lk.salyk.kg [06:55:59]Connected sock=10 [06:55:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 59 D9 07 01 92 70 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 84 3A 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 01 51 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 C1 08 01 00 35 04 06 00 6D 92 05 E0 10 42 82 1D CC 18 3F 85 F4 19 [06:55:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 A0 0D 47 00 F8 CB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 C1 08 01 00 F4 03 04 00 D7 F8 47 66 B6 04 01 00 00 C3 C6 E4 98 65 DF 6A AE [06:55:59]CommunicateWithHost err = 0 [06:55:59]CheckOFDResponse [06:55:59]1017 (14) - 77093643461234 [06:55:59]1041 (16) - 0000000000871829 [06:55:59]1040 (4) - 67777 [06:55:59]1012 (4) - 18.05.2024 00:39 [06:55:59]1206 (1) - 0 [06:55:59]OFD Sender: Remove packet 67777 [06:55:59]ProducePacketName [06:55:59]name=ofd_packets/00067777 [06:55:59]NVStorageDeleteData [06:55:59]Write to MH i2c: 01 00 00 41 20 61 [06:55:59]Write i2c OK [06:55:59]MH_I2C_Read... [06:55:59]Read from MH i2c: 01 [06:55:59]MH_I2C_Read... [06:55:59]Read from MH i2c: 01 07 00 [06:55:59]MH_I2C_Read... [06:55:59]Read from MH i2c: 01 07 00 41 20 00 00 00 00 00 CA 0C 3E [06:55:59]RasterBufferAndPrint [06:55:59]line [06:55:59]line [06:55:59]line [06:55:59]line [06:55:59]line [06:55:59]written 0, free lines is 3281 [06:55:59]MH_Cut [06:55:59]Write to MH i2c: D1 01 00 48 20 01 3A [06:55:59]Write i2c OK [06:55:59]MH_I2C_Read... [06:55:59]Read from MH i2c: D1 [06:55:59]MH_I2C_Read... [06:55:59]Read from MH i2c: D1 01 00 [06:55:59]MH_I2C_Read... [06:55:59]Read from MH i2c: D1 01 00 48 20 00 39 [06:55:59]Write to MH i2c: 01 00 00 49 20 69 [06:55:59]Write i2c OK [06:55:59]MH_I2C_Read... [06:55:59]OFD Sender: No OFD packet to send [06:56:00]*** Cut start [06:56:00]*** Purtial cut [06:56:00]*** Stage 1: CUTSNS_PIN = 1 [06:56:00]Read from MH i2c: 01 [06:56:00]MH_I2C_Read... [06:56:00]*** Stop cut motor [06:56:00]*** Cut end [06:56:00]Read from MH i2c: 01 07 00 [06:56:00]MH_I2C_Read... [06:56:00]Read from MH i2c: 01 07 00 49 20 00 00 00 00 00 FF 0F 7E [06:56:00]process_action close_receipt done [06:56:00]requested_data is exist [06:56:00]produce_requested_data [06:56:00]requested_item fm.sn is exist - process it [06:56:00]wFMCommunicate request_size=4 [06:56:00]MH_SAM_APDU [06:56:00]CAPDU: 80 11 00 00 [06:56:00]Write to MH i2c: E2 08 00 4A 20 80 11 00 00 00 00 00 00 E4 [06:56:00]Write i2c OK [06:56:00]MH_I2C_Read... [06:56:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:56:00]Read from MH i2c: E2 [06:56:00]MH_I2C_Read... [06:56:00]Read from MH i2c: E2 17 00 [06:56:00]MH_I2C_Read... [06:56:00]Read from MH i2c: E2 17 00 4A 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 3A [06:56:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [06:56:00]wFMCommunicate OK [06:56:00]requested_item fd.num is exist - process it [06:56:00]SAM_PROTO_GetFieldsCounters [06:56:00]wFMCommunicate request_size=4 [06:56:00]MH_SAM_APDU [06:56:00]CAPDU: 80 13 00 00 [06:56:00]Write to MH i2c: E2 08 00 4B 20 80 13 00 00 00 00 00 00 E7 [06:56:00]Write i2c OK [06:56:00]MH_I2C_Read... [06:56:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:56:00]Read from MH i2c: E2 [06:56:00]MH_I2C_Read... [06:56:00]Read from MH i2c: E2 62 00 [06:56:00]MH_I2C_Read... [06:56:00]Read from MH i2c: E2 62 00 4B 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 C1 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 6F [06:56:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 C1 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:56:00]wFMCommunicate OK [06:56:00]SAM_PROTO_GetFieldsCounters done [06:56:00]requested_item shift.num is exist - process it [06:56:00]requested_item shift.opened is exist - process it [06:56:00]req_shift_opened [06:56:00]FM_GetShiftState [06:56:00]SAM_PROTO_GetShiftState [06:56:00]wFMCommunicate request_size=4 [06:56:00]MH_SAM_APDU [06:56:00]CAPDU: 80 13 01 00 [06:56:00]Write to MH i2c: E2 08 00 4C 20 80 13 01 00 00 00 00 00 E9 [06:56:00]Write i2c OK [06:56:00]MH_I2C_Read... [06:56:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:56:00]Read from MH i2c: E2 [06:56:00]MH_I2C_Read... [06:56:00]Read from MH i2c: E2 0E 00 [06:56:00]MH_I2C_Read... [06:56:00]Read from MH i2c: E2 0E 00 4C 20 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 50 [06:56:00]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [06:56:00]wFMCommunicate OK [06:56:00]SAM_PROTO_GetShiftState done [06:56:00]FM_GetShiftState done [06:56:00]req_shift_opened done [06:56:00]requested_item shift.open_date is exist - process it [06:56:00]req_shift_open_date [06:56:00]req_shift_open_date done [06:56:00]produce_requested_data done [06:56:00]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67777,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [06:56:00]process_action_free close_receipt [06:56:00]json_value_free [06:56:00]json_value_free done [06:56:00]process_json_proto returns [06:56:00]Send response to host [06:56:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67777,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [06:56:00]free response buf [06:56:00]execute_script done [06:56:00]execute_script returns [06:56:00]free content buf [06:56:00]Sock 7.Close socket [06:56:00]Sock 7.Thread stoped [06:56:04]OFD Sender: No OFD packet to send [06:56:09]OFD Sender: No OFD packet to send [06:56:14]OFD Sender: No OFD packet to send [06:56:19]OFD Sender: No OFD packet to send [06:56:24]OFD Sender: No OFD packet to send [06:56:29]OFD Sender: No OFD packet to send [06:56:34]OFD Sender: No OFD packet to send [06:56:39]OFD Sender: No OFD packet to send [06:56:43]accept exits with 9 [06:56:43]New connection [06:56:43]New thread 3066752356 created [06:56:43]Thread 3066608996 joined [06:56:43]Waiting for new connection... [06:56:43] Sock 9.Parse request [06:56:43]Sock 9.Check first char [06:56:43]Sock 9.First char is OK [06:56:43]request: POST /json_proto HTTP/1.0 [06:56:43]Method: POST [06:56:43]URL: /json_proto [06:56:43]Method is POST - this is cgi request [06:56:43]url: /json_proto [06:56:43]query_string will be loaded in cgi processing [06:56:43]execute_cgi json_proto POST (null) [06:56:43]execute_cgi path=json_proto method=POST [06:56:43]POST find Content-Length [06:56:43]Host: 172.17.41.195:8080 [06:56:43]Content-Length: 1209 [06:56:43]Content-Type: application/json [06:56:43] [06:56:43]POST finish read [06:56:43]Found Content-Length = 1209 [06:56:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0440\u0441\u0442\u0430\u043D\u0431\u0435\u043A\u043E\u0432 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)507946\u000A18.05.2024 06:39\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 26.780 x 74.70\u000A\u0418\u0422\u041E\u0413: 2000.47\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:56:43]execute_script... [06:56:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0440\u0441\u0442\u0430\u043D\u0431\u0435\u043A\u043E\u0432 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)507946\u000A18.05.2024 06:39\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 26.780 x 74.70\u000A\u0418\u0422\u041E\u0413: 2000.47\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:56:43]POST & json_proto [06:56:43]process_json_proto [06:56:43]json parsed OK: [06:56:43]protocol is kg_v1.0 [06:56:43]action value=print_text [06:56:43]process_action print_text [06:56:43]cmd_print_text [06:56:43]ExternCall_PrintAddStr [06:56:43]wPrintStart [06:56:43]Write to MH i2c: 01 00 00 4D 20 6D [06:56:43]Write i2c OK [06:56:43]MH_I2C_Read... [06:56:43]Read from MH i2c: 01 [06:56:43]MH_I2C_Read... [06:56:43]Read from MH i2c: 01 07 00 [06:56:43]MH_I2C_Read... [06:56:43]Read from MH i2c: 01 07 00 4D 20 00 00 00 00 00 FF 0F 82 [06:56:43]RasterBufferAndPrint [06:56:43]line *****ТОВАРНЫЙ ЧЕК***** [06:56:43]line АЗС-91 [06:56:43]line Партнер нефть [06:56:43]line 02508201610067 [06:56:43]line Кассир : Арстанбеков Н. [06:56:43]line Счет N : (1)507946 [06:56:43]line 18.05.2024 06:39 [06:56:43]line ПРОДАЖА [06:56:43]line ТРК (МРК, ГНК): 11 [06:56:43]line Вид ГСМ : 2710194210 [06:56:43]line ДТ-К-5 [06:56:43]line 26.780 x 74.70 [06:56:43]line ИТОГ: 2000.47 [06:56:43]line Тип оплаты: Талоны: Топливная Карта [06:56:43]line 02750 [06:56:43]line ______________________ [06:56:43]line (подпись) [06:56:43]written 0, free lines is 4095 [06:56:43]Write to MH i2c: 01 00 00 61 20 81 [06:56:43]Write i2c OK [06:56:43]MH_I2C_Read... [06:56:43]Read from MH i2c: 01 [06:56:43]MH_I2C_Read... [06:56:43]Read from MH i2c: 01 07 00 [06:56:43]MH_I2C_Read... [06:56:43]Read from MH i2c: 01 07 00 61 20 00 00 00 00 00 11 0E A7 [06:56:43]RasterBufferAndPrint [06:56:43]line [06:56:43]line [06:56:43]line [06:56:43]line [06:56:43]line [06:56:43]written 0, free lines is 3602 [06:56:43]MH_Cut [06:56:43]Write to MH i2c: D1 01 00 68 20 01 5A [06:56:43]Write i2c OK [06:56:43]MH_I2C_Read... [06:56:43]Read from MH i2c: D1 [06:56:43]MH_I2C_Read... [06:56:43]Read from MH i2c: D1 01 00 [06:56:43]MH_I2C_Read... [06:56:43]Read from MH i2c: D1 01 00 68 20 00 59 [06:56:43]Write to MH i2c: 01 00 00 69 20 89 [06:56:43]Write i2c OK [06:56:43]MH_I2C_Read... [06:56:43]*** Cut start [06:56:43]*** Purtial cut [06:56:43]*** CUTSNS_PIN = 0 [06:56:44]*** Stage 1: CUTSNS_PIN = 1 [06:56:44]OFD Sender: No OFD packet to send [06:56:45]Read from MH i2c: 01 [06:56:45]MH_I2C_Read... [06:56:45]*** Stop cut motor [06:56:45]*** Cut end [06:56:45]Read from MH i2c: 01 07 00 [06:56:45]MH_I2C_Read... [06:56:45]Read from MH i2c: 01 07 00 69 20 00 00 00 00 00 FF 0F 9E [06:56:45]process_action print_text done [06:56:45]requested_data is exist [06:56:45]produce_requested_data [06:56:45]requested_item fm.sn is exist - process it [06:56:45]wFMCommunicate request_size=4 [06:56:45]MH_SAM_APDU [06:56:45]CAPDU: 80 11 00 00 [06:56:45]Write to MH i2c: E2 08 00 6A 20 80 11 00 00 00 00 00 00 04 [06:56:45]Write i2c OK [06:56:45]MH_I2C_Read... [06:56:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:56:45]Read from MH i2c: E2 [06:56:45]MH_I2C_Read... [06:56:45]Read from MH i2c: E2 17 00 [06:56:45]MH_I2C_Read... [06:56:45]Read from MH i2c: E2 17 00 6A 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 5A [06:56:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [06:56:45]wFMCommunicate OK [06:56:45]requested_item fd.num is exist - process it [06:56:45]SAM_PROTO_GetFieldsCounters [06:56:45]wFMCommunicate request_size=4 [06:56:45]MH_SAM_APDU [06:56:45]CAPDU: 80 13 00 00 [06:56:45]Write to MH i2c: E2 08 00 6B 20 80 13 00 00 00 00 00 00 07 [06:56:45]Write i2c OK [06:56:45]MH_I2C_Read... [06:56:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:56:46]Read from MH i2c: E2 [06:56:46]MH_I2C_Read... [06:56:46]Read from MH i2c: E2 62 00 [06:56:46]MH_I2C_Read... [06:56:46]Read from MH i2c: E2 62 00 6B 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 C1 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 8F [06:56:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 C1 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:56:46]wFMCommunicate OK [06:56:46]SAM_PROTO_GetFieldsCounters done [06:56:46]requested_item shift.num is exist - process it [06:56:46]requested_item shift.opened is exist - process it [06:56:46]req_shift_opened [06:56:46]FM_GetShiftState [06:56:46]SAM_PROTO_GetShiftState [06:56:46]wFMCommunicate request_size=4 [06:56:46]MH_SAM_APDU [06:56:46]CAPDU: 80 13 01 00 [06:56:46]Write to MH i2c: E2 08 00 6C 20 80 13 01 00 00 00 00 00 09 [06:56:46]Write i2c OK [06:56:46]MH_I2C_Read... [06:56:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:56:46]Read from MH i2c: E2 [06:56:46]MH_I2C_Read... [06:56:46]Read from MH i2c: E2 0E 00 [06:56:46]MH_I2C_Read... [06:56:46]Read from MH i2c: E2 0E 00 6C 20 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 70 [06:56:46]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [06:56:46]wFMCommunicate OK [06:56:46]SAM_PROTO_GetShiftState done [06:56:46]FM_GetShiftState done [06:56:46]req_shift_opened done [06:56:46]requested_item shift.open_date is exist - process it [06:56:46]req_shift_open_date [06:56:46]req_shift_open_date done [06:56:46]produce_requested_data done [06:56:46]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67777,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [06:56:46]process_action_free print_text [06:56:46]json_value_free [06:56:46]json_value_free done [06:56:46]process_json_proto returns [06:56:46]Send response to host [06:56:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67777,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [06:56:46]free response buf [06:56:46]execute_script done [06:56:46]execute_script returns [06:56:46]free content buf [06:56:46]Sock 9.Close socket [06:56:46]Sock 9.Thread stoped [06:56:49]OFD Sender: No OFD packet to send [06:56:54]OFD Sender: No OFD packet to send [06:56:59]OFD Sender: No OFD packet to send [06:57:04]OFD Sender: No OFD packet to send [06:57:10]OFD Sender: No OFD packet to send [06:57:15]OFD Sender: No OFD packet to send [06:57:20]OFD Sender: No OFD packet to send [06:57:25]OFD Sender: No OFD packet to send [06:57:30]OFD Sender: No OFD packet to send [06:57:35]OFD Sender: No OFD packet to send [06:57:40]OFD Sender: No OFD packet to send [06:57:45]OFD Sender: No OFD packet to send [06:57:50]OFD Sender: No OFD packet to send [06:57:55]OFD Sender: No OFD packet to send [06:58:00]OFD Sender: No OFD packet to send [06:58:05]OFD Sender: No OFD packet to send [06:58:10]OFD Sender: No OFD packet to send [06:58:15]OFD Sender: No OFD packet to send [06:58:20]OFD Sender: No OFD packet to send [06:58:25]OFD Sender: No OFD packet to send [06:58:30]OFD Sender: No OFD packet to send [06:58:35]OFD Sender: No OFD packet to send [06:58:40]OFD Sender: No OFD packet to send [06:58:45]OFD Sender: No OFD packet to send [06:58:50]OFD Sender: No OFD packet to send [06:58:55]OFD Sender: No OFD packet to send [06:59:00]OFD Sender: No OFD packet to send [06:59:05]OFD Sender: No OFD packet to send [06:59:10]OFD Sender: No OFD packet to send [06:59:15]OFD Sender: No OFD packet to send [06:59:20]OFD Sender: No OFD packet to send [06:59:25]OFD Sender: No OFD packet to send [06:59:30]OFD Sender: No OFD packet to send [06:59:35]OFD Sender: No OFD packet to send [06:59:40]OFD Sender: No OFD packet to send [06:59:45]OFD Sender: No OFD packet to send [06:59:50]OFD Sender: No OFD packet to send [06:59:55]OFD Sender: No OFD packet to send [07:00:00]OFD Sender: No OFD packet to send [07:00:05]OFD Sender: No OFD packet to send [07:00:10]OFD Sender: No OFD packet to send [07:00:15]OFD Sender: No OFD packet to send [07:00:20]OFD Sender: No OFD packet to send [07:00:25]OFD Sender: No OFD packet to send [07:00:30]OFD Sender: No OFD packet to send [07:00:35]OFD Sender: No OFD packet to send [07:00:40]OFD Sender: No OFD packet to send [07:00:45]OFD Sender: No OFD packet to send [07:00:50]OFD Sender: No OFD packet to send [07:00:55]OFD Sender: No OFD packet to send [07:01:00]OFD Sender: No OFD packet to send [07:01:05]OFD Sender: No OFD packet to send [07:01:10]OFD Sender: No OFD packet to send [07:01:15]OFD Sender: No OFD packet to send [07:01:20]OFD Sender: No OFD packet to send [07:01:25]OFD Sender: No OFD packet to send [07:01:30]OFD Sender: No OFD packet to send [07:01:35]OFD Sender: No OFD packet to send [07:01:40]OFD Sender: No OFD packet to send [07:01:45]OFD Sender: No OFD packet to send [07:01:50]OFD Sender: No OFD packet to send [07:01:55]OFD Sender: No OFD packet to send [07:02:00]OFD Sender: No OFD packet to send [07:02:05]OFD Sender: No OFD packet to send [07:02:10]OFD Sender: No OFD packet to send [07:02:15]OFD Sender: No OFD packet to send [07:02:20]OFD Sender: No OFD packet to send [07:02:25]OFD Sender: No OFD packet to send [07:02:30]OFD Sender: No OFD packet to send [07:02:35]OFD Sender: No OFD packet to send [07:02:40]OFD Sender: No OFD packet to send [07:02:45]OFD Sender: No OFD packet to send [07:02:50]OFD Sender: No OFD packet to send [07:02:55]OFD Sender: No OFD packet to send [07:03:00]OFD Sender: No OFD packet to send [07:03:05]OFD Sender: No OFD packet to send [07:03:10]OFD Sender: No OFD packet to send [07:03:15]OFD Sender: No OFD packet to send [07:03:20]OFD Sender: No OFD packet to send [07:03:25]OFD Sender: No OFD packet to send [07:03:30]OFD Sender: No OFD packet to send [07:03:35]OFD Sender: No OFD packet to send [07:03:40]OFD Sender: No OFD packet to send [07:03:45]OFD Sender: No OFD packet to send [07:03:50]OFD Sender: No OFD packet to send [07:03:55]OFD Sender: No OFD packet to send [07:04:00]OFD Sender: No OFD packet to send [07:04:05]OFD Sender: No OFD packet to send [07:04:10]OFD Sender: No OFD packet to send [07:04:15]OFD Sender: No OFD packet to send [07:04:20]OFD Sender: No OFD packet to send [07:04:25]OFD Sender: No OFD packet to send [07:04:30]OFD Sender: No OFD packet to send [07:04:35]OFD Sender: No OFD packet to send [07:04:40]OFD Sender: No OFD packet to send [07:04:45]OFD Sender: No OFD packet to send [07:04:50]OFD Sender: No OFD packet to send [07:04:55]OFD Sender: No OFD packet to send [07:05:00]OFD Sender: No OFD packet to send [07:05:05]OFD Sender: No OFD packet to send [07:05:10]OFD Sender: No OFD packet to send [07:05:15]OFD Sender: No OFD packet to send [07:05:20]OFD Sender: No OFD packet to send [07:05:25]OFD Sender: No OFD packet to send [07:05:30]OFD Sender: No OFD packet to send [07:05:35]OFD Sender: No OFD packet to send [07:05:40]OFD Sender: No OFD packet to send [07:05:45]OFD Sender: No OFD packet to send [07:05:50]OFD Sender: No OFD packet to send [07:05:55]OFD Sender: No OFD packet to send [07:06:00]OFD Sender: No OFD packet to send [07:06:05]OFD Sender: No OFD packet to send [07:06:10]OFD Sender: No OFD packet to send [07:06:15]OFD Sender: No OFD packet to send [07:06:20]OFD Sender: No OFD packet to send [07:06:25]OFD Sender: No OFD packet to send [07:06:30]OFD Sender: No OFD packet to send [07:06:35]OFD Sender: No OFD packet to send [07:06:40]OFD Sender: No OFD packet to send [07:06:45]OFD Sender: No OFD packet to send [07:06:50]OFD Sender: No OFD packet to send [07:06:55]OFD Sender: No OFD packet to send [07:07:00]OFD Sender: No OFD packet to send [07:07:05]OFD Sender: No OFD packet to send [07:07:10]OFD Sender: No OFD packet to send [07:07:15]OFD Sender: No OFD packet to send [07:07:20]OFD Sender: No OFD packet to send [07:07:25]OFD Sender: No OFD packet to send [07:07:30]OFD Sender: No OFD packet to send [07:07:35]OFD Sender: No OFD packet to send [07:07:40]OFD Sender: No OFD packet to send [07:07:45]OFD Sender: No OFD packet to send [07:07:50]OFD Sender: No OFD packet to send [07:07:55]OFD Sender: No OFD packet to send [07:08:00]OFD Sender: No OFD packet to send [07:08:05]OFD Sender: No OFD packet to send [07:08:10]OFD Sender: No OFD packet to send [07:08:15]OFD Sender: No OFD packet to send [07:08:20]OFD Sender: No OFD packet to send [07:08:25]OFD Sender: No OFD packet to send [07:08:30]OFD Sender: No OFD packet to send [07:08:35]OFD Sender: No OFD packet to send [07:08:40]OFD Sender: No OFD packet to send [07:08:45]OFD Sender: No OFD packet to send [07:08:50]OFD Sender: No OFD packet to send [07:08:55]OFD Sender: No OFD packet to send [07:09:00]OFD Sender: No OFD packet to send [07:09:05]OFD Sender: No OFD packet to send [07:09:10]OFD Sender: No OFD packet to send [07:09:15]OFD Sender: No OFD packet to send [07:09:20]OFD Sender: No OFD packet to send [07:09:25]OFD Sender: No OFD packet to send [07:09:30]OFD Sender: No OFD packet to send [07:09:35]OFD Sender: No OFD packet to send [07:09:40]OFD Sender: No OFD packet to send [07:09:45]OFD Sender: No OFD packet to send [07:09:50]OFD Sender: No OFD packet to send [07:09:55]OFD Sender: No OFD packet to send [07:10:00]OFD Sender: No OFD packet to send [07:10:05]OFD Sender: No OFD packet to send [07:10:10]OFD Sender: No OFD packet to send [07:10:15]OFD Sender: No OFD packet to send [07:10:20]OFD Sender: No OFD packet to send [07:10:25]OFD Sender: No OFD packet to send [07:10:30]OFD Sender: No OFD packet to send [07:10:35]OFD Sender: No OFD packet to send [07:10:40]OFD Sender: No OFD packet to send [07:10:45]OFD Sender: No OFD packet to send [07:10:50]OFD Sender: No OFD packet to send [07:10:55]OFD Sender: No OFD packet to send [07:11:00]OFD Sender: No OFD packet to send [07:11:05]OFD Sender: No OFD packet to send [07:11:10]OFD Sender: No OFD packet to send [07:11:15]OFD Sender: No OFD packet to send [07:11:20]OFD Sender: No OFD packet to send [07:11:25]OFD Sender: No OFD packet to send [07:11:30]OFD Sender: No OFD packet to send [07:11:35]OFD Sender: No OFD packet to send [07:11:40]OFD Sender: No OFD packet to send [07:11:45]OFD Sender: No OFD packet to send [07:11:50]OFD Sender: No OFD packet to send [07:11:55]OFD Sender: No OFD packet to send [07:12:00]OFD Sender: No OFD packet to send [07:12:05]OFD Sender: No OFD packet to send [07:12:10]OFD Sender: No OFD packet to send [07:12:15]OFD Sender: No OFD packet to send [07:12:20]OFD Sender: No OFD packet to send [07:12:25]OFD Sender: No OFD packet to send [07:12:30]OFD Sender: No OFD packet to send [07:12:35]OFD Sender: No OFD packet to send [07:12:40]OFD Sender: No OFD packet to send [07:12:45]OFD Sender: No OFD packet to send [07:12:50]OFD Sender: No OFD packet to send [07:12:55]OFD Sender: No OFD packet to send [07:13:00]OFD Sender: No OFD packet to send [07:13:05]OFD Sender: No OFD packet to send [07:13:10]OFD Sender: No OFD packet to send [07:13:15]OFD Sender: No OFD packet to send [07:13:20]OFD Sender: No OFD packet to send [07:13:25]OFD Sender: No OFD packet to send [07:13:30]OFD Sender: No OFD packet to send [07:13:35]OFD Sender: No OFD packet to send [07:13:40]OFD Sender: No OFD packet to send [07:13:45]OFD Sender: No OFD packet to send [07:13:50]OFD Sender: No OFD packet to send [07:13:55]OFD Sender: No OFD packet to send [07:14:00]OFD Sender: No OFD packet to send [07:14:05]OFD Sender: No OFD packet to send [07:14:10]OFD Sender: No OFD packet to send [07:14:15]OFD Sender: No OFD packet to send [07:14:20]OFD Sender: No OFD packet to send [07:14:25]OFD Sender: No OFD packet to send [07:14:30]OFD Sender: No OFD packet to send [07:14:35]OFD Sender: No OFD packet to send [07:14:40]OFD Sender: No OFD packet to send [07:14:45]OFD Sender: No OFD packet to send [07:14:50]OFD Sender: No OFD packet to send [07:14:55]OFD Sender: No OFD packet to send [07:15:00]OFD Sender: No OFD packet to send [07:15:05]OFD Sender: No OFD packet to send [07:15:10]OFD Sender: No OFD packet to send [07:15:15]OFD Sender: No OFD packet to send [07:15:20]OFD Sender: No OFD packet to send [07:15:25]OFD Sender: No OFD packet to send [07:15:30]OFD Sender: No OFD packet to send [07:15:35]OFD Sender: No OFD packet to send [07:15:40]OFD Sender: No OFD packet to send [07:15:45]OFD Sender: No OFD packet to send [07:15:50]OFD Sender: No OFD packet to send [07:15:55]OFD Sender: No OFD packet to send [07:16:00]OFD Sender: No OFD packet to send [07:16:05]OFD Sender: No OFD packet to send [07:16:10]OFD Sender: No OFD packet to send [07:16:16]OFD Sender: No OFD packet to send [07:16:21]OFD Sender: No OFD packet to send [07:16:26]OFD Sender: No OFD packet to send [07:16:31]OFD Sender: No OFD packet to send [07:16:36]OFD Sender: No OFD packet to send [07:16:41]OFD Sender: No OFD packet to send [07:16:46]OFD Sender: No OFD packet to send [07:16:51]OFD Sender: No OFD packet to send [07:16:56]OFD Sender: No OFD packet to send [07:17:01]OFD Sender: No OFD packet to send [07:17:06]OFD Sender: No OFD packet to send [07:17:11]OFD Sender: No OFD packet to send [07:17:16]OFD Sender: No OFD packet to send [07:17:21]OFD Sender: No OFD packet to send [07:17:26]OFD Sender: No OFD packet to send [07:17:31]OFD Sender: No OFD packet to send [07:17:36]OFD Sender: No OFD packet to send [07:17:41]OFD Sender: No OFD packet to send [07:17:46]OFD Sender: No OFD packet to send [07:17:51]OFD Sender: No OFD packet to send [07:17:56]OFD Sender: No OFD packet to send [07:18:01]OFD Sender: No OFD packet to send [07:18:06]OFD Sender: No OFD packet to send [07:18:11]OFD Sender: No OFD packet to send [07:18:16]OFD Sender: No OFD packet to send [07:18:21]OFD Sender: No OFD packet to send [07:18:26]OFD Sender: No OFD packet to send [07:18:31]OFD Sender: No OFD packet to send [07:18:36]OFD Sender: No OFD packet to send [07:18:41]OFD Sender: No OFD packet to send [07:18:46]OFD Sender: No OFD packet to send [07:18:51]OFD Sender: No OFD packet to send [07:18:56]OFD Sender: No OFD packet to send [07:19:01]OFD Sender: No OFD packet to send [07:19:06]OFD Sender: No OFD packet to send [07:19:11]OFD Sender: No OFD packet to send [07:19:16]OFD Sender: No OFD packet to send [07:19:21]OFD Sender: No OFD packet to send [07:19:23]accept exits with 7 [07:19:23]New connection [07:19:23]New thread 3066608996 created [07:19:23]Thread 3066752356 joined [07:19:23]Waiting for new connection... [07:19:23] Sock 7.Parse request [07:19:23]Sock 7.Check first char [07:19:23]Sock 7.First char is OK [07:19:23]request: POST /json_proto HTTP/1.0 [07:19:23]Method: POST [07:19:23]URL: /json_proto [07:19:23]Method is POST - this is cgi request [07:19:23]url: /json_proto [07:19:23]query_string will be loaded in cgi processing [07:19:23]execute_cgi json_proto POST (null) [07:19:23]execute_cgi path=json_proto method=POST [07:19:23]POST find Content-Length [07:19:23]Host: 172.17.41.195:8080 [07:19:23]Content-Length: 677 [07:19:23]Content-Type: application/json [07:19:23] [07:19:23]POST finish read [07:19:23]Found Content-Length = 677 [07:19:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507947", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.80, "quantity" : 7.490, "sum" : 500.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:19:23]execute_script... [07:19:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507947", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.80, "quantity" : 7.490, "sum" : 500.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:19:23]POST & json_proto [07:19:23]process_json_proto [07:19:23]json parsed OK: [07:19:23]protocol is kg_v1.0 [07:19:23]action value=close_receipt [07:19:23]process_action close_receipt [07:19:23]cmd_close_receipt [07:19:23]MH_GetDate [07:19:23]Write to MH i2c: F0 00 00 6D 20 7C [07:19:23]Write i2c OK [07:19:23]MH_I2C_Read... [07:19:23]Read from MH i2c: F0 [07:19:23]MH_I2C_Read... [07:19:23]Read from MH i2c: F0 09 00 [07:19:23]MH_I2C_Read... [07:19:23]Read from MH i2c: F0 09 00 6D 20 00 7F 56 48 66 FC 21 6F 64 F8 [07:19:23]GetLastDocTimeStamp 1716015361 [07:19:23]current date 1716016767 [07:19:23]FM_GetShiftState [07:19:23]SAM_PROTO_GetShiftState [07:19:23]wFMCommunicate request_size=4 [07:19:23]MH_SAM_APDU [07:19:23]CAPDU: 80 13 01 00 [07:19:23]Write to MH i2c: E2 08 00 6E 20 80 13 01 00 00 00 00 00 0B [07:19:23]Write i2c OK [07:19:23]MH_I2C_Read... [07:19:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:19:23]Read from MH i2c: E2 [07:19:23]MH_I2C_Read... [07:19:23]Read from MH i2c: E2 0E 00 [07:19:23]MH_I2C_Read... [07:19:23]Read from MH i2c: E2 0E 00 6E 20 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 72 [07:19:23]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [07:19:23]wFMCommunicate OK [07:19:23]SAM_PROTO_GetShiftState done [07:19:23]FM_GetShiftState done [07:19:23]opened in 1715991483 [07:19:23]opened+sec_in_day 1716077883 [07:19:23]quantity*price = 50033 [07:19:23]sum+1 = 50034 [07:19:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.33 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.13 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 17 18.05.2024 07:19 Смена: 359 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67778 ФПД: 133661459284314 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T071927&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67778&fm=133661459284314&tin=02508201610067®Number=0000000000091845&sum=50000 [07:19:24]StoreToDocumentArchive [07:19:24]shift 359 fd 67778 [07:19:24]save to /storage/0359/doc_00067778 [07:19:24]save last doc name /storage/0359/doc_00067778 to /storage/kkm_last_doc_name [07:19:24]save OK [07:19:24]Clear old archive folders... [07:19:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:19:24]tlvbuf is 01B26E20 [07:19:24]SAM_PROTO_ClearQueue [07:19:24]wFMCommunicate request_size=4 [07:19:24]MH_SAM_APDU [07:19:24]CAPDU: 80 09 00 00 [07:19:24]Write to MH i2c: E2 08 00 7B 20 80 09 00 00 00 00 00 00 0D [07:19:24]Write i2c OK [07:19:24]MH_I2C_Read... [07:19:24]Read from MH i2c: E2 [07:19:24]MH_I2C_Read... [07:19:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:19:24]Read from MH i2c: E2 03 00 [07:19:24]MH_I2C_Read... [07:19:24]Read from MH i2c: E2 03 00 7B 20 00 90 00 0F [07:19:24]RAPDU: 90 00 [07:19:24]wFMCommunicate OK [07:19:24]SAM_PROTO_ClearQueue done [07:19:24]KKMCreateOFDPacket [07:19:24]OFDProtocolAddRootSTLVToBuf [07:19:24]FM_MakeSignedData [07:19:24]FM_MakeSignedData [07:19:24]SAM_PROTO_SignData [07:19:24]wFMCommunicate request_size=4 [07:19:24]MH_SAM_APDU [07:19:24]CAPDU: 80 0D 01 02 [07:19:24]Write to MH i2c: E2 08 00 7C 20 80 0D 01 02 00 00 00 00 15 [07:19:24]Write i2c OK [07:19:24]MH_I2C_Read... [07:19:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:19:24]Read from MH i2c: E2 [07:19:24]MH_I2C_Read... [07:19:24]Read from MH i2c: E2 03 00 [07:19:24]MH_I2C_Read... [07:19:24]Read from MH i2c: E2 03 00 7C 20 00 90 00 10 [07:19:24]RAPDU: 90 00 [07:19:24]wFMCommunicate OK [07:19:24]wFMCommunicate request_size=255 [07:19:24]MH_SAM_APDU [07:19:24]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 42 1D 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 7F 56 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 C2 08 01 00 35 04 06 00 79 [07:19:24]Write to MH i2c: E2 02 01 7D 20 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 42 1D 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 7F 56 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 C2 08 01 00 35 04 06 00 79 00 00 E0 [07:19:24]Write i2c OK [07:19:24]MH_I2C_Read... [07:19:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:19:25]Read from MH i2c: E2 [07:19:25]MH_I2C_Read... [07:19:25]Read from MH i2c: E2 03 00 [07:19:25]MH_I2C_Read... [07:19:25]Read from MH i2c: E2 03 00 7D 20 00 90 00 11 [07:19:25]RAPDU: 90 00 [07:19:25]wFMCommunicate OK [07:19:25]wFMCommunicate request_size=10 [07:19:25]MH_SAM_APDU [07:19:25]CAPDU: 80 0D 02 02 05 90 7B CD 01 5A [07:19:25]Write to MH i2c: E2 0D 00 7E 20 80 0D 02 02 05 00 90 7B CD 01 5A 00 00 55 [07:19:25]Write i2c OK [07:19:25]MH_I2C_Read... [07:19:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:19:25]Read from MH i2c: E2 [07:19:25]MH_I2C_Read... [07:19:25]Read from MH i2c: E2 03 00 [07:19:25]MH_I2C_Read... [07:19:25]Read from MH i2c: E2 03 00 7E 20 00 90 00 12 [07:19:25]RAPDU: 90 00 [07:19:25]wFMCommunicate OK [07:19:25]wFMCommunicate request_size=4 [07:19:25]MH_SAM_APDU [07:19:25]CAPDU: 80 0D 03 02 [07:19:25]Write to MH i2c: E2 08 00 7F 20 80 0D 03 02 00 00 00 00 1A [07:19:25]Write i2c OK [07:19:25]MH_I2C_Read... [07:19:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:19:25]Read from MH i2c: E2 [07:19:25]MH_I2C_Read... [07:19:25]Read from MH i2c: E2 0B 00 [07:19:25]MH_I2C_Read... [07:19:25]Read from MH i2c: E2 0B 00 7F 20 00 EE 6A 43 C1 8C 8A 3F BD 90 00 89 [07:19:25]RAPDU: EE 6A 43 C1 8C 8A 3F BD 90 00 [07:19:25]wFMCommunicate OK [07:19:25]SAM_PROTO_SignData done [07:19:25]FM_MakeSignedData done [07:19:25]CreateOFDProtocolMessage [07:19:25]wFMCommunicate request_size=4 [07:19:25]MH_SAM_APDU [07:19:25]CAPDU: 80 11 00 00 [07:19:25]Write to MH i2c: E2 08 00 80 20 80 11 00 00 00 00 00 00 1A [07:19:25]Write i2c OK [07:19:25]MH_I2C_Read... [07:19:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:19:25]Read from MH i2c: E2 [07:19:25]MH_I2C_Read... [07:19:25]Read from MH i2c: E2 17 00 [07:19:25]MH_I2C_Read... [07:19:25]Read from MH i2c: E2 17 00 80 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 70 [07:19:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [07:19:25]wFMCommunicate OK [07:19:25]CreateOFDProtocolMessage done [07:19:25]OFDSenderStorePacket 67778 [07:19:25]StoreOFDPacket docnum=67778 [07:19:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 57 E7 07 01 95 39 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 42 1D 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 7F 56 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 C2 08 01 00 35 04 06 00 79 90 7B CD 01 5A EE 6A 43 C1 8C 8A 3F BD [07:19:25]CheckFolder [07:19:25]dirname=/storage/ofd_packets [07:19:25]CheckFolder done [07:19:25]ProducePacketName [07:19:25]name=ofd_packets/00067778 [07:19:25]NVStorageSaveData ofd_packets/00067778 [07:19:25]File name is /storage/ofd_packets/00067778 [07:19:25]Write 301 bytes [07:19:25]NVStorageSaveData done [07:19:25]OFDSenderStorePacket done [07:19:25]KKMCreateOFDPacket done [07:19:25]NVStorageSaveData kkm_last_timestamp [07:19:25]File name is /storage/kkm_last_timestamp [07:19:25]Write 4 bytes [07:19:25]NVStorageSaveData done [07:19:25]ExternCall_PrintAddStr [07:19:25]wPrintStart [07:19:25]Write to MH i2c: 01 00 00 81 20 A1 [07:19:25]Write i2c OK [07:19:25]MH_I2C_Read... [07:19:25]Read from MH i2c: 01 [07:19:25]MH_I2C_Read... [07:19:25]Read from MH i2c: 01 07 00 [07:19:25]MH_I2C_Read... [07:19:25]Read from MH i2c: 01 07 00 81 20 00 00 00 00 00 FF 0F B6 [07:19:25]RasterBufferAndPrint [07:19:25]line Счет N : (1)507947 [07:19:25]line ИНН: 02508201610067 [07:19:25]line Контрольно-Кассовый Чек [07:19:25]line ПРОДАЖА [07:19:25]line ТРК (МРК, ГНК) : 33 [07:19:25]line Товар: 2710124130 [07:19:25]line Аи-92-К-5 [07:19:25]line 7.490 * 66.80 [07:19:25]line = 500.33 [07:19:25]line НДС 12% НСП 1% [07:19:25]line > о реализуемом товаре [07:19:25]line ОКРУГЛЕНИЕ: -0.33 [07:19:25]line ИТОГО: 500.00 [07:19:25]line Внесено: 500.00 [07:19:25]line СДАЧА: 0.00 [07:19:25]line НСП 1% : 4.43 [07:19:25]line НДС 12% : 53.13 [07:19:25]line Наличными: 500.00 [07:19:25]line Безнал.: 0.00 [07:19:25]line Место: АЗС № 91 "Партнер Нефть" [07:19:25]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [07:19:25]line СНО: Общий режим [07:19:25]line Чек 17 18.05.2024 07:19 [07:19:25]line Смена: 359 ФФД: 1.0 [07:19:25]line ЗНМ: 0300000119 [07:19:25]line РНМ: 0000000000091845 [07:19:25]line Версия ККМ: 001 [07:19:25]line ФМ: 0000000000871829 [07:19:25]line ФД: 67778 [07:19:25]line ФПД: 133661459284314 [07:19:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T071927&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67778&fm=133661459284314&tin=02508201610067®Number=0000000000091845&sum=50000 [07:19:25]OFD Sender: Processing packet 67778 [packets to send 35, broken 34] [07:19:25]ProducePacketName [07:19:25]name=ofd_packets/00067778 [07:19:25]OFD Sender: To server: pG, [07:19:25]CommunicateWithHost lk.salyk.kg:30040 [07:19:25]ConnectInit lk.salyk.kg [07:19:25]written 0, free lines is 4095 [07:19:25]Connected sock=10 [07:19:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 57 E7 07 01 95 39 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 42 1D 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 7F 56 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 C2 08 01 00 35 04 06 00 79 90 7B CD 01 5A EE 6A 43 C1 8C 8A 3F BD [07:19:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 40 BB 47 00 C8 D7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 C2 08 01 00 F4 03 04 00 55 FE 47 66 B6 04 01 00 00 13 AE 6F B8 4B AB 69 D9 [07:19:25]CommunicateWithHost err = 0 [07:19:25]CheckOFDResponse [07:19:25]1017 (14) - 77093643461234 [07:19:25]1041 (16) - 0000000000871829 [07:19:25]1040 (4) - 67778 [07:19:25]1012 (4) - 18.05.2024 01:03 [07:19:25]1206 (1) - 0 [07:19:25]OFD Sender: Remove packet 67778 [07:19:25]ProducePacketName [07:19:25]name=ofd_packets/00067778 [07:19:25]NVStorageDeleteData [07:19:26]Write to MH i2c: 01 00 00 AB 20 CB [07:19:26]Write i2c OK [07:19:26]MH_I2C_Read... [07:19:26]Read from MH i2c: 01 [07:19:26]MH_I2C_Read... [07:19:26]Read from MH i2c: 01 07 00 [07:19:26]MH_I2C_Read... [07:19:26]Read from MH i2c: 01 07 00 AB 20 00 00 00 00 00 C2 0C A0 [07:19:26]RasterBufferAndPrint [07:19:26]line [07:19:26]line [07:19:26]line [07:19:26]line [07:19:26]line [07:19:26]written 0, free lines is 3272 [07:19:26]MH_Cut [07:19:26]Write to MH i2c: D1 01 00 B2 20 01 A4 [07:19:26]Write i2c OK [07:19:26]MH_I2C_Read... [07:19:26]Read from MH i2c: D1 [07:19:26]MH_I2C_Read... [07:19:26]Read from MH i2c: D1 01 00 [07:19:26]MH_I2C_Read... [07:19:26]Read from MH i2c: D1 01 00 B2 20 00 A3 [07:19:26]Write to MH i2c: 01 00 00 B3 20 D3 [07:19:26]Write i2c OK [07:19:26]MH_I2C_Read... [07:19:26]OFD Sender: No OFD packet to send [07:19:26]*** Cut start [07:19:26]*** Purtial cut [07:19:26]*** Stage 1: CUTSNS_PIN = 1 [07:19:27]Read from MH i2c: 01 [07:19:27]MH_I2C_Read... [07:19:27]*** Stop cut motor [07:19:27]*** Cut end [07:19:27]Read from MH i2c: 01 07 00 [07:19:27]MH_I2C_Read... [07:19:27]Read from MH i2c: 01 07 00 B3 20 00 00 00 00 00 FF 0F E8 [07:19:27]process_action close_receipt done [07:19:27]requested_data is exist [07:19:27]produce_requested_data [07:19:27]requested_item fm.sn is exist - process it [07:19:27]wFMCommunicate request_size=4 [07:19:27]MH_SAM_APDU [07:19:27]CAPDU: 80 11 00 00 [07:19:27]Write to MH i2c: E2 08 00 B4 20 80 11 00 00 00 00 00 00 4E [07:19:27]Write i2c OK [07:19:27]MH_I2C_Read... [07:19:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:19:27]Read from MH i2c: E2 [07:19:27]MH_I2C_Read... [07:19:27]Read from MH i2c: E2 17 00 [07:19:27]MH_I2C_Read... [07:19:27]Read from MH i2c: E2 17 00 B4 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 A4 [07:19:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [07:19:27]wFMCommunicate OK [07:19:27]requested_item fd.num is exist - process it [07:19:27]SAM_PROTO_GetFieldsCounters [07:19:27]wFMCommunicate request_size=4 [07:19:27]MH_SAM_APDU [07:19:27]CAPDU: 80 13 00 00 [07:19:27]Write to MH i2c: E2 08 00 B5 20 80 13 00 00 00 00 00 00 51 [07:19:27]Write i2c OK [07:19:27]MH_I2C_Read... [07:19:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:19:27]Read from MH i2c: E2 [07:19:27]MH_I2C_Read... [07:19:27]Read from MH i2c: E2 62 00 [07:19:27]MH_I2C_Read... [07:19:27]Read from MH i2c: E2 62 00 B5 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 C2 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 11 00 00 00 5E 04 04 00 11 00 00 00 57 04 04 00 12 00 00 00 19 04 04 00 00 00 00 00 90 00 DD [07:19:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 C2 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 11 00 00 00 5E 04 04 00 11 00 00 00 57 04 04 00 12 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:19:27]wFMCommunicate OK [07:19:27]SAM_PROTO_GetFieldsCounters done [07:19:27]requested_item shift.num is exist - process it [07:19:27]requested_item shift.opened is exist - process it [07:19:27]req_shift_opened [07:19:27]FM_GetShiftState [07:19:27]SAM_PROTO_GetShiftState [07:19:27]wFMCommunicate request_size=4 [07:19:27]MH_SAM_APDU [07:19:27]CAPDU: 80 13 01 00 [07:19:27]Write to MH i2c: E2 08 00 B6 20 80 13 01 00 00 00 00 00 53 [07:19:27]Write i2c OK [07:19:27]MH_I2C_Read... [07:19:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:19:27]Read from MH i2c: E2 [07:19:27]MH_I2C_Read... [07:19:27]Read from MH i2c: E2 0E 00 [07:19:27]MH_I2C_Read... [07:19:27]Read from MH i2c: E2 0E 00 B6 20 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 BA [07:19:27]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [07:19:27]wFMCommunicate OK [07:19:27]SAM_PROTO_GetShiftState done [07:19:27]FM_GetShiftState done [07:19:27]req_shift_opened done [07:19:27]requested_item shift.open_date is exist - process it [07:19:27]req_shift_open_date [07:19:27]req_shift_open_date done [07:19:27]produce_requested_data done [07:19:27]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67778,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [07:19:27]process_action_free close_receipt [07:19:27]json_value_free [07:19:27]json_value_free done [07:19:27]process_json_proto returns [07:19:27]Send response to host [07:19:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67778,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [07:19:27]free response buf [07:19:27]execute_script done [07:19:27]execute_script returns [07:19:27]free content buf [07:19:27]Sock 7.Close socket [07:19:27]Sock 7.Thread stoped [07:19:31]OFD Sender: No OFD packet to send [07:19:36]OFD Sender: No OFD packet to send [07:19:41]OFD Sender: No OFD packet to send [07:19:46]OFD Sender: No OFD packet to send [07:19:51]OFD Sender: No OFD packet to send [07:19:56]OFD Sender: No OFD packet to send [07:20:01]OFD Sender: No OFD packet to send [07:20:06]OFD Sender: No OFD packet to send [07:20:11]OFD Sender: No OFD packet to send [07:20:16]OFD Sender: No OFD packet to send [07:20:21]OFD Sender: No OFD packet to send [07:20:26]OFD Sender: No OFD packet to send [07:20:31]OFD Sender: No OFD packet to send [07:20:36]OFD Sender: No OFD packet to send [07:20:41]OFD Sender: No OFD packet to send [07:20:46]OFD Sender: No OFD packet to send [07:20:51]OFD Sender: No OFD packet to send [07:20:56]OFD Sender: No OFD packet to send [07:21:01]OFD Sender: No OFD packet to send [07:21:06]OFD Sender: No OFD packet to send [07:21:11]OFD Sender: No OFD packet to send [07:21:16]OFD Sender: No OFD packet to send [07:21:21]OFD Sender: No OFD packet to send [07:21:26]OFD Sender: No OFD packet to send [07:21:31]OFD Sender: No OFD packet to send [07:21:36]OFD Sender: No OFD packet to send [07:21:41]OFD Sender: No OFD packet to send [07:21:46]OFD Sender: No OFD packet to send [07:21:51]OFD Sender: No OFD packet to send [07:21:56]OFD Sender: No OFD packet to send [07:22:01]OFD Sender: No OFD packet to send [07:22:06]OFD Sender: No OFD packet to send [07:22:11]OFD Sender: No OFD packet to send [07:22:16]OFD Sender: No OFD packet to send [07:22:21]OFD Sender: No OFD packet to send [07:22:26]OFD Sender: No OFD packet to send [07:22:31]OFD Sender: No OFD packet to send [07:22:36]OFD Sender: No OFD packet to send [07:22:41]OFD Sender: No OFD packet to send [07:22:46]OFD Sender: No OFD packet to send [07:22:51]OFD Sender: No OFD packet to send [07:22:56]OFD Sender: No OFD packet to send [07:23:01]OFD Sender: No OFD packet to send [07:23:06]OFD Sender: No OFD packet to send [07:23:11]OFD Sender: No OFD packet to send [07:23:16]OFD Sender: No OFD packet to send [07:23:21]OFD Sender: No OFD packet to send [07:23:26]OFD Sender: No OFD packet to send [07:23:31]OFD Sender: No OFD packet to send [07:23:36]OFD Sender: No OFD packet to send [07:23:41]OFD Sender: No OFD packet to send [07:23:46]OFD Sender: No OFD packet to send [07:23:51]OFD Sender: No OFD packet to send [07:23:56]OFD Sender: No OFD packet to send [07:24:01]OFD Sender: No OFD packet to send [07:24:06]OFD Sender: No OFD packet to send [07:24:11]OFD Sender: No OFD packet to send [07:24:16]OFD Sender: No OFD packet to send [07:24:21]OFD Sender: No OFD packet to send [07:24:26]OFD Sender: No OFD packet to send [07:24:31]OFD Sender: No OFD packet to send [07:24:36]OFD Sender: No OFD packet to send [07:24:41]OFD Sender: No OFD packet to send [07:24:46]OFD Sender: No OFD packet to send [07:24:51]OFD Sender: No OFD packet to send [07:24:56]OFD Sender: No OFD packet to send [07:25:01]OFD Sender: No OFD packet to send [07:25:06]OFD Sender: No OFD packet to send [07:25:11]OFD Sender: No OFD packet to send [07:25:16]OFD Sender: No OFD packet to send [07:25:21]OFD Sender: No OFD packet to send [07:25:26]OFD Sender: No OFD packet to send [07:25:31]OFD Sender: No OFD packet to send [07:25:36]OFD Sender: No OFD packet to send [07:25:41]OFD Sender: No OFD packet to send [07:25:46]OFD Sender: No OFD packet to send [07:25:51]OFD Sender: No OFD packet to send [07:25:56]OFD Sender: No OFD packet to send [07:26:01]OFD Sender: No OFD packet to send [07:26:06]OFD Sender: No OFD packet to send [07:26:11]OFD Sender: No OFD packet to send [07:26:16]OFD Sender: No OFD packet to send [07:26:21]OFD Sender: No OFD packet to send [07:26:26]OFD Sender: No OFD packet to send [07:26:31]OFD Sender: No OFD packet to send [07:26:36]OFD Sender: No OFD packet to send [07:26:41]OFD Sender: No OFD packet to send [07:26:46]OFD Sender: No OFD packet to send [07:26:51]OFD Sender: No OFD packet to send [07:26:56]OFD Sender: No OFD packet to send [07:27:01]OFD Sender: No OFD packet to send [07:27:06]OFD Sender: No OFD packet to send [07:27:11]OFD Sender: No OFD packet to send [07:27:16]OFD Sender: No OFD packet to send [07:27:21]OFD Sender: No OFD packet to send [07:27:26]OFD Sender: No OFD packet to send [07:27:31]OFD Sender: No OFD packet to send [07:27:36]OFD Sender: No OFD packet to send [07:27:41]OFD Sender: No OFD packet to send [07:27:46]OFD Sender: No OFD packet to send [07:27:51]OFD Sender: No OFD packet to send [07:27:56]OFD Sender: No OFD packet to send [07:28:01]OFD Sender: No OFD packet to send [07:28:06]OFD Sender: No OFD packet to send [07:28:11]OFD Sender: No OFD packet to send [07:28:16]OFD Sender: No OFD packet to send [07:28:21]OFD Sender: No OFD packet to send [07:28:26]OFD Sender: No OFD packet to send [07:28:31]OFD Sender: No OFD packet to send [07:28:36]OFD Sender: No OFD packet to send [07:28:39]accept exits with 9 [07:28:39]New connection [07:28:39]New thread 3066752356 created [07:28:39]Thread 3066608996 joined [07:28:39]Waiting for new connection... [07:28:39] Sock 9.Parse request [07:28:39]Sock 9.Check first char [07:28:39]Sock 9.First char is OK [07:28:39]request: POST /json_proto HTTP/1.0 [07:28:39]Method: POST [07:28:39]URL: /json_proto [07:28:39]Method is POST - this is cgi request [07:28:39]url: /json_proto [07:28:39]query_string will be loaded in cgi processing [07:28:39]execute_cgi json_proto POST (null) [07:28:39]execute_cgi path=json_proto method=POST [07:28:39]POST find Content-Length [07:28:39]Host: 172.17.41.195:8080 [07:28:39]Content-Length: 1209 [07:28:39]Content-Type: application/json [07:28:39] [07:28:39]POST finish read [07:28:39]Found Content-Length = 1209 [07:28:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0440\u0441\u0442\u0430\u043D\u0431\u0435\u043A\u043E\u0432 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)507948\u000A18.05.2024 07:11\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 22.760 x 74.70\u000A\u0418\u0422\u041E\u0413: 1700.17\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:28:39]execute_script... [07:28:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0440\u0441\u0442\u0430\u043D\u0431\u0435\u043A\u043E\u0432 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)507948\u000A18.05.2024 07:11\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 22.760 x 74.70\u000A\u0418\u0422\u041E\u0413: 1700.17\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:28:39]POST & json_proto [07:28:39]process_json_proto [07:28:39]json parsed OK: [07:28:39]protocol is kg_v1.0 [07:28:39]action value=print_text [07:28:39]process_action print_text [07:28:39]cmd_print_text [07:28:39]ExternCall_PrintAddStr [07:28:39]wPrintStart [07:28:39]Write to MH i2c: 01 00 00 B7 20 D7 [07:28:39]Write i2c OK [07:28:39]MH_I2C_Read... [07:28:39]Read from MH i2c: 01 [07:28:39]MH_I2C_Read... [07:28:39]Read from MH i2c: 01 07 00 [07:28:39]MH_I2C_Read... [07:28:39]Read from MH i2c: 01 07 00 B7 20 00 00 00 00 00 FF 0F EC [07:28:39]RasterBufferAndPrint [07:28:39]line *****ТОВАРНЫЙ ЧЕК***** [07:28:39]line АЗС-91 [07:28:39]line Партнер нефть [07:28:39]line 02508201610067 [07:28:39]line Кассир : Арстанбеков Н. [07:28:39]line Счет N : (1)507948 [07:28:39]line 18.05.2024 07:11 [07:28:39]line ПРОДАЖА [07:28:39]line ТРК (МРК, ГНК): 31 [07:28:39]line Вид ГСМ : 2710194210 [07:28:39]line ДТ-К-5 [07:28:39]line 22.760 x 74.70 [07:28:39]line ИТОГ: 1700.17 [07:28:39]line Тип оплаты: Талоны: Топливная Карта [07:28:39]line 02750 [07:28:39]line ______________________ [07:28:39]line (подпись) [07:28:39]written 0, free lines is 4095 [07:28:39]Write to MH i2c: 01 00 00 CB 20 EB [07:28:39]Write i2c OK [07:28:39]MH_I2C_Read... [07:28:39]Read from MH i2c: 01 [07:28:39]MH_I2C_Read... [07:28:39]Read from MH i2c: 01 07 00 [07:28:39]MH_I2C_Read... [07:28:39]Read from MH i2c: 01 07 00 CB 20 00 00 00 00 00 10 0E 10 [07:28:39]RasterBufferAndPrint [07:28:39]line [07:28:39]line [07:28:39]line [07:28:39]line [07:28:39]line [07:28:39]written 0, free lines is 3601 [07:28:39]MH_Cut [07:28:39]Write to MH i2c: D1 01 00 D2 20 01 C4 [07:28:39]Write i2c OK [07:28:39]MH_I2C_Read... [07:28:39]Read from MH i2c: D1 [07:28:39]MH_I2C_Read... [07:28:39]Read from MH i2c: D1 01 00 [07:28:39]MH_I2C_Read... [07:28:39]Read from MH i2c: D1 01 00 D2 20 00 C3 [07:28:39]Write to MH i2c: 01 00 00 D3 20 F3 [07:28:39]Write i2c OK [07:28:39]MH_I2C_Read... [07:28:40]*** Cut start [07:28:40]*** Purtial cut [07:28:40]*** CUTSNS_PIN = 0 [07:28:40]*** Stage 1: CUTSNS_PIN = 1 [07:28:41]OFD Sender: No OFD packet to send [07:28:42]Read from MH i2c: 01 [07:28:42]MH_I2C_Read... [07:28:42]*** Stop cut motor [07:28:42]*** Cut end [07:28:42]Read from MH i2c: 01 07 00 [07:28:42]MH_I2C_Read... [07:28:42]Read from MH i2c: 01 07 00 D3 20 00 00 00 00 00 FF 0F 08 [07:28:42]process_action print_text done [07:28:42]requested_data is exist [07:28:42]produce_requested_data [07:28:42]requested_item fm.sn is exist - process it [07:28:42]wFMCommunicate request_size=4 [07:28:42]MH_SAM_APDU [07:28:42]CAPDU: 80 11 00 00 [07:28:42]Write to MH i2c: E2 08 00 D4 20 80 11 00 00 00 00 00 00 6E [07:28:42]Write i2c OK [07:28:42]MH_I2C_Read... [07:28:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:28:42]Read from MH i2c: E2 [07:28:42]MH_I2C_Read... [07:28:42]Read from MH i2c: E2 17 00 [07:28:42]MH_I2C_Read... [07:28:42]Read from MH i2c: E2 17 00 D4 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 C4 [07:28:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [07:28:42]wFMCommunicate OK [07:28:42]requested_item fd.num is exist - process it [07:28:42]SAM_PROTO_GetFieldsCounters [07:28:42]wFMCommunicate request_size=4 [07:28:42]MH_SAM_APDU [07:28:42]CAPDU: 80 13 00 00 [07:28:42]Write to MH i2c: E2 08 00 D5 20 80 13 00 00 00 00 00 00 71 [07:28:42]Write i2c OK [07:28:42]MH_I2C_Read... [07:28:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:28:42]Read from MH i2c: E2 [07:28:42]MH_I2C_Read... [07:28:42]Read from MH i2c: E2 62 00 [07:28:42]MH_I2C_Read... [07:28:42]Read from MH i2c: E2 62 00 D5 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 C2 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 11 00 00 00 5E 04 04 00 11 00 00 00 57 04 04 00 12 00 00 00 19 04 04 00 00 00 00 00 90 00 FD [07:28:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 C2 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 11 00 00 00 5E 04 04 00 11 00 00 00 57 04 04 00 12 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:28:42]wFMCommunicate OK [07:28:42]SAM_PROTO_GetFieldsCounters done [07:28:42]requested_item shift.num is exist - process it [07:28:42]requested_item shift.opened is exist - process it [07:28:42]req_shift_opened [07:28:42]FM_GetShiftState [07:28:42]SAM_PROTO_GetShiftState [07:28:42]wFMCommunicate request_size=4 [07:28:42]MH_SAM_APDU [07:28:42]CAPDU: 80 13 01 00 [07:28:42]Write to MH i2c: E2 08 00 D6 20 80 13 01 00 00 00 00 00 73 [07:28:42]Write i2c OK [07:28:42]MH_I2C_Read... [07:28:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:28:42]Read from MH i2c: E2 [07:28:42]MH_I2C_Read... [07:28:42]Read from MH i2c: E2 0E 00 [07:28:42]MH_I2C_Read... [07:28:42]Read from MH i2c: E2 0E 00 D6 20 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 DA [07:28:42]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [07:28:42]wFMCommunicate OK [07:28:42]SAM_PROTO_GetShiftState done [07:28:42]FM_GetShiftState done [07:28:42]req_shift_opened done [07:28:42]requested_item shift.open_date is exist - process it [07:28:42]req_shift_open_date [07:28:42]req_shift_open_date done [07:28:42]produce_requested_data done [07:28:42]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67778,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [07:28:42]process_action_free print_text [07:28:42]json_value_free [07:28:42]json_value_free done [07:28:42]process_json_proto returns [07:28:42]Send response to host [07:28:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67778,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [07:28:42]free response buf [07:28:42]execute_script done [07:28:42]execute_script returns [07:28:42]free content buf [07:28:42]Sock 9.Close socket [07:28:42]Sock 9.Thread stoped [07:28:46]OFD Sender: No OFD packet to send [07:28:51]OFD Sender: No OFD packet to send [07:28:56]OFD Sender: No OFD packet to send [07:29:01]OFD Sender: No OFD packet to send [07:29:06]OFD Sender: No OFD packet to send [07:29:11]OFD Sender: No OFD packet to send [07:29:16]OFD Sender: No OFD packet to send [07:29:21]OFD Sender: No OFD packet to send [07:29:26]OFD Sender: No OFD packet to send [07:29:31]OFD Sender: No OFD packet to send [07:29:36]OFD Sender: No OFD packet to send [07:29:41]OFD Sender: No OFD packet to send [07:29:46]OFD Sender: No OFD packet to send [07:29:51]OFD Sender: No OFD packet to send [07:29:56]OFD Sender: No OFD packet to send [07:30:01]OFD Sender: No OFD packet to send [07:30:06]OFD Sender: No OFD packet to send [07:30:11]OFD Sender: No OFD packet to send [07:30:16]OFD Sender: No OFD packet to send [07:30:21]OFD Sender: No OFD packet to send [07:30:26]OFD Sender: No OFD packet to send [07:30:31]OFD Sender: No OFD packet to send [07:30:36]OFD Sender: No OFD packet to send [07:30:42]OFD Sender: No OFD packet to send [07:30:47]OFD Sender: No OFD packet to send [07:30:52]OFD Sender: No OFD packet to send [07:30:57]OFD Sender: No OFD packet to send [07:31:02]OFD Sender: No OFD packet to send [07:31:07]OFD Sender: No OFD packet to send [07:31:12]OFD Sender: No OFD packet to send [07:31:17]OFD Sender: No OFD packet to send [07:31:22]OFD Sender: No OFD packet to send [07:31:27]OFD Sender: No OFD packet to send [07:31:32]OFD Sender: No OFD packet to send [07:31:37]OFD Sender: No OFD packet to send [07:31:42]OFD Sender: No OFD packet to send [07:31:47]OFD Sender: No OFD packet to send [07:31:52]OFD Sender: No OFD packet to send [07:31:57]OFD Sender: No OFD packet to send [07:32:02]OFD Sender: No OFD packet to send [07:32:07]OFD Sender: No OFD packet to send [07:32:12]OFD Sender: No OFD packet to send [07:32:17]OFD Sender: No OFD packet to send [07:32:22]OFD Sender: No OFD packet to send [07:32:27]OFD Sender: No OFD packet to send [07:32:32]OFD Sender: No OFD packet to send [07:32:37]OFD Sender: No OFD packet to send [07:32:42]OFD Sender: No OFD packet to send [07:32:47]OFD Sender: No OFD packet to send [07:32:52]OFD Sender: No OFD packet to send [07:32:57]OFD Sender: No OFD packet to send [07:33:02]OFD Sender: No OFD packet to send [07:33:07]OFD Sender: No OFD packet to send [07:33:12]OFD Sender: No OFD packet to send [07:33:17]OFD Sender: No OFD packet to send [07:33:22]OFD Sender: No OFD packet to send [07:33:27]OFD Sender: No OFD packet to send [07:33:32]OFD Sender: No OFD packet to send [07:33:37]OFD Sender: No OFD packet to send [07:33:42]OFD Sender: No OFD packet to send [07:33:47]OFD Sender: No OFD packet to send [07:33:52]OFD Sender: No OFD packet to send [07:33:57]OFD Sender: No OFD packet to send [07:34:02]OFD Sender: No OFD packet to send [07:34:07]OFD Sender: No OFD packet to send [07:34:12]OFD Sender: No OFD packet to send [07:34:17]OFD Sender: No OFD packet to send [07:34:22]OFD Sender: No OFD packet to send [07:34:27]OFD Sender: No OFD packet to send [07:34:32]OFD Sender: No OFD packet to send [07:34:37]OFD Sender: No OFD packet to send [07:34:42]OFD Sender: No OFD packet to send [07:34:47]OFD Sender: No OFD packet to send [07:34:52]OFD Sender: No OFD packet to send [07:34:57]OFD Sender: No OFD packet to send [07:35:00]accept exits with 7 [07:35:00]New connection [07:35:00]New thread 3066608996 created [07:35:00]Thread 3066752356 joined [07:35:00]Waiting for new connection... [07:35:00] Sock 7.Parse request [07:35:00]Sock 7.Check first char [07:35:00]Sock 7.First char is OK [07:35:00]request: POST /json_proto HTTP/1.0 [07:35:00]Method: POST [07:35:00]URL: /json_proto [07:35:00]Method is POST - this is cgi request [07:35:00]url: /json_proto [07:35:00]query_string will be loaded in cgi processing [07:35:00]execute_cgi json_proto POST (null) [07:35:00]execute_cgi path=json_proto method=POST [07:35:00]POST find Content-Length [07:35:00]Host: 172.17.41.195:8080 [07:35:00]Content-Length: 965 [07:35:00]Content-Type: application/json [07:35:00] [07:35:00]POST finish read [07:35:00]Found Content-Length = 965 [07:35:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507949", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 66.80, "quantity" : 29.950, "sum" : 2000.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000AS-92\u000A\u043D\u043E\u043C\u0435\u0440 91\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 29.95 \u0441\u043E\u043C", "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:35:00]execute_script... [07:35:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507949", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 66.80, "quantity" : 29.950, "sum" : 2000.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000AS-92\u000A\u043D\u043E\u043C\u0435\u0440 91\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 29.95 \u0441\u043E\u043C", "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:35:00]POST & json_proto [07:35:00]process_json_proto [07:35:00]json parsed OK: [07:35:00]protocol is kg_v1.0 [07:35:00]action value=close_receipt [07:35:00]process_action close_receipt [07:35:00]cmd_close_receipt [07:35:00]MH_GetDate [07:35:00]Write to MH i2c: F0 00 00 D7 20 E6 [07:35:00]Write i2c OK [07:35:00]MH_I2C_Read... [07:35:00]Read from MH i2c: F0 [07:35:00]MH_I2C_Read... [07:35:00]Read from MH i2c: F0 09 00 [07:35:00]MH_I2C_Read... [07:35:00]Read from MH i2c: F0 09 00 D7 20 00 28 5A 48 66 FC 21 6F 64 0F [07:35:00]GetLastDocTimeStamp 1716016767 [07:35:00]current date 1716017704 [07:35:00]FM_GetShiftState [07:35:00]SAM_PROTO_GetShiftState [07:35:00]wFMCommunicate request_size=4 [07:35:00]MH_SAM_APDU [07:35:00]CAPDU: 80 13 01 00 [07:35:00]Write to MH i2c: E2 08 00 D8 20 80 13 01 00 00 00 00 00 75 [07:35:00]Write i2c OK [07:35:00]MH_I2C_Read... [07:35:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:35:00]Read from MH i2c: E2 [07:35:00]MH_I2C_Read... [07:35:00]Read from MH i2c: E2 0E 00 [07:35:00]MH_I2C_Read... [07:35:00]Read from MH i2c: E2 0E 00 D8 20 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 DC [07:35:00]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [07:35:00]wFMCommunicate OK [07:35:00]SAM_PROTO_GetShiftState done [07:35:00]FM_GetShiftState done [07:35:00]opened in 1715991483 [07:35:00]opened+sec_in_day 1716077883 [07:35:00]quantity*price = 200066 [07:35:00]sum+1 = 200067 [07:35:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.46 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 18 18.05.2024 07:35 Смена: 359 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Дисконтная программа S-92 номер 91 сэкономлено 29.95 сом ФМ: 0000000000871829 ФД: 67779 ФПД: 272864106203224 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T073504&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67779&fm=272864106203224&tin=02508201610067®Number=0000000000091845&sum=200000 [07:35:01]StoreToDocumentArchive [07:35:01]shift 359 fd 67779 [07:35:01]save to /storage/0359/doc_00067779 [07:35:01]save last doc name /storage/0359/doc_00067779 to /storage/kkm_last_doc_name [07:35:01]save OK [07:35:01]Clear old archive folders... [07:35:01]ProcessDocumentItem done err = 0, tmpTLVsize=252 [07:35:01]tlvbuf is 01AF92B0 [07:35:01]SAM_PROTO_ClearQueue [07:35:01]wFMCommunicate request_size=4 [07:35:01]MH_SAM_APDU [07:35:01]CAPDU: 80 09 00 00 [07:35:01]Write to MH i2c: E2 08 00 E5 20 80 09 00 00 00 00 00 00 77 [07:35:01]Write i2c OK [07:35:01]MH_I2C_Read... [07:35:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:35:01]Read from MH i2c: E2 [07:35:01]MH_I2C_Read... [07:35:01]Read from MH i2c: E2 03 00 [07:35:01]MH_I2C_Read... [07:35:01]Read from MH i2c: E2 03 00 E5 20 00 90 00 79 [07:35:01]RAPDU: 90 00 [07:35:01]wFMCommunicate OK [07:35:01]SAM_PROTO_ClearQueue done [07:35:01]KKMCreateOFDPacket [07:35:01]OFDProtocolAddRootSTLVToBuf [07:35:01]FM_MakeSignedData [07:35:01]FM_MakeSignedData [07:35:01]SAM_PROTO_SignData [07:35:01]wFMCommunicate request_size=4 [07:35:01]MH_SAM_APDU [07:35:01]CAPDU: 80 0D 01 02 [07:35:01]Write to MH i2c: E2 08 00 E6 20 80 0D 01 02 00 00 00 00 7F [07:35:01]Write i2c OK [07:35:01]MH_I2C_Read... [07:35:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:35:01]Read from MH i2c: E2 [07:35:01]MH_I2C_Read... [07:35:01]Read from MH i2c: E2 03 00 [07:35:01]MH_I2C_Read... [07:35:01]Read from MH i2c: E2 03 00 E6 20 00 90 00 7A [07:35:01]RAPDU: 90 00 [07:35:01]wFMCommunicate OK [07:35:01]wFMCommunicate request_size=255 [07:35:01]MH_SAM_APDU [07:35:01]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FE 74 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 82 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 28 5A 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 C3 08 01 00 35 04 06 00 [07:35:01]Write to MH i2c: E2 02 01 E7 20 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FE 74 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 82 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 28 5A 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 C3 08 01 00 35 04 06 00 00 00 44 [07:35:01]Write i2c OK [07:35:01]MH_I2C_Read... [07:35:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:35:01]Read from MH i2c: E2 [07:35:01]MH_I2C_Read... [07:35:01]Read from MH i2c: E2 03 00 [07:35:01]MH_I2C_Read... [07:35:01]Read from MH i2c: E2 03 00 E7 20 00 90 00 7B [07:35:01]RAPDU: 90 00 [07:35:01]wFMCommunicate OK [07:35:01]wFMCommunicate request_size=11 [07:35:01]MH_SAM_APDU [07:35:01]CAPDU: 80 0D 02 02 06 F8 2B 20 1F 48 58 [07:35:01]Write to MH i2c: E2 0E 00 E8 20 80 0D 02 02 06 00 F8 2B 20 1F 48 58 00 00 90 [07:35:02]Write i2c OK [07:35:02]MH_I2C_Read... [07:35:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:35:02]Read from MH i2c: E2 [07:35:02]MH_I2C_Read... [07:35:02]Read from MH i2c: E2 03 00 [07:35:02]MH_I2C_Read... [07:35:02]Read from MH i2c: E2 03 00 E8 20 00 90 00 7C [07:35:02]RAPDU: 90 00 [07:35:02]wFMCommunicate OK [07:35:02]wFMCommunicate request_size=4 [07:35:02]MH_SAM_APDU [07:35:02]CAPDU: 80 0D 03 02 [07:35:02]Write to MH i2c: E2 08 00 E9 20 80 0D 03 02 00 00 00 00 84 [07:35:02]Write i2c OK [07:35:02]MH_I2C_Read... [07:35:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:35:02]Read from MH i2c: E2 [07:35:02]MH_I2C_Read... [07:35:02]Read from MH i2c: E2 0B 00 [07:35:02]MH_I2C_Read... [07:35:02]Read from MH i2c: E2 0B 00 E9 20 00 9A 2B 01 1A 78 17 C7 A8 90 00 63 [07:35:02]RAPDU: 9A 2B 01 1A 78 17 C7 A8 90 00 [07:35:02]wFMCommunicate OK [07:35:02]SAM_PROTO_SignData done [07:35:02]FM_MakeSignedData done [07:35:02]CreateOFDProtocolMessage [07:35:02]wFMCommunicate request_size=4 [07:35:02]MH_SAM_APDU [07:35:02]CAPDU: 80 11 00 00 [07:35:02]Write to MH i2c: E2 08 00 EA 20 80 11 00 00 00 00 00 00 84 [07:35:02]Write i2c OK [07:35:02]MH_I2C_Read... [07:35:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:35:02]Read from MH i2c: E2 [07:35:02]MH_I2C_Read... [07:35:02]Read from MH i2c: E2 17 00 [07:35:02]MH_I2C_Read... [07:35:02]Read from MH i2c: E2 17 00 EA 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 DA [07:35:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [07:35:02]wFMCommunicate OK [07:35:02]CreateOFDProtocolMessage done [07:35:02]OFDSenderStorePacket 67779 [07:35:02]StoreOFDPacket docnum=67779 [07:35:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 01 00 00 1A 91 08 01 39 82 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FE 74 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 82 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 28 5A 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 C3 08 01 00 35 04 06 00 F8 2B 20 1F 48 58 9A 2B 01 1A 78 17 C7 A8 [07:35:02]CheckFolder [07:35:02]dirname=/storage/ofd_packets [07:35:02]CheckFolder done [07:35:02]ProducePacketName [07:35:02]name=ofd_packets/00067779 [07:35:02]NVStorageSaveData ofd_packets/00067779 [07:35:02]File name is /storage/ofd_packets/00067779 [07:35:02]Write 302 bytes [07:35:02]NVStorageSaveData done [07:35:02]OFDSenderStorePacket done [07:35:02]KKMCreateOFDPacket done [07:35:02]NVStorageSaveData kkm_last_timestamp [07:35:02]File name is /storage/kkm_last_timestamp [07:35:02]Write 4 bytes [07:35:02]NVStorageSaveData done [07:35:02]ExternCall_PrintAddStr [07:35:02]wPrintStart [07:35:02]Write to MH i2c: 01 00 00 EB 20 0B [07:35:02]Write i2c OK [07:35:02]MH_I2C_Read... [07:35:02]Read from MH i2c: 01 [07:35:02]MH_I2C_Read... [07:35:02]Read from MH i2c: 01 07 00 [07:35:02]MH_I2C_Read... [07:35:02]Read from MH i2c: 01 07 00 EB 20 00 00 00 00 00 FF 0F 20 [07:35:02]RasterBufferAndPrint [07:35:02]line Счет N : (1)507949 [07:35:02]line ИНН: 02508201610067 [07:35:02]line Контрольно-Кассовый Чек [07:35:02]line ПРОДАЖА [07:35:02]line ТРК (МРК, ГНК) : 42 [07:35:02]line Товар: 2710124130 [07:35:02]line Super-92-К-5 [07:35:02]line 29.950 * 66.80 [07:35:02]line = 2000.66 [07:35:02]line НДС 12% НСП 1% [07:35:02]line > о реализуемом товаре [07:35:02]line ОКРУГЛЕНИЕ: -0.66 [07:35:02]line ИТОГО: 2000.00 [07:35:02]line Внесено: 2000.00 [07:35:02]line СДАЧА: 0.00 [07:35:02]line НСП 1% : 17.70 [07:35:02]line НДС 12% : 212.46 [07:35:02]line Наличными: 2000.00 [07:35:02]line Безнал.: 0.00 [07:35:02]line Место: АЗС № 91 "Партнер Нефть" [07:35:02]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [07:35:02]line СНО: Общий режим [07:35:02]line Чек 18 18.05.2024 07:35 [07:35:02]line Смена: 359 ФФД: 1.0 [07:35:02]line ЗНМ: 0300000119 [07:35:02]line РНМ: 0000000000091845 [07:35:02]line Версия ККМ: 001 [07:35:02]line [07:35:02]line Дисконтная программа [07:35:02]line S-92 [07:35:02]line номер 91 [07:35:02]line сэкономлено 29.95 сом [07:35:02]line ФМ: 0000000000871829 [07:35:02]line ФД: 67779 [07:35:02]line ФПД: 272864106203224 [07:35:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T073504&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67779&fm=272864106203224&tin=02508201610067®Number=0000000000091845&sum=200000 [07:35:02]OFD Sender: Processing packet 67779 [packets to send 35, broken 34] [07:35:02]ProducePacketName [07:35:02]name=ofd_packets/00067779 [07:35:02]OFD Sender: To server: pG, [07:35:02]CommunicateWithHost lk.salyk.kg:30040 [07:35:02]ConnectInit lk.salyk.kg [07:35:02]written 0, free lines is 4095 [07:35:02]Connected sock=10 [07:35:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 01 00 00 1A 91 08 01 39 82 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FE 74 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 82 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 28 5A 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 C3 08 01 00 35 04 06 00 F8 2B 20 1F 48 58 9A 2B 01 1A 78 17 C7 A8 [07:35:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 F0 F8 47 00 F8 AC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 C3 08 01 00 F4 03 04 00 FE 01 48 66 B6 04 01 00 00 44 1C E4 03 25 BF C9 5B [07:35:02]CommunicateWithHost err = 0 [07:35:02]CheckOFDResponse [07:35:02]1017 (14) - 77093643461234 [07:35:02]1041 (16) - 0000000000871829 [07:35:02]1040 (4) - 67779 [07:35:02]1012 (4) - 18.05.2024 01:18 [07:35:02]1206 (1) - 0 [07:35:02]OFD Sender: Remove packet 67779 [07:35:02]ProducePacketName [07:35:02]name=ofd_packets/00067779 [07:35:02]NVStorageDeleteData [07:35:02]Write to MH i2c: 01 00 00 1A 21 3B [07:35:02]Write i2c OK [07:35:02]MH_I2C_Read... [07:35:02]Read from MH i2c: 01 [07:35:02]MH_I2C_Read... [07:35:02]Read from MH i2c: 01 07 00 [07:35:02]MH_I2C_Read... [07:35:02]Read from MH i2c: 01 07 00 1A 21 00 00 00 00 00 77 0C C5 [07:35:02]RasterBufferAndPrint [07:35:02]line [07:35:02]line [07:35:02]line [07:35:02]line [07:35:02]line [07:35:02]written 0, free lines is 3198 [07:35:03]MH_Cut [07:35:03]Write to MH i2c: D1 01 00 21 21 01 14 [07:35:03]Write i2c OK [07:35:03]MH_I2C_Read... [07:35:03]Read from MH i2c: D1 [07:35:03]MH_I2C_Read... [07:35:03]Read from MH i2c: D1 01 00 [07:35:03]MH_I2C_Read... [07:35:03]Read from MH i2c: D1 01 00 21 21 00 13 [07:35:03]Write to MH i2c: 01 00 00 22 21 43 [07:35:03]Write i2c OK [07:35:03]MH_I2C_Read... [07:35:03]OFD Sender: No OFD packet to send [07:35:03]*** Cut start [07:35:03]*** Purtial cut [07:35:03]*** Stage 1: CUTSNS_PIN = 1 [07:35:04]Read from MH i2c: 01 [07:35:04]MH_I2C_Read... [07:35:04]*** Stop cut motor [07:35:04]*** Cut end [07:35:04]Read from MH i2c: 01 07 00 [07:35:04]MH_I2C_Read... [07:35:04]Read from MH i2c: 01 07 00 22 21 00 00 00 00 00 FF 0F 58 [07:35:04]process_action close_receipt done [07:35:04]requested_data is exist [07:35:04]produce_requested_data [07:35:04]requested_item fm.sn is exist - process it [07:35:04]wFMCommunicate request_size=4 [07:35:04]MH_SAM_APDU [07:35:04]CAPDU: 80 11 00 00 [07:35:04]Write to MH i2c: E2 08 00 23 21 80 11 00 00 00 00 00 00 BE [07:35:04]Write i2c OK [07:35:04]MH_I2C_Read... [07:35:04]Read from MH i2c: E2 [07:35:04]MH_I2C_Read... [07:35:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:35:04]Read from MH i2c: E2 17 00 [07:35:04]MH_I2C_Read... [07:35:04]Read from MH i2c: E2 17 00 23 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 14 [07:35:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [07:35:04]wFMCommunicate OK [07:35:04]requested_item fd.num is exist - process it [07:35:04]SAM_PROTO_GetFieldsCounters [07:35:04]wFMCommunicate request_size=4 [07:35:04]MH_SAM_APDU [07:35:04]CAPDU: 80 13 00 00 [07:35:04]Write to MH i2c: E2 08 00 24 21 80 13 00 00 00 00 00 00 C1 [07:35:04]Write i2c OK [07:35:04]MH_I2C_Read... [07:35:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:35:04]Read from MH i2c: E2 [07:35:04]MH_I2C_Read... [07:35:04]Read from MH i2c: E2 62 00 [07:35:04]MH_I2C_Read... [07:35:04]Read from MH i2c: E2 62 00 24 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 C3 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 51 [07:35:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 C3 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:35:04]wFMCommunicate OK [07:35:04]SAM_PROTO_GetFieldsCounters done [07:35:04]requested_item shift.num is exist - process it [07:35:04]requested_item shift.opened is exist - process it [07:35:04]req_shift_opened [07:35:04]FM_GetShiftState [07:35:04]SAM_PROTO_GetShiftState [07:35:04]wFMCommunicate request_size=4 [07:35:04]MH_SAM_APDU [07:35:04]CAPDU: 80 13 01 00 [07:35:04]Write to MH i2c: E2 08 00 25 21 80 13 01 00 00 00 00 00 C3 [07:35:04]Write i2c OK [07:35:04]MH_I2C_Read... [07:35:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:35:04]Read from MH i2c: E2 [07:35:04]MH_I2C_Read... [07:35:04]Read from MH i2c: E2 0E 00 [07:35:04]MH_I2C_Read... [07:35:04]Read from MH i2c: E2 0E 00 25 21 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 2A [07:35:04]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [07:35:04]wFMCommunicate OK [07:35:04]SAM_PROTO_GetShiftState done [07:35:04]FM_GetShiftState done [07:35:04]req_shift_opened done [07:35:04]requested_item shift.open_date is exist - process it [07:35:04]req_shift_open_date [07:35:04]req_shift_open_date done [07:35:04]produce_requested_data done [07:35:04]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67779,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [07:35:04]process_action_free close_receipt [07:35:04]json_value_free [07:35:04]json_value_free done [07:35:04]process_json_proto returns [07:35:04]Send response to host [07:35:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67779,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [07:35:04]free response buf [07:35:04]execute_script done [07:35:04]execute_script returns [07:35:04]free content buf [07:35:04]Sock 7.Close socket [07:35:04]Sock 7.Thread stoped [07:35:08]OFD Sender: No OFD packet to send [07:35:13]OFD Sender: No OFD packet to send [07:35:18]OFD Sender: No OFD packet to send [07:35:23]OFD Sender: No OFD packet to send [07:35:28]OFD Sender: No OFD packet to send [07:35:33]OFD Sender: No OFD packet to send [07:35:38]OFD Sender: No OFD packet to send [07:35:43]OFD Sender: No OFD packet to send [07:35:48]OFD Sender: No OFD packet to send [07:35:53]OFD Sender: No OFD packet to send [07:35:58]OFD Sender: No OFD packet to send [07:36:03]OFD Sender: No OFD packet to send [07:36:08]OFD Sender: No OFD packet to send [07:36:13]OFD Sender: No OFD packet to send [07:36:18]OFD Sender: No OFD packet to send [07:36:23]OFD Sender: No OFD packet to send [07:36:28]OFD Sender: No OFD packet to send [07:36:33]OFD Sender: No OFD packet to send [07:36:38]OFD Sender: No OFD packet to send [07:36:43]OFD Sender: No OFD packet to send [07:36:48]OFD Sender: No OFD packet to send [07:36:53]OFD Sender: No OFD packet to send [07:36:58]OFD Sender: No OFD packet to send [07:37:03]OFD Sender: No OFD packet to send [07:37:08]OFD Sender: No OFD packet to send [07:37:13]OFD Sender: No OFD packet to send [07:37:18]OFD Sender: No OFD packet to send [07:37:23]OFD Sender: No OFD packet to send [07:37:28]OFD Sender: No OFD packet to send [07:37:33]OFD Sender: No OFD packet to send [07:37:38]OFD Sender: No OFD packet to send [07:37:43]OFD Sender: No OFD packet to send [07:37:48]OFD Sender: No OFD packet to send [07:37:53]OFD Sender: No OFD packet to send [07:37:58]OFD Sender: No OFD packet to send [07:38:03]OFD Sender: No OFD packet to send [07:38:08]OFD Sender: No OFD packet to send [07:38:13]OFD Sender: No OFD packet to send [07:38:18]OFD Sender: No OFD packet to send [07:38:23]OFD Sender: No OFD packet to send [07:38:28]OFD Sender: No OFD packet to send [07:38:33]OFD Sender: No OFD packet to send [07:38:38]OFD Sender: No OFD packet to send [07:38:43]OFD Sender: No OFD packet to send [07:38:48]OFD Sender: No OFD packet to send [07:38:53]OFD Sender: No OFD packet to send [07:38:58]OFD Sender: No OFD packet to send [07:39:03]OFD Sender: No OFD packet to send [07:39:08]OFD Sender: No OFD packet to send [07:39:13]OFD Sender: No OFD packet to send [07:39:18]OFD Sender: No OFD packet to send [07:39:23]OFD Sender: No OFD packet to send [07:39:28]OFD Sender: No OFD packet to send [07:39:33]OFD Sender: No OFD packet to send [07:39:38]OFD Sender: No OFD packet to send [07:39:43]OFD Sender: No OFD packet to send [07:39:48]OFD Sender: No OFD packet to send [07:39:53]OFD Sender: No OFD packet to send [07:39:58]OFD Sender: No OFD packet to send [07:40:03]OFD Sender: No OFD packet to send [07:40:08]OFD Sender: No OFD packet to send [07:40:13]OFD Sender: No OFD packet to send [07:40:18]OFD Sender: No OFD packet to send [07:40:23]OFD Sender: No OFD packet to send [07:40:28]OFD Sender: No OFD packet to send [07:40:33]OFD Sender: No OFD packet to send [07:40:38]OFD Sender: No OFD packet to send [07:40:43]OFD Sender: No OFD packet to send [07:40:48]OFD Sender: No OFD packet to send [07:40:53]OFD Sender: No OFD packet to send [07:40:57]accept exits with 9 [07:40:57]New connection [07:40:57]New thread 3066752356 created [07:40:57]Thread 3066608996 joined [07:40:57]Waiting for new connection... [07:40:57] Sock 9.Parse request [07:40:57]Sock 9.Check first char [07:40:57]Sock 9.First char is OK [07:40:57]request: POST /json_proto HTTP/1.0 [07:40:57]Method: POST [07:40:57]URL: /json_proto [07:40:57]Method is POST - this is cgi request [07:40:57]url: /json_proto [07:40:57]query_string will be loaded in cgi processing [07:40:57]execute_cgi json_proto POST (null) [07:40:57]execute_cgi path=json_proto method=POST [07:40:57]POST find Content-Length [07:40:57]Host: 172.17.41.195:8080 [07:40:57]Content-Length: 1209 [07:40:57]Content-Type: application/json [07:40:57] [07:40:57]POST finish read [07:40:57]Found Content-Length = 1209 [07:40:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0440\u0441\u0442\u0430\u043D\u0431\u0435\u043A\u043E\u0432 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)507950\u000A18.05.2024 07:23\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 13.390 x 74.70\u000A\u0418\u0422\u041E\u0413: 1000.23\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:40:57]execute_script... [07:40:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0440\u0441\u0442\u0430\u043D\u0431\u0435\u043A\u043E\u0432 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)507950\u000A18.05.2024 07:23\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 13.390 x 74.70\u000A\u0418\u0422\u041E\u0413: 1000.23\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:40:57]POST & json_proto [07:40:57]process_json_proto [07:40:57]json parsed OK: [07:40:57]protocol is kg_v1.0 [07:40:57]action value=print_text [07:40:57]process_action print_text [07:40:57]cmd_print_text [07:40:57]ExternCall_PrintAddStr [07:40:57]wPrintStart [07:40:57]Write to MH i2c: 01 00 00 26 21 47 [07:40:57]Write i2c OK [07:40:57]MH_I2C_Read... [07:40:57]Read from MH i2c: 01 [07:40:57]MH_I2C_Read... [07:40:57]Read from MH i2c: 01 07 00 [07:40:57]MH_I2C_Read... [07:40:57]Read from MH i2c: 01 07 00 26 21 00 00 00 00 00 FF 0F 5C [07:40:57]RasterBufferAndPrint [07:40:57]line *****ТОВАРНЫЙ ЧЕК***** [07:40:57]line АЗС-91 [07:40:57]line Партнер нефть [07:40:57]line 02508201610067 [07:40:57]line Кассир : Арстанбеков Н. [07:40:57]line Счет N : (1)507950 [07:40:57]line 18.05.2024 07:23 [07:40:57]line ПРОДАЖА [07:40:57]line ТРК (МРК, ГНК): 21 [07:40:57]line Вид ГСМ : 2710194210 [07:40:57]line ДТ-К-5 [07:40:57]line 13.390 x 74.70 [07:40:57]line ИТОГ: 1000.23 [07:40:57]line Тип оплаты: Талоны: Топливная Карта [07:40:57]line 02750 [07:40:57]line ______________________ [07:40:57]line (подпись) [07:40:57]written 0, free lines is 4095 [07:40:58]Write to MH i2c: 01 00 00 3A 21 5B [07:40:58]Write i2c OK [07:40:58]MH_I2C_Read... [07:40:58]Read from MH i2c: 01 [07:40:58]MH_I2C_Read... [07:40:58]Read from MH i2c: 01 07 00 [07:40:58]MH_I2C_Read... [07:40:58]Read from MH i2c: 01 07 00 3A 21 00 00 00 00 00 10 0E 80 [07:40:58]RasterBufferAndPrint [07:40:58]line [07:40:58]line [07:40:58]line [07:40:58]line [07:40:58]line [07:40:58]written 0, free lines is 3601 [07:40:58]MH_Cut [07:40:58]Write to MH i2c: D1 01 00 41 21 01 34 [07:40:58]Write i2c OK [07:40:58]MH_I2C_Read... [07:40:58]Read from MH i2c: D1 [07:40:58]MH_I2C_Read... [07:40:58]Read from MH i2c: D1 01 00 [07:40:58]MH_I2C_Read... [07:40:58]Read from MH i2c: D1 01 00 41 21 00 33 [07:40:58]Write to MH i2c: 01 00 00 42 21 63 [07:40:58]Write i2c OK [07:40:58]MH_I2C_Read... [07:40:58]OFD Sender: No OFD packet to send [07:40:58]*** Cut start [07:40:58]*** Purtial cut [07:40:58]*** CUTSNS_PIN = 0 [07:40:58]*** Stage 1: CUTSNS_PIN = 1 [07:41:00]Read from MH i2c: 01 [07:41:00]MH_I2C_Read... [07:41:00]*** Stop cut motor [07:41:00]*** Cut end [07:41:00]Read from MH i2c: 01 07 00 [07:41:00]MH_I2C_Read... [07:41:00]Read from MH i2c: 01 07 00 42 21 00 00 00 00 00 FF 0F 78 [07:41:00]process_action print_text done [07:41:00]requested_data is exist [07:41:00]produce_requested_data [07:41:00]requested_item fm.sn is exist - process it [07:41:00]wFMCommunicate request_size=4 [07:41:00]MH_SAM_APDU [07:41:00]CAPDU: 80 11 00 00 [07:41:00]Write to MH i2c: E2 08 00 43 21 80 11 00 00 00 00 00 00 DE [07:41:00]Write i2c OK [07:41:00]MH_I2C_Read... [07:41:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:41:00]Read from MH i2c: E2 [07:41:00]MH_I2C_Read... [07:41:00]Read from MH i2c: E2 17 00 [07:41:00]MH_I2C_Read... [07:41:00]Read from MH i2c: E2 17 00 43 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 34 [07:41:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [07:41:00]wFMCommunicate OK [07:41:00]requested_item fd.num is exist - process it [07:41:00]SAM_PROTO_GetFieldsCounters [07:41:00]wFMCommunicate request_size=4 [07:41:00]MH_SAM_APDU [07:41:00]CAPDU: 80 13 00 00 [07:41:00]Write to MH i2c: E2 08 00 44 21 80 13 00 00 00 00 00 00 E1 [07:41:00]Write i2c OK [07:41:00]MH_I2C_Read... [07:41:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:41:00]Read from MH i2c: E2 [07:41:00]MH_I2C_Read... [07:41:00]Read from MH i2c: E2 62 00 [07:41:00]MH_I2C_Read... [07:41:00]Read from MH i2c: E2 62 00 44 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 C3 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 71 [07:41:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 C3 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:41:00]wFMCommunicate OK [07:41:00]SAM_PROTO_GetFieldsCounters done [07:41:00]requested_item shift.num is exist - process it [07:41:00]requested_item shift.opened is exist - process it [07:41:00]req_shift_opened [07:41:00]FM_GetShiftState [07:41:00]SAM_PROTO_GetShiftState [07:41:00]wFMCommunicate request_size=4 [07:41:00]MH_SAM_APDU [07:41:00]CAPDU: 80 13 01 00 [07:41:00]Write to MH i2c: E2 08 00 45 21 80 13 01 00 00 00 00 00 E3 [07:41:00]Write i2c OK [07:41:00]MH_I2C_Read... [07:41:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:41:00]Read from MH i2c: E2 [07:41:00]MH_I2C_Read... [07:41:00]Read from MH i2c: E2 0E 00 [07:41:00]MH_I2C_Read... [07:41:00]Read from MH i2c: E2 0E 00 45 21 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 4A [07:41:00]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [07:41:00]wFMCommunicate OK [07:41:00]SAM_PROTO_GetShiftState done [07:41:00]FM_GetShiftState done [07:41:00]req_shift_opened done [07:41:00]requested_item shift.open_date is exist - process it [07:41:00]req_shift_open_date [07:41:00]req_shift_open_date done [07:41:00]produce_requested_data done [07:41:00]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67779,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [07:41:00]process_action_free print_text [07:41:00]json_value_free [07:41:00]json_value_free done [07:41:00]process_json_proto returns [07:41:00]Send response to host [07:41:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67779,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [07:41:00]free response buf [07:41:00]execute_script done [07:41:00]execute_script returns [07:41:00]free content buf [07:41:00]Sock 9.Close socket [07:41:00]Sock 9.Thread stoped [07:41:03]OFD Sender: No OFD packet to send [07:41:08]OFD Sender: No OFD packet to send [07:41:13]OFD Sender: No OFD packet to send [07:41:18]OFD Sender: No OFD packet to send [07:41:23]OFD Sender: No OFD packet to send [07:41:28]OFD Sender: No OFD packet to send [07:41:33]OFD Sender: No OFD packet to send [07:41:38]OFD Sender: No OFD packet to send [07:41:43]OFD Sender: No OFD packet to send [07:41:48]OFD Sender: No OFD packet to send [07:41:53]OFD Sender: No OFD packet to send [07:41:58]OFD Sender: No OFD packet to send [07:42:03]OFD Sender: No OFD packet to send [07:42:08]OFD Sender: No OFD packet to send [07:42:13]OFD Sender: No OFD packet to send [07:42:18]OFD Sender: No OFD packet to send [07:42:23]OFD Sender: No OFD packet to send [07:42:28]OFD Sender: No OFD packet to send [07:42:33]OFD Sender: No OFD packet to send [07:42:38]OFD Sender: No OFD packet to send [07:42:43]OFD Sender: No OFD packet to send [07:42:48]OFD Sender: No OFD packet to send [07:42:53]OFD Sender: No OFD packet to send [07:42:58]OFD Sender: No OFD packet to send [07:43:03]OFD Sender: No OFD packet to send [07:43:08]OFD Sender: No OFD packet to send [07:43:13]OFD Sender: No OFD packet to send [07:43:18]OFD Sender: No OFD packet to send [07:43:23]OFD Sender: No OFD packet to send [07:43:28]OFD Sender: No OFD packet to send [07:43:33]OFD Sender: No OFD packet to send [07:43:38]OFD Sender: No OFD packet to send [07:43:43]OFD Sender: No OFD packet to send [07:43:48]OFD Sender: No OFD packet to send [07:43:53]OFD Sender: No OFD packet to send [07:43:58]OFD Sender: No OFD packet to send [07:44:03]OFD Sender: No OFD packet to send [07:44:08]OFD Sender: No OFD packet to send [07:44:13]OFD Sender: No OFD packet to send [07:44:18]OFD Sender: No OFD packet to send [07:44:23]OFD Sender: No OFD packet to send [07:44:28]OFD Sender: No OFD packet to send [07:44:33]OFD Sender: No OFD packet to send [07:44:38]OFD Sender: No OFD packet to send [07:44:43]OFD Sender: No OFD packet to send [07:44:48]OFD Sender: No OFD packet to send [07:44:53]OFD Sender: No OFD packet to send [07:44:58]OFD Sender: No OFD packet to send [07:45:03]OFD Sender: No OFD packet to send [07:45:08]OFD Sender: No OFD packet to send [07:45:13]OFD Sender: No OFD packet to send [07:45:18]OFD Sender: No OFD packet to send [07:45:23]OFD Sender: No OFD packet to send [07:45:28]OFD Sender: No OFD packet to send [07:45:33]OFD Sender: No OFD packet to send [07:45:38]OFD Sender: No OFD packet to send [07:45:43]OFD Sender: No OFD packet to send [07:45:48]OFD Sender: No OFD packet to send [07:45:53]OFD Sender: No OFD packet to send [07:45:58]OFD Sender: No OFD packet to send [07:46:03]OFD Sender: No OFD packet to send [07:46:08]OFD Sender: No OFD packet to send [07:46:13]OFD Sender: No OFD packet to send [07:46:18]OFD Sender: No OFD packet to send [07:46:23]OFD Sender: No OFD packet to send [07:46:28]OFD Sender: No OFD packet to send [07:46:33]OFD Sender: No OFD packet to send [07:46:38]OFD Sender: No OFD packet to send [07:46:43]OFD Sender: No OFD packet to send [07:46:48]OFD Sender: No OFD packet to send [07:46:53]OFD Sender: No OFD packet to send [07:46:58]OFD Sender: No OFD packet to send [07:47:03]OFD Sender: No OFD packet to send [07:47:08]OFD Sender: No OFD packet to send [07:47:13]OFD Sender: No OFD packet to send [07:47:18]OFD Sender: No OFD packet to send [07:47:23]OFD Sender: No OFD packet to send [07:47:28]OFD Sender: No OFD packet to send [07:47:33]OFD Sender: No OFD packet to send [07:47:38]OFD Sender: No OFD packet to send [07:47:43]OFD Sender: No OFD packet to send [07:47:48]OFD Sender: No OFD packet to send [07:47:53]OFD Sender: No OFD packet to send [07:47:58]OFD Sender: No OFD packet to send [07:48:03]OFD Sender: No OFD packet to send [07:48:09]OFD Sender: No OFD packet to send [07:48:14]OFD Sender: No OFD packet to send [07:48:19]OFD Sender: No OFD packet to send [07:48:24]OFD Sender: No OFD packet to send [07:48:29]OFD Sender: No OFD packet to send [07:48:34]OFD Sender: No OFD packet to send [07:48:39]OFD Sender: No OFD packet to send [07:48:44]OFD Sender: No OFD packet to send [07:48:49]OFD Sender: No OFD packet to send [07:48:54]OFD Sender: No OFD packet to send [07:48:59]OFD Sender: No OFD packet to send [07:49:04]OFD Sender: No OFD packet to send [07:49:09]OFD Sender: No OFD packet to send [07:49:14]OFD Sender: No OFD packet to send [07:49:19]OFD Sender: No OFD packet to send [07:49:24]OFD Sender: No OFD packet to send [07:49:29]OFD Sender: No OFD packet to send [07:49:34]OFD Sender: No OFD packet to send [07:49:39]OFD Sender: No OFD packet to send [07:49:44]OFD Sender: No OFD packet to send [07:49:49]OFD Sender: No OFD packet to send [07:49:54]OFD Sender: No OFD packet to send [07:49:59]OFD Sender: No OFD packet to send [07:50:04]OFD Sender: No OFD packet to send [07:50:09]OFD Sender: No OFD packet to send [07:50:14]OFD Sender: No OFD packet to send [07:50:19]OFD Sender: No OFD packet to send [07:50:24]OFD Sender: No OFD packet to send [07:50:29]OFD Sender: No OFD packet to send [07:50:34]OFD Sender: No OFD packet to send [07:50:39]OFD Sender: No OFD packet to send [07:50:44]OFD Sender: No OFD packet to send [07:50:49]OFD Sender: No OFD packet to send [07:50:54]OFD Sender: No OFD packet to send [07:50:59]OFD Sender: No OFD packet to send [07:51:04]OFD Sender: No OFD packet to send [07:51:09]OFD Sender: No OFD packet to send [07:51:14]OFD Sender: No OFD packet to send [07:51:19]OFD Sender: No OFD packet to send [07:51:24]OFD Sender: No OFD packet to send [07:51:29]OFD Sender: No OFD packet to send [07:51:34]OFD Sender: No OFD packet to send [07:51:39]OFD Sender: No OFD packet to send [07:51:44]OFD Sender: No OFD packet to send [07:51:49]OFD Sender: No OFD packet to send [07:51:54]OFD Sender: No OFD packet to send [07:51:59]OFD Sender: No OFD packet to send [07:52:04]OFD Sender: No OFD packet to send [07:52:09]OFD Sender: No OFD packet to send [07:52:14]OFD Sender: No OFD packet to send [07:52:19]OFD Sender: No OFD packet to send [07:52:24]OFD Sender: No OFD packet to send [07:52:29]OFD Sender: No OFD packet to send [07:52:34]OFD Sender: No OFD packet to send [07:52:39]OFD Sender: No OFD packet to send [07:52:44]OFD Sender: No OFD packet to send [07:52:49]OFD Sender: No OFD packet to send [07:52:54]OFD Sender: No OFD packet to send [07:52:59]OFD Sender: No OFD packet to send [07:53:04]OFD Sender: No OFD packet to send [07:53:09]OFD Sender: No OFD packet to send [07:53:14]OFD Sender: No OFD packet to send [07:53:19]OFD Sender: No OFD packet to send [07:53:24]OFD Sender: No OFD packet to send [07:53:29]OFD Sender: No OFD packet to send [07:53:34]OFD Sender: No OFD packet to send [07:53:39]OFD Sender: No OFD packet to send [07:53:44]OFD Sender: No OFD packet to send [07:53:49]OFD Sender: No OFD packet to send [07:53:54]OFD Sender: No OFD packet to send [07:53:59]OFD Sender: No OFD packet to send [07:54:04]OFD Sender: No OFD packet to send [07:54:09]OFD Sender: No OFD packet to send [07:54:14]OFD Sender: No OFD packet to send [07:54:19]OFD Sender: No OFD packet to send [07:54:24]OFD Sender: No OFD packet to send [07:54:29]OFD Sender: No OFD packet to send [07:54:34]OFD Sender: No OFD packet to send [07:54:39]OFD Sender: No OFD packet to send [07:54:44]OFD Sender: No OFD packet to send [07:54:49]OFD Sender: No OFD packet to send [07:54:54]OFD Sender: No OFD packet to send [07:54:59]OFD Sender: No OFD packet to send [07:55:04]OFD Sender: No OFD packet to send [07:55:09]OFD Sender: No OFD packet to send [07:55:14]OFD Sender: No OFD packet to send [07:55:19]OFD Sender: No OFD packet to send [07:55:24]OFD Sender: No OFD packet to send [07:55:29]OFD Sender: No OFD packet to send [07:55:34]OFD Sender: No OFD packet to send [07:55:39]OFD Sender: No OFD packet to send [07:55:44]OFD Sender: No OFD packet to send [07:55:49]OFD Sender: No OFD packet to send [07:55:54]OFD Sender: No OFD packet to send [07:55:59]OFD Sender: No OFD packet to send [07:56:04]OFD Sender: No OFD packet to send [07:56:09]OFD Sender: No OFD packet to send [07:56:14]OFD Sender: No OFD packet to send [07:56:19]OFD Sender: No OFD packet to send [07:56:24]OFD Sender: No OFD packet to send [07:56:29]OFD Sender: No OFD packet to send [07:56:34]OFD Sender: No OFD packet to send [07:56:39]OFD Sender: No OFD packet to send [07:56:44]OFD Sender: No OFD packet to send [07:56:49]OFD Sender: No OFD packet to send [07:56:54]OFD Sender: No OFD packet to send [07:56:59]OFD Sender: No OFD packet to send [07:57:04]OFD Sender: No OFD packet to send [07:57:09]OFD Sender: No OFD packet to send [07:57:14]OFD Sender: No OFD packet to send [07:57:19]OFD Sender: No OFD packet to send [07:57:24]OFD Sender: No OFD packet to send [07:57:29]OFD Sender: No OFD packet to send [07:57:34]OFD Sender: No OFD packet to send [07:57:39]OFD Sender: No OFD packet to send [07:57:44]OFD Sender: No OFD packet to send [07:57:49]OFD Sender: No OFD packet to send [07:57:54]OFD Sender: No OFD packet to send [07:57:59]OFD Sender: No OFD packet to send [07:58:04]OFD Sender: No OFD packet to send [07:58:09]OFD Sender: No OFD packet to send [07:58:14]OFD Sender: No OFD packet to send [07:58:19]OFD Sender: No OFD packet to send [07:58:24]OFD Sender: No OFD packet to send [07:58:29]OFD Sender: No OFD packet to send [07:58:34]OFD Sender: No OFD packet to send [07:58:39]OFD Sender: No OFD packet to send [07:58:44]OFD Sender: No OFD packet to send [07:58:49]OFD Sender: No OFD packet to send [07:58:54]OFD Sender: No OFD packet to send [07:58:59]OFD Sender: No OFD packet to send [07:59:04]OFD Sender: No OFD packet to send [07:59:09]OFD Sender: No OFD packet to send [07:59:14]OFD Sender: No OFD packet to send [07:59:19]OFD Sender: No OFD packet to send [07:59:24]OFD Sender: No OFD packet to send [07:59:29]OFD Sender: No OFD packet to send [07:59:34]OFD Sender: No OFD packet to send [07:59:39]OFD Sender: No OFD packet to send [07:59:44]OFD Sender: No OFD packet to send [07:59:49]OFD Sender: No OFD packet to send [07:59:54]OFD Sender: No OFD packet to send [07:59:59]OFD Sender: No OFD packet to send [08:00:04]OFD Sender: No OFD packet to send [08:00:09]OFD Sender: No OFD packet to send [08:00:14]OFD Sender: No OFD packet to send [08:00:19]OFD Sender: No OFD packet to send [08:00:24]OFD Sender: No OFD packet to send [08:00:29]OFD Sender: No OFD packet to send [08:00:34]OFD Sender: No OFD packet to send [08:00:39]OFD Sender: No OFD packet to send [08:00:44]OFD Sender: No OFD packet to send [08:00:49]OFD Sender: No OFD packet to send [08:00:54]OFD Sender: No OFD packet to send [08:00:59]OFD Sender: No OFD packet to send [08:01:04]OFD Sender: No OFD packet to send [08:01:09]OFD Sender: No OFD packet to send [08:01:14]OFD Sender: No OFD packet to send [08:01:19]OFD Sender: No OFD packet to send [08:01:24]OFD Sender: No OFD packet to send [08:01:29]OFD Sender: No OFD packet to send [08:01:34]OFD Sender: No OFD packet to send [08:01:39]OFD Sender: No OFD packet to send [08:01:44]OFD Sender: No OFD packet to send [08:01:49]OFD Sender: No OFD packet to send [08:01:54]OFD Sender: No OFD packet to send [08:01:59]OFD Sender: No OFD packet to send [08:02:04]OFD Sender: No OFD packet to send [08:02:09]OFD Sender: No OFD packet to send [08:02:14]OFD Sender: No OFD packet to send [08:02:19]OFD Sender: No OFD packet to send [08:02:24]OFD Sender: No OFD packet to send [08:02:29]OFD Sender: No OFD packet to send [08:02:34]OFD Sender: No OFD packet to send [08:02:39]OFD Sender: No OFD packet to send [08:02:44]OFD Sender: No OFD packet to send [08:02:49]OFD Sender: No OFD packet to send [08:02:54]OFD Sender: No OFD packet to send [08:02:59]OFD Sender: No OFD packet to send [08:03:04]OFD Sender: No OFD packet to send [08:03:09]OFD Sender: No OFD packet to send [08:03:14]OFD Sender: No OFD packet to send [08:03:19]OFD Sender: No OFD packet to send [08:03:24]OFD Sender: No OFD packet to send [08:03:29]OFD Sender: No OFD packet to send [08:03:34]OFD Sender: No OFD packet to send [08:03:39]OFD Sender: No OFD packet to send [08:03:44]OFD Sender: No OFD packet to send [08:03:49]OFD Sender: No OFD packet to send [08:03:54]OFD Sender: No OFD packet to send [08:03:59]OFD Sender: No OFD packet to send [08:04:04]OFD Sender: No OFD packet to send [08:04:09]OFD Sender: No OFD packet to send [08:04:14]OFD Sender: No OFD packet to send [08:04:19]OFD Sender: No OFD packet to send [08:04:24]OFD Sender: No OFD packet to send [08:04:29]OFD Sender: No OFD packet to send [08:04:34]OFD Sender: No OFD packet to send [08:04:39]OFD Sender: No OFD packet to send [08:04:44]OFD Sender: No OFD packet to send [08:04:49]OFD Sender: No OFD packet to send [08:04:54]OFD Sender: No OFD packet to send [08:04:59]OFD Sender: No OFD packet to send [08:05:04]OFD Sender: No OFD packet to send [08:05:09]OFD Sender: No OFD packet to send [08:05:14]OFD Sender: No OFD packet to send [08:05:19]OFD Sender: No OFD packet to send [08:05:24]OFD Sender: No OFD packet to send [08:05:29]OFD Sender: No OFD packet to send [08:05:34]OFD Sender: No OFD packet to send [08:05:39]OFD Sender: No OFD packet to send [08:05:44]OFD Sender: No OFD packet to send [08:05:49]OFD Sender: No OFD packet to send [08:05:54]OFD Sender: No OFD packet to send [08:05:59]OFD Sender: No OFD packet to send [08:06:01]accept exits with 7 [08:06:01]New connection [08:06:01]New thread 3066608996 created [08:06:01]Thread 3066752356 joined [08:06:01]Waiting for new connection... [08:06:01] Sock 7.Parse request [08:06:01]Sock 7.Check first char [08:06:01]Sock 7.First char is OK [08:06:01]request: POST /json_proto HTTP/1.0 [08:06:01]Method: POST [08:06:01]URL: /json_proto [08:06:01]Method is POST - this is cgi request [08:06:01]url: /json_proto [08:06:01]query_string will be loaded in cgi processing [08:06:01]execute_cgi json_proto POST (null) [08:06:01]execute_cgi path=json_proto method=POST [08:06:01]POST find Content-Length [08:06:01]Host: 172.17.41.195:8080 [08:06:01]Content-Length: 1210 [08:06:01]Content-Type: application/json [08:06:01] [08:06:01]POST finish read [08:06:01]Found Content-Length = 1210 [08:06:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0440\u0441\u0442\u0430\u043D\u0431\u0435\u043A\u043E\u0432 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)507952\u000A18.05.2024 07:48\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 120.490 x 74.70\u000A\u0418\u0422\u041E\u0413: 9000.60\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:06:01]execute_script... [08:06:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0440\u0441\u0442\u0430\u043D\u0431\u0435\u043A\u043E\u0432 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)507952\u000A18.05.2024 07:48\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 120.490 x 74.70\u000A\u0418\u0422\u041E\u0413: 9000.60\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:06:01]POST & json_proto [08:06:01]process_json_proto [08:06:01]json parsed OK: [08:06:01]protocol is kg_v1.0 [08:06:01]action value=print_text [08:06:01]process_action print_text [08:06:01]cmd_print_text [08:06:01]ExternCall_PrintAddStr [08:06:01]wPrintStart [08:06:01]Write to MH i2c: 01 00 00 46 21 67 [08:06:01]Write i2c OK [08:06:01]MH_I2C_Read... [08:06:01]Read from MH i2c: 01 [08:06:01]MH_I2C_Read... [08:06:01]Read from MH i2c: 01 07 00 [08:06:01]MH_I2C_Read... [08:06:01]Read from MH i2c: 01 07 00 46 21 00 00 00 00 00 FF 0F 7C [08:06:01]RasterBufferAndPrint [08:06:01]line *****ТОВАРНЫЙ ЧЕК***** [08:06:01]line АЗС-91 [08:06:01]line Партнер нефть [08:06:01]line 02508201610067 [08:06:01]line Кассир : Арстанбеков Н. [08:06:01]line Счет N : (1)507952 [08:06:01]line 18.05.2024 07:48 [08:06:01]line ПРОДАЖА [08:06:01]line ТРК (МРК, ГНК): 21 [08:06:01]line Вид ГСМ : 2710194210 [08:06:01]line ДТ-К-5 [08:06:01]line 120.490 x 74.70 [08:06:01]line ИТОГ: 9000.60 [08:06:01]line Тип оплаты: Талоны: Топливная Карта [08:06:01]line 02750 [08:06:01]line ______________________ [08:06:01]line (подпись) [08:06:01]written 0, free lines is 4095 [08:06:01]Write to MH i2c: 01 00 00 5A 21 7B [08:06:01]Write i2c OK [08:06:01]MH_I2C_Read... [08:06:01]Read from MH i2c: 01 [08:06:01]MH_I2C_Read... [08:06:01]Read from MH i2c: 01 07 00 [08:06:01]MH_I2C_Read... [08:06:01]Read from MH i2c: 01 07 00 5A 21 00 00 00 00 00 11 0E A1 [08:06:01]RasterBufferAndPrint [08:06:01]line [08:06:01]line [08:06:01]line [08:06:01]line [08:06:01]line [08:06:01]written 0, free lines is 3603 [08:06:01]MH_Cut [08:06:01]Write to MH i2c: D1 01 00 61 21 01 54 [08:06:01]Write i2c OK [08:06:01]MH_I2C_Read... [08:06:01]Read from MH i2c: D1 [08:06:01]MH_I2C_Read... [08:06:01]Read from MH i2c: D1 01 00 [08:06:01]MH_I2C_Read... [08:06:01]Read from MH i2c: D1 01 00 61 21 00 53 [08:06:01]Write to MH i2c: 01 00 00 62 21 83 [08:06:01]Write i2c OK [08:06:01]MH_I2C_Read... [08:06:02]*** Cut start [08:06:02]*** Purtial cut [08:06:02]*** Stage 1: CUTSNS_PIN = 1 [08:06:02]Read from MH i2c: 01 [08:06:02]MH_I2C_Read... [08:06:02]*** Stop cut motor [08:06:02]*** Cut end [08:06:02]Read from MH i2c: 01 07 00 [08:06:02]MH_I2C_Read... [08:06:02]Read from MH i2c: 01 07 00 62 21 00 00 00 00 00 FF 0F 98 [08:06:02]process_action print_text done [08:06:02]requested_data is exist [08:06:02]produce_requested_data [08:06:02]requested_item fm.sn is exist - process it [08:06:02]wFMCommunicate request_size=4 [08:06:02]MH_SAM_APDU [08:06:02]CAPDU: 80 11 00 00 [08:06:02]Write to MH i2c: E2 08 00 63 21 80 11 00 00 00 00 00 00 FE [08:06:02]Write i2c OK [08:06:02]MH_I2C_Read... [08:06:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:06:02]Read from MH i2c: E2 [08:06:02]MH_I2C_Read... [08:06:02]Read from MH i2c: E2 17 00 [08:06:02]MH_I2C_Read... [08:06:02]Read from MH i2c: E2 17 00 63 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 54 [08:06:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [08:06:02]wFMCommunicate OK [08:06:02]requested_item fd.num is exist - process it [08:06:02]SAM_PROTO_GetFieldsCounters [08:06:02]wFMCommunicate request_size=4 [08:06:02]MH_SAM_APDU [08:06:02]CAPDU: 80 13 00 00 [08:06:02]Write to MH i2c: E2 08 00 64 21 80 13 00 00 00 00 00 00 01 [08:06:02]Write i2c OK [08:06:02]MH_I2C_Read... [08:06:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:06:02]Read from MH i2c: E2 [08:06:02]MH_I2C_Read... [08:06:02]Read from MH i2c: E2 62 00 [08:06:02]MH_I2C_Read... [08:06:02]Read from MH i2c: E2 62 00 64 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 C3 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 91 [08:06:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 C3 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:06:02]wFMCommunicate OK [08:06:02]SAM_PROTO_GetFieldsCounters done [08:06:02]requested_item shift.num is exist - process it [08:06:02]requested_item shift.opened is exist - process it [08:06:02]req_shift_opened [08:06:02]FM_GetShiftState [08:06:02]SAM_PROTO_GetShiftState [08:06:02]wFMCommunicate request_size=4 [08:06:02]MH_SAM_APDU [08:06:02]CAPDU: 80 13 01 00 [08:06:02]Write to MH i2c: E2 08 00 65 21 80 13 01 00 00 00 00 00 03 [08:06:02]Write i2c OK [08:06:02]MH_I2C_Read... [08:06:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:06:02]Read from MH i2c: E2 [08:06:02]MH_I2C_Read... [08:06:02]Read from MH i2c: E2 0E 00 [08:06:02]MH_I2C_Read... [08:06:02]Read from MH i2c: E2 0E 00 65 21 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 6A [08:06:02]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [08:06:02]wFMCommunicate OK [08:06:02]SAM_PROTO_GetShiftState done [08:06:02]FM_GetShiftState done [08:06:02]req_shift_opened done [08:06:02]requested_item shift.open_date is exist - process it [08:06:02]req_shift_open_date [08:06:02]req_shift_open_date done [08:06:02]produce_requested_data done [08:06:02]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67779,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [08:06:02]process_action_free print_text [08:06:02]json_value_free [08:06:02]json_value_free done [08:06:02]process_json_proto returns [08:06:02]Send response to host [08:06:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67779,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [08:06:02]free response buf [08:06:02]execute_script done [08:06:02]execute_script returns [08:06:02]free content buf [08:06:02]Sock 7.Close socket [08:06:02]Sock 7.Thread stoped [08:06:04]OFD Sender: No OFD packet to send [08:06:06]accept exits with 9 [08:06:06]New connection [08:06:06]New thread 3066752356 created [08:06:06]Thread 3066608996 joined [08:06:06]Waiting for new connection... [08:06:06] Sock 9.Parse request [08:06:06]Sock 9.Check first char [08:06:06]Sock 9.First char is OK [08:06:06]request: POST /json_proto HTTP/1.0 [08:06:06]Method: POST [08:06:06]URL: /json_proto [08:06:06]Method is POST - this is cgi request [08:06:06]url: /json_proto [08:06:06]query_string will be loaded in cgi processing [08:06:06]execute_cgi json_proto POST (null) [08:06:06]execute_cgi path=json_proto method=POST [08:06:06]POST find Content-Length [08:06:06]Host: 172.17.41.195:8080 [08:06:06]Content-Length: 1210 [08:06:06]Content-Type: application/json [08:06:06] [08:06:06]POST finish read [08:06:06]Found Content-Length = 1210 [08:06:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0440\u0441\u0442\u0430\u043D\u0431\u0435\u043A\u043E\u0432 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)507951\u000A18.05.2024 07:48\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 120.490 x 74.70\u000A\u0418\u0422\u041E\u0413: 9000.60\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:06:06]execute_script... [08:06:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0440\u0441\u0442\u0430\u043D\u0431\u0435\u043A\u043E\u0432 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)507951\u000A18.05.2024 07:48\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 120.490 x 74.70\u000A\u0418\u0422\u041E\u0413: 9000.60\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:06:06]POST & json_proto [08:06:06]process_json_proto [08:06:06]json parsed OK: [08:06:06]protocol is kg_v1.0 [08:06:06]action value=print_text [08:06:06]process_action print_text [08:06:06]cmd_print_text [08:06:06]ExternCall_PrintAddStr [08:06:06]wPrintStart [08:06:06]Write to MH i2c: 01 00 00 66 21 87 [08:06:06]Write i2c OK [08:06:06]MH_I2C_Read... [08:06:06]Read from MH i2c: 01 [08:06:06]MH_I2C_Read... [08:06:06]Read from MH i2c: 01 07 00 [08:06:06]MH_I2C_Read... [08:06:06]Read from MH i2c: 01 07 00 66 21 00 00 00 00 00 FF 0F 9C [08:06:06]RasterBufferAndPrint [08:06:06]line *****ТОВАРНЫЙ ЧЕК***** [08:06:06]line АЗС-91 [08:06:06]line Партнер нефть [08:06:06]line 02508201610067 [08:06:06]line Кассир : Арстанбеков Н. [08:06:06]line Счет N : (1)507951 [08:06:06]line 18.05.2024 07:48 [08:06:06]line ПРОДАЖА [08:06:06]line ТРК (МРК, ГНК): 11 [08:06:06]line Вид ГСМ : 2710194210 [08:06:06]line ДТ-К-5 [08:06:06]line 120.490 x 74.70 [08:06:06]line ИТОГ: 9000.60 [08:06:06]line Тип оплаты: Талоны: Топливная Карта [08:06:06]line 02750 [08:06:06]line ______________________ [08:06:06]line (подпись) [08:06:06]written 0, free lines is 4095 [08:06:06]Write to MH i2c: 01 00 00 7A 21 9B [08:06:06]Write i2c OK [08:06:06]MH_I2C_Read... [08:06:06]Read from MH i2c: 01 [08:06:06]MH_I2C_Read... [08:06:06]Read from MH i2c: 01 07 00 [08:06:06]MH_I2C_Read... [08:06:06]Read from MH i2c: 01 07 00 7A 21 00 00 00 00 00 10 0E C0 [08:06:06]RasterBufferAndPrint [08:06:06]line [08:06:06]line [08:06:06]line [08:06:06]line [08:06:06]line [08:06:06]written 0, free lines is 3602 [08:06:06]MH_Cut [08:06:06]Write to MH i2c: D1 01 00 81 21 01 74 [08:06:06]Write i2c OK [08:06:06]MH_I2C_Read... [08:06:06]Read from MH i2c: D1 [08:06:06]MH_I2C_Read... [08:06:06]Read from MH i2c: D1 01 00 [08:06:06]MH_I2C_Read... [08:06:06]Read from MH i2c: D1 01 00 81 21 00 73 [08:06:06]Write to MH i2c: 01 00 00 82 21 A3 [08:06:06]Write i2c OK [08:06:06]MH_I2C_Read... [08:06:06]*** Cut start [08:06:06]*** Purtial cut [08:06:06]*** CUTSNS_PIN = 0 [08:06:07]*** Stage 1: CUTSNS_PIN = 1 [08:06:08]Read from MH i2c: 01 [08:06:08]MH_I2C_Read... [08:06:08]Read from MH i2c: 01 07 00 [08:06:08]MH_I2C_Read... [08:06:08]*** Stop cut motor [08:06:08]*** Cut end [08:06:08]Read from MH i2c: 01 07 00 82 21 00 00 00 00 00 FF 0F B8 [08:06:08]process_action print_text done [08:06:08]requested_data is exist [08:06:08]produce_requested_data [08:06:08]requested_item fm.sn is exist - process it [08:06:08]wFMCommunicate request_size=4 [08:06:08]MH_SAM_APDU [08:06:08]CAPDU: 80 11 00 00 [08:06:08]Write to MH i2c: E2 08 00 83 21 80 11 00 00 00 00 00 00 1E [08:06:08]Write i2c OK [08:06:08]MH_I2C_Read... [08:06:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:06:08]Read from MH i2c: E2 [08:06:08]MH_I2C_Read... [08:06:08]Read from MH i2c: E2 17 00 [08:06:08]MH_I2C_Read... [08:06:08]Read from MH i2c: E2 17 00 83 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 74 [08:06:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [08:06:08]wFMCommunicate OK [08:06:08]requested_item fd.num is exist - process it [08:06:08]SAM_PROTO_GetFieldsCounters [08:06:08]wFMCommunicate request_size=4 [08:06:08]MH_SAM_APDU [08:06:08]CAPDU: 80 13 00 00 [08:06:08]Write to MH i2c: E2 08 00 84 21 80 13 00 00 00 00 00 00 21 [08:06:08]Write i2c OK [08:06:08]MH_I2C_Read... [08:06:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:06:09]Read from MH i2c: E2 [08:06:09]MH_I2C_Read... [08:06:09]Read from MH i2c: E2 62 00 [08:06:09]MH_I2C_Read... [08:06:09]Read from MH i2c: E2 62 00 84 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 C3 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 B1 [08:06:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 C3 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:06:09]wFMCommunicate OK [08:06:09]SAM_PROTO_GetFieldsCounters done [08:06:09]requested_item shift.num is exist - process it [08:06:09]requested_item shift.opened is exist - process it [08:06:09]req_shift_opened [08:06:09]FM_GetShiftState [08:06:09]SAM_PROTO_GetShiftState [08:06:09]wFMCommunicate request_size=4 [08:06:09]MH_SAM_APDU [08:06:09]CAPDU: 80 13 01 00 [08:06:09]Write to MH i2c: E2 08 00 85 21 80 13 01 00 00 00 00 00 23 [08:06:09]Write i2c OK [08:06:09]MH_I2C_Read... [08:06:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:06:09]Read from MH i2c: E2 [08:06:09]MH_I2C_Read... [08:06:09]Read from MH i2c: E2 0E 00 [08:06:09]MH_I2C_Read... [08:06:09]Read from MH i2c: E2 0E 00 85 21 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 8A [08:06:09]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [08:06:09]wFMCommunicate OK [08:06:09]SAM_PROTO_GetShiftState done [08:06:09]FM_GetShiftState done [08:06:09]req_shift_opened done [08:06:09]requested_item shift.open_date is exist - process it [08:06:09]req_shift_open_date [08:06:09]req_shift_open_date done [08:06:09]produce_requested_data done [08:06:09]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67779,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [08:06:09]process_action_free print_text [08:06:09]json_value_free [08:06:09]json_value_free done [08:06:09]process_json_proto returns [08:06:09]Send response to host [08:06:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67779,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [08:06:09]free response buf [08:06:09]execute_script done [08:06:09]execute_script returns [08:06:09]free content buf [08:06:09]Sock 9.Close socket [08:06:09]Sock 9.Thread stoped [08:06:09]OFD Sender: No OFD packet to send [08:06:14]OFD Sender: No OFD packet to send [08:06:19]OFD Sender: No OFD packet to send [08:06:24]OFD Sender: No OFD packet to send [08:06:29]OFD Sender: No OFD packet to send [08:06:34]OFD Sender: No OFD packet to send [08:06:39]OFD Sender: No OFD packet to send [08:06:44]OFD Sender: No OFD packet to send [08:06:50]OFD Sender: No OFD packet to send [08:06:55]OFD Sender: No OFD packet to send [08:07:00]OFD Sender: No OFD packet to send [08:07:05]OFD Sender: No OFD packet to send [08:07:10]OFD Sender: No OFD packet to send [08:07:15]OFD Sender: No OFD packet to send [08:07:20]OFD Sender: No OFD packet to send [08:07:25]OFD Sender: No OFD packet to send [08:07:30]OFD Sender: No OFD packet to send [08:07:35]OFD Sender: No OFD packet to send [08:07:40]OFD Sender: No OFD packet to send [08:07:45]OFD Sender: No OFD packet to send [08:07:50]OFD Sender: No OFD packet to send [08:07:51]accept exits with 7 [08:07:51]New connection [08:07:51]New thread 3066608996 created [08:07:51]Thread 3066752356 joined [08:07:51]Waiting for new connection... [08:07:51] Sock 7.Parse request [08:07:51]Sock 7.Check first char [08:07:51]Sock 7.First char is OK [08:07:51]request: POST /json_proto HTTP/1.0 [08:07:51]Method: POST [08:07:51]URL: /json_proto [08:07:51]Method is POST - this is cgi request [08:07:51]url: /json_proto [08:07:51]query_string will be loaded in cgi processing [08:07:51]execute_cgi json_proto POST (null) [08:07:51]execute_cgi path=json_proto method=POST [08:07:51]POST find Content-Length [08:07:51]Host: 172.17.41.195:8080 [08:07:51]Content-Length: 1209 [08:07:51]Content-Type: application/json [08:07:51] [08:07:51]POST finish read [08:07:51]Found Content-Length = 1209 [08:07:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0440\u0441\u0442\u0430\u043D\u0431\u0435\u043A\u043E\u0432 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)507953\u000A18.05.2024 07:50\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 41\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 26.780 x 74.70\u000A\u0418\u0422\u041E\u0413: 2000.47\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:07:51]execute_script... [08:07:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0440\u0441\u0442\u0430\u043D\u0431\u0435\u043A\u043E\u0432 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)507953\u000A18.05.2024 07:50\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 41\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 26.780 x 74.70\u000A\u0418\u0422\u041E\u0413: 2000.47\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:07:51]POST & json_proto [08:07:51]process_json_proto [08:07:51]json parsed OK: [08:07:51]protocol is kg_v1.0 [08:07:51]action value=print_text [08:07:51]process_action print_text [08:07:51]cmd_print_text [08:07:51]ExternCall_PrintAddStr [08:07:51]wPrintStart [08:07:51]Write to MH i2c: 01 00 00 86 21 A7 [08:07:51]Write i2c OK [08:07:51]MH_I2C_Read... [08:07:51]Read from MH i2c: 01 [08:07:51]MH_I2C_Read... [08:07:51]Read from MH i2c: 01 07 00 [08:07:51]MH_I2C_Read... [08:07:51]Read from MH i2c: 01 07 00 86 21 00 00 00 00 00 FF 0F BC [08:07:51]RasterBufferAndPrint [08:07:51]line *****ТОВАРНЫЙ ЧЕК***** [08:07:51]line АЗС-91 [08:07:51]line Партнер нефть [08:07:51]line 02508201610067 [08:07:51]line Кассир : Арстанбеков Н. [08:07:51]line Счет N : (1)507953 [08:07:51]line 18.05.2024 07:50 [08:07:51]line ПРОДАЖА [08:07:51]line ТРК (МРК, ГНК): 41 [08:07:51]line Вид ГСМ : 2710194210 [08:07:51]line ДТ-К-5 [08:07:51]line 26.780 x 74.70 [08:07:51]line ИТОГ: 2000.47 [08:07:51]line Тип оплаты: Талоны: Топливная Карта [08:07:51]line 02750 [08:07:51]line ______________________ [08:07:51]line (подпись) [08:07:51]written 0, free lines is 4095 [08:07:52]Write to MH i2c: 01 00 00 9A 21 BB [08:07:52]Write i2c OK [08:07:52]MH_I2C_Read... [08:07:52]Read from MH i2c: 01 [08:07:52]MH_I2C_Read... [08:07:52]Read from MH i2c: 01 07 00 [08:07:52]MH_I2C_Read... [08:07:52]Read from MH i2c: 01 07 00 9A 21 00 00 00 00 00 10 0E E0 [08:07:52]RasterBufferAndPrint [08:07:52]line [08:07:52]line [08:07:52]line [08:07:52]line [08:07:52]line [08:07:52]written 0, free lines is 3602 [08:07:52]MH_Cut [08:07:52]Write to MH i2c: D1 01 00 A1 21 01 94 [08:07:52]Write i2c OK [08:07:52]MH_I2C_Read... [08:07:52]Read from MH i2c: D1 [08:07:52]MH_I2C_Read... [08:07:52]Read from MH i2c: D1 01 00 [08:07:52]MH_I2C_Read... [08:07:52]Read from MH i2c: D1 01 00 A1 21 00 93 [08:07:52]Write to MH i2c: 01 00 00 A2 21 C3 [08:07:52]Write i2c OK [08:07:52]MH_I2C_Read... [08:07:52]*** Cut start [08:07:52]*** Purtial cut [08:07:52]*** Stage 1: CUTSNS_PIN = 1 [08:07:53]Read from MH i2c: 01 [08:07:53]MH_I2C_Read... [08:07:53]*** Stop cut motor [08:07:53]*** Cut end [08:07:53]Read from MH i2c: 01 07 00 [08:07:53]MH_I2C_Read... [08:07:53]Read from MH i2c: 01 07 00 A2 21 00 00 00 00 00 FF 0F D8 [08:07:53]process_action print_text done [08:07:53]requested_data is exist [08:07:53]produce_requested_data [08:07:53]requested_item fm.sn is exist - process it [08:07:53]wFMCommunicate request_size=4 [08:07:53]MH_SAM_APDU [08:07:53]CAPDU: 80 11 00 00 [08:07:53]Write to MH i2c: E2 08 00 A3 21 80 11 00 00 00 00 00 00 3E [08:07:53]Write i2c OK [08:07:53]MH_I2C_Read... [08:07:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:07:53]Read from MH i2c: E2 [08:07:53]MH_I2C_Read... [08:07:53]Read from MH i2c: E2 17 00 [08:07:53]MH_I2C_Read... [08:07:53]Read from MH i2c: E2 17 00 A3 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 94 [08:07:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [08:07:53]wFMCommunicate OK [08:07:53]requested_item fd.num is exist - process it [08:07:53]SAM_PROTO_GetFieldsCounters [08:07:53]wFMCommunicate request_size=4 [08:07:53]MH_SAM_APDU [08:07:53]CAPDU: 80 13 00 00 [08:07:53]Write to MH i2c: E2 08 00 A4 21 80 13 00 00 00 00 00 00 41 [08:07:53]Write i2c OK [08:07:53]MH_I2C_Read... [08:07:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:07:53]Read from MH i2c: E2 [08:07:53]MH_I2C_Read... [08:07:53]Read from MH i2c: E2 62 00 [08:07:53]MH_I2C_Read... [08:07:53]Read from MH i2c: E2 62 00 A4 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 C3 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 D1 [08:07:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 C3 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:07:53]wFMCommunicate OK [08:07:53]SAM_PROTO_GetFieldsCounters done [08:07:53]requested_item shift.num is exist - process it [08:07:53]requested_item shift.opened is exist - process it [08:07:53]req_shift_opened [08:07:53]FM_GetShiftState [08:07:53]SAM_PROTO_GetShiftState [08:07:53]wFMCommunicate request_size=4 [08:07:53]MH_SAM_APDU [08:07:53]CAPDU: 80 13 01 00 [08:07:53]Write to MH i2c: E2 08 00 A5 21 80 13 01 00 00 00 00 00 43 [08:07:53]Write i2c OK [08:07:53]MH_I2C_Read... [08:07:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:07:53]Read from MH i2c: E2 [08:07:53]MH_I2C_Read... [08:07:53]Read from MH i2c: E2 0E 00 [08:07:53]MH_I2C_Read... [08:07:53]Read from MH i2c: E2 0E 00 A5 21 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 AA [08:07:53]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [08:07:53]wFMCommunicate OK [08:07:53]SAM_PROTO_GetShiftState done [08:07:53]FM_GetShiftState done [08:07:53]req_shift_opened done [08:07:53]requested_item shift.open_date is exist - process it [08:07:53]req_shift_open_date [08:07:53]req_shift_open_date done [08:07:53]produce_requested_data done [08:07:53]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67779,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [08:07:53]process_action_free print_text [08:07:53]json_value_free [08:07:53]json_value_free done [08:07:53]process_json_proto returns [08:07:53]Send response to host [08:07:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67779,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [08:07:53]free response buf [08:07:53]execute_script done [08:07:53]execute_script returns [08:07:53]free content buf [08:07:53]Sock 7.Close socket [08:07:53]Sock 7.Thread stoped [08:07:55]OFD Sender: No OFD packet to send [08:07:55]accept exits with 9 [08:07:55]New connection [08:07:55]New thread 3066752356 created [08:07:55]Thread 3066608996 joined [08:07:55]Waiting for new connection... [08:07:55] Sock 9.Parse request [08:07:55]Sock 9.Check first char [08:07:55]Sock 9.First char is OK [08:07:55]request: POST /json_proto HTTP/1.0 [08:07:55]Method: POST [08:07:55]URL: /json_proto [08:07:55]Method is POST - this is cgi request [08:07:55]url: /json_proto [08:07:55]query_string will be loaded in cgi processing [08:07:55]execute_cgi json_proto POST (null) [08:07:55]execute_cgi path=json_proto method=POST [08:07:55]POST find Content-Length [08:07:55]Host: 172.17.41.195:8080 [08:07:55]Content-Length: 794 [08:07:55]Content-Type: application/json [08:07:55] [08:07:55]POST finish read [08:07:55]Found Content-Length = 794 [08:07:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507954", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.80, "quantity" : 13.280, "sum" : 900.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 900.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:07:55]execute_script... [08:07:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507954", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.80, "quantity" : 13.280, "sum" : 900.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 900.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:07:55]POST & json_proto [08:07:55]process_json_proto [08:07:55]json parsed OK: [08:07:55]protocol is kg_v1.0 [08:07:55]action value=close_receipt [08:07:55]process_action close_receipt [08:07:55]cmd_close_receipt [08:07:55]MH_GetDate [08:07:55]Write to MH i2c: F0 00 00 A6 21 B6 [08:07:55]Write i2c OK [08:07:55]MH_I2C_Read... [08:07:55]Read from MH i2c: F0 [08:07:55]MH_I2C_Read... [08:07:55]Read from MH i2c: F0 09 00 [08:07:55]MH_I2C_Read... [08:07:55]Read from MH i2c: F0 09 00 A6 21 00 DF 61 48 66 FC 21 6F 64 9D [08:07:55]GetLastDocTimeStamp 1716017704 [08:07:55]current date 1716019679 [08:07:55]FM_GetShiftState [08:07:55]SAM_PROTO_GetShiftState [08:07:55]wFMCommunicate request_size=4 [08:07:55]MH_SAM_APDU [08:07:55]CAPDU: 80 13 01 00 [08:07:55]Write to MH i2c: E2 08 00 A7 21 80 13 01 00 00 00 00 00 45 [08:07:55]Write i2c OK [08:07:55]MH_I2C_Read... [08:07:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:07:55]Read from MH i2c: E2 [08:07:55]MH_I2C_Read... [08:07:55]Read from MH i2c: E2 0E 00 [08:07:55]MH_I2C_Read... [08:07:55]Read from MH i2c: E2 0E 00 A7 21 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 AC [08:07:55]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [08:07:55]wFMCommunicate OK [08:07:55]SAM_PROTO_GetShiftState done [08:07:55]FM_GetShiftState done [08:07:55]opened in 1715991483 [08:07:55]opened+sec_in_day 1716077883 [08:07:55]quantity*price = 90038 [08:07:55]sum+1 = 90039 [08:07:55]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 900.38 НСП 1% : 7.97 НДС 12% : 95.62 Наличными: 0.00 Безнал.: 900.38 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 19 18.05.2024 08:07 Смена: 359 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67780 ФПД: 97134565850805 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T080759&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67780&fm=97134565850805&tin=02508201610067®Number=0000000000091845&sum=90038 [08:07:56]StoreToDocumentArchive [08:07:56]shift 359 fd 67780 [08:07:56]save to /storage/0359/doc_00067780 [08:07:56]save last doc name /storage/0359/doc_00067780 to /storage/kkm_last_doc_name [08:07:56]save OK [08:07:56]Clear old archive folders... [08:07:56]ProcessDocumentItem done err = 0, tmpTLVsize=252 [08:07:56]tlvbuf is 01B1B930 [08:07:56]SAM_PROTO_ClearQueue [08:07:56]wFMCommunicate request_size=4 [08:07:56]MH_SAM_APDU [08:07:56]CAPDU: 80 09 00 00 [08:07:56]Write to MH i2c: E2 08 00 B4 21 80 09 00 00 00 00 00 00 47 [08:07:56]Write i2c OK [08:07:56]MH_I2C_Read... [08:07:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:07:56]Read from MH i2c: E2 [08:07:56]MH_I2C_Read... [08:07:56]Read from MH i2c: E2 03 00 [08:07:56]MH_I2C_Read... [08:07:56]Read from MH i2c: E2 03 00 B4 21 00 90 00 49 [08:07:56]RAPDU: 90 00 [08:07:56]wFMCommunicate OK [08:07:56]SAM_PROTO_ClearQueue done [08:07:56]KKMCreateOFDPacket [08:07:56]OFDProtocolAddRootSTLVToBuf [08:07:56]FM_MakeSignedData [08:07:56]FM_MakeSignedData [08:07:56]SAM_PROTO_SignData [08:07:56]wFMCommunicate request_size=4 [08:07:56]MH_SAM_APDU [08:07:56]CAPDU: 80 0D 01 02 [08:07:56]Write to MH i2c: E2 08 00 B5 21 80 0D 01 02 00 00 00 00 4F [08:07:56]Write i2c OK [08:07:56]MH_I2C_Read... [08:07:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:07:56]Read from MH i2c: E2 [08:07:56]MH_I2C_Read... [08:07:56]Read from MH i2c: E2 03 00 [08:07:56]MH_I2C_Read... [08:07:56]Read from MH i2c: E2 03 00 B5 21 00 90 00 4A [08:07:56]RAPDU: 90 00 [08:07:56]wFMCommunicate OK [08:07:56]wFMCommunicate request_size=255 [08:07:56]MH_SAM_APDU [08:07:56]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 33 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 B6 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 5F 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 DF 61 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 C4 08 01 00 35 04 06 00 [08:07:56]Write to MH i2c: E2 02 01 B6 21 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 33 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 B6 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 5F 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 DF 61 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 C4 08 01 00 35 04 06 00 00 00 48 [08:07:56]Write i2c OK [08:07:56]MH_I2C_Read... [08:07:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:07:56]Read from MH i2c: E2 [08:07:56]MH_I2C_Read... [08:07:56]Read from MH i2c: E2 03 00 [08:07:56]MH_I2C_Read... [08:07:56]Read from MH i2c: E2 03 00 B6 21 00 90 00 4B [08:07:56]RAPDU: 90 00 [08:07:56]wFMCommunicate OK [08:07:56]wFMCommunicate request_size=11 [08:07:56]MH_SAM_APDU [08:07:56]CAPDU: 80 0D 02 02 06 58 57 E7 4A FE B5 [08:07:56]Write to MH i2c: E2 0E 00 B7 21 80 0D 02 02 06 00 58 57 E7 4A FE B5 00 00 F1 [08:07:56]Write i2c OK [08:07:56]MH_I2C_Read... [08:07:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:07:56]Read from MH i2c: E2 [08:07:56]MH_I2C_Read... [08:07:56]Read from MH i2c: E2 03 00 [08:07:56]MH_I2C_Read... [08:07:56]Read from MH i2c: E2 03 00 B7 21 00 90 00 4C [08:07:56]RAPDU: 90 00 [08:07:56]wFMCommunicate OK [08:07:56]wFMCommunicate request_size=4 [08:07:56]MH_SAM_APDU [08:07:56]CAPDU: 80 0D 03 02 [08:07:56]Write to MH i2c: E2 08 00 B8 21 80 0D 03 02 00 00 00 00 54 [08:07:56]Write i2c OK [08:07:56]MH_I2C_Read... [08:07:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:07:56]Read from MH i2c: E2 [08:07:56]MH_I2C_Read... [08:07:56]Read from MH i2c: E2 0B 00 [08:07:56]MH_I2C_Read... [08:07:56]Read from MH i2c: E2 0B 00 B8 21 00 9F 76 D9 E4 95 5F 13 37 90 00 65 [08:07:56]RAPDU: 9F 76 D9 E4 95 5F 13 37 90 00 [08:07:56]wFMCommunicate OK [08:07:56]SAM_PROTO_SignData done [08:07:56]FM_MakeSignedData done [08:07:56]CreateOFDProtocolMessage [08:07:56]wFMCommunicate request_size=4 [08:07:56]MH_SAM_APDU [08:07:56]CAPDU: 80 11 00 00 [08:07:56]Write to MH i2c: E2 08 00 B9 21 80 11 00 00 00 00 00 00 54 [08:07:56]Write i2c OK [08:07:56]MH_I2C_Read... [08:07:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:07:56]Read from MH i2c: E2 [08:07:56]MH_I2C_Read... [08:07:56]Read from MH i2c: E2 17 00 [08:07:56]MH_I2C_Read... [08:07:56]Read from MH i2c: E2 17 00 B9 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 AA [08:07:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [08:07:56]wFMCommunicate OK [08:07:56]CreateOFDProtocolMessage done [08:07:56]OFDSenderStorePacket 67780 [08:07:56]StoreOFDPacket docnum=67780 [08:07:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 01 00 00 E9 F1 08 01 85 7B 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 33 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 B6 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 5F 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 DF 61 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 C4 08 01 00 35 04 06 00 58 57 E7 4A FE B5 9F 76 D9 E4 95 5F 13 37 [08:07:56]CheckFolder [08:07:56]dirname=/storage/ofd_packets [08:07:56]CheckFolder done [08:07:56]ProducePacketName [08:07:56]name=ofd_packets/00067780 [08:07:56]NVStorageSaveData ofd_packets/00067780 [08:07:56]File name is /storage/ofd_packets/00067780 [08:07:56]Write 302 bytes [08:07:56]NVStorageSaveData done [08:07:56]OFDSenderStorePacket done [08:07:56]KKMCreateOFDPacket done [08:07:56]NVStorageSaveData kkm_last_timestamp [08:07:56]File name is /storage/kkm_last_timestamp [08:07:56]Write 4 bytes [08:07:56]NVStorageSaveData done [08:07:56]ExternCall_PrintAddStr [08:07:56]wPrintStart [08:07:56]Write to MH i2c: 01 00 00 BA 21 DB [08:07:56]Write i2c OK [08:07:56]MH_I2C_Read... [08:07:56]Read from MH i2c: 01 [08:07:56]MH_I2C_Read... [08:07:56]Read from MH i2c: 01 07 00 [08:07:56]MH_I2C_Read... [08:07:56]Read from MH i2c: 01 07 00 BA 21 00 00 00 00 00 FF 0F F0 [08:07:56]RasterBufferAndPrint [08:07:56]line Счет N : (1)507954 [08:07:56]line ИНН: 02508201610067 [08:07:56]line Контрольно-Кассовый Чек [08:07:56]line ПРОДАЖА [08:07:56]line ТРК (МРК, ГНК) : 32 [08:07:56]line Товар: 2710124130 [08:07:56]line Super-92-К-5 [08:07:56]line 13.280 * 67.80 [08:07:56]line = 900.38 [08:07:56]line НДС 12% НСП 1% [08:07:56]line > о реализуемом товаре [08:07:56]line ИТОГО: 900.38 [08:07:56]line НСП 1% : 7.97 [08:07:56]line НДС 12% : 95.62 [08:07:56]line Наличными: 0.00 [08:07:56]line Безнал.: 900.38 [08:07:56]line Место: АЗС № 91 "Партнер Нефть" [08:07:56]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [08:07:56]line СНО: Общий режим [08:07:56]line Чек 19 18.05.2024 08:07 [08:07:56]line Смена: 359 ФФД: 1.0 [08:07:56]line ЗНМ: 0300000119 [08:07:56]line РНМ: 0000000000091845 [08:07:56]line Версия ККМ: 001 [08:07:56]line Платежная система: O! деньги [08:07:56]line ФМ: 0000000000871829 [08:07:56]line ФД: 67780 [08:07:56]line ФПД: 97134565850805 [08:07:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T080759&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67780&fm=97134565850805&tin=02508201610067®Number=0000000000091845&sum=90038 [08:07:56]written 0, free lines is 4095 [08:07:56]OFD Sender: Processing packet 67780 [packets to send 35, broken 34] [08:07:56]ProducePacketName [08:07:56]name=ofd_packets/00067780 [08:07:56]OFD Sender: To server: pG, [08:07:56]CommunicateWithHost lk.salyk.kg:30040 [08:07:56]ConnectInit lk.salyk.kg [08:07:56]Connected sock=10 [08:07:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 01 00 00 E9 F1 08 01 85 7B 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 33 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 B6 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 5F 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 DF 61 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 C4 08 01 00 35 04 06 00 58 57 E7 4A FE B5 9F 76 D9 E4 95 5F 13 37 [08:07:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 96 C7 47 00 AD F1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 C4 08 01 00 F4 03 04 00 B5 09 48 66 B6 04 01 00 00 15 A5 D7 55 B6 7A BF F1 [08:07:57]CommunicateWithHost err = 0 [08:07:57]CheckOFDResponse [08:07:57]1017 (14) - 77093643461234 [08:07:57]1041 (16) - 0000000000871829 [08:07:57]1040 (4) - 67780 [08:07:57]1012 (4) - 18.05.2024 01:51 [08:07:57]1206 (1) - 0 [08:07:57]OFD Sender: Remove packet 67780 [08:07:57]ProducePacketName [08:07:57]name=ofd_packets/00067780 [08:07:57]NVStorageDeleteData [08:07:57]Write to MH i2c: 01 00 00 E3 21 04 [08:07:57]Write i2c OK [08:07:57]MH_I2C_Read... [08:07:57]Read from MH i2c: 01 [08:07:57]MH_I2C_Read... [08:07:57]Read from MH i2c: 01 07 00 [08:07:57]MH_I2C_Read... [08:07:57]Read from MH i2c: 01 07 00 E3 21 00 00 00 00 00 EB 0C 02 [08:07:57]RasterBufferAndPrint [08:07:57]line [08:07:57]line [08:07:57]line [08:07:57]line [08:07:57]line [08:07:57]written 0, free lines is 3315 [08:07:57]MH_Cut [08:07:57]Write to MH i2c: D1 01 00 EA 21 01 DD [08:07:57]Write i2c OK [08:07:57]MH_I2C_Read... [08:07:57]Read from MH i2c: D1 [08:07:57]MH_I2C_Read... [08:07:57]Read from MH i2c: D1 01 00 [08:07:57]MH_I2C_Read... [08:07:57]Read from MH i2c: D1 01 00 EA 21 00 DC [08:07:57]Write to MH i2c: 01 00 00 EB 21 0C [08:07:57]Write i2c OK [08:07:57]MH_I2C_Read... [08:07:57]OFD Sender: No OFD packet to send [08:07:58]*** Cut start [08:07:58]*** Purtial cut [08:07:58]*** CUTSNS_PIN = 0 [08:07:58]*** Stage 1: CUTSNS_PIN = 1 [08:08:00]Read from MH i2c: 01 [08:08:00]MH_I2C_Read... [08:08:00]*** Stop cut motor [08:08:00]*** Cut end [08:08:00]Read from MH i2c: 01 07 00 [08:08:00]MH_I2C_Read... [08:08:00]Read from MH i2c: 01 07 00 EB 21 00 00 00 00 00 FF 0F 21 [08:08:00]process_action close_receipt done [08:08:00]requested_data is exist [08:08:00]produce_requested_data [08:08:00]requested_item fm.sn is exist - process it [08:08:00]wFMCommunicate request_size=4 [08:08:00]MH_SAM_APDU [08:08:00]CAPDU: 80 11 00 00 [08:08:00]Write to MH i2c: E2 08 00 EC 21 80 11 00 00 00 00 00 00 87 [08:08:00]Write i2c OK [08:08:00]MH_I2C_Read... [08:08:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:08:00]Read from MH i2c: E2 [08:08:00]MH_I2C_Read... [08:08:00]Read from MH i2c: E2 17 00 [08:08:00]MH_I2C_Read... [08:08:00]Read from MH i2c: E2 17 00 EC 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 DD [08:08:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [08:08:00]wFMCommunicate OK [08:08:00]requested_item fd.num is exist - process it [08:08:00]SAM_PROTO_GetFieldsCounters [08:08:00]wFMCommunicate request_size=4 [08:08:00]MH_SAM_APDU [08:08:00]CAPDU: 80 13 00 00 [08:08:00]Write to MH i2c: E2 08 00 ED 21 80 13 00 00 00 00 00 00 8A [08:08:00]Write i2c OK [08:08:00]MH_I2C_Read... [08:08:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:08:00]Read from MH i2c: E2 [08:08:00]MH_I2C_Read... [08:08:00]Read from MH i2c: E2 62 00 [08:08:00]MH_I2C_Read... [08:08:00]Read from MH i2c: E2 62 00 ED 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 C4 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 13 00 00 00 5E 04 04 00 13 00 00 00 57 04 04 00 14 00 00 00 19 04 04 00 00 00 00 00 90 00 1E [08:08:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 C4 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 13 00 00 00 5E 04 04 00 13 00 00 00 57 04 04 00 14 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:08:00]wFMCommunicate OK [08:08:00]SAM_PROTO_GetFieldsCounters done [08:08:00]requested_item shift.num is exist - process it [08:08:00]requested_item shift.opened is exist - process it [08:08:00]req_shift_opened [08:08:00]FM_GetShiftState [08:08:00]SAM_PROTO_GetShiftState [08:08:00]wFMCommunicate request_size=4 [08:08:00]MH_SAM_APDU [08:08:00]CAPDU: 80 13 01 00 [08:08:00]Write to MH i2c: E2 08 00 EE 21 80 13 01 00 00 00 00 00 8C [08:08:00]Write i2c OK [08:08:00]MH_I2C_Read... [08:08:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:08:00]Read from MH i2c: E2 [08:08:00]MH_I2C_Read... [08:08:00]Read from MH i2c: E2 0E 00 [08:08:00]MH_I2C_Read... [08:08:00]Read from MH i2c: E2 0E 00 EE 21 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 F3 [08:08:00]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [08:08:00]wFMCommunicate OK [08:08:00]SAM_PROTO_GetShiftState done [08:08:00]FM_GetShiftState done [08:08:00]req_shift_opened done [08:08:00]requested_item shift.open_date is exist - process it [08:08:00]req_shift_open_date [08:08:00]req_shift_open_date done [08:08:00]produce_requested_data done [08:08:00]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67780,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [08:08:00]process_action_free close_receipt [08:08:00]json_value_free [08:08:00]json_value_free done [08:08:00]process_json_proto returns [08:08:00]Send response to host [08:08:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67780,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [08:08:00]free response buf [08:08:00]execute_script done [08:08:00]execute_script returns [08:08:00]free content buf [08:08:00]Sock 9.Close socket [08:08:00]Sock 9.Thread stoped [08:08:02]OFD Sender: No OFD packet to send [08:08:07]OFD Sender: No OFD packet to send [08:08:12]OFD Sender: No OFD packet to send [08:08:17]OFD Sender: No OFD packet to send [08:08:22]OFD Sender: No OFD packet to send [08:08:27]OFD Sender: No OFD packet to send [08:08:32]OFD Sender: No OFD packet to send [08:08:37]OFD Sender: No OFD packet to send [08:08:42]OFD Sender: No OFD packet to send [08:08:43]accept exits with 7 [08:08:43]New connection [08:08:43]New thread 3066608996 created [08:08:43]Thread 3066752356 joined [08:08:43]Waiting for new connection... [08:08:43] Sock 7.Parse request [08:08:43]Sock 7.Check first char [08:08:43]Sock 7.First char is OK [08:08:43]request: POST /json_proto HTTP/1.0 [08:08:43]Method: POST [08:08:43]URL: /json_proto [08:08:43]Method is POST - this is cgi request [08:08:43]url: /json_proto [08:08:43]query_string will be loaded in cgi processing [08:08:43]execute_cgi json_proto POST (null) [08:08:43]execute_cgi path=json_proto method=POST [08:08:43]POST find Content-Length [08:08:43]Host: 172.17.41.195:8080 [08:08:43]Content-Length: 674 [08:08:43]Content-Type: application/json [08:08:43] [08:08:43]POST finish read [08:08:43]Found Content-Length = 674 [08:08:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507955", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 6.700, "sum" : 500.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:08:43]execute_script... [08:08:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507955", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 6.700, "sum" : 500.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:08:43]POST & json_proto [08:08:43]process_json_proto [08:08:43]json parsed OK: [08:08:43]protocol is kg_v1.0 [08:08:43]action value=close_receipt [08:08:43]process_action close_receipt [08:08:43]cmd_close_receipt [08:08:43]MH_GetDate [08:08:43]Write to MH i2c: F0 00 00 EF 21 FF [08:08:43]Write i2c OK [08:08:43]MH_I2C_Read... [08:08:43]Read from MH i2c: F0 [08:08:43]MH_I2C_Read... [08:08:43]Read from MH i2c: F0 09 00 [08:08:43]MH_I2C_Read... [08:08:43]Read from MH i2c: F0 09 00 EF 21 00 10 62 48 66 FC 21 6F 64 18 [08:08:43]GetLastDocTimeStamp 1716019679 [08:08:43]current date 1716019728 [08:08:43]FM_GetShiftState [08:08:43]SAM_PROTO_GetShiftState [08:08:43]wFMCommunicate request_size=4 [08:08:43]MH_SAM_APDU [08:08:43]CAPDU: 80 13 01 00 [08:08:43]Write to MH i2c: E2 08 00 F0 21 80 13 01 00 00 00 00 00 8E [08:08:43]Write i2c OK [08:08:43]MH_I2C_Read... [08:08:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:08:43]Read from MH i2c: E2 [08:08:43]MH_I2C_Read... [08:08:43]Read from MH i2c: E2 0E 00 [08:08:43]MH_I2C_Read... [08:08:43]Read from MH i2c: E2 0E 00 F0 21 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 F5 [08:08:43]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [08:08:43]wFMCommunicate OK [08:08:43]SAM_PROTO_GetShiftState done [08:08:43]FM_GetShiftState done [08:08:43]opened in 1715991483 [08:08:43]opened+sec_in_day 1716077883 [08:08:43]quantity*price = 50049 [08:08:43]sum+1 = 50050 [08:08:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.15 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 20 18.05.2024 08:08 Смена: 359 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67781 ФПД: 111903814680849 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T080848&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67781&fm=111903814680849&tin=02508201610067®Number=0000000000091845&sum=50000 [08:08:45]StoreToDocumentArchive [08:08:45]shift 359 fd 67781 [08:08:45]save to /storage/0359/doc_00067781 [08:08:45]save last doc name /storage/0359/doc_00067781 to /storage/kkm_last_doc_name [08:08:45]save OK [08:08:45]Clear old archive folders... [08:08:45]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:08:45]tlvbuf is 01AF6BB0 [08:08:45]SAM_PROTO_ClearQueue [08:08:45]wFMCommunicate request_size=4 [08:08:45]MH_SAM_APDU [08:08:45]CAPDU: 80 09 00 00 [08:08:45]Write to MH i2c: E2 08 00 FD 21 80 09 00 00 00 00 00 00 90 [08:08:45]Write i2c OK [08:08:45]MH_I2C_Read... [08:08:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:08:45]Read from MH i2c: E2 [08:08:45]MH_I2C_Read... [08:08:45]Read from MH i2c: E2 03 00 [08:08:45]MH_I2C_Read... [08:08:45]Read from MH i2c: E2 03 00 FD 21 00 90 00 92 [08:08:45]RAPDU: 90 00 [08:08:45]wFMCommunicate OK [08:08:45]SAM_PROTO_ClearQueue done [08:08:45]KKMCreateOFDPacket [08:08:45]OFDProtocolAddRootSTLVToBuf [08:08:45]FM_MakeSignedData [08:08:45]FM_MakeSignedData [08:08:45]SAM_PROTO_SignData [08:08:45]wFMCommunicate request_size=4 [08:08:45]MH_SAM_APDU [08:08:45]CAPDU: 80 0D 01 02 [08:08:45]Write to MH i2c: E2 08 00 FE 21 80 0D 01 02 00 00 00 00 98 [08:08:45]Write i2c OK [08:08:45]MH_I2C_Read... [08:08:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:08:45]Read from MH i2c: E2 [08:08:45]MH_I2C_Read... [08:08:45]Read from MH i2c: E2 03 00 [08:08:45]MH_I2C_Read... [08:08:45]Read from MH i2c: E2 03 00 FE 21 00 90 00 93 [08:08:45]RAPDU: 90 00 [08:08:45]wFMCommunicate OK [08:08:45]wFMCommunicate request_size=255 [08:08:45]MH_SAM_APDU [08:08:45]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2C 1A 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 10 62 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 C5 08 01 00 35 04 06 00 65 C6 A3 1F [08:08:45]Write to MH i2c: E2 02 01 FF 21 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2C 1A 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 10 62 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 C5 08 01 00 35 04 06 00 65 C6 A3 1F 00 00 DF [08:08:45]Write i2c OK [08:08:45]MH_I2C_Read... [08:08:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:08:45]Read from MH i2c: E2 [08:08:45]MH_I2C_Read... [08:08:45]Read from MH i2c: E2 03 00 [08:08:45]MH_I2C_Read... [08:08:45]Read from MH i2c: E2 03 00 FF 21 00 90 00 94 [08:08:45]RAPDU: 90 00 [08:08:45]wFMCommunicate OK [08:08:45]wFMCommunicate request_size=7 [08:08:45]MH_SAM_APDU [08:08:45]CAPDU: 80 0D 02 02 02 81 11 [08:08:45]Write to MH i2c: E2 0A 00 00 22 80 0D 02 02 02 00 81 11 00 00 32 [08:08:45]Write i2c OK [08:08:45]MH_I2C_Read... [08:08:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:08:45]Read from MH i2c: E2 [08:08:45]MH_I2C_Read... [08:08:45]Read from MH i2c: E2 03 00 [08:08:45]MH_I2C_Read... [08:08:45]Read from MH i2c: E2 03 00 00 22 00 90 00 96 [08:08:45]RAPDU: 90 00 [08:08:45]wFMCommunicate OK [08:08:45]wFMCommunicate request_size=4 [08:08:45]MH_SAM_APDU [08:08:45]CAPDU: 80 0D 03 02 [08:08:45]Write to MH i2c: E2 08 00 01 22 80 0D 03 02 00 00 00 00 9E [08:08:45]Write i2c OK [08:08:45]MH_I2C_Read... [08:08:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:08:45]Read from MH i2c: E2 [08:08:45]MH_I2C_Read... [08:08:45]Read from MH i2c: E2 0B 00 [08:08:45]MH_I2C_Read... [08:08:45]Read from MH i2c: E2 0B 00 01 22 00 2B 75 41 F1 75 79 D6 18 90 00 4D [08:08:45]RAPDU: 2B 75 41 F1 75 79 D6 18 90 00 [08:08:45]wFMCommunicate OK [08:08:45]SAM_PROTO_SignData done [08:08:45]FM_MakeSignedData done [08:08:45]CreateOFDProtocolMessage [08:08:45]wFMCommunicate request_size=4 [08:08:45]MH_SAM_APDU [08:08:45]CAPDU: 80 11 00 00 [08:08:45]Write to MH i2c: E2 08 00 02 22 80 11 00 00 00 00 00 00 9E [08:08:45]Write i2c OK [08:08:45]MH_I2C_Read... [08:08:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:08:45]Read from MH i2c: E2 [08:08:45]MH_I2C_Read... [08:08:45]Read from MH i2c: E2 17 00 [08:08:45]MH_I2C_Read... [08:08:45]Read from MH i2c: E2 17 00 02 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 F4 [08:08:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [08:08:45]wFMCommunicate OK [08:08:45]CreateOFDProtocolMessage done [08:08:45]OFDSenderStorePacket 67781 [08:08:45]StoreOFDPacket docnum=67781 [08:08:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 7E 08 04 01 95 29 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2C 1A 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 10 62 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 C5 08 01 00 35 04 06 00 65 C6 A3 1F 81 11 2B 75 41 F1 75 79 D6 18 [08:08:45]CheckFolder [08:08:45]dirname=/storage/ofd_packets [08:08:45]CheckFolder done [08:08:45]ProducePacketName [08:08:45]name=ofd_packets/00067781 [08:08:45]NVStorageSaveData ofd_packets/00067781 [08:08:45]File name is /storage/ofd_packets/00067781 [08:08:45]Write 298 bytes [08:08:45]NVStorageSaveData done [08:08:45]OFDSenderStorePacket done [08:08:45]KKMCreateOFDPacket done [08:08:45]NVStorageSaveData kkm_last_timestamp [08:08:45]File name is /storage/kkm_last_timestamp [08:08:45]Write 4 bytes [08:08:45]NVStorageSaveData done [08:08:45]ExternCall_PrintAddStr [08:08:45]wPrintStart [08:08:45]Write to MH i2c: 01 00 00 03 22 25 [08:08:45]Write i2c OK [08:08:45]MH_I2C_Read... [08:08:45]Read from MH i2c: 01 [08:08:45]MH_I2C_Read... [08:08:45]Read from MH i2c: 01 07 00 [08:08:45]MH_I2C_Read... [08:08:45]Read from MH i2c: 01 07 00 03 22 00 00 00 00 00 FF 0F 3A [08:08:45]RasterBufferAndPrint [08:08:45]line Счет N : (1)507955 [08:08:45]line ИНН: 02508201610067 [08:08:45]line Контрольно-Кассовый Чек [08:08:45]line ПРОДАЖА [08:08:45]line ТРК (МРК, ГНК) : 21 [08:08:45]line Товар: 2710194210 [08:08:45]line ДТ-К-5 [08:08:45]line 6.700 * 74.70 [08:08:45]line = 500.49 [08:08:45]line НДС 12% НСП 1% [08:08:45]line > о реализуемом товаре [08:08:45]line ОКРУГЛЕНИЕ: -0.49 [08:08:45]line ИТОГО: 500.00 [08:08:45]line Внесено: 500.00 [08:08:45]line СДАЧА: 0.00 [08:08:45]line НСП 1% : 4.43 [08:08:45]line НДС 12% : 53.15 [08:08:45]line Наличными: 500.00 [08:08:45]line Безнал.: 0.00 [08:08:45]line Место: АЗС № 91 "Партнер Нефть" [08:08:45]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [08:08:45]line СНО: Общий режим [08:08:45]line Чек 20 18.05.2024 08:08 [08:08:45]line Смена: 359 ФФД: 1.0 [08:08:45]line ЗНМ: 0300000119 [08:08:45]line РНМ: 0000000000091845 [08:08:45]line Версия ККМ: 001 [08:08:45]line ФМ: 0000000000871829 [08:08:45]line ФД: 67781 [08:08:45]line ФПД: 111903814680849 [08:08:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T080848&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67781&fm=111903814680849&tin=02508201610067®Number=0000000000091845&sum=50000 [08:08:45]OFD Sender: Processing packet 67781 [packets to send 35, broken 34] [08:08:45]ProducePacketName [08:08:45]name=ofd_packets/00067781 [08:08:45]OFD Sender: To server: pG, [08:08:45]CommunicateWithHost lk.salyk.kg:30040 [08:08:45]ConnectInit lk.salyk.kg [08:08:45]written 0, free lines is 4095 [08:08:45]Connected sock=10 [08:08:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 7E 08 04 01 95 29 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2C 1A 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 10 62 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 C5 08 01 00 35 04 06 00 65 C6 A3 1F 81 11 2B 75 41 F1 75 79 D6 18 [08:08:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 DA 88 47 00 74 DC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 C5 08 01 00 F4 03 04 00 E6 09 48 66 B6 04 01 00 00 6B 31 E9 38 A3 88 BF 77 [08:08:46]CommunicateWithHost err = 0 [08:08:46]CheckOFDResponse [08:08:46]1017 (14) - 77093643461234 [08:08:46]1041 (16) - 0000000000871829 [08:08:46]1040 (4) - 67781 [08:08:46]1012 (4) - 18.05.2024 01:52 [08:08:46]1206 (1) - 0 [08:08:46]OFD Sender: Remove packet 67781 [08:08:46]ProducePacketName [08:08:46]name=ofd_packets/00067781 [08:08:46]NVStorageDeleteData [08:08:46]Write to MH i2c: 01 00 00 2D 22 4F [08:08:46]Write i2c OK [08:08:46]MH_I2C_Read... [08:08:46]Read from MH i2c: 01 [08:08:46]MH_I2C_Read... [08:08:46]Read from MH i2c: 01 07 00 [08:08:46]MH_I2C_Read... [08:08:46]Read from MH i2c: 01 07 00 2D 22 00 00 00 00 00 CB 0C 2D [08:08:46]RasterBufferAndPrint [08:08:46]line [08:08:46]line [08:08:46]line [08:08:46]line [08:08:46]line [08:08:46]written 0, free lines is 3282 [08:08:46]MH_Cut [08:08:46]Write to MH i2c: D1 01 00 34 22 01 28 [08:08:46]Write i2c OK [08:08:46]MH_I2C_Read... [08:08:46]Read from MH i2c: D1 [08:08:46]MH_I2C_Read... [08:08:46]Read from MH i2c: D1 01 00 [08:08:46]MH_I2C_Read... [08:08:46]Read from MH i2c: D1 01 00 34 22 00 27 [08:08:46]Write to MH i2c: 01 00 00 35 22 57 [08:08:46]Write i2c OK [08:08:46]MH_I2C_Read... [08:08:46]OFD Sender: No OFD packet to send [08:08:47]*** Cut start [08:08:47]*** Purtial cut [08:08:47]*** Stage 1: CUTSNS_PIN = 1 [08:08:47]Read from MH i2c: 01 [08:08:47]MH_I2C_Read... [08:08:47]*** Stop cut motor [08:08:47]*** Cut end [08:08:47]Read from MH i2c: 01 07 00 [08:08:47]MH_I2C_Read... [08:08:47]Read from MH i2c: 01 07 00 35 22 00 00 00 00 00 FF 0F 6C [08:08:47]process_action close_receipt done [08:08:47]requested_data is exist [08:08:47]produce_requested_data [08:08:47]requested_item fm.sn is exist - process it [08:08:47]wFMCommunicate request_size=4 [08:08:47]MH_SAM_APDU [08:08:47]CAPDU: 80 11 00 00 [08:08:47]Write to MH i2c: E2 08 00 36 22 80 11 00 00 00 00 00 00 D2 [08:08:47]Write i2c OK [08:08:47]MH_I2C_Read... [08:08:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:08:47]Read from MH i2c: E2 [08:08:47]MH_I2C_Read... [08:08:47]Read from MH i2c: E2 17 00 [08:08:47]MH_I2C_Read... [08:08:47]Read from MH i2c: E2 17 00 36 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 28 [08:08:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [08:08:47]wFMCommunicate OK [08:08:47]requested_item fd.num is exist - process it [08:08:47]SAM_PROTO_GetFieldsCounters [08:08:47]wFMCommunicate request_size=4 [08:08:47]MH_SAM_APDU [08:08:47]CAPDU: 80 13 00 00 [08:08:47]Write to MH i2c: E2 08 00 37 22 80 13 00 00 00 00 00 00 D5 [08:08:47]Write i2c OK [08:08:47]MH_I2C_Read... [08:08:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:08:47]Read from MH i2c: E2 [08:08:47]MH_I2C_Read... [08:08:47]Read from MH i2c: E2 62 00 [08:08:47]MH_I2C_Read... [08:08:47]Read from MH i2c: E2 62 00 37 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 C5 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 6D [08:08:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 C5 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:08:47]wFMCommunicate OK [08:08:47]SAM_PROTO_GetFieldsCounters done [08:08:47]requested_item shift.num is exist - process it [08:08:47]requested_item shift.opened is exist - process it [08:08:47]req_shift_opened [08:08:47]FM_GetShiftState [08:08:47]SAM_PROTO_GetShiftState [08:08:47]wFMCommunicate request_size=4 [08:08:47]MH_SAM_APDU [08:08:47]CAPDU: 80 13 01 00 [08:08:47]Write to MH i2c: E2 08 00 38 22 80 13 01 00 00 00 00 00 D7 [08:08:47]Write i2c OK [08:08:47]MH_I2C_Read... [08:08:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:08:47]Read from MH i2c: E2 [08:08:47]MH_I2C_Read... [08:08:47]Read from MH i2c: E2 0E 00 [08:08:47]MH_I2C_Read... [08:08:47]Read from MH i2c: E2 0E 00 38 22 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 3E [08:08:47]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [08:08:47]wFMCommunicate OK [08:08:47]SAM_PROTO_GetShiftState done [08:08:47]FM_GetShiftState done [08:08:47]req_shift_opened done [08:08:47]requested_item shift.open_date is exist - process it [08:08:47]req_shift_open_date [08:08:47]req_shift_open_date done [08:08:47]produce_requested_data done [08:08:47]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67781,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [08:08:47]process_action_free close_receipt [08:08:47]json_value_free [08:08:47]json_value_free done [08:08:47]process_json_proto returns [08:08:47]Send response to host [08:08:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67781,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [08:08:47]free response buf [08:08:47]execute_script done [08:08:47]execute_script returns [08:08:47]free content buf [08:08:47]Sock 7.Close socket [08:08:47]Sock 7.Thread stoped [08:08:51]OFD Sender: No OFD packet to send [08:08:56]OFD Sender: No OFD packet to send [08:09:01]OFD Sender: No OFD packet to send [08:09:06]OFD Sender: No OFD packet to send [08:09:11]OFD Sender: No OFD packet to send [08:09:16]OFD Sender: No OFD packet to send [08:09:21]OFD Sender: No OFD packet to send [08:09:26]OFD Sender: No OFD packet to send [08:09:31]OFD Sender: No OFD packet to send [08:09:36]OFD Sender: No OFD packet to send [08:09:41]OFD Sender: No OFD packet to send [08:09:46]OFD Sender: No OFD packet to send [08:09:51]OFD Sender: No OFD packet to send [08:09:56]OFD Sender: No OFD packet to send [08:10:01]OFD Sender: No OFD packet to send [08:10:06]OFD Sender: No OFD packet to send [08:10:11]OFD Sender: No OFD packet to send [08:10:16]OFD Sender: No OFD packet to send [08:10:21]OFD Sender: No OFD packet to send [08:10:26]OFD Sender: No OFD packet to send [08:10:31]OFD Sender: No OFD packet to send [08:10:36]OFD Sender: No OFD packet to send [08:10:41]OFD Sender: No OFD packet to send [08:10:46]OFD Sender: No OFD packet to send [08:10:51]OFD Sender: No OFD packet to send [08:10:56]OFD Sender: No OFD packet to send [08:11:01]OFD Sender: No OFD packet to send [08:11:06]OFD Sender: No OFD packet to send [08:11:11]OFD Sender: No OFD packet to send [08:11:16]OFD Sender: No OFD packet to send [08:11:21]OFD Sender: No OFD packet to send [08:11:26]OFD Sender: No OFD packet to send [08:11:31]OFD Sender: No OFD packet to send [08:11:36]OFD Sender: No OFD packet to send [08:11:41]OFD Sender: No OFD packet to send [08:11:46]OFD Sender: No OFD packet to send [08:11:51]OFD Sender: No OFD packet to send [08:11:56]OFD Sender: No OFD packet to send [08:12:01]OFD Sender: No OFD packet to send [08:12:06]OFD Sender: No OFD packet to send [08:12:11]OFD Sender: No OFD packet to send [08:12:16]OFD Sender: No OFD packet to send [08:12:21]OFD Sender: No OFD packet to send [08:12:26]OFD Sender: No OFD packet to send [08:12:31]OFD Sender: No OFD packet to send [08:12:36]OFD Sender: No OFD packet to send [08:12:41]OFD Sender: No OFD packet to send [08:12:46]OFD Sender: No OFD packet to send [08:12:51]OFD Sender: No OFD packet to send [08:12:56]OFD Sender: No OFD packet to send [08:13:01]OFD Sender: No OFD packet to send [08:13:06]OFD Sender: No OFD packet to send [08:13:11]OFD Sender: No OFD packet to send [08:13:16]OFD Sender: No OFD packet to send [08:13:21]OFD Sender: No OFD packet to send [08:13:26]OFD Sender: No OFD packet to send [08:13:31]OFD Sender: No OFD packet to send [08:13:36]OFD Sender: No OFD packet to send [08:13:37]accept exits with 9 [08:13:37]New connection [08:13:37]New thread 3066752356 created [08:13:37]Thread 3066608996 joined [08:13:37]Waiting for new connection... [08:13:37] Sock 9.Parse request [08:13:37]Sock 9.Check first char [08:13:37]Sock 9.First char is OK [08:13:37]request: POST /json_proto HTTP/1.0 [08:13:37]Method: POST [08:13:37]URL: /json_proto [08:13:37]Method is POST - this is cgi request [08:13:37]url: /json_proto [08:13:37]query_string will be loaded in cgi processing [08:13:37]execute_cgi json_proto POST (null) [08:13:37]execute_cgi path=json_proto method=POST [08:13:37]POST find Content-Length [08:13:37]Host: 172.17.41.195:8080 [08:13:37]Content-Length: 1209 [08:13:37]Content-Type: application/json [08:13:37] [08:13:37]POST finish read [08:13:37]Found Content-Length = 1209 [08:13:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0440\u0441\u0442\u0430\u043D\u0431\u0435\u043A\u043E\u0432 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)507956\u000A18.05.2024 07:56\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 26.780 x 74.70\u000A\u0418\u0422\u041E\u0413: 2000.47\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:13:37]execute_script... [08:13:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0440\u0441\u0442\u0430\u043D\u0431\u0435\u043A\u043E\u0432 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)507956\u000A18.05.2024 07:56\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 26.780 x 74.70\u000A\u0418\u0422\u041E\u0413: 2000.47\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:13:37]POST & json_proto [08:13:37]process_json_proto [08:13:37]json parsed OK: [08:13:37]protocol is kg_v1.0 [08:13:37]action value=print_text [08:13:37]process_action print_text [08:13:37]cmd_print_text [08:13:37]ExternCall_PrintAddStr [08:13:37]wPrintStart [08:13:37]Write to MH i2c: 01 00 00 39 22 5B [08:13:37]Write i2c OK [08:13:37]MH_I2C_Read... [08:13:37]Read from MH i2c: 01 [08:13:37]MH_I2C_Read... [08:13:37]Read from MH i2c: 01 07 00 [08:13:37]MH_I2C_Read... [08:13:37]Read from MH i2c: 01 07 00 39 22 00 00 00 00 00 FF 0F 70 [08:13:37]RasterBufferAndPrint [08:13:37]line *****ТОВАРНЫЙ ЧЕК***** [08:13:37]line АЗС-91 [08:13:37]line Партнер нефть [08:13:37]line 02508201610067 [08:13:37]line Кассир : Арстанбеков Н. [08:13:37]line Счет N : (1)507956 [08:13:37]line 18.05.2024 07:56 [08:13:37]line ПРОДАЖА [08:13:37]line ТРК (МРК, ГНК): 31 [08:13:37]line Вид ГСМ : 2710194210 [08:13:37]line ДТ-К-5 [08:13:37]line 26.780 x 74.70 [08:13:37]line ИТОГ: 2000.47 [08:13:37]line Тип оплаты: Талоны: Топливная Карта [08:13:37]line 02750 [08:13:37]line ______________________ [08:13:37]line (подпись) [08:13:37]written 0, free lines is 4095 [08:13:38]Write to MH i2c: 01 00 00 4D 22 6F [08:13:38]Write i2c OK [08:13:38]MH_I2C_Read... [08:13:38]Read from MH i2c: 01 [08:13:38]MH_I2C_Read... [08:13:38]Read from MH i2c: 01 07 00 [08:13:38]MH_I2C_Read... [08:13:38]Read from MH i2c: 01 07 00 4D 22 00 00 00 00 00 10 0E 94 [08:13:38]RasterBufferAndPrint [08:13:38]line [08:13:38]line [08:13:38]line [08:13:38]line [08:13:38]line [08:13:38]written 0, free lines is 3602 [08:13:38]MH_Cut [08:13:38]Write to MH i2c: D1 01 00 54 22 01 48 [08:13:38]Write i2c OK [08:13:38]MH_I2C_Read... [08:13:38]Read from MH i2c: D1 [08:13:38]MH_I2C_Read... [08:13:38]Read from MH i2c: D1 01 00 [08:13:38]MH_I2C_Read... [08:13:38]Read from MH i2c: D1 01 00 54 22 00 47 [08:13:38]Write to MH i2c: 01 00 00 55 22 77 [08:13:38]Write i2c OK [08:13:38]MH_I2C_Read... [08:13:38]*** Cut start [08:13:38]*** Purtial cut [08:13:38]*** CUTSNS_PIN = 0 [08:13:38]*** Stage 1: CUTSNS_PIN = 1 [08:13:40]Read from MH i2c: 01 [08:13:40]MH_I2C_Read... [08:13:40]*** Stop cut motor [08:13:40]*** Cut end [08:13:40]Read from MH i2c: 01 07 00 [08:13:40]MH_I2C_Read... [08:13:40]Read from MH i2c: 01 07 00 55 22 00 00 00 00 00 FF 0F 8C [08:13:40]process_action print_text done [08:13:40]requested_data is exist [08:13:40]produce_requested_data [08:13:40]requested_item fm.sn is exist - process it [08:13:40]wFMCommunicate request_size=4 [08:13:40]MH_SAM_APDU [08:13:40]CAPDU: 80 11 00 00 [08:13:40]Write to MH i2c: E2 08 00 56 22 80 11 00 00 00 00 00 00 F2 [08:13:40]Write i2c OK [08:13:40]MH_I2C_Read... [08:13:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:13:40]Read from MH i2c: E2 [08:13:40]MH_I2C_Read... [08:13:40]Read from MH i2c: E2 17 00 [08:13:40]MH_I2C_Read... [08:13:40]Read from MH i2c: E2 17 00 56 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 48 [08:13:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [08:13:40]wFMCommunicate OK [08:13:40]requested_item fd.num is exist - process it [08:13:40]SAM_PROTO_GetFieldsCounters [08:13:40]wFMCommunicate request_size=4 [08:13:40]MH_SAM_APDU [08:13:40]CAPDU: 80 13 00 00 [08:13:40]Write to MH i2c: E2 08 00 57 22 80 13 00 00 00 00 00 00 F5 [08:13:40]Write i2c OK [08:13:40]MH_I2C_Read... [08:13:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:13:40]Read from MH i2c: E2 [08:13:40]MH_I2C_Read... [08:13:40]Read from MH i2c: E2 62 00 [08:13:40]MH_I2C_Read... [08:13:40]Read from MH i2c: E2 62 00 57 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 C5 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 8D [08:13:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 C5 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:13:40]wFMCommunicate OK [08:13:40]SAM_PROTO_GetFieldsCounters done [08:13:40]requested_item shift.num is exist - process it [08:13:40]requested_item shift.opened is exist - process it [08:13:40]req_shift_opened [08:13:40]FM_GetShiftState [08:13:40]SAM_PROTO_GetShiftState [08:13:40]wFMCommunicate request_size=4 [08:13:40]MH_SAM_APDU [08:13:40]CAPDU: 80 13 01 00 [08:13:40]Write to MH i2c: E2 08 00 58 22 80 13 01 00 00 00 00 00 F7 [08:13:40]Write i2c OK [08:13:40]MH_I2C_Read... [08:13:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:13:40]Read from MH i2c: E2 [08:13:40]MH_I2C_Read... [08:13:40]Read from MH i2c: E2 0E 00 [08:13:40]MH_I2C_Read... [08:13:40]Read from MH i2c: E2 0E 00 58 22 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 5E [08:13:40]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [08:13:40]wFMCommunicate OK [08:13:40]SAM_PROTO_GetShiftState done [08:13:40]FM_GetShiftState done [08:13:40]req_shift_opened done [08:13:40]requested_item shift.open_date is exist - process it [08:13:40]req_shift_open_date [08:13:40]req_shift_open_date done [08:13:40]produce_requested_data done [08:13:40]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67781,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [08:13:40]process_action_free print_text [08:13:40]json_value_free [08:13:40]json_value_free done [08:13:40]process_json_proto returns [08:13:40]Send response to host [08:13:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67781,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [08:13:40]free response buf [08:13:40]execute_script done [08:13:40]execute_script returns [08:13:40]free content buf [08:13:40]Sock 9.Close socket [08:13:40]Sock 9.Thread stoped [08:13:41]OFD Sender: No OFD packet to send [08:13:46]OFD Sender: No OFD packet to send [08:13:51]OFD Sender: No OFD packet to send [08:13:56]OFD Sender: No OFD packet to send [08:14:01]OFD Sender: No OFD packet to send [08:14:06]OFD Sender: No OFD packet to send [08:14:11]OFD Sender: No OFD packet to send [08:14:16]OFD Sender: No OFD packet to send [08:14:21]OFD Sender: No OFD packet to send [08:14:26]OFD Sender: No OFD packet to send [08:14:31]OFD Sender: No OFD packet to send [08:14:36]OFD Sender: No OFD packet to send [08:14:41]OFD Sender: No OFD packet to send [08:14:46]OFD Sender: No OFD packet to send [08:14:51]OFD Sender: No OFD packet to send [08:14:56]OFD Sender: No OFD packet to send [08:15:01]OFD Sender: No OFD packet to send [08:15:06]OFD Sender: No OFD packet to send [08:15:11]OFD Sender: No OFD packet to send [08:15:16]OFD Sender: No OFD packet to send [08:15:21]OFD Sender: No OFD packet to send [08:15:26]OFD Sender: No OFD packet to send [08:15:32]OFD Sender: No OFD packet to send [08:15:37]OFD Sender: No OFD packet to send [08:15:42]OFD Sender: No OFD packet to send [08:15:47]OFD Sender: No OFD packet to send [08:15:52]OFD Sender: No OFD packet to send [08:15:57]OFD Sender: No OFD packet to send [08:16:02]OFD Sender: No OFD packet to send [08:16:07]OFD Sender: No OFD packet to send [08:16:12]OFD Sender: No OFD packet to send [08:16:17]OFD Sender: No OFD packet to send [08:16:22]OFD Sender: No OFD packet to send [08:16:27]OFD Sender: No OFD packet to send [08:16:32]OFD Sender: No OFD packet to send [08:16:37]OFD Sender: No OFD packet to send [08:16:42]OFD Sender: No OFD packet to send [08:16:47]OFD Sender: No OFD packet to send [08:16:52]OFD Sender: No OFD packet to send [08:16:57]OFD Sender: No OFD packet to send [08:17:02]OFD Sender: No OFD packet to send [08:17:07]OFD Sender: No OFD packet to send [08:17:12]OFD Sender: No OFD packet to send [08:17:17]OFD Sender: No OFD packet to send [08:17:22]OFD Sender: No OFD packet to send [08:17:27]OFD Sender: No OFD packet to send [08:17:32]OFD Sender: No OFD packet to send [08:17:37]OFD Sender: No OFD packet to send [08:17:42]OFD Sender: No OFD packet to send [08:17:47]OFD Sender: No OFD packet to send [08:17:52]OFD Sender: No OFD packet to send [08:17:57]OFD Sender: No OFD packet to send [08:18:02]OFD Sender: No OFD packet to send [08:18:07]OFD Sender: No OFD packet to send [08:18:12]OFD Sender: No OFD packet to send [08:18:17]OFD Sender: No OFD packet to send [08:18:22]OFD Sender: No OFD packet to send [08:18:27]OFD Sender: No OFD packet to send [08:18:32]OFD Sender: No OFD packet to send [08:18:37]OFD Sender: No OFD packet to send [08:18:42]OFD Sender: No OFD packet to send [08:18:47]OFD Sender: No OFD packet to send [08:18:52]OFD Sender: No OFD packet to send [08:18:57]OFD Sender: No OFD packet to send [08:19:02]OFD Sender: No OFD packet to send [08:19:07]OFD Sender: No OFD packet to send [08:19:12]OFD Sender: No OFD packet to send [08:19:17]OFD Sender: No OFD packet to send [08:19:22]OFD Sender: No OFD packet to send [08:19:27]OFD Sender: No OFD packet to send [08:19:32]OFD Sender: No OFD packet to send [08:19:37]OFD Sender: No OFD packet to send [08:19:42]OFD Sender: No OFD packet to send [08:19:47]OFD Sender: No OFD packet to send [08:19:52]OFD Sender: No OFD packet to send [08:19:57]OFD Sender: No OFD packet to send [08:20:02]OFD Sender: No OFD packet to send [08:20:07]OFD Sender: No OFD packet to send [08:20:12]OFD Sender: No OFD packet to send [08:20:17]OFD Sender: No OFD packet to send [08:20:22]OFD Sender: No OFD packet to send [08:20:27]OFD Sender: No OFD packet to send [08:20:32]OFD Sender: No OFD packet to send [08:20:37]OFD Sender: No OFD packet to send [08:20:42]OFD Sender: No OFD packet to send [08:20:47]OFD Sender: No OFD packet to send [08:20:52]OFD Sender: No OFD packet to send [08:20:57]OFD Sender: No OFD packet to send [08:21:02]OFD Sender: No OFD packet to send [08:21:07]OFD Sender: No OFD packet to send [08:21:12]OFD Sender: No OFD packet to send [08:21:17]OFD Sender: No OFD packet to send [08:21:22]OFD Sender: No OFD packet to send [08:21:27]OFD Sender: No OFD packet to send [08:21:32]accept exits with 7 [08:21:32]New connection [08:21:32]New thread 3066608996 created [08:21:32]Thread 3066752356 joined [08:21:32]Waiting for new connection... [08:21:32] Sock 7.Parse request [08:21:32]Sock 7.Check first char [08:21:32]Sock 7.First char is OK [08:21:32]request: POST /json_proto HTTP/1.0 [08:21:32]Method: POST [08:21:32]URL: /json_proto [08:21:32]Method is POST - this is cgi request [08:21:32]url: /json_proto [08:21:32]query_string will be loaded in cgi processing [08:21:32]execute_cgi json_proto POST (null) [08:21:32]execute_cgi path=json_proto method=POST [08:21:32]POST find Content-Length [08:21:32]Host: 172.17.41.195:8080 [08:21:32]Content-Length: 1171 [08:21:32]Content-Type: application/json [08:21:32] [08:21:32]POST finish read [08:21:32]Found Content-Length = 1171 [08:21:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0440\u0441\u0442\u0430\u043D\u0431\u0435\u043A\u043E\u0432 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)507957\u000A18.05.2024 08:04\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 40.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 2988.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30139861\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:21:32]execute_script... [08:21:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0440\u0441\u0442\u0430\u043D\u0431\u0435\u043A\u043E\u0432 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)507957\u000A18.05.2024 08:04\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 40.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 2988.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30139861\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:21:32]POST & json_proto [08:21:32]process_json_proto [08:21:32]json parsed OK: [08:21:32]protocol is kg_v1.0 [08:21:32]action value=print_text [08:21:32]process_action print_text [08:21:32]cmd_print_text [08:21:32]ExternCall_PrintAddStr [08:21:32]wPrintStart [08:21:32]Write to MH i2c: 01 00 00 59 22 7B [08:21:32]Write i2c OK [08:21:32]MH_I2C_Read... [08:21:32]Read from MH i2c: 01 [08:21:32]MH_I2C_Read... [08:21:32]Read from MH i2c: 01 07 00 [08:21:32]MH_I2C_Read... [08:21:32]Read from MH i2c: 01 07 00 59 22 00 00 00 00 00 FF 0F 90 [08:21:32]RasterBufferAndPrint [08:21:32]line *****ТОВАРНЫЙ ЧЕК***** [08:21:32]line АЗС-91 [08:21:32]line Партнер нефть [08:21:32]line 02508201610067 [08:21:32]line Кассир : Арстанбеков Н. [08:21:32]line Счет N : (1)507957 [08:21:32]line 18.05.2024 08:04 [08:21:32]line ПРОДАЖА [08:21:32]line ТРК (МРК, ГНК): 11 [08:21:32]line Вид ГСМ : 2710194210 [08:21:32]line ДТ-К-5 [08:21:32]line 40.000 x 74.70 [08:21:32]line ИТОГ: 2988.00 [08:21:32]line Тип оплаты: Талоны: ТК ГПНА Online [08:21:32]line 30139861 [08:21:32]line ______________________ [08:21:32]line (подпись) [08:21:32]written 0, free lines is 4095 [08:21:32]OFD Sender: No OFD packet to send [08:21:32]Write to MH i2c: 01 00 00 6D 22 8F [08:21:32]Write i2c OK [08:21:32]MH_I2C_Read... [08:21:32]Read from MH i2c: 01 [08:21:32]MH_I2C_Read... [08:21:32]Read from MH i2c: 01 07 00 [08:21:32]MH_I2C_Read... [08:21:32]Read from MH i2c: 01 07 00 6D 22 00 00 00 00 00 10 0E B4 [08:21:32]RasterBufferAndPrint [08:21:32]line [08:21:32]line [08:21:32]line [08:21:32]line [08:21:32]line [08:21:32]written 0, free lines is 3601 [08:21:32]MH_Cut [08:21:32]Write to MH i2c: D1 01 00 74 22 01 68 [08:21:32]Write i2c OK [08:21:32]MH_I2C_Read... [08:21:32]Read from MH i2c: D1 [08:21:32]MH_I2C_Read... [08:21:32]Read from MH i2c: D1 01 00 [08:21:32]MH_I2C_Read... [08:21:32]Read from MH i2c: D1 01 00 74 22 00 67 [08:21:32]Write to MH i2c: 01 00 00 75 22 97 [08:21:32]Write i2c OK [08:21:32]MH_I2C_Read... [08:21:32]*** Cut start [08:21:32]*** Purtial cut [08:21:32]*** Stage 1: CUTSNS_PIN = 1 [08:21:33]Read from MH i2c: 01 [08:21:33]MH_I2C_Read... [08:21:33]*** Stop cut motor [08:21:33]*** Cut end [08:21:33]Read from MH i2c: 01 07 00 [08:21:33]MH_I2C_Read... [08:21:33]Read from MH i2c: 01 07 00 75 22 00 00 00 00 00 FF 0F AC [08:21:33]process_action print_text done [08:21:33]requested_data is exist [08:21:33]produce_requested_data [08:21:33]requested_item fm.sn is exist - process it [08:21:33]wFMCommunicate request_size=4 [08:21:33]MH_SAM_APDU [08:21:33]CAPDU: 80 11 00 00 [08:21:33]Write to MH i2c: E2 08 00 76 22 80 11 00 00 00 00 00 00 12 [08:21:33]Write i2c OK [08:21:33]MH_I2C_Read... [08:21:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:21:33]Read from MH i2c: E2 [08:21:33]MH_I2C_Read... [08:21:33]Read from MH i2c: E2 17 00 [08:21:33]MH_I2C_Read... [08:21:33]Read from MH i2c: E2 17 00 76 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 68 [08:21:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [08:21:33]wFMCommunicate OK [08:21:33]requested_item fd.num is exist - process it [08:21:33]SAM_PROTO_GetFieldsCounters [08:21:33]wFMCommunicate request_size=4 [08:21:33]MH_SAM_APDU [08:21:33]CAPDU: 80 13 00 00 [08:21:33]Write to MH i2c: E2 08 00 77 22 80 13 00 00 00 00 00 00 15 [08:21:33]Write i2c OK [08:21:33]MH_I2C_Read... [08:21:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:21:33]Read from MH i2c: E2 [08:21:33]MH_I2C_Read... [08:21:33]Read from MH i2c: E2 62 00 [08:21:33]MH_I2C_Read... [08:21:33]Read from MH i2c: E2 62 00 77 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 C5 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 AD [08:21:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 C5 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:21:33]wFMCommunicate OK [08:21:33]SAM_PROTO_GetFieldsCounters done [08:21:33]requested_item shift.num is exist - process it [08:21:33]requested_item shift.opened is exist - process it [08:21:33]req_shift_opened [08:21:33]FM_GetShiftState [08:21:33]SAM_PROTO_GetShiftState [08:21:33]wFMCommunicate request_size=4 [08:21:33]MH_SAM_APDU [08:21:33]CAPDU: 80 13 01 00 [08:21:33]Write to MH i2c: E2 08 00 78 22 80 13 01 00 00 00 00 00 17 [08:21:33]Write i2c OK [08:21:33]MH_I2C_Read... [08:21:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:21:33]Read from MH i2c: E2 [08:21:33]MH_I2C_Read... [08:21:33]Read from MH i2c: E2 0E 00 [08:21:33]MH_I2C_Read... [08:21:33]Read from MH i2c: E2 0E 00 78 22 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 7E [08:21:33]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [08:21:33]wFMCommunicate OK [08:21:33]SAM_PROTO_GetShiftState done [08:21:33]FM_GetShiftState done [08:21:33]req_shift_opened done [08:21:33]requested_item shift.open_date is exist - process it [08:21:33]req_shift_open_date [08:21:33]req_shift_open_date done [08:21:33]produce_requested_data done [08:21:33]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67781,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [08:21:33]process_action_free print_text [08:21:33]json_value_free [08:21:33]json_value_free done [08:21:33]process_json_proto returns [08:21:33]Send response to host [08:21:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67781,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [08:21:33]free response buf [08:21:33]execute_script done [08:21:33]execute_script returns [08:21:33]free content buf [08:21:33]Sock 7.Close socket [08:21:33]Sock 7.Thread stoped [08:21:37]OFD Sender: No OFD packet to send [08:21:42]OFD Sender: No OFD packet to send [08:21:47]OFD Sender: No OFD packet to send [08:21:52]OFD Sender: No OFD packet to send [08:21:57]OFD Sender: No OFD packet to send [08:22:02]OFD Sender: No OFD packet to send [08:22:07]OFD Sender: No OFD packet to send [08:22:12]OFD Sender: No OFD packet to send [08:22:17]OFD Sender: No OFD packet to send [08:22:22]OFD Sender: No OFD packet to send [08:22:27]OFD Sender: No OFD packet to send [08:22:32]OFD Sender: No OFD packet to send [08:22:37]OFD Sender: No OFD packet to send [08:22:42]OFD Sender: No OFD packet to send [08:22:47]OFD Sender: No OFD packet to send [08:22:52]OFD Sender: No OFD packet to send [08:22:57]OFD Sender: No OFD packet to send [08:23:02]OFD Sender: No OFD packet to send [08:23:07]OFD Sender: No OFD packet to send [08:23:12]OFD Sender: No OFD packet to send [08:23:17]OFD Sender: No OFD packet to send [08:23:22]OFD Sender: No OFD packet to send [08:23:27]OFD Sender: No OFD packet to send [08:23:32]OFD Sender: No OFD packet to send [08:23:37]OFD Sender: No OFD packet to send [08:23:42]OFD Sender: No OFD packet to send [08:23:47]OFD Sender: No OFD packet to send [08:23:52]OFD Sender: No OFD packet to send [08:23:57]OFD Sender: No OFD packet to send [08:24:02]OFD Sender: No OFD packet to send [08:24:07]OFD Sender: No OFD packet to send [08:24:12]OFD Sender: No OFD packet to send [08:24:17]OFD Sender: No OFD packet to send [08:24:22]OFD Sender: No OFD packet to send [08:24:27]OFD Sender: No OFD packet to send [08:24:32]OFD Sender: No OFD packet to send [08:24:37]OFD Sender: No OFD packet to send [08:24:42]OFD Sender: No OFD packet to send [08:24:47]OFD Sender: No OFD packet to send [08:24:52]OFD Sender: No OFD packet to send [08:24:57]OFD Sender: No OFD packet to send [08:25:02]OFD Sender: No OFD packet to send [08:25:05]accept exits with 9 [08:25:05]New connection [08:25:05]New thread 3066752356 created [08:25:05]Thread 3066608996 joined [08:25:05]Waiting for new connection... [08:25:05] Sock 9.Parse request [08:25:05]Sock 9.Check first char [08:25:05]Sock 9.First char is OK [08:25:05]request: POST /json_proto HTTP/1.0 [08:25:05]Method: POST [08:25:05]URL: /json_proto [08:25:05]Method is POST - this is cgi request [08:25:05]url: /json_proto [08:25:05]query_string will be loaded in cgi processing [08:25:05]execute_cgi json_proto POST (null) [08:25:05]execute_cgi path=json_proto method=POST [08:25:05]POST find Content-Length [08:25:05]Host: 172.17.41.195:8080 [08:25:05]Content-Length: 800 [08:25:05]Content-Type: application/json [08:25:05] [08:25:05]POST finish read [08:25:05]Found Content-Length = 800 [08:25:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507958", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 26.780, "sum" : 2000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.47 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:25:05]execute_script... [08:25:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507958", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 26.780, "sum" : 2000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.47 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:25:05]POST & json_proto [08:25:05]process_json_proto [08:25:05]json parsed OK: [08:25:05]protocol is kg_v1.0 [08:25:05]action value=close_receipt [08:25:05]process_action close_receipt [08:25:05]cmd_close_receipt [08:25:05]MH_GetDate [08:25:05]Write to MH i2c: F0 00 00 79 22 8A [08:25:05]Write i2c OK [08:25:05]MH_I2C_Read... [08:25:05]Read from MH i2c: F0 [08:25:05]MH_I2C_Read... [08:25:05]Read from MH i2c: F0 09 00 [08:25:05]MH_I2C_Read... [08:25:05]Read from MH i2c: F0 09 00 79 22 00 E5 65 48 66 FC 21 6F 64 7B [08:25:05]GetLastDocTimeStamp 1716019728 [08:25:05]current date 1716020709 [08:25:05]FM_GetShiftState [08:25:05]SAM_PROTO_GetShiftState [08:25:05]wFMCommunicate request_size=4 [08:25:05]MH_SAM_APDU [08:25:05]CAPDU: 80 13 01 00 [08:25:05]Write to MH i2c: E2 08 00 7A 22 80 13 01 00 00 00 00 00 19 [08:25:05]Write i2c OK [08:25:05]MH_I2C_Read... [08:25:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:25:05]Read from MH i2c: E2 [08:25:05]MH_I2C_Read... [08:25:05]Read from MH i2c: E2 0E 00 [08:25:05]MH_I2C_Read... [08:25:05]Read from MH i2c: E2 0E 00 7A 22 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 80 [08:25:05]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [08:25:05]wFMCommunicate OK [08:25:05]SAM_PROTO_GetShiftState done [08:25:05]FM_GetShiftState done [08:25:05]opened in 1715991483 [08:25:05]opened+sec_in_day 1716077883 [08:25:05]quantity*price = 200046 [08:25:05]sum+1 = 200048 [08:25:05]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.47 НСП 1% : 17.70 НДС 12% : 212.44 Наличными: 0.00 Безнал.: 2000.47 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 21 18.05.2024 08:25 Смена: 359 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67782 ФПД: 213708780829590 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T082510&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67782&fm=213708780829590&tin=02508201610067®Number=0000000000091845&sum=200047 [08:25:06]StoreToDocumentArchive [08:25:06]shift 359 fd 67782 [08:25:06]save to /storage/0359/doc_00067782 [08:25:06]save last doc name /storage/0359/doc_00067782 to /storage/kkm_last_doc_name [08:25:06]save OK [08:25:06]Clear old archive folders... [08:25:06]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:25:06]tlvbuf is 01B6C4F0 [08:25:06]SAM_PROTO_ClearQueue [08:25:06]wFMCommunicate request_size=4 [08:25:06]MH_SAM_APDU [08:25:06]CAPDU: 80 09 00 00 [08:25:06]Write to MH i2c: E2 08 00 87 22 80 09 00 00 00 00 00 00 1B [08:25:06]Write i2c OK [08:25:06]MH_I2C_Read... [08:25:06]Read from MH i2c: E2 [08:25:06]MH_I2C_Read... [08:25:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:25:06]Read from MH i2c: E2 03 00 [08:25:06]MH_I2C_Read... [08:25:06]Read from MH i2c: E2 03 00 87 22 00 90 00 1D [08:25:06]RAPDU: 90 00 [08:25:06]wFMCommunicate OK [08:25:06]SAM_PROTO_ClearQueue done [08:25:06]KKMCreateOFDPacket [08:25:06]OFDProtocolAddRootSTLVToBuf [08:25:06]FM_MakeSignedData [08:25:06]FM_MakeSignedData [08:25:06]SAM_PROTO_SignData [08:25:06]wFMCommunicate request_size=4 [08:25:06]MH_SAM_APDU [08:25:06]CAPDU: 80 0D 01 02 [08:25:06]Write to MH i2c: E2 08 00 88 22 80 0D 01 02 00 00 00 00 23 [08:25:06]Write i2c OK [08:25:06]MH_I2C_Read... [08:25:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:25:06]Read from MH i2c: E2 [08:25:06]MH_I2C_Read... [08:25:06]Read from MH i2c: E2 03 00 [08:25:06]MH_I2C_Read... [08:25:06]Read from MH i2c: E2 03 00 88 22 00 90 00 1E [08:25:06]RAPDU: 90 00 [08:25:06]wFMCommunicate OK [08:25:06]wFMCommunicate request_size=255 [08:25:06]MH_SAM_APDU [08:25:06]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9C 68 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 6F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6F 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FC 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 E6 65 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 C6 08 01 00 35 04 06 00 C2 5D F3 F7 [08:25:06]Write to MH i2c: E2 02 01 89 22 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9C 68 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 6F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6F 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FC 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 E6 65 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 C6 08 01 00 35 04 06 00 C2 5D F3 F7 00 00 DD [08:25:06]Write i2c OK [08:25:06]MH_I2C_Read... [08:25:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:25:07]Read from MH i2c: E2 [08:25:07]MH_I2C_Read... [08:25:07]Read from MH i2c: E2 03 00 [08:25:07]MH_I2C_Read... [08:25:07]Read from MH i2c: E2 03 00 89 22 00 90 00 1F [08:25:07]RAPDU: 90 00 [08:25:07]wFMCommunicate OK [08:25:07]wFMCommunicate request_size=7 [08:25:07]MH_SAM_APDU [08:25:07]CAPDU: 80 0D 02 02 02 7B 96 [08:25:07]Write to MH i2c: E2 0A 00 8A 22 80 0D 02 02 02 00 7B 96 00 00 3B [08:25:07]Write i2c OK [08:25:07]MH_I2C_Read... [08:25:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:25:07]Read from MH i2c: E2 [08:25:07]MH_I2C_Read... [08:25:07]Read from MH i2c: E2 03 00 [08:25:07]MH_I2C_Read... [08:25:07]Read from MH i2c: E2 03 00 8A 22 00 90 00 20 [08:25:07]RAPDU: 90 00 [08:25:07]wFMCommunicate OK [08:25:07]wFMCommunicate request_size=4 [08:25:07]MH_SAM_APDU [08:25:07]CAPDU: 80 0D 03 02 [08:25:07]Write to MH i2c: E2 08 00 8B 22 80 0D 03 02 00 00 00 00 28 [08:25:07]Write i2c OK [08:25:07]MH_I2C_Read... [08:25:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:25:07]Read from MH i2c: E2 [08:25:07]MH_I2C_Read... [08:25:07]Read from MH i2c: E2 0B 00 [08:25:07]MH_I2C_Read... [08:25:07]Read from MH i2c: E2 0B 00 8B 22 00 72 FB 32 6B DE 62 91 33 90 00 37 [08:25:07]RAPDU: 72 FB 32 6B DE 62 91 33 90 00 [08:25:07]wFMCommunicate OK [08:25:07]SAM_PROTO_SignData done [08:25:07]FM_MakeSignedData done [08:25:07]CreateOFDProtocolMessage [08:25:07]wFMCommunicate request_size=4 [08:25:07]MH_SAM_APDU [08:25:07]CAPDU: 80 11 00 00 [08:25:07]Write to MH i2c: E2 08 00 8C 22 80 11 00 00 00 00 00 00 28 [08:25:07]Write i2c OK [08:25:07]MH_I2C_Read... [08:25:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:25:07]Read from MH i2c: E2 [08:25:07]MH_I2C_Read... [08:25:07]Read from MH i2c: E2 17 00 [08:25:07]MH_I2C_Read... [08:25:07]Read from MH i2c: E2 17 00 8C 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 7E [08:25:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [08:25:07]wFMCommunicate OK [08:25:07]CreateOFDProtocolMessage done [08:25:07]OFDSenderStorePacket 67782 [08:25:07]StoreOFDPacket docnum=67782 [08:25:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 CE EE 04 01 A0 D8 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9C 68 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 6F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6F 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FC 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 E6 65 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 C6 08 01 00 35 04 06 00 C2 5D F3 F7 7B 96 72 FB 32 6B DE 62 91 33 [08:25:07]CheckFolder [08:25:07]dirname=/storage/ofd_packets [08:25:07]CheckFolder done [08:25:07]ProducePacketName [08:25:07]name=ofd_packets/00067782 [08:25:07]NVStorageSaveData ofd_packets/00067782 [08:25:07]File name is /storage/ofd_packets/00067782 [08:25:07]Write 298 bytes [08:25:07]NVStorageSaveData done [08:25:07]OFDSenderStorePacket done [08:25:07]KKMCreateOFDPacket done [08:25:07]NVStorageSaveData kkm_last_timestamp [08:25:07]File name is /storage/kkm_last_timestamp [08:25:07]Write 4 bytes [08:25:07]NVStorageSaveData done [08:25:07]ExternCall_PrintAddStr [08:25:07]wPrintStart [08:25:07]Write to MH i2c: 01 00 00 8D 22 AF [08:25:07]Write i2c OK [08:25:07]MH_I2C_Read... [08:25:07]Read from MH i2c: 01 [08:25:07]MH_I2C_Read... [08:25:07]Read from MH i2c: 01 07 00 [08:25:07]MH_I2C_Read... [08:25:07]Read from MH i2c: 01 07 00 8D 22 00 00 00 00 00 FF 0F C4 [08:25:07]RasterBufferAndPrint [08:25:07]line Счет N : (1)507958 [08:25:07]line ИНН: 02508201610067 [08:25:07]line Контрольно-Кассовый Чек [08:25:07]line ПРОДАЖА [08:25:07]line ТРК (МРК, ГНК) : 41 [08:25:07]line Товар: 2710194210 [08:25:07]line ДТ-К-5 [08:25:07]line 26.780 * 74.70 [08:25:07]line = 2000.47 [08:25:07]line НДС 12% НСП 1% [08:25:07]line > о реализуемом товаре [08:25:07]line ИТОГО: 2000.47 [08:25:07]line НСП 1% : 17.70 [08:25:07]line НДС 12% : 212.44 [08:25:07]line Наличными: 0.00 [08:25:07]line Безнал.: 2000.47 [08:25:07]line Место: АЗС № 91 "Партнер Нефть" [08:25:07]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [08:25:07]line СНО: Общий режим [08:25:07]line Чек 21 18.05.2024 08:25 [08:25:07]line Смена: 359 ФФД: 1.0 [08:25:07]line ЗНМ: 0300000119 [08:25:07]line РНМ: 0000000000091845 [08:25:07]line Версия ККМ: 001 [08:25:07]line Платежная система: O! деньги [08:25:07]line ФМ: 0000000000871829 [08:25:07]line ФД: 67782 [08:25:07]line ФПД: 213708780829590 [08:25:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T082510&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67782&fm=213708780829590&tin=02508201610067®Number=0000000000091845&sum=200047 [08:25:07]OFD Sender: Processing packet 67782 [packets to send 35, broken 34] [08:25:07]ProducePacketName [08:25:07]name=ofd_packets/00067782 [08:25:07]OFD Sender: To server: pG, [08:25:07]CommunicateWithHost lk.salyk.kg:30040 [08:25:07]ConnectInit lk.salyk.kg [08:25:07]written 0, free lines is 4095 [08:25:07]Connected sock=10 [08:25:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 CE EE 04 01 A0 D8 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9C 68 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 6F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6F 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FC 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 E6 65 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 C6 08 01 00 35 04 06 00 C2 5D F3 F7 7B 96 72 FB 32 6B DE 62 91 33 [08:25:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 4E 31 47 00 28 2A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 C6 08 01 00 F4 03 04 00 BB 0D 48 66 B6 04 01 00 00 32 25 1F 1D 3C D9 3C 9E [08:25:07]CommunicateWithHost err = 0 [08:25:07]CheckOFDResponse [08:25:07]1017 (14) - 77093643461234 [08:25:07]1041 (16) - 0000000000871829 [08:25:07]1040 (4) - 67782 [08:25:07]1012 (4) - 18.05.2024 02:08 [08:25:07]1206 (1) - 0 [08:25:07]OFD Sender: Remove packet 67782 [08:25:07]ProducePacketName [08:25:07]name=ofd_packets/00067782 [08:25:07]NVStorageDeleteData [08:25:07]Write to MH i2c: 01 00 00 B6 22 D8 [08:25:07]Write i2c OK [08:25:07]MH_I2C_Read... [08:25:07]Read from MH i2c: 01 [08:25:07]MH_I2C_Read... [08:25:07]Read from MH i2c: 01 07 00 [08:25:07]MH_I2C_Read... [08:25:07]Read from MH i2c: 01 07 00 B6 22 00 00 00 00 00 E5 0C D0 [08:25:07]RasterBufferAndPrint [08:25:07]line [08:25:07]line [08:25:07]line [08:25:07]line [08:25:07]line [08:25:07]written 0, free lines is 3306 [08:25:08]MH_Cut [08:25:08]Write to MH i2c: D1 01 00 BD 22 01 B1 [08:25:08]Write i2c OK [08:25:08]MH_I2C_Read... [08:25:08]Read from MH i2c: D1 [08:25:08]MH_I2C_Read... [08:25:08]Read from MH i2c: D1 01 00 [08:25:08]MH_I2C_Read... [08:25:08]Read from MH i2c: D1 01 00 BD 22 00 B0 [08:25:08]Write to MH i2c: 01 00 00 BE 22 E0 [08:25:08]Write i2c OK [08:25:08]MH_I2C_Read... [08:25:08]OFD Sender: No OFD packet to send [08:25:08]*** Cut start [08:25:08]*** Purtial cut [08:25:08]*** Stage 1: CUTSNS_PIN = 1 [08:25:09]Read from MH i2c: 01 [08:25:09]MH_I2C_Read... [08:25:09]*** Stop cut motor [08:25:09]*** Cut end [08:25:09]Read from MH i2c: 01 07 00 [08:25:09]MH_I2C_Read... [08:25:09]Read from MH i2c: 01 07 00 BE 22 00 00 00 00 00 FF 0F F5 [08:25:09]process_action close_receipt done [08:25:09]requested_data is exist [08:25:09]produce_requested_data [08:25:09]requested_item fm.sn is exist - process it [08:25:09]wFMCommunicate request_size=4 [08:25:09]MH_SAM_APDU [08:25:09]CAPDU: 80 11 00 00 [08:25:09]Write to MH i2c: E2 08 00 BF 22 80 11 00 00 00 00 00 00 5B [08:25:09]Write i2c OK [08:25:09]MH_I2C_Read... [08:25:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:25:09]Read from MH i2c: E2 [08:25:09]MH_I2C_Read... [08:25:09]Read from MH i2c: E2 17 00 [08:25:09]MH_I2C_Read... [08:25:09]Read from MH i2c: E2 17 00 BF 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 B1 [08:25:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [08:25:09]wFMCommunicate OK [08:25:09]requested_item fd.num is exist - process it [08:25:09]SAM_PROTO_GetFieldsCounters [08:25:09]wFMCommunicate request_size=4 [08:25:09]MH_SAM_APDU [08:25:09]CAPDU: 80 13 00 00 [08:25:09]Write to MH i2c: E2 08 00 C0 22 80 13 00 00 00 00 00 00 5E [08:25:09]Write i2c OK [08:25:09]MH_I2C_Read... [08:25:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:25:09]Read from MH i2c: E2 [08:25:09]MH_I2C_Read... [08:25:09]Read from MH i2c: E2 62 00 [08:25:09]MH_I2C_Read... [08:25:09]Read from MH i2c: E2 62 00 C0 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 C6 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 15 00 00 00 5E 04 04 00 15 00 00 00 57 04 04 00 16 00 00 00 19 04 04 00 00 00 00 00 90 00 FA [08:25:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 C6 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 15 00 00 00 5E 04 04 00 15 00 00 00 57 04 04 00 16 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:25:09]wFMCommunicate OK [08:25:09]SAM_PROTO_GetFieldsCounters done [08:25:09]requested_item shift.num is exist - process it [08:25:09]requested_item shift.opened is exist - process it [08:25:09]req_shift_opened [08:25:09]FM_GetShiftState [08:25:09]SAM_PROTO_GetShiftState [08:25:09]wFMCommunicate request_size=4 [08:25:09]MH_SAM_APDU [08:25:09]CAPDU: 80 13 01 00 [08:25:09]Write to MH i2c: E2 08 00 C1 22 80 13 01 00 00 00 00 00 60 [08:25:09]Write i2c OK [08:25:09]MH_I2C_Read... [08:25:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:25:09]Read from MH i2c: E2 [08:25:09]MH_I2C_Read... [08:25:09]Read from MH i2c: E2 0E 00 [08:25:09]MH_I2C_Read... [08:25:09]Read from MH i2c: E2 0E 00 C1 22 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 C7 [08:25:09]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [08:25:09]wFMCommunicate OK [08:25:09]SAM_PROTO_GetShiftState done [08:25:09]FM_GetShiftState done [08:25:09]req_shift_opened done [08:25:09]requested_item shift.open_date is exist - process it [08:25:09]req_shift_open_date [08:25:09]req_shift_open_date done [08:25:09]produce_requested_data done [08:25:09]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67782,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [08:25:09]process_action_free close_receipt [08:25:09]json_value_free [08:25:09]json_value_free done [08:25:09]process_json_proto returns [08:25:09]Send response to host [08:25:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67782,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [08:25:09]free response buf [08:25:09]execute_script done [08:25:09]execute_script returns [08:25:09]free content buf [08:25:09]Sock 9.Close socket [08:25:09]Sock 9.Thread stoped [08:25:13]OFD Sender: No OFD packet to send [08:25:18]OFD Sender: No OFD packet to send [08:25:23]OFD Sender: No OFD packet to send [08:25:28]OFD Sender: No OFD packet to send [08:25:33]OFD Sender: No OFD packet to send [08:25:38]OFD Sender: No OFD packet to send [08:25:43]OFD Sender: No OFD packet to send [08:25:48]OFD Sender: No OFD packet to send [08:25:53]OFD Sender: No OFD packet to send [08:25:58]OFD Sender: No OFD packet to send [08:26:03]OFD Sender: No OFD packet to send [08:26:08]OFD Sender: No OFD packet to send [08:26:13]OFD Sender: No OFD packet to send [08:26:18]OFD Sender: No OFD packet to send [08:26:23]OFD Sender: No OFD packet to send [08:26:28]OFD Sender: No OFD packet to send [08:26:33]OFD Sender: No OFD packet to send [08:26:38]OFD Sender: No OFD packet to send [08:26:43]OFD Sender: No OFD packet to send [08:26:48]OFD Sender: No OFD packet to send [08:26:53]OFD Sender: No OFD packet to send [08:26:58]OFD Sender: No OFD packet to send [08:27:03]OFD Sender: No OFD packet to send [08:27:08]OFD Sender: No OFD packet to send [08:27:13]OFD Sender: No OFD packet to send [08:27:18]OFD Sender: No OFD packet to send [08:27:23]OFD Sender: No OFD packet to send [08:27:28]OFD Sender: No OFD packet to send [08:27:33]OFD Sender: No OFD packet to send [08:27:38]OFD Sender: No OFD packet to send [08:27:43]OFD Sender: No OFD packet to send [08:27:48]OFD Sender: No OFD packet to send [08:27:53]OFD Sender: No OFD packet to send [08:27:58]OFD Sender: No OFD packet to send [08:28:03]OFD Sender: No OFD packet to send [08:28:08]OFD Sender: No OFD packet to send [08:28:13]OFD Sender: No OFD packet to send [08:28:18]OFD Sender: No OFD packet to send [08:28:23]OFD Sender: No OFD packet to send [08:28:28]OFD Sender: No OFD packet to send [08:28:33]OFD Sender: No OFD packet to send [08:28:38]OFD Sender: No OFD packet to send [08:28:43]OFD Sender: No OFD packet to send [08:28:48]OFD Sender: No OFD packet to send [08:28:53]OFD Sender: No OFD packet to send [08:28:58]OFD Sender: No OFD packet to send [08:29:03]OFD Sender: No OFD packet to send [08:29:08]OFD Sender: No OFD packet to send [08:29:13]OFD Sender: No OFD packet to send [08:29:18]OFD Sender: No OFD packet to send [08:29:23]OFD Sender: No OFD packet to send [08:29:28]OFD Sender: No OFD packet to send [08:29:33]OFD Sender: No OFD packet to send [08:29:38]OFD Sender: No OFD packet to send [08:29:43]OFD Sender: No OFD packet to send [08:29:48]OFD Sender: No OFD packet to send [08:29:53]OFD Sender: No OFD packet to send [08:29:58]OFD Sender: No OFD packet to send [08:30:03]OFD Sender: No OFD packet to send [08:30:08]OFD Sender: No OFD packet to send [08:30:13]OFD Sender: No OFD packet to send [08:30:18]OFD Sender: No OFD packet to send [08:30:23]OFD Sender: No OFD packet to send [08:30:28]OFD Sender: No OFD packet to send [08:30:33]OFD Sender: No OFD packet to send [08:30:38]OFD Sender: No OFD packet to send [08:30:43]OFD Sender: No OFD packet to send [08:30:48]OFD Sender: No OFD packet to send [08:30:53]OFD Sender: No OFD packet to send [08:30:58]OFD Sender: No OFD packet to send [08:31:03]OFD Sender: No OFD packet to send [08:31:08]OFD Sender: No OFD packet to send [08:31:13]OFD Sender: No OFD packet to send [08:31:18]OFD Sender: No OFD packet to send [08:31:23]OFD Sender: No OFD packet to send [08:31:28]OFD Sender: No OFD packet to send [08:31:33]OFD Sender: No OFD packet to send [08:31:38]OFD Sender: No OFD packet to send [08:31:43]OFD Sender: No OFD packet to send [08:31:48]OFD Sender: No OFD packet to send [08:31:53]OFD Sender: No OFD packet to send [08:31:58]OFD Sender: No OFD packet to send [08:32:03]OFD Sender: No OFD packet to send [08:32:08]OFD Sender: No OFD packet to send [08:32:13]OFD Sender: No OFD packet to send [08:32:18]OFD Sender: No OFD packet to send [08:32:23]OFD Sender: No OFD packet to send [08:32:28]OFD Sender: No OFD packet to send [08:32:33]OFD Sender: No OFD packet to send [08:32:38]OFD Sender: No OFD packet to send [08:32:43]OFD Sender: No OFD packet to send [08:32:48]OFD Sender: No OFD packet to send [08:32:53]OFD Sender: No OFD packet to send [08:32:58]OFD Sender: No OFD packet to send [08:33:03]OFD Sender: No OFD packet to send [08:33:08]OFD Sender: No OFD packet to send [08:33:09]accept exits with 7 [08:33:09]New connection [08:33:09]New thread 3066608996 created [08:33:09]Thread 3066752356 joined [08:33:09]Waiting for new connection... [08:33:09] Sock 7.Parse request [08:33:09]Sock 7.Check first char [08:33:09]Sock 7.First char is OK [08:33:09]request: POST /json_proto HTTP/1.0 [08:33:09]Method: POST [08:33:09]URL: /json_proto [08:33:09]Method is POST - this is cgi request [08:33:09]url: /json_proto [08:33:09]query_string will be loaded in cgi processing [08:33:09]execute_cgi json_proto POST (null) [08:33:09]execute_cgi path=json_proto method=POST [08:33:09]POST find Content-Length [08:33:09]Host: 172.17.41.195:8080 [08:33:09]Content-Length: 796 [08:33:09]Content-Type: application/json [08:33:09] [08:33:09]POST finish read [08:33:09]Found Content-Length = 796 [08:33:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507959", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.05 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:33:09]execute_script... [08:33:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507959", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.05 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:33:09]POST & json_proto [08:33:09]process_json_proto [08:33:09]json parsed OK: [08:33:09]protocol is kg_v1.0 [08:33:09]action value=close_receipt [08:33:09]process_action close_receipt [08:33:09]cmd_close_receipt [08:33:09]MH_GetDate [08:33:09]Write to MH i2c: F0 00 00 C2 22 D3 [08:33:09]Write i2c OK [08:33:09]MH_I2C_Read... [08:33:09]Read from MH i2c: F0 [08:33:09]MH_I2C_Read... [08:33:09]Read from MH i2c: F0 09 00 [08:33:09]MH_I2C_Read... [08:33:09]Read from MH i2c: F0 09 00 C2 22 00 C9 67 48 66 FC 21 6F 64 AA [08:33:09]GetLastDocTimeStamp 1716020710 [08:33:09]current date 1716021193 [08:33:09]FM_GetShiftState [08:33:09]SAM_PROTO_GetShiftState [08:33:09]wFMCommunicate request_size=4 [08:33:09]MH_SAM_APDU [08:33:09]CAPDU: 80 13 01 00 [08:33:09]Write to MH i2c: E2 08 00 C3 22 80 13 01 00 00 00 00 00 62 [08:33:09]Write i2c OK [08:33:09]MH_I2C_Read... [08:33:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:33:09]Read from MH i2c: E2 [08:33:09]MH_I2C_Read... [08:33:09]Read from MH i2c: E2 0E 00 [08:33:09]MH_I2C_Read... [08:33:09]Read from MH i2c: E2 0E 00 C3 22 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 C9 [08:33:09]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [08:33:09]wFMCommunicate OK [08:33:09]SAM_PROTO_GetShiftState done [08:33:09]FM_GetShiftState done [08:33:09]opened in 1715991483 [08:33:09]opened+sec_in_day 1716077883 [08:33:09]quantity*price = 100005 [08:33:09]sum+1 = 100006 [08:33:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.05 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 0.00 Безнал.: 1000.05 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 22 18.05.2024 08:33 Смена: 359 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67783 ФПД: 70917436331895 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T083313&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67783&fm=70917436331895&tin=02508201610067®Number=0000000000091845&sum=100005 [08:33:10]StoreToDocumentArchive [08:33:10]shift 359 fd 67783 [08:33:10]save to /storage/0359/doc_00067783 [08:33:10]save last doc name /storage/0359/doc_00067783 to /storage/kkm_last_doc_name [08:33:10]save OK [08:33:10]Clear old archive folders... [08:33:10]ProcessDocumentItem done err = 0, tmpTLVsize=252 [08:33:10]tlvbuf is 01B343C0 [08:33:10]SAM_PROTO_ClearQueue [08:33:10]wFMCommunicate request_size=4 [08:33:10]MH_SAM_APDU [08:33:10]CAPDU: 80 09 00 00 [08:33:10]Write to MH i2c: E2 08 00 D0 22 80 09 00 00 00 00 00 00 64 [08:33:10]Write i2c OK [08:33:10]MH_I2C_Read... [08:33:10]Read from MH i2c: E2 [08:33:10]MH_I2C_Read... [08:33:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:33:10]Read from MH i2c: E2 03 00 [08:33:10]MH_I2C_Read... [08:33:10]Read from MH i2c: E2 03 00 D0 22 00 90 00 66 [08:33:10]RAPDU: 90 00 [08:33:10]wFMCommunicate OK [08:33:10]SAM_PROTO_ClearQueue done [08:33:10]KKMCreateOFDPacket [08:33:10]OFDProtocolAddRootSTLVToBuf [08:33:10]FM_MakeSignedData [08:33:10]FM_MakeSignedData [08:33:10]SAM_PROTO_SignData [08:33:10]wFMCommunicate request_size=4 [08:33:10]MH_SAM_APDU [08:33:10]CAPDU: 80 0D 01 02 [08:33:10]Write to MH i2c: E2 08 00 D1 22 80 0D 01 02 00 00 00 00 6C [08:33:10]Write i2c OK [08:33:10]MH_I2C_Read... [08:33:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:33:10]Read from MH i2c: E2 [08:33:10]MH_I2C_Read... [08:33:10]Read from MH i2c: E2 03 00 [08:33:10]MH_I2C_Read... [08:33:10]Read from MH i2c: E2 03 00 D1 22 00 90 00 67 [08:33:10]RAPDU: 90 00 [08:33:10]wFMCommunicate OK [08:33:10]wFMCommunicate request_size=255 [08:33:10]MH_SAM_APDU [08:33:10]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A5 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A5 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 C9 67 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 C7 08 01 00 35 04 06 00 [08:33:10]Write to MH i2c: E2 02 01 D2 22 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A5 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A5 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 C9 67 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 C7 08 01 00 35 04 06 00 00 00 DF [08:33:10]Write i2c OK [08:33:10]MH_I2C_Read... [08:33:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:33:10]Read from MH i2c: E2 [08:33:10]MH_I2C_Read... [08:33:10]Read from MH i2c: E2 03 00 [08:33:10]MH_I2C_Read... [08:33:10]Read from MH i2c: E2 03 00 D2 22 00 90 00 68 [08:33:10]RAPDU: 90 00 [08:33:10]wFMCommunicate OK [08:33:10]wFMCommunicate request_size=11 [08:33:10]MH_SAM_APDU [08:33:10]CAPDU: 80 0D 02 02 06 40 7F C0 99 D7 77 [08:33:10]Write to MH i2c: E2 0E 00 D3 22 80 0D 02 02 06 00 40 7F C0 99 D7 77 00 00 E1 [08:33:10]Write i2c OK [08:33:10]MH_I2C_Read... [08:33:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:33:10]Read from MH i2c: E2 [08:33:10]MH_I2C_Read... [08:33:10]Read from MH i2c: E2 03 00 [08:33:10]MH_I2C_Read... [08:33:10]Read from MH i2c: E2 03 00 D3 22 00 90 00 69 [08:33:10]RAPDU: 90 00 [08:33:10]wFMCommunicate OK [08:33:10]wFMCommunicate request_size=4 [08:33:10]MH_SAM_APDU [08:33:10]CAPDU: 80 0D 03 02 [08:33:10]Write to MH i2c: E2 08 00 D4 22 80 0D 03 02 00 00 00 00 71 [08:33:10]Write i2c OK [08:33:10]MH_I2C_Read... [08:33:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:33:10]Read from MH i2c: E2 [08:33:10]MH_I2C_Read... [08:33:10]Read from MH i2c: E2 0B 00 [08:33:10]MH_I2C_Read... [08:33:10]Read from MH i2c: E2 0B 00 D4 22 00 34 28 48 B7 38 4A 90 81 90 00 60 [08:33:10]RAPDU: 34 28 48 B7 38 4A 90 81 90 00 [08:33:10]wFMCommunicate OK [08:33:10]SAM_PROTO_SignData done [08:33:10]FM_MakeSignedData done [08:33:10]CreateOFDProtocolMessage [08:33:10]wFMCommunicate request_size=4 [08:33:10]MH_SAM_APDU [08:33:10]CAPDU: 80 11 00 00 [08:33:10]Write to MH i2c: E2 08 00 D5 22 80 11 00 00 00 00 00 00 71 [08:33:10]Write i2c OK [08:33:10]MH_I2C_Read... [08:33:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:33:11]Read from MH i2c: E2 [08:33:11]MH_I2C_Read... [08:33:11]Read from MH i2c: E2 17 00 [08:33:11]MH_I2C_Read... [08:33:11]Read from MH i2c: E2 17 00 D5 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 C7 [08:33:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [08:33:11]wFMCommunicate OK [08:33:11]CreateOFDProtocolMessage done [08:33:11]OFDSenderStorePacket 67783 [08:33:11]StoreOFDPacket docnum=67783 [08:33:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 01 00 00 F1 7C 08 01 AD 86 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A5 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A5 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 C9 67 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 C7 08 01 00 35 04 06 00 40 7F C0 99 D7 77 34 28 48 B7 38 4A 90 81 [08:33:11]CheckFolder [08:33:11]dirname=/storage/ofd_packets [08:33:11]CheckFolder done [08:33:11]ProducePacketName [08:33:11]name=ofd_packets/00067783 [08:33:11]NVStorageSaveData ofd_packets/00067783 [08:33:11]File name is /storage/ofd_packets/00067783 [08:33:11]Write 302 bytes [08:33:11]NVStorageSaveData done [08:33:11]OFDSenderStorePacket done [08:33:11]KKMCreateOFDPacket done [08:33:11]NVStorageSaveData kkm_last_timestamp [08:33:11]File name is /storage/kkm_last_timestamp [08:33:11]Write 4 bytes [08:33:11]NVStorageSaveData done [08:33:11]ExternCall_PrintAddStr [08:33:11]wPrintStart [08:33:11]Write to MH i2c: 01 00 00 D6 22 F8 [08:33:11]Write i2c OK [08:33:11]MH_I2C_Read... [08:33:11]Read from MH i2c: 01 [08:33:11]MH_I2C_Read... [08:33:11]Read from MH i2c: 01 07 00 [08:33:11]MH_I2C_Read... [08:33:11]Read from MH i2c: 01 07 00 D6 22 00 00 00 00 00 FF 0F 0D [08:33:11]RasterBufferAndPrint [08:33:11]line Счет N : (1)507959 [08:33:11]line ИНН: 02508201610067 [08:33:11]line Контрольно-Кассовый Чек [08:33:11]line ПРОДАЖА [08:33:11]line ТРК (МРК, ГНК) : 32 [08:33:11]line Товар: 2710124130 [08:33:11]line Super-92-К-5 [08:33:11]line 14.750 * 67.80 [08:33:11]line = 1000.05 [08:33:11]line НДС 12% НСП 1% [08:33:11]line > о реализуемом товаре [08:33:11]line ИТОГО: 1000.05 [08:33:11]line НСП 1% : 8.85 [08:33:11]line НДС 12% : 106.20 [08:33:11]line Наличными: 0.00 [08:33:11]line Безнал.: 1000.05 [08:33:11]line Место: АЗС № 91 "Партнер Нефть" [08:33:11]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [08:33:11]line СНО: Общий режим [08:33:11]line Чек 22 18.05.2024 08:33 [08:33:11]line Смена: 359 ФФД: 1.0 [08:33:11]line ЗНМ: 0300000119 [08:33:11]line РНМ: 0000000000091845 [08:33:11]line Версия ККМ: 001 [08:33:11]line Платежная система: O! деньги [08:33:11]line ФМ: 0000000000871829 [08:33:11]line ФД: 67783 [08:33:11]line ФПД: 70917436331895 [08:33:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T083313&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67783&fm=70917436331895&tin=02508201610067®Number=0000000000091845&sum=100005 [08:33:11]written 0, free lines is 4095 [08:33:11]OFD Sender: Processing packet 67783 [packets to send 35, broken 34] [08:33:11]ProducePacketName [08:33:11]name=ofd_packets/00067783 [08:33:11]OFD Sender: To server: pG, [08:33:11]CommunicateWithHost lk.salyk.kg:30040 [08:33:11]ConnectInit lk.salyk.kg [08:33:11]Connected sock=10 [08:33:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 01 00 00 F1 7C 08 01 AD 86 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A5 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A5 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 C9 67 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 C7 08 01 00 35 04 06 00 40 7F C0 99 D7 77 34 28 48 B7 38 4A 90 81 [08:33:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 1E A7 47 00 27 10 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 C7 08 01 00 F4 03 04 00 9F 0F 48 66 B6 04 01 00 00 0E 8E E0 3B 1C 01 4C C4 [08:33:11]CommunicateWithHost err = 0 [08:33:11]CheckOFDResponse [08:33:11]1017 (14) - 77093643461234 [08:33:11]1041 (16) - 0000000000871829 [08:33:11]1040 (4) - 67783 [08:33:11]1012 (4) - 18.05.2024 02:17 [08:33:11]1206 (1) - 0 [08:33:11]OFD Sender: Remove packet 67783 [08:33:11]ProducePacketName [08:33:11]name=ofd_packets/00067783 [08:33:11]NVStorageDeleteData [08:33:11]Write to MH i2c: 01 00 00 FF 22 21 [08:33:11]Write i2c OK [08:33:11]MH_I2C_Read... [08:33:11]Read from MH i2c: 01 [08:33:11]MH_I2C_Read... [08:33:11]Read from MH i2c: 01 07 00 [08:33:11]MH_I2C_Read... [08:33:11]Read from MH i2c: 01 07 00 FF 22 00 00 00 00 00 DA 0C 0E [08:33:11]RasterBufferAndPrint [08:33:11]line [08:33:11]line [08:33:11]line [08:33:11]line [08:33:11]line [08:33:11]written 0, free lines is 3297 [08:33:11]MH_Cut [08:33:11]Write to MH i2c: D1 01 00 06 23 01 FB [08:33:11]Write i2c OK [08:33:11]MH_I2C_Read... [08:33:11]Read from MH i2c: D1 [08:33:11]MH_I2C_Read... [08:33:11]Read from MH i2c: D1 01 00 [08:33:11]MH_I2C_Read... [08:33:11]Read from MH i2c: D1 01 00 06 23 00 FA [08:33:11]Write to MH i2c: 01 00 00 07 23 2A [08:33:11]Write i2c OK [08:33:11]MH_I2C_Read... [08:33:11]OFD Sender: No OFD packet to send [08:33:12]*** Cut start [08:33:12]*** Purtial cut [08:33:12]*** Stage 1: CUTSNS_PIN = 1 [08:33:12]Read from MH i2c: 01 [08:33:12]MH_I2C_Read... [08:33:12]*** Stop cut motor [08:33:12]*** Cut end [08:33:12]Read from MH i2c: 01 07 00 [08:33:12]MH_I2C_Read... [08:33:12]Read from MH i2c: 01 07 00 07 23 00 00 00 00 00 FF 0F 3F [08:33:12]process_action close_receipt done [08:33:12]requested_data is exist [08:33:12]produce_requested_data [08:33:12]requested_item fm.sn is exist - process it [08:33:12]wFMCommunicate request_size=4 [08:33:12]MH_SAM_APDU [08:33:12]CAPDU: 80 11 00 00 [08:33:12]Write to MH i2c: E2 08 00 08 23 80 11 00 00 00 00 00 00 A5 [08:33:12]Write i2c OK [08:33:12]MH_I2C_Read... [08:33:12]Read from MH i2c: E2 [08:33:12]MH_I2C_Read... [08:33:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:33:12]Read from MH i2c: E2 17 00 [08:33:12]MH_I2C_Read... [08:33:12]Read from MH i2c: E2 17 00 08 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 FB [08:33:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [08:33:12]wFMCommunicate OK [08:33:12]requested_item fd.num is exist - process it [08:33:12]SAM_PROTO_GetFieldsCounters [08:33:12]wFMCommunicate request_size=4 [08:33:12]MH_SAM_APDU [08:33:12]CAPDU: 80 13 00 00 [08:33:12]Write to MH i2c: E2 08 00 09 23 80 13 00 00 00 00 00 00 A8 [08:33:12]Write i2c OK [08:33:12]MH_I2C_Read... [08:33:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:33:12]Read from MH i2c: E2 [08:33:12]MH_I2C_Read... [08:33:12]Read from MH i2c: E2 62 00 [08:33:12]MH_I2C_Read... [08:33:12]Read from MH i2c: E2 62 00 09 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 C7 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 48 [08:33:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 C7 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:33:12]wFMCommunicate OK [08:33:12]SAM_PROTO_GetFieldsCounters done [08:33:12]requested_item shift.num is exist - process it [08:33:12]requested_item shift.opened is exist - process it [08:33:12]req_shift_opened [08:33:12]FM_GetShiftState [08:33:12]SAM_PROTO_GetShiftState [08:33:12]wFMCommunicate request_size=4 [08:33:12]MH_SAM_APDU [08:33:12]CAPDU: 80 13 01 00 [08:33:12]Write to MH i2c: E2 08 00 0A 23 80 13 01 00 00 00 00 00 AA [08:33:12]Write i2c OK [08:33:12]MH_I2C_Read... [08:33:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:33:12]Read from MH i2c: E2 [08:33:12]MH_I2C_Read... [08:33:12]Read from MH i2c: E2 0E 00 [08:33:12]MH_I2C_Read... [08:33:12]Read from MH i2c: E2 0E 00 0A 23 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 11 [08:33:12]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [08:33:12]wFMCommunicate OK [08:33:12]SAM_PROTO_GetShiftState done [08:33:12]FM_GetShiftState done [08:33:12]req_shift_opened done [08:33:12]requested_item shift.open_date is exist - process it [08:33:12]req_shift_open_date [08:33:12]req_shift_open_date done [08:33:12]produce_requested_data done [08:33:12]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67783,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [08:33:12]process_action_free close_receipt [08:33:12]json_value_free [08:33:12]json_value_free done [08:33:12]process_json_proto returns [08:33:12]Send response to host [08:33:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67783,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [08:33:12]free response buf [08:33:12]execute_script done [08:33:12]execute_script returns [08:33:12]free content buf [08:33:12]Sock 7.Close socket [08:33:12]Sock 7.Thread stoped [08:33:16]OFD Sender: No OFD packet to send [08:33:21]OFD Sender: No OFD packet to send [08:33:26]OFD Sender: No OFD packet to send [08:33:31]OFD Sender: No OFD packet to send [08:33:36]OFD Sender: No OFD packet to send [08:33:41]OFD Sender: No OFD packet to send [08:33:46]OFD Sender: No OFD packet to send [08:33:51]OFD Sender: No OFD packet to send [08:33:56]OFD Sender: No OFD packet to send [08:34:01]OFD Sender: No OFD packet to send [08:34:06]OFD Sender: No OFD packet to send [08:34:11]OFD Sender: No OFD packet to send [08:34:16]OFD Sender: No OFD packet to send [08:34:21]OFD Sender: No OFD packet to send [08:34:26]OFD Sender: No OFD packet to send [08:34:32]OFD Sender: No OFD packet to send [08:34:37]OFD Sender: No OFD packet to send [08:34:42]OFD Sender: No OFD packet to send [08:34:47]OFD Sender: No OFD packet to send [08:34:52]OFD Sender: No OFD packet to send [08:34:57]OFD Sender: No OFD packet to send [08:35:02]OFD Sender: No OFD packet to send [08:35:07]OFD Sender: No OFD packet to send [08:35:12]OFD Sender: No OFD packet to send [08:35:17]OFD Sender: No OFD packet to send [08:35:22]OFD Sender: No OFD packet to send [08:35:27]OFD Sender: No OFD packet to send [08:35:32]OFD Sender: No OFD packet to send [08:35:33]accept exits with 9 [08:35:33]New connection [08:35:33]New thread 3066752356 created [08:35:33]Thread 3066608996 joined [08:35:33]Waiting for new connection... [08:35:33] Sock 9.Parse request [08:35:33]Sock 9.Check first char [08:35:33]Sock 9.First char is OK [08:35:33]request: POST /json_proto HTTP/1.0 [08:35:33]Method: POST [08:35:33]URL: /json_proto [08:35:33]Method is POST - this is cgi request [08:35:33]url: /json_proto [08:35:33]query_string will be loaded in cgi processing [08:35:33]execute_cgi json_proto POST (null) [08:35:33]execute_cgi path=json_proto method=POST [08:35:33]POST find Content-Length [08:35:33]Host: 172.17.41.195:8080 [08:35:33]Content-Length: 1174 [08:35:33]Content-Type: application/json [08:35:33] [08:35:33]POST finish read [08:35:33]Found Content-Length = 1174 [08:35:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0440\u0441\u0442\u0430\u043D\u0431\u0435\u043A\u043E\u0432 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)507960\u000A18.05.2024 08:18\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 13\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 66.80\u000A\u0418\u0422\u041E\u0413: 1336.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30087219\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:35:33]execute_script... [08:35:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0440\u0441\u0442\u0430\u043D\u0431\u0435\u043A\u043E\u0432 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)507960\u000A18.05.2024 08:18\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 13\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 66.80\u000A\u0418\u0422\u041E\u0413: 1336.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30087219\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:35:33]POST & json_proto [08:35:33]process_json_proto [08:35:33]json parsed OK: [08:35:33]protocol is kg_v1.0 [08:35:33]action value=print_text [08:35:33]process_action print_text [08:35:33]cmd_print_text [08:35:33]ExternCall_PrintAddStr [08:35:33]wPrintStart [08:35:33]Write to MH i2c: 01 00 00 0B 23 2E [08:35:33]Write i2c OK [08:35:33]MH_I2C_Read... [08:35:33]Read from MH i2c: 01 [08:35:33]MH_I2C_Read... [08:35:33]Read from MH i2c: 01 07 00 [08:35:33]MH_I2C_Read... [08:35:33]Read from MH i2c: 01 07 00 0B 23 00 00 00 00 00 FF 0F 43 [08:35:33]RasterBufferAndPrint [08:35:33]line *****ТОВАРНЫЙ ЧЕК***** [08:35:33]line АЗС-91 [08:35:33]line Партнер нефть [08:35:33]line 02508201610067 [08:35:33]line Кассир : Арстанбеков Н. [08:35:33]line Счет N : (1)507960 [08:35:33]line 18.05.2024 08:18 [08:35:33]line ПРОДАЖА [08:35:33]line ТРК (МРК, ГНК): 13 [08:35:33]line Вид ГСМ : 2710124130 [08:35:33]line Аи-92-К-5 [08:35:33]line 20.000 x 66.80 [08:35:33]line ИТОГ: 1336.00 [08:35:33]line Тип оплаты: Талоны: ТК ГПНА Online [08:35:33]line 30087219 [08:35:33]line ______________________ [08:35:33]line (подпись) [08:35:33]written 0, free lines is 4095 [08:35:33]Write to MH i2c: 01 00 00 1F 23 42 [08:35:33]Write i2c OK [08:35:33]MH_I2C_Read... [08:35:33]Read from MH i2c: 01 [08:35:33]MH_I2C_Read... [08:35:33]Read from MH i2c: 01 07 00 [08:35:33]MH_I2C_Read... [08:35:33]Read from MH i2c: 01 07 00 1F 23 00 00 00 00 00 13 0E 6A [08:35:33]RasterBufferAndPrint [08:35:33]line [08:35:33]line [08:35:33]line [08:35:33]line [08:35:33]line [08:35:33]written 0, free lines is 3604 [08:35:33]MH_Cut [08:35:33]Write to MH i2c: D1 01 00 26 23 01 1B [08:35:33]Write i2c OK [08:35:33]MH_I2C_Read... [08:35:33]Read from MH i2c: D1 [08:35:33]MH_I2C_Read... [08:35:33]Read from MH i2c: D1 01 00 [08:35:33]MH_I2C_Read... [08:35:33]Read from MH i2c: D1 01 00 26 23 00 1A [08:35:33]Write to MH i2c: 01 00 00 27 23 4A [08:35:33]Write i2c OK [08:35:33]MH_I2C_Read... [08:35:34]*** Cut start [08:35:34]*** Purtial cut [08:35:34]*** CUTSNS_PIN = 0 [08:35:34]*** Stage 1: CUTSNS_PIN = 1 [08:35:36]Read from MH i2c: 01 [08:35:36]MH_I2C_Read... [08:35:36]*** Stop cut motor [08:35:36]*** Cut end [08:35:36]Read from MH i2c: 01 07 00 [08:35:36]MH_I2C_Read... [08:35:36]Read from MH i2c: 01 07 00 27 23 00 00 00 00 00 FF 0F 5F [08:35:36]process_action print_text done [08:35:36]requested_data is exist [08:35:36]produce_requested_data [08:35:36]requested_item fm.sn is exist - process it [08:35:36]wFMCommunicate request_size=4 [08:35:36]MH_SAM_APDU [08:35:36]CAPDU: 80 11 00 00 [08:35:36]Write to MH i2c: E2 08 00 28 23 80 11 00 00 00 00 00 00 C5 [08:35:36]Write i2c OK [08:35:36]MH_I2C_Read... [08:35:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:35:36]Read from MH i2c: E2 [08:35:36]MH_I2C_Read... [08:35:36]Read from MH i2c: E2 17 00 [08:35:36]MH_I2C_Read... [08:35:36]Read from MH i2c: E2 17 00 28 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 1B [08:35:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [08:35:36]wFMCommunicate OK [08:35:36]requested_item fd.num is exist - process it [08:35:36]SAM_PROTO_GetFieldsCounters [08:35:36]wFMCommunicate request_size=4 [08:35:36]MH_SAM_APDU [08:35:36]CAPDU: 80 13 00 00 [08:35:36]Write to MH i2c: E2 08 00 29 23 80 13 00 00 00 00 00 00 C8 [08:35:36]Write i2c OK [08:35:36]MH_I2C_Read... [08:35:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:35:36]Read from MH i2c: E2 [08:35:36]MH_I2C_Read... [08:35:36]Read from MH i2c: E2 62 00 [08:35:36]MH_I2C_Read... [08:35:36]Read from MH i2c: E2 62 00 29 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 C7 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 68 [08:35:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 C7 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:35:36]wFMCommunicate OK [08:35:36]SAM_PROTO_GetFieldsCounters done [08:35:36]requested_item shift.num is exist - process it [08:35:36]requested_item shift.opened is exist - process it [08:35:36]req_shift_opened [08:35:36]FM_GetShiftState [08:35:36]SAM_PROTO_GetShiftState [08:35:36]wFMCommunicate request_size=4 [08:35:36]MH_SAM_APDU [08:35:36]CAPDU: 80 13 01 00 [08:35:36]Write to MH i2c: E2 08 00 2A 23 80 13 01 00 00 00 00 00 CA [08:35:36]Write i2c OK [08:35:36]MH_I2C_Read... [08:35:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:35:36]Read from MH i2c: E2 [08:35:36]MH_I2C_Read... [08:35:36]Read from MH i2c: E2 0E 00 [08:35:36]MH_I2C_Read... [08:35:36]Read from MH i2c: E2 0E 00 2A 23 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 31 [08:35:36]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [08:35:36]wFMCommunicate OK [08:35:36]SAM_PROTO_GetShiftState done [08:35:36]FM_GetShiftState done [08:35:36]req_shift_opened done [08:35:36]requested_item shift.open_date is exist - process it [08:35:36]req_shift_open_date [08:35:36]req_shift_open_date done [08:35:36]produce_requested_data done [08:35:36]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67783,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [08:35:36]process_action_free print_text [08:35:36]json_value_free [08:35:36]json_value_free done [08:35:36]process_json_proto returns [08:35:36]Send response to host [08:35:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67783,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [08:35:36]free response buf [08:35:36]execute_script done [08:35:36]execute_script returns [08:35:36]free content buf [08:35:36]Sock 9.Close socket [08:35:36]Sock 9.Thread stoped [08:35:36]accept exits with 7 [08:35:36]New connection [08:35:36]New thread 3066608996 created [08:35:36]Thread 3066752356 joined [08:35:36]Waiting for new connection... [08:35:36] Sock 7.Parse request [08:35:36]Sock 7.Check first char [08:35:36]Sock 7.First char is OK [08:35:36]request: POST /json_proto HTTP/1.0 [08:35:36]Method: POST [08:35:36]URL: /json_proto [08:35:36]Method is POST - this is cgi request [08:35:36]url: /json_proto [08:35:36]query_string will be loaded in cgi processing [08:35:36]execute_cgi json_proto POST (null) [08:35:36]execute_cgi path=json_proto method=POST [08:35:36]POST find Content-Length [08:35:36]Host: 172.17.41.195:8080 [08:35:36]Content-Length: 816 [08:35:36]Content-Type: application/json [08:35:36] [08:35:36]POST finish read [08:35:36]Found Content-Length = 816 [08:35:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507961", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.80, "quantity" : 7.490, "sum" : 500.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.33 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:35:36]execute_script... [08:35:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507961", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.80, "quantity" : 7.490, "sum" : 500.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.33 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:35:36]POST & json_proto [08:35:36]process_json_proto [08:35:36]json parsed OK: [08:35:36]protocol is kg_v1.0 [08:35:36]action value=close_receipt [08:35:36]process_action close_receipt [08:35:36]cmd_close_receipt [08:35:36]MH_GetDate [08:35:36]Write to MH i2c: F0 00 00 2B 23 3D [08:35:36]Write i2c OK [08:35:36]MH_I2C_Read... [08:35:36]Read from MH i2c: F0 [08:35:36]MH_I2C_Read... [08:35:36]Read from MH i2c: F0 09 00 [08:35:36]MH_I2C_Read... [08:35:36]Read from MH i2c: F0 09 00 2B 23 00 5D 68 48 66 FC 21 6F 64 A9 [08:35:36]GetLastDocTimeStamp 1716021193 [08:35:36]current date 1716021341 [08:35:36]FM_GetShiftState [08:35:36]SAM_PROTO_GetShiftState [08:35:36]wFMCommunicate request_size=4 [08:35:36]MH_SAM_APDU [08:35:36]CAPDU: 80 13 01 00 [08:35:36]Write to MH i2c: E2 08 00 2C 23 80 13 01 00 00 00 00 00 CC [08:35:36]Write i2c OK [08:35:36]MH_I2C_Read... [08:35:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:35:37]Read from MH i2c: E2 [08:35:37]MH_I2C_Read... [08:35:37]Read from MH i2c: E2 0E 00 [08:35:37]MH_I2C_Read... [08:35:37]Read from MH i2c: E2 0E 00 2C 23 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 33 [08:35:37]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [08:35:37]wFMCommunicate OK [08:35:37]SAM_PROTO_GetShiftState done [08:35:37]FM_GetShiftState done [08:35:37]opened in 1715991483 [08:35:37]opened+sec_in_day 1716077883 [08:35:37]quantity*price = 50033 [08:35:37]sum+1 = 50034 [08:35:37]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.33 НСП 1% : 4.43 НДС 12% : 53.13 Наличными: 0.00 Безнал.: 500.33 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 23 18.05.2024 08:35 Смена: 359 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871829 ФД: 67784 ФПД: 193812882601345 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T083541&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67784&fm=193812882601345&tin=02508201610067®Number=0000000000091845&sum=50033 [08:35:38]StoreToDocumentArchive [08:35:38]shift 359 fd 67784 [08:35:38]save to /storage/0359/doc_00067784 [08:35:38]save last doc name /storage/0359/doc_00067784 to /storage/kkm_last_doc_name [08:35:38]save OK [08:35:38]Clear old archive folders... [08:35:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:35:38]tlvbuf is 01B573E0 [08:35:38]SAM_PROTO_ClearQueue [08:35:38]wFMCommunicate request_size=4 [08:35:38]MH_SAM_APDU [08:35:38]CAPDU: 80 09 00 00 [08:35:38]Write to MH i2c: E2 08 00 39 23 80 09 00 00 00 00 00 00 CE [08:35:38]Write i2c OK [08:35:38]MH_I2C_Read... [08:35:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:35:38]Read from MH i2c: E2 [08:35:38]MH_I2C_Read... [08:35:38]Read from MH i2c: E2 03 00 [08:35:38]MH_I2C_Read... [08:35:38]Read from MH i2c: E2 03 00 39 23 00 90 00 D0 [08:35:38]RAPDU: 90 00 [08:35:38]wFMCommunicate OK [08:35:38]SAM_PROTO_ClearQueue done [08:35:38]KKMCreateOFDPacket [08:35:38]OFDProtocolAddRootSTLVToBuf [08:35:38]FM_MakeSignedData [08:35:38]FM_MakeSignedData [08:35:38]SAM_PROTO_SignData [08:35:38]wFMCommunicate request_size=4 [08:35:38]MH_SAM_APDU [08:35:38]CAPDU: 80 0D 01 02 [08:35:38]Write to MH i2c: E2 08 00 3A 23 80 0D 01 02 00 00 00 00 D6 [08:35:38]Write i2c OK [08:35:38]MH_I2C_Read... [08:35:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:35:38]Read from MH i2c: E2 [08:35:38]MH_I2C_Read... [08:35:38]Read from MH i2c: E2 03 00 [08:35:38]MH_I2C_Read... [08:35:38]Read from MH i2c: E2 03 00 3A 23 00 90 00 D1 [08:35:38]RAPDU: 90 00 [08:35:38]wFMCommunicate OK [08:35:38]wFMCommunicate request_size=255 [08:35:38]MH_SAM_APDU [08:35:38]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 42 1D 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 71 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 71 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 5D 68 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 C8 08 01 00 35 04 06 00 B0 [08:35:38]Write to MH i2c: E2 02 01 3B 23 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 42 1D 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 71 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 71 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 5D 68 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 C8 08 01 00 35 04 06 00 B0 00 00 16 [08:35:38]Write i2c OK [08:35:38]MH_I2C_Read... [08:35:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:35:38]Read from MH i2c: E2 [08:35:38]MH_I2C_Read... [08:35:38]Read from MH i2c: E2 03 00 [08:35:38]MH_I2C_Read... [08:35:38]Read from MH i2c: E2 03 00 3B 23 00 90 00 D2 [08:35:38]RAPDU: 90 00 [08:35:38]wFMCommunicate OK [08:35:38]wFMCommunicate request_size=10 [08:35:38]MH_SAM_APDU [08:35:38]CAPDU: 80 0D 02 02 05 45 94 05 35 81 [08:35:38]Write to MH i2c: E2 0D 00 3C 23 80 0D 02 02 05 00 45 94 05 35 81 00 00 77 [08:35:38]Write i2c OK [08:35:38]MH_I2C_Read... [08:35:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:35:38]Read from MH i2c: E2 [08:35:38]MH_I2C_Read... [08:35:38]Read from MH i2c: E2 03 00 [08:35:38]MH_I2C_Read... [08:35:38]Read from MH i2c: E2 03 00 3C 23 00 90 00 D3 [08:35:38]RAPDU: 90 00 [08:35:38]wFMCommunicate OK [08:35:38]wFMCommunicate request_size=4 [08:35:38]MH_SAM_APDU [08:35:38]CAPDU: 80 0D 03 02 [08:35:38]Write to MH i2c: E2 08 00 3D 23 80 0D 03 02 00 00 00 00 DB [08:35:38]Write i2c OK [08:35:38]MH_I2C_Read... [08:35:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:35:38]Read from MH i2c: E2 [08:35:38]MH_I2C_Read... [08:35:38]Read from MH i2c: E2 0B 00 [08:35:38]MH_I2C_Read... [08:35:38]Read from MH i2c: E2 0B 00 3D 23 00 24 1F 24 B6 FA BB 2A 1E 90 00 F6 [08:35:38]RAPDU: 24 1F 24 B6 FA BB 2A 1E 90 00 [08:35:38]wFMCommunicate OK [08:35:38]SAM_PROTO_SignData done [08:35:38]FM_MakeSignedData done [08:35:38]CreateOFDProtocolMessage [08:35:38]wFMCommunicate request_size=4 [08:35:38]MH_SAM_APDU [08:35:38]CAPDU: 80 11 00 00 [08:35:38]Write to MH i2c: E2 08 00 3E 23 80 11 00 00 00 00 00 00 DB [08:35:38]Write i2c OK [08:35:38]MH_I2C_Read... [08:35:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:35:38]Read from MH i2c: E2 [08:35:38]MH_I2C_Read... [08:35:38]Read from MH i2c: E2 17 00 [08:35:38]MH_I2C_Read... [08:35:38]Read from MH i2c: E2 17 00 3E 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 31 [08:35:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [08:35:38]wFMCommunicate OK [08:35:38]CreateOFDProtocolMessage done [08:35:38]OFDSenderStorePacket 67784 [08:35:38]StoreOFDPacket docnum=67784 [08:35:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 0D 35 07 01 89 75 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 42 1D 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 71 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 71 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 5D 68 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 C8 08 01 00 35 04 06 00 B0 45 94 05 35 81 24 1F 24 B6 FA BB 2A 1E [08:35:38]CheckFolder [08:35:38]dirname=/storage/ofd_packets [08:35:38]CheckFolder done [08:35:38]ProducePacketName [08:35:38]name=ofd_packets/00067784 [08:35:38]NVStorageSaveData ofd_packets/00067784 [08:35:38]File name is /storage/ofd_packets/00067784 [08:35:38]Write 301 bytes [08:35:38]NVStorageSaveData done [08:35:38]OFDSenderStorePacket done [08:35:38]KKMCreateOFDPacket done [08:35:38]NVStorageSaveData kkm_last_timestamp [08:35:38]File name is /storage/kkm_last_timestamp [08:35:38]Write 4 bytes [08:35:38]NVStorageSaveData done [08:35:38]ExternCall_PrintAddStr [08:35:38]wPrintStart [08:35:38]Write to MH i2c: 01 00 00 3F 23 62 [08:35:38]Write i2c OK [08:35:38]MH_I2C_Read... [08:35:38]Read from MH i2c: 01 [08:35:38]MH_I2C_Read... [08:35:38]Read from MH i2c: 01 07 00 [08:35:38]MH_I2C_Read... [08:35:38]Read from MH i2c: 01 07 00 3F 23 00 00 00 00 00 FF 0F 77 [08:35:38]RasterBufferAndPrint [08:35:38]line Счет N : (1)507961 [08:35:38]line ИНН: 02508201610067 [08:35:39]line Контрольно-Кассовый Чек [08:35:39]line ПРОДАЖА [08:35:39]line ТРК (МРК, ГНК) : 33 [08:35:39]line Товар: 2710124130 [08:35:39]line Аи-92-К-5 [08:35:39]line 7.490 * 66.80 [08:35:39]line = 500.33 [08:35:39]line НДС 12% НСП 1% [08:35:39]line > о реализуемом товаре [08:35:39]line ИТОГО: 500.33 [08:35:39]line НСП 1% : 4.43 [08:35:39]line НДС 12% : 53.13 [08:35:39]line Наличными: 0.00 [08:35:39]line Безнал.: 500.33 [08:35:39]line Место: АЗС № 91 "Партнер Нефть" [08:35:39]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [08:35:39]line СНО: Общий режим [08:35:39]line Чек 23 18.05.2024 08:35 [08:35:39]line Смена: 359 ФФД: 1.0 [08:35:39]line ЗНМ: 0300000119 [08:35:39]line РНМ: 0000000000091845 [08:35:39]line Версия ККМ: 001 [08:35:39]line Платежная система: Бакай Банк [08:35:39]line ФМ: 0000000000871829 [08:35:39]line ФД: 67784 [08:35:39]line ФПД: 193812882601345 [08:35:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T083541&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67784&fm=193812882601345&tin=02508201610067®Number=0000000000091845&sum=50033 [08:35:39]OFD Sender: Processing packet 67784 [packets to send 35, broken 34] [08:35:39]ProducePacketName [08:35:39]name=ofd_packets/00067784 [08:35:39]OFD Sender: To server: pG, [08:35:39]CommunicateWithHost lk.salyk.kg:30040 [08:35:39]ConnectInit lk.salyk.kg [08:35:39]written 0, free lines is 4095 [08:35:39]Connected sock=10 [08:35:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 0D 35 07 01 89 75 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 42 1D 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 71 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 71 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 5D 68 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 C8 08 01 00 35 04 06 00 B0 45 94 05 35 81 24 1F 24 B6 FA BB 2A 1E [08:35:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 48 C1 47 00 FA E6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 C8 08 01 00 F4 03 04 00 33 10 48 66 B6 04 01 00 00 C0 7E 25 01 03 05 01 E6 [08:35:39]CommunicateWithHost err = 0 [08:35:39]CheckOFDResponse [08:35:39]1017 (14) - 77093643461234 [08:35:39]1041 (16) - 0000000000871829 [08:35:39]1040 (4) - 67784 [08:35:39]1012 (4) - 18.05.2024 02:19 [08:35:39]1206 (1) - 0 [08:35:39]OFD Sender: Remove packet 67784 [08:35:39]ProducePacketName [08:35:39]name=ofd_packets/00067784 [08:35:39]NVStorageDeleteData [08:35:39]Write to MH i2c: 01 00 00 68 23 8B [08:35:39]Write i2c OK [08:35:39]MH_I2C_Read... [08:35:39]Read from MH i2c: 01 [08:35:39]MH_I2C_Read... [08:35:39]Read from MH i2c: 01 07 00 [08:35:39]MH_I2C_Read... [08:35:39]Read from MH i2c: 01 07 00 68 23 00 00 00 00 00 EA 0C 88 [08:35:39]RasterBufferAndPrint [08:35:39]line [08:35:39]line [08:35:39]line [08:35:39]line [08:35:39]line [08:35:39]written 0, free lines is 3312 [08:35:39]MH_Cut [08:35:39]Write to MH i2c: D1 01 00 6F 23 01 64 [08:35:39]Write i2c OK [08:35:39]MH_I2C_Read... [08:35:39]Read from MH i2c: D1 [08:35:39]MH_I2C_Read... [08:35:39]Read from MH i2c: D1 01 00 [08:35:39]MH_I2C_Read... [08:35:39]Read from MH i2c: D1 01 00 6F 23 00 63 [08:35:39]Write to MH i2c: 01 00 00 70 23 93 [08:35:39]Write i2c OK [08:35:39]MH_I2C_Read... [08:35:40]OFD Sender: No OFD packet to send [08:35:40]*** Cut start [08:35:40]*** Purtial cut [08:35:40]*** Stage 1: CUTSNS_PIN = 1 [08:35:40]Read from MH i2c: 01 [08:35:40]MH_I2C_Read... [08:35:40]*** Stop cut motor [08:35:40]Read from MH i2c: *** Cut end [08:35:40]01 07 00 [08:35:40]MH_I2C_Read... [08:35:40]Read from MH i2c: 01 07 00 70 23 00 00 00 00 00 FF 0F A8 [08:35:40]process_action close_receipt done [08:35:40]requested_data is exist [08:35:40]produce_requested_data [08:35:40]requested_item fm.sn is exist - process it [08:35:40]wFMCommunicate request_size=4 [08:35:40]MH_SAM_APDU [08:35:40]CAPDU: 80 11 00 00 [08:35:40]Write to MH i2c: E2 08 00 71 23 80 11 00 00 00 00 00 00 0E [08:35:40]Write i2c OK [08:35:40]MH_I2C_Read... [08:35:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:35:40]Read from MH i2c: E2 [08:35:40]MH_I2C_Read... [08:35:40]Read from MH i2c: E2 17 00 [08:35:40]MH_I2C_Read... [08:35:40]Read from MH i2c: E2 17 00 71 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 64 [08:35:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [08:35:40]wFMCommunicate OK [08:35:40]requested_item fd.num is exist - process it [08:35:40]SAM_PROTO_GetFieldsCounters [08:35:40]wFMCommunicate request_size=4 [08:35:40]MH_SAM_APDU [08:35:40]CAPDU: 80 13 00 00 [08:35:40]Write to MH i2c: E2 08 00 72 23 80 13 00 00 00 00 00 00 11 [08:35:40]Write i2c OK [08:35:40]MH_I2C_Read... [08:35:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:35:41]Read from MH i2c: E2 [08:35:41]MH_I2C_Read... [08:35:41]Read from MH i2c: E2 62 00 [08:35:41]MH_I2C_Read... [08:35:41]Read from MH i2c: E2 62 00 72 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 C8 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 B5 [08:35:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 C8 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:35:41]wFMCommunicate OK [08:35:41]SAM_PROTO_GetFieldsCounters done [08:35:41]requested_item shift.num is exist - process it [08:35:41]requested_item shift.opened is exist - process it [08:35:41]req_shift_opened [08:35:41]FM_GetShiftState [08:35:41]SAM_PROTO_GetShiftState [08:35:41]wFMCommunicate request_size=4 [08:35:41]MH_SAM_APDU [08:35:41]CAPDU: 80 13 01 00 [08:35:41]Write to MH i2c: E2 08 00 73 23 80 13 01 00 00 00 00 00 13 [08:35:41]Write i2c OK [08:35:41]MH_I2C_Read... [08:35:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:35:41]Read from MH i2c: E2 [08:35:41]MH_I2C_Read... [08:35:41]Read from MH i2c: E2 0E 00 [08:35:41]MH_I2C_Read... [08:35:41]Read from MH i2c: E2 0E 00 73 23 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 7A [08:35:41]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [08:35:41]wFMCommunicate OK [08:35:41]SAM_PROTO_GetShiftState done [08:35:41]FM_GetShiftState done [08:35:41]req_shift_opened done [08:35:41]requested_item shift.open_date is exist - process it [08:35:41]req_shift_open_date [08:35:41]req_shift_open_date done [08:35:41]produce_requested_data done [08:35:41]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67784,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [08:35:41]process_action_free close_receipt [08:35:41]json_value_free [08:35:41]json_value_free done [08:35:41]process_json_proto returns [08:35:41]Send response to host [08:35:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67784,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [08:35:41]free response buf [08:35:41]execute_script done [08:35:41]execute_script returns [08:35:41]free content buf [08:35:41]Sock 7.Close socket [08:35:41]Sock 7.Thread stoped [08:35:45]OFD Sender: No OFD packet to send [08:35:50]OFD Sender: No OFD packet to send [08:35:55]OFD Sender: No OFD packet to send [08:36:00]OFD Sender: No OFD packet to send [08:36:05]OFD Sender: No OFD packet to send [08:36:10]OFD Sender: No OFD packet to send [08:36:15]OFD Sender: No OFD packet to send [08:36:20]OFD Sender: No OFD packet to send [08:36:25]OFD Sender: No OFD packet to send [08:36:30]OFD Sender: No OFD packet to send [08:36:35]OFD Sender: No OFD packet to send [08:36:40]OFD Sender: No OFD packet to send [08:36:43]accept exits with 9 [08:36:43]New connection [08:36:43]New thread 3066752356 created [08:36:43]Thread 3066608996 joined [08:36:43]Waiting for new connection... [08:36:43] Sock 9.Parse request [08:36:43]Sock 9.Check first char [08:36:43]Sock 9.First char is OK [08:36:43]request: POST /json_proto HTTP/1.0 [08:36:43]Method: POST [08:36:43]URL: /json_proto [08:36:43]Method is POST - this is cgi request [08:36:43]url: /json_proto [08:36:43]query_string will be loaded in cgi processing [08:36:43]execute_cgi json_proto POST (null) [08:36:43]execute_cgi path=json_proto method=POST [08:36:43]POST find Content-Length [08:36:43]Host: 172.17.41.195:8080 [08:36:43]Content-Length: 801 [08:36:43]Content-Type: application/json [08:36:43] [08:36:43]POST finish read [08:36:43]Found Content-Length = 801 [08:36:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507962", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.80, "quantity" : 10.480, "sum" : 700.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 700.06 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:36:43]execute_script... [08:36:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507962", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.80, "quantity" : 10.480, "sum" : 700.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 700.06 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:36:43]POST & json_proto [08:36:43]process_json_proto [08:36:43]json parsed OK: [08:36:43]protocol is kg_v1.0 [08:36:43]action value=close_receipt [08:36:43]process_action close_receipt [08:36:43]cmd_close_receipt [08:36:43]MH_GetDate [08:36:43]Write to MH i2c: F0 00 00 74 23 86 [08:36:43]Write i2c OK [08:36:43]MH_I2C_Read... [08:36:43]Read from MH i2c: F0 [08:36:43]MH_I2C_Read... [08:36:43]Read from MH i2c: F0 09 00 [08:36:43]MH_I2C_Read... [08:36:43]Read from MH i2c: F0 09 00 74 23 00 9F 68 48 66 FC 21 6F 64 34 [08:36:43]GetLastDocTimeStamp 1716021341 [08:36:43]current date 1716021407 [08:36:43]FM_GetShiftState [08:36:43]SAM_PROTO_GetShiftState [08:36:43]wFMCommunicate request_size=4 [08:36:43]MH_SAM_APDU [08:36:43]CAPDU: 80 13 01 00 [08:36:43]Write to MH i2c: E2 08 00 75 23 80 13 01 00 00 00 00 00 15 [08:36:43]Write i2c OK [08:36:43]MH_I2C_Read... [08:36:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:36:43]Read from MH i2c: E2 [08:36:43]MH_I2C_Read... [08:36:43]Read from MH i2c: E2 0E 00 [08:36:43]MH_I2C_Read... [08:36:43]Read from MH i2c: E2 0E 00 75 23 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 7C [08:36:43]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [08:36:43]wFMCommunicate OK [08:36:43]SAM_PROTO_GetShiftState done [08:36:43]FM_GetShiftState done [08:36:43]opened in 1715991483 [08:36:43]opened+sec_in_day 1716077883 [08:36:43]quantity*price = 70006 [08:36:43]sum+1 = 70007 [08:36:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 700.06 НСП 1% : 6.19 НДС 12% : 74.34 Наличными: 0.00 Безнал.: 700.06 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 24 18.05.2024 08:36 Смена: 359 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67785 ФПД: 249813687259683 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T083647&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67785&fm=249813687259683&tin=02508201610067®Number=0000000000091845&sum=70006 [08:36:44]StoreToDocumentArchive [08:36:44]shift 359 fd 67785 [08:36:44]save to /storage/0359/doc_00067785 [08:36:44]save last doc name /storage/0359/doc_00067785 to /storage/kkm_last_doc_name [08:36:44]save OK [08:36:44]Clear old archive folders... [08:36:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:36:44]tlvbuf is 01AE9190 [08:36:44]SAM_PROTO_ClearQueue [08:36:44]wFMCommunicate request_size=4 [08:36:44]MH_SAM_APDU [08:36:44]CAPDU: 80 09 00 00 [08:36:44]Write to MH i2c: E2 08 00 82 23 80 09 00 00 00 00 00 00 17 [08:36:44]Write i2c OK [08:36:44]MH_I2C_Read... [08:36:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:36:44]Read from MH i2c: E2 [08:36:44]MH_I2C_Read... [08:36:44]Read from MH i2c: E2 03 00 [08:36:44]MH_I2C_Read... [08:36:44]Read from MH i2c: E2 03 00 82 23 00 90 00 19 [08:36:44]RAPDU: 90 00 [08:36:44]wFMCommunicate OK [08:36:44]SAM_PROTO_ClearQueue done [08:36:44]KKMCreateOFDPacket [08:36:44]OFDProtocolAddRootSTLVToBuf [08:36:44]FM_MakeSignedData [08:36:44]FM_MakeSignedData [08:36:44]SAM_PROTO_SignData [08:36:44]wFMCommunicate request_size=4 [08:36:44]MH_SAM_APDU [08:36:44]CAPDU: 80 0D 01 02 [08:36:44]Write to MH i2c: E2 08 00 83 23 80 0D 01 02 00 00 00 00 1F [08:36:44]Write i2c OK [08:36:44]MH_I2C_Read... [08:36:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:36:44]Read from MH i2c: E2 [08:36:44]MH_I2C_Read... [08:36:44]Read from MH i2c: E2 03 00 [08:36:44]MH_I2C_Read... [08:36:44]Read from MH i2c: E2 03 00 83 23 00 90 00 1A [08:36:44]RAPDU: 90 00 [08:36:44]wFMCommunicate OK [08:36:44]wFMCommunicate request_size=255 [08:36:44]MH_SAM_APDU [08:36:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 28 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 76 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 76 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 76 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 9F 68 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 C9 08 01 00 35 04 06 00 E3 [08:36:44]Write to MH i2c: E2 02 01 84 23 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 28 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 76 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 76 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 76 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 9F 68 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 C9 08 01 00 35 04 06 00 E3 00 00 8E [08:36:44]Write i2c OK [08:36:44]MH_I2C_Read... [08:36:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:36:44]Read from MH i2c: E2 [08:36:44]MH_I2C_Read... [08:36:44]Read from MH i2c: E2 03 00 [08:36:44]MH_I2C_Read... [08:36:44]Read from MH i2c: E2 03 00 84 23 00 90 00 1B [08:36:44]RAPDU: 90 00 [08:36:44]wFMCommunicate OK [08:36:44]wFMCommunicate request_size=10 [08:36:44]MH_SAM_APDU [08:36:44]CAPDU: 80 0D 02 02 05 34 48 16 D2 23 [08:36:44]Write to MH i2c: E2 0D 00 85 23 80 0D 02 02 05 00 34 48 16 D2 23 00 00 B3 [08:36:44]Write i2c OK [08:36:44]MH_I2C_Read... [08:36:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:36:44]Read from MH i2c: E2 [08:36:44]MH_I2C_Read... [08:36:44]Read from MH i2c: E2 03 00 [08:36:44]MH_I2C_Read... [08:36:44]Read from MH i2c: E2 03 00 85 23 00 90 00 1C [08:36:44]RAPDU: 90 00 [08:36:44]wFMCommunicate OK [08:36:44]wFMCommunicate request_size=4 [08:36:44]MH_SAM_APDU [08:36:44]CAPDU: 80 0D 03 02 [08:36:44]Write to MH i2c: E2 08 00 86 23 80 0D 03 02 00 00 00 00 24 [08:36:44]Write i2c OK [08:36:44]MH_I2C_Read... [08:36:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:36:44]Read from MH i2c: E2 [08:36:44]MH_I2C_Read... [08:36:44]Read from MH i2c: E2 0B 00 [08:36:44]MH_I2C_Read... [08:36:44]Read from MH i2c: E2 0B 00 86 23 00 ED 7A C3 A2 D7 E7 60 49 90 00 58 [08:36:44]RAPDU: ED 7A C3 A2 D7 E7 60 49 90 00 [08:36:44]wFMCommunicate OK [08:36:44]SAM_PROTO_SignData done [08:36:44]FM_MakeSignedData done [08:36:44]CreateOFDProtocolMessage [08:36:44]wFMCommunicate request_size=4 [08:36:44]MH_SAM_APDU [08:36:44]CAPDU: 80 11 00 00 [08:36:44]Write to MH i2c: E2 08 00 87 23 80 11 00 00 00 00 00 00 24 [08:36:44]Write i2c OK [08:36:44]MH_I2C_Read... [08:36:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:36:45]Read from MH i2c: E2 [08:36:45]MH_I2C_Read... [08:36:45]Read from MH i2c: E2 17 00 [08:36:45]MH_I2C_Read... [08:36:45]Read from MH i2c: E2 17 00 87 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 7A [08:36:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [08:36:45]wFMCommunicate OK [08:36:45]CreateOFDProtocolMessage done [08:36:45]OFDSenderStorePacket 67785 [08:36:45]StoreOFDPacket docnum=67785 [08:36:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 66 EF 07 01 1F C9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 28 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 76 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 76 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 76 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 9F 68 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 C9 08 01 00 35 04 06 00 E3 34 48 16 D2 23 ED 7A C3 A2 D7 E7 60 49 [08:36:45]CheckFolder [08:36:45]dirname=/storage/ofd_packets [08:36:45]CheckFolder done [08:36:45]ProducePacketName [08:36:45]name=ofd_packets/00067785 [08:36:45]NVStorageSaveData ofd_packets/00067785 [08:36:45]File name is /storage/ofd_packets/00067785 [08:36:45]Write 301 bytes [08:36:45]NVStorageSaveData done [08:36:45]OFDSenderStorePacket done [08:36:45]KKMCreateOFDPacket done [08:36:45]NVStorageSaveData kkm_last_timestamp [08:36:45]File name is /storage/kkm_last_timestamp [08:36:45]Write 4 bytes [08:36:45]NVStorageSaveData done [08:36:45]ExternCall_PrintAddStr [08:36:45]wPrintStart [08:36:45]Write to MH i2c: 01 00 00 88 23 AB [08:36:45]Write i2c OK [08:36:45]MH_I2C_Read... [08:36:45]Read from MH i2c: 01 [08:36:45]MH_I2C_Read... [08:36:45]Read from MH i2c: 01 07 00 [08:36:45]MH_I2C_Read... [08:36:45]Read from MH i2c: 01 07 00 88 23 00 00 00 00 00 FF 0F C0 [08:36:45]RasterBufferAndPrint [08:36:45]line Счет N : (1)507962 [08:36:45]line ИНН: 02508201610067 [08:36:45]line Контрольно-Кассовый Чек [08:36:45]line ПРОДАЖА [08:36:45]line ТРК (МРК, ГНК) : 13 [08:36:45]line Товар: 2710124130 [08:36:45]line Аи-92-К-5 [08:36:45]line 10.480 * 66.80 [08:36:45]line = 700.06 [08:36:45]line НДС 12% НСП 1% [08:36:45]line > о реализуемом товаре [08:36:45]line ИТОГО: 700.06 [08:36:45]line НСП 1% : 6.19 [08:36:45]line НДС 12% : 74.34 [08:36:45]line Наличными: 0.00 [08:36:45]line Безнал.: 700.06 [08:36:45]line Место: АЗС № 91 "Партнер Нефть" [08:36:45]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [08:36:45]line СНО: Общий режим [08:36:45]line Чек 24 18.05.2024 08:36 [08:36:45]line Смена: 359 ФФД: 1.0 [08:36:45]line ЗНМ: 0300000119 [08:36:45]line РНМ: 0000000000091845 [08:36:45]line Версия ККМ: 001 [08:36:45]line Платежная система: O! деньги [08:36:45]line ФМ: 0000000000871829 [08:36:45]line ФД: 67785 [08:36:45]line ФПД: 249813687259683 [08:36:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T083647&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67785&fm=249813687259683&tin=02508201610067®Number=0000000000091845&sum=70006 [08:36:45]written 0, free lines is 4095 [08:36:45]OFD Sender: Processing packet 67785 [packets to send 35, broken 34] [08:36:45]ProducePacketName [08:36:45]name=ofd_packets/00067785 [08:36:45]OFD Sender: To server: pG, [08:36:45]CommunicateWithHost lk.salyk.kg:30040 [08:36:45]ConnectInit lk.salyk.kg [08:36:45]Connected sock=10 [08:36:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 66 EF 07 01 1F C9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 28 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 76 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 76 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 76 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 9F 68 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 C9 08 01 00 35 04 06 00 E3 34 48 16 D2 23 ED 7A C3 A2 D7 E7 60 49 [08:36:45]Write to MH i2c: 01 00 00 B1 23 D4 [08:36:45]Write i2c OK [08:36:45]MH_I2C_Read... [08:36:45]Read from MH i2c: 01 [08:36:45]MH_I2C_Read... [08:36:45]Read from MH i2c: 01 07 00 [08:36:45]MH_I2C_Read... [08:36:45]Read from MH i2c: 01 07 00 B1 23 00 00 00 00 00 EC 0C D3 [08:36:45]RasterBufferAndPrint [08:36:45]line [08:36:45]line [08:36:45]line [08:36:45]line [08:36:45]line [08:36:45]written 0, free lines is 3316 [08:36:45]MH_Cut [08:36:45]Write to MH i2c: D1 01 00 B8 23 01 AD [08:36:45]Write i2c OK [08:36:45]MH_I2C_Read... [08:36:45]Read from MH i2c: D1 [08:36:45]MH_I2C_Read... [08:36:45]Read from MH i2c: D1 01 00 [08:36:45]MH_I2C_Read... [08:36:45]Read from MH i2c: D1 01 00 B8 23 00 AC [08:36:45]Write to MH i2c: 01 00 00 B9 23 DC [08:36:45]Write i2c OK [08:36:45]MH_I2C_Read... [08:36:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 BF B8 47 00 6A 8A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 C9 08 01 00 F4 03 04 00 75 10 48 66 B6 04 01 00 00 62 A2 94 D9 66 B5 E3 14 [08:36:45]CommunicateWithHost err = 0 [08:36:45]CheckOFDResponse [08:36:45]1017 (14) - 77093643461234 [08:36:45]1041 (16) - 0000000000871829 [08:36:45]1040 (4) - 67785 [08:36:45]1012 (4) - 18.05.2024 02:20 [08:36:45]1206 (1) - 0 [08:36:45]OFD Sender: Remove packet 67785 [08:36:45]ProducePacketName [08:36:45]name=ofd_packets/00067785 [08:36:45]NVStorageDeleteData [08:36:46]OFD Sender: No OFD packet to send [08:36:46]*** Cut start [08:36:46]*** Purtial cut [08:36:46]*** CUTSNS_PIN = 0 [08:36:46]*** Stage 1: CUTSNS_PIN = 1 [08:36:48]Read from MH i2c: 01 [08:36:48]MH_I2C_Read... [08:36:48]*** Stop cut motor [08:36:48]*** Cut end [08:36:48]Read from MH i2c: 01 07 00 [08:36:48]MH_I2C_Read... [08:36:48]Read from MH i2c: 01 07 00 B9 23 00 00 00 00 00 FF 0F F1 [08:36:48]process_action close_receipt done [08:36:48]requested_data is exist [08:36:48]produce_requested_data [08:36:48]requested_item fm.sn is exist - process it [08:36:48]wFMCommunicate request_size=4 [08:36:48]MH_SAM_APDU [08:36:48]CAPDU: 80 11 00 00 [08:36:48]Write to MH i2c: E2 08 00 BA 23 80 11 00 00 00 00 00 00 57 [08:36:48]Write i2c OK [08:36:48]MH_I2C_Read... [08:36:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:36:48]Read from MH i2c: E2 [08:36:48]MH_I2C_Read... [08:36:48]Read from MH i2c: E2 17 00 [08:36:48]MH_I2C_Read... [08:36:48]Read from MH i2c: E2 17 00 BA 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 AD [08:36:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [08:36:48]wFMCommunicate OK [08:36:48]requested_item fd.num is exist - process it [08:36:48]SAM_PROTO_GetFieldsCounters [08:36:48]wFMCommunicate request_size=4 [08:36:48]MH_SAM_APDU [08:36:48]CAPDU: 80 13 00 00 [08:36:48]Write to MH i2c: E2 08 00 BB 23 80 13 00 00 00 00 00 00 5A [08:36:48]Write i2c OK [08:36:48]MH_I2C_Read... [08:36:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:36:48]Read from MH i2c: E2 [08:36:48]MH_I2C_Read... [08:36:48]Read from MH i2c: E2 62 00 [08:36:48]MH_I2C_Read... [08:36:48]Read from MH i2c: E2 62 00 BB 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 C9 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 02 [08:36:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 C9 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:36:48]wFMCommunicate OK [08:36:48]SAM_PROTO_GetFieldsCounters done [08:36:48]requested_item shift.num is exist - process it [08:36:48]requested_item shift.opened is exist - process it [08:36:48]req_shift_opened [08:36:48]FM_GetShiftState [08:36:48]SAM_PROTO_GetShiftState [08:36:48]wFMCommunicate request_size=4 [08:36:48]MH_SAM_APDU [08:36:48]CAPDU: 80 13 01 00 [08:36:48]Write to MH i2c: E2 08 00 BC 23 80 13 01 00 00 00 00 00 5C [08:36:48]Write i2c OK [08:36:48]MH_I2C_Read... [08:36:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:36:48]Read from MH i2c: E2 [08:36:48]MH_I2C_Read... [08:36:48]Read from MH i2c: E2 0E 00 [08:36:48]MH_I2C_Read... [08:36:48]Read from MH i2c: E2 0E 00 BC 23 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 C3 [08:36:48]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [08:36:48]wFMCommunicate OK [08:36:48]SAM_PROTO_GetShiftState done [08:36:48]FM_GetShiftState done [08:36:48]req_shift_opened done [08:36:48]requested_item shift.open_date is exist - process it [08:36:48]req_shift_open_date [08:36:48]req_shift_open_date done [08:36:48]produce_requested_data done [08:36:48]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67785,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [08:36:48]process_action_free close_receipt [08:36:48]json_value_free [08:36:48]json_value_free done [08:36:48]process_json_proto returns [08:36:48]Send response to host [08:36:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67785,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [08:36:48]free response buf [08:36:48]execute_script done [08:36:48]execute_script returns [08:36:48]free content buf [08:36:48]Sock 9.Close socket [08:36:48]Sock 9.Thread stoped [08:36:51]OFD Sender: No OFD packet to send [08:36:56]OFD Sender: No OFD packet to send [08:37:01]OFD Sender: No OFD packet to send [08:37:06]OFD Sender: No OFD packet to send [08:37:11]OFD Sender: No OFD packet to send [08:37:16]OFD Sender: No OFD packet to send [08:37:21]OFD Sender: No OFD packet to send [08:37:26]OFD Sender: No OFD packet to send [08:37:31]OFD Sender: No OFD packet to send [08:37:36]OFD Sender: No OFD packet to send [08:37:41]OFD Sender: No OFD packet to send [08:37:46]OFD Sender: No OFD packet to send [08:37:51]OFD Sender: No OFD packet to send [08:37:56]OFD Sender: No OFD packet to send [08:38:01]OFD Sender: No OFD packet to send [08:38:06]OFD Sender: No OFD packet to send [08:38:11]OFD Sender: No OFD packet to send [08:38:16]OFD Sender: No OFD packet to send [08:38:21]OFD Sender: No OFD packet to send [08:38:26]OFD Sender: No OFD packet to send [08:38:31]OFD Sender: No OFD packet to send [08:38:36]OFD Sender: No OFD packet to send [08:38:41]OFD Sender: No OFD packet to send [08:38:46]OFD Sender: No OFD packet to send [08:38:51]OFD Sender: No OFD packet to send [08:38:56]OFD Sender: No OFD packet to send [08:39:01]OFD Sender: No OFD packet to send [08:39:06]OFD Sender: No OFD packet to send [08:39:11]OFD Sender: No OFD packet to send [08:39:16]OFD Sender: No OFD packet to send [08:39:21]OFD Sender: No OFD packet to send [08:39:26]OFD Sender: No OFD packet to send [08:39:31]OFD Sender: No OFD packet to send [08:39:36]OFD Sender: No OFD packet to send [08:39:41]OFD Sender: No OFD packet to send [08:39:46]OFD Sender: No OFD packet to send [08:39:51]OFD Sender: No OFD packet to send [08:39:56]OFD Sender: No OFD packet to send [08:40:01]OFD Sender: No OFD packet to send [08:40:06]OFD Sender: No OFD packet to send [08:40:11]OFD Sender: No OFD packet to send [08:40:16]OFD Sender: No OFD packet to send [08:40:21]OFD Sender: No OFD packet to send [08:40:26]OFD Sender: No OFD packet to send [08:40:31]OFD Sender: No OFD packet to send [08:40:36]OFD Sender: No OFD packet to send [08:40:41]OFD Sender: No OFD packet to send [08:40:46]OFD Sender: No OFD packet to send [08:40:51]OFD Sender: No OFD packet to send [08:40:56]OFD Sender: No OFD packet to send [08:41:01]OFD Sender: No OFD packet to send [08:41:06]OFD Sender: No OFD packet to send [08:41:11]OFD Sender: No OFD packet to send [08:41:16]OFD Sender: No OFD packet to send [08:41:21]OFD Sender: No OFD packet to send [08:41:26]OFD Sender: No OFD packet to send [08:41:31]OFD Sender: No OFD packet to send [08:41:36]OFD Sender: No OFD packet to send [08:41:41]OFD Sender: No OFD packet to send [08:41:46]OFD Sender: No OFD packet to send [08:41:51]OFD Sender: No OFD packet to send [08:41:56]OFD Sender: No OFD packet to send [08:42:01]OFD Sender: No OFD packet to send [08:42:06]OFD Sender: No OFD packet to send [08:42:11]OFD Sender: No OFD packet to send [08:42:16]OFD Sender: No OFD packet to send [08:42:21]OFD Sender: No OFD packet to send [08:42:26]OFD Sender: No OFD packet to send [08:42:31]OFD Sender: No OFD packet to send [08:42:36]OFD Sender: No OFD packet to send [08:42:41]OFD Sender: No OFD packet to send [08:42:46]OFD Sender: No OFD packet to send [08:42:51]OFD Sender: No OFD packet to send [08:42:56]OFD Sender: No OFD packet to send [08:43:01]OFD Sender: No OFD packet to send [08:43:06]OFD Sender: No OFD packet to send [08:43:11]OFD Sender: No OFD packet to send [08:43:16]OFD Sender: No OFD packet to send [08:43:21]OFD Sender: No OFD packet to send [08:43:26]OFD Sender: No OFD packet to send [08:43:31]OFD Sender: No OFD packet to send [08:43:36]OFD Sender: No OFD packet to send [08:43:41]OFD Sender: No OFD packet to send [08:43:46]OFD Sender: No OFD packet to send [08:43:46]accept exits with 7 [08:43:46]New connection [08:43:46]New thread 3066608996 created [08:43:46]Thread 3066752356 joined [08:43:46]Waiting for new connection... [08:43:46] Sock 7.Parse request [08:43:46]Sock 7.Check first char [08:43:46]Sock 7.First char is OK [08:43:46]request: POST /json_proto HTTP/1.0 [08:43:46]Method: POST [08:43:46]URL: /json_proto [08:43:46]Method is POST - this is cgi request [08:43:46]url: /json_proto [08:43:46]query_string will be loaded in cgi processing [08:43:46]execute_cgi json_proto POST (null) [08:43:46]execute_cgi path=json_proto method=POST [08:43:46]POST find Content-Length [08:43:46]Host: 172.17.41.195:8080 [08:43:46]Content-Length: 1210 [08:43:46]Content-Type: application/json [08:43:46] [08:43:46]POST finish read [08:43:46]Found Content-Length = 1210 [08:43:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0440\u0441\u0442\u0430\u043D\u0431\u0435\u043A\u043E\u0432 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)507963\u000A18.05.2024 08:26\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 33\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 7.490 x 66.80\u000A\u0418\u0422\u041E\u0413: 500.33\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:43:46]execute_script... [08:43:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0440\u0441\u0442\u0430\u043D\u0431\u0435\u043A\u043E\u0432 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)507963\u000A18.05.2024 08:26\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 33\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 7.490 x 66.80\u000A\u0418\u0422\u041E\u0413: 500.33\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:43:46]POST & json_proto [08:43:46]process_json_proto [08:43:46]json parsed OK: [08:43:46]protocol is kg_v1.0 [08:43:46]action value=print_text [08:43:46]process_action print_text [08:43:46]cmd_print_text [08:43:46]ExternCall_PrintAddStr [08:43:46]wPrintStart [08:43:46]Write to MH i2c: 01 00 00 BD 23 E0 [08:43:46]Write i2c OK [08:43:46]MH_I2C_Read... [08:43:46]Read from MH i2c: 01 [08:43:46]MH_I2C_Read... [08:43:46]Read from MH i2c: 01 07 00 [08:43:46]MH_I2C_Read... [08:43:46]Read from MH i2c: 01 07 00 BD 23 00 00 00 00 00 FF 0F F5 [08:43:46]RasterBufferAndPrint [08:43:46]line *****ТОВАРНЫЙ ЧЕК***** [08:43:46]line АЗС-91 [08:43:46]line Партнер нефть [08:43:46]line 02508201610067 [08:43:46]line Кассир : Арстанбеков Н. [08:43:46]line Счет N : (1)507963 [08:43:46]line 18.05.2024 08:26 [08:43:46]line ПРОДАЖА [08:43:46]line ТРК (МРК, ГНК): 33 [08:43:46]line Вид ГСМ : 2710124130 [08:43:46]line Аи-92-К-5 [08:43:46]line 7.490 x 66.80 [08:43:46]line ИТОГ: 500.33 [08:43:46]line Тип оплаты: Талоны: Топливная Карта [08:43:46]line 02750 [08:43:46]line ______________________ [08:43:46]line (подпись) [08:43:46]written 0, free lines is 4095 [08:43:46]Write to MH i2c: 01 00 00 D1 23 F4 [08:43:46]Write i2c OK [08:43:46]MH_I2C_Read... [08:43:46]Read from MH i2c: 01 [08:43:46]MH_I2C_Read... [08:43:46]Read from MH i2c: 01 07 00 [08:43:46]MH_I2C_Read... [08:43:46]Read from MH i2c: 01 07 00 D1 23 00 00 00 00 00 12 0E 1B [08:43:46]RasterBufferAndPrint [08:43:46]line [08:43:46]line [08:43:46]line [08:43:46]line [08:43:46]line [08:43:46]written 0, free lines is 3603 [08:43:46]MH_Cut [08:43:46]Write to MH i2c: D1 01 00 D8 23 01 CD [08:43:46]Write i2c OK [08:43:46]MH_I2C_Read... [08:43:46]Read from MH i2c: D1 [08:43:46]MH_I2C_Read... [08:43:46]Read from MH i2c: D1 01 00 [08:43:46]MH_I2C_Read... [08:43:46]Read from MH i2c: D1 01 00 D8 23 00 CC [08:43:46]Write to MH i2c: 01 00 00 D9 23 FC [08:43:46]Write i2c OK [08:43:46]MH_I2C_Read... [08:43:47]*** Cut start [08:43:47]*** Purtial cut [08:43:47]*** Stage 1: CUTSNS_PIN = 1 [08:43:47]Read from MH i2c: 01 [08:43:47]MH_I2C_Read... [08:43:47]*** Stop cut motor [08:43:47]*** Cut end [08:43:47]Read from MH i2c: 01 07 00 [08:43:47]MH_I2C_Read... [08:43:47]Read from MH i2c: 01 07 00 D9 23 00 00 00 00 00 FF 0F 11 [08:43:47]process_action print_text done [08:43:47]requested_data is exist [08:43:47]produce_requested_data [08:43:47]requested_item fm.sn is exist - process it [08:43:47]wFMCommunicate request_size=4 [08:43:47]MH_SAM_APDU [08:43:47]CAPDU: 80 11 00 00 [08:43:47]Write to MH i2c: E2 08 00 DA 23 80 11 00 00 00 00 00 00 77 [08:43:47]Write i2c OK [08:43:47]MH_I2C_Read... [08:43:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:43:47]Read from MH i2c: E2 [08:43:47]MH_I2C_Read... [08:43:47]Read from MH i2c: E2 17 00 [08:43:47]MH_I2C_Read... [08:43:47]Read from MH i2c: E2 17 00 DA 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 CD [08:43:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [08:43:47]wFMCommunicate OK [08:43:47]requested_item fd.num is exist - process it [08:43:47]SAM_PROTO_GetFieldsCounters [08:43:47]wFMCommunicate request_size=4 [08:43:47]MH_SAM_APDU [08:43:47]CAPDU: 80 13 00 00 [08:43:47]Write to MH i2c: E2 08 00 DB 23 80 13 00 00 00 00 00 00 7A [08:43:47]Write i2c OK [08:43:47]MH_I2C_Read... [08:43:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:43:47]Read from MH i2c: E2 [08:43:47]MH_I2C_Read... [08:43:47]Read from MH i2c: E2 62 00 [08:43:47]MH_I2C_Read... [08:43:47]Read from MH i2c: E2 62 00 DB 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 C9 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 22 [08:43:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 C9 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:43:47]wFMCommunicate OK [08:43:47]SAM_PROTO_GetFieldsCounters done [08:43:47]requested_item shift.num is exist - process it [08:43:47]requested_item shift.opened is exist - process it [08:43:47]req_shift_opened [08:43:47]FM_GetShiftState [08:43:47]SAM_PROTO_GetShiftState [08:43:47]wFMCommunicate request_size=4 [08:43:47]MH_SAM_APDU [08:43:47]CAPDU: 80 13 01 00 [08:43:47]Write to MH i2c: E2 08 00 DC 23 80 13 01 00 00 00 00 00 7C [08:43:47]Write i2c OK [08:43:47]MH_I2C_Read... [08:43:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:43:47]Read from MH i2c: E2 [08:43:47]MH_I2C_Read... [08:43:48]Read from MH i2c: E2 0E 00 [08:43:48]MH_I2C_Read... [08:43:48]Read from MH i2c: E2 0E 00 DC 23 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 E3 [08:43:48]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [08:43:48]wFMCommunicate OK [08:43:48]SAM_PROTO_GetShiftState done [08:43:48]FM_GetShiftState done [08:43:48]req_shift_opened done [08:43:48]requested_item shift.open_date is exist - process it [08:43:48]req_shift_open_date [08:43:48]req_shift_open_date done [08:43:48]produce_requested_data done [08:43:48]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67785,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [08:43:48]process_action_free print_text [08:43:48]json_value_free [08:43:48]json_value_free done [08:43:48]process_json_proto returns [08:43:48]Send response to host [08:43:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67785,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [08:43:48]free response buf [08:43:48]execute_script done [08:43:48]execute_script returns [08:43:48]free content buf [08:43:48]Sock 7.Close socket [08:43:48]Sock 7.Thread stoped [08:43:51]OFD Sender: No OFD packet to send [08:43:56]OFD Sender: No OFD packet to send [08:44:01]OFD Sender: No OFD packet to send [08:44:06]OFD Sender: No OFD packet to send [08:44:11]OFD Sender: No OFD packet to send [08:44:16]OFD Sender: No OFD packet to send [08:44:21]OFD Sender: No OFD packet to send [08:44:26]OFD Sender: No OFD packet to send [08:44:31]OFD Sender: No OFD packet to send [08:44:36]OFD Sender: No OFD packet to send [08:44:41]OFD Sender: No OFD packet to send [08:44:46]OFD Sender: No OFD packet to send [08:44:51]OFD Sender: No OFD packet to send [08:44:56]OFD Sender: No OFD packet to send [08:45:01]OFD Sender: No OFD packet to send [08:45:06]OFD Sender: No OFD packet to send [08:45:11]OFD Sender: No OFD packet to send [08:45:16]OFD Sender: No OFD packet to send [08:45:21]OFD Sender: No OFD packet to send [08:45:26]OFD Sender: No OFD packet to send [08:45:31]OFD Sender: No OFD packet to send [08:45:36]OFD Sender: No OFD packet to send [08:45:41]OFD Sender: No OFD packet to send [08:45:46]OFD Sender: No OFD packet to send [08:45:51]OFD Sender: No OFD packet to send [08:45:56]OFD Sender: No OFD packet to send [08:46:01]OFD Sender: No OFD packet to send [08:46:06]OFD Sender: No OFD packet to send [08:46:11]OFD Sender: No OFD packet to send [08:46:16]OFD Sender: No OFD packet to send [08:46:21]OFD Sender: No OFD packet to send [08:46:26]OFD Sender: No OFD packet to send [08:46:31]OFD Sender: No OFD packet to send [08:46:36]OFD Sender: No OFD packet to send [08:46:41]OFD Sender: No OFD packet to send [08:46:46]OFD Sender: No OFD packet to send [08:46:51]OFD Sender: No OFD packet to send [08:46:56]OFD Sender: No OFD packet to send [08:47:01]OFD Sender: No OFD packet to send [08:47:06]OFD Sender: No OFD packet to send [08:47:11]OFD Sender: No OFD packet to send [08:47:16]OFD Sender: No OFD packet to send [08:47:21]OFD Sender: No OFD packet to send [08:47:26]OFD Sender: No OFD packet to send [08:47:31]OFD Sender: No OFD packet to send [08:47:36]OFD Sender: No OFD packet to send [08:47:41]OFD Sender: No OFD packet to send [08:47:46]OFD Sender: No OFD packet to send [08:47:51]OFD Sender: No OFD packet to send [08:47:56]OFD Sender: No OFD packet to send [08:48:01]OFD Sender: No OFD packet to send [08:48:06]OFD Sender: No OFD packet to send [08:48:11]OFD Sender: No OFD packet to send [08:48:16]OFD Sender: No OFD packet to send [08:48:21]OFD Sender: No OFD packet to send [08:48:26]OFD Sender: No OFD packet to send [08:48:31]OFD Sender: No OFD packet to send [08:48:36]OFD Sender: No OFD packet to send [08:48:41]OFD Sender: No OFD packet to send [08:48:46]OFD Sender: No OFD packet to send [08:48:51]OFD Sender: No OFD packet to send [08:48:56]OFD Sender: No OFD packet to send [08:49:01]OFD Sender: No OFD packet to send [08:49:06]OFD Sender: No OFD packet to send [08:49:11]OFD Sender: No OFD packet to send [08:49:16]OFD Sender: No OFD packet to send [08:49:21]OFD Sender: No OFD packet to send [08:49:26]OFD Sender: No OFD packet to send [08:49:31]OFD Sender: No OFD packet to send [08:49:36]OFD Sender: No OFD packet to send [08:49:41]OFD Sender: No OFD packet to send [08:49:46]OFD Sender: No OFD packet to send [08:49:51]OFD Sender: No OFD packet to send [08:49:56]OFD Sender: No OFD packet to send [08:50:01]OFD Sender: No OFD packet to send [08:50:06]OFD Sender: No OFD packet to send [08:50:11]OFD Sender: No OFD packet to send [08:50:16]OFD Sender: No OFD packet to send [08:50:21]OFD Sender: No OFD packet to send [08:50:26]OFD Sender: No OFD packet to send [08:50:31]OFD Sender: No OFD packet to send [08:50:36]OFD Sender: No OFD packet to send [08:50:41]OFD Sender: No OFD packet to send [08:50:46]OFD Sender: No OFD packet to send [08:50:51]OFD Sender: No OFD packet to send [08:50:56]OFD Sender: No OFD packet to send [08:51:01]OFD Sender: No OFD packet to send [08:51:06]OFD Sender: No OFD packet to send [08:51:11]OFD Sender: No OFD packet to send [08:51:16]OFD Sender: No OFD packet to send [08:51:21]OFD Sender: No OFD packet to send [08:51:26]OFD Sender: No OFD packet to send [08:51:31]OFD Sender: No OFD packet to send [08:51:36]OFD Sender: No OFD packet to send [08:51:41]OFD Sender: No OFD packet to send [08:51:46]OFD Sender: No OFD packet to send [08:51:51]OFD Sender: No OFD packet to send [08:51:56]OFD Sender: No OFD packet to send [08:52:02]OFD Sender: No OFD packet to send [08:52:07]OFD Sender: No OFD packet to send [08:52:12]OFD Sender: No OFD packet to send [08:52:17]OFD Sender: No OFD packet to send [08:52:22]OFD Sender: No OFD packet to send [08:52:27]OFD Sender: No OFD packet to send [08:52:32]OFD Sender: No OFD packet to send [08:52:37]OFD Sender: No OFD packet to send [08:52:42]OFD Sender: No OFD packet to send [08:52:47]OFD Sender: No OFD packet to send [08:52:52]OFD Sender: No OFD packet to send [08:52:57]OFD Sender: No OFD packet to send [08:53:02]OFD Sender: No OFD packet to send [08:53:07]OFD Sender: No OFD packet to send [08:53:12]OFD Sender: No OFD packet to send [08:53:17]OFD Sender: No OFD packet to send [08:53:22]OFD Sender: No OFD packet to send [08:53:27]OFD Sender: No OFD packet to send [08:53:30]accept exits with 9 [08:53:30]New connection [08:53:30]New thread 3066752356 created [08:53:30]Thread 3066608996 joined [08:53:30]Waiting for new connection... [08:53:30] Sock 9.Parse request [08:53:30]Sock 9.Check first char [08:53:30]Sock 9.First char is OK [08:53:30]request: POST /json_proto HTTP/1.0 [08:53:30]Method: POST [08:53:30]URL: /json_proto [08:53:30]Method is POST - this is cgi request [08:53:30]url: /json_proto [08:53:30]query_string will be loaded in cgi processing [08:53:30]execute_cgi json_proto POST (null) [08:53:30]execute_cgi path=json_proto method=POST [08:53:30]POST find Content-Length [08:53:30]Host: 172.17.41.195:8080 [08:53:30]Content-Length: 800 [08:53:30]Content-Type: application/json [08:53:30] [08:53:30]POST finish read [08:53:30]Found Content-Length = 800 [08:53:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507964", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 26.780, "sum" : 2000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.47 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:53:30]execute_script... [08:53:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507964", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 26.780, "sum" : 2000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.47 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:53:30]POST & json_proto [08:53:30]process_json_proto [08:53:30]json parsed OK: [08:53:30]protocol is kg_v1.0 [08:53:30]action value=close_receipt [08:53:30]process_action close_receipt [08:53:30]cmd_close_receipt [08:53:30]MH_GetDate [08:53:30]Write to MH i2c: F0 00 00 DD 23 EF [08:53:30]Write i2c OK [08:53:30]MH_I2C_Read... [08:53:30]Read from MH i2c: F0 [08:53:30]MH_I2C_Read... [08:53:30]Read from MH i2c: F0 09 00 [08:53:30]MH_I2C_Read... [08:53:30]Read from MH i2c: F0 09 00 DD 23 00 8F 6C 48 66 FC 21 6F 64 91 [08:53:30]GetLastDocTimeStamp 1716021407 [08:53:30]current date 1716022415 [08:53:30]FM_GetShiftState [08:53:30]SAM_PROTO_GetShiftState [08:53:30]wFMCommunicate request_size=4 [08:53:30]MH_SAM_APDU [08:53:30]CAPDU: 80 13 01 00 [08:53:30]Write to MH i2c: E2 08 00 DE 23 80 13 01 00 00 00 00 00 7E [08:53:30]Write i2c OK [08:53:30]MH_I2C_Read... [08:53:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:53:30]Read from MH i2c: E2 [08:53:30]MH_I2C_Read... [08:53:30]Read from MH i2c: E2 0E 00 [08:53:30]MH_I2C_Read... [08:53:30]Read from MH i2c: E2 0E 00 DE 23 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 E5 [08:53:30]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [08:53:30]wFMCommunicate OK [08:53:30]SAM_PROTO_GetShiftState done [08:53:30]FM_GetShiftState done [08:53:30]opened in 1715991483 [08:53:30]opened+sec_in_day 1716077883 [08:53:30]quantity*price = 200046 [08:53:30]sum+1 = 200048 [08:53:30]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.47 НСП 1% : 17.70 НДС 12% : 212.44 Наличными: 0.00 Безнал.: 2000.47 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 25 18.05.2024 08:53 Смена: 359 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67786 ФПД: 129870733919314 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T085335&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67786&fm=129870733919314&tin=02508201610067®Number=0000000000091845&sum=200047 [08:53:32]StoreToDocumentArchive [08:53:32]shift 359 fd 67786 [08:53:32]save to /storage/0359/doc_00067786 [08:53:32]save last doc name /storage/0359/doc_00067786 to /storage/kkm_last_doc_name [08:53:32]save OK [08:53:32]Clear old archive folders... [08:53:32]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:53:32]tlvbuf is B6F27310 [08:53:32]SAM_PROTO_ClearQueue [08:53:32]wFMCommunicate request_size=4 [08:53:32]MH_SAM_APDU [08:53:32]CAPDU: 80 09 00 00 [08:53:32]Write to MH i2c: E2 08 00 EB 23 80 09 00 00 00 00 00 00 80 [08:53:32]Write i2c OK [08:53:32]MH_I2C_Read... [08:53:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:53:32]Read from MH i2c: E2 [08:53:32]MH_I2C_Read... [08:53:32]Read from MH i2c: E2 03 00 [08:53:32]MH_I2C_Read... [08:53:32]Read from MH i2c: E2 03 00 EB 23 00 90 00 82 [08:53:32]RAPDU: 90 00 [08:53:32]wFMCommunicate OK [08:53:32]SAM_PROTO_ClearQueue done [08:53:32]KKMCreateOFDPacket [08:53:32]OFDProtocolAddRootSTLVToBuf [08:53:32]FM_MakeSignedData [08:53:32]FM_MakeSignedData [08:53:32]SAM_PROTO_SignData [08:53:32]wFMCommunicate request_size=4 [08:53:32]MH_SAM_APDU [08:53:32]CAPDU: 80 0D 01 02 [08:53:32]Write to MH i2c: E2 08 00 EC 23 80 0D 01 02 00 00 00 00 88 [08:53:32]Write i2c OK [08:53:32]MH_I2C_Read... [08:53:32]OFD Sender: No OFD packet to send [08:53:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:53:32]Read from MH i2c: E2 [08:53:32]MH_I2C_Read... [08:53:32]Read from MH i2c: E2 03 00 [08:53:32]MH_I2C_Read... [08:53:32]Read from MH i2c: E2 03 00 EC 23 00 90 00 83 [08:53:32]RAPDU: 90 00 [08:53:32]wFMCommunicate OK [08:53:32]wFMCommunicate request_size=255 [08:53:32]MH_SAM_APDU [08:53:32]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9C 68 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 6F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6F 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FC 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 8F 6C 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 CA 08 01 00 35 04 06 00 76 1D E2 F6 [08:53:32]Write to MH i2c: E2 02 01 ED 23 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9C 68 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 6F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6F 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FC 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 8F 6C 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 CA 08 01 00 35 04 06 00 76 1D E2 F6 00 00 5C [08:53:32]Write i2c OK [08:53:32]MH_I2C_Read... [08:53:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:53:32]Read from MH i2c: E2 [08:53:32]MH_I2C_Read... [08:53:32]Read from MH i2c: E2 03 00 [08:53:32]MH_I2C_Read... [08:53:32]Read from MH i2c: E2 03 00 ED 23 00 90 00 84 [08:53:32]RAPDU: 90 00 [08:53:32]wFMCommunicate OK [08:53:32]wFMCommunicate request_size=7 [08:53:32]MH_SAM_APDU [08:53:32]CAPDU: 80 0D 02 02 02 44 52 [08:53:32]Write to MH i2c: E2 0A 00 EE 23 80 0D 02 02 02 00 44 52 00 00 25 [08:53:32]Write i2c OK [08:53:32]MH_I2C_Read... [08:53:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:53:32]Read from MH i2c: E2 [08:53:32]MH_I2C_Read... [08:53:32]Read from MH i2c: E2 03 00 [08:53:32]MH_I2C_Read... [08:53:32]Read from MH i2c: E2 03 00 EE 23 00 90 00 85 [08:53:32]RAPDU: 90 00 [08:53:32]wFMCommunicate OK [08:53:32]wFMCommunicate request_size=4 [08:53:32]MH_SAM_APDU [08:53:32]CAPDU: 80 0D 03 02 [08:53:32]Write to MH i2c: E2 08 00 EF 23 80 0D 03 02 00 00 00 00 8D [08:53:32]Write i2c OK [08:53:32]MH_I2C_Read... [08:53:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:53:32]Read from MH i2c: E2 [08:53:32]MH_I2C_Read... [08:53:32]Read from MH i2c: E2 0B 00 [08:53:32]MH_I2C_Read... [08:53:32]Read from MH i2c: E2 0B 00 EF 23 00 99 C4 0D 39 11 48 4B 7B 90 00 50 [08:53:32]RAPDU: 99 C4 0D 39 11 48 4B 7B 90 00 [08:53:32]wFMCommunicate OK [08:53:32]SAM_PROTO_SignData done [08:53:32]FM_MakeSignedData done [08:53:32]CreateOFDProtocolMessage [08:53:32]wFMCommunicate request_size=4 [08:53:32]MH_SAM_APDU [08:53:32]CAPDU: 80 11 00 00 [08:53:32]Write to MH i2c: E2 08 00 F0 23 80 11 00 00 00 00 00 00 8D [08:53:32]Write i2c OK [08:53:32]MH_I2C_Read... [08:53:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:53:32]Read from MH i2c: E2 [08:53:32]MH_I2C_Read... [08:53:32]Read from MH i2c: E2 17 00 [08:53:32]MH_I2C_Read... [08:53:32]Read from MH i2c: E2 17 00 F0 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 E3 [08:53:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [08:53:32]wFMCommunicate OK [08:53:32]CreateOFDProtocolMessage done [08:53:32]OFDSenderStorePacket 67786 [08:53:32]StoreOFDPacket docnum=67786 [08:53:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 0E E8 04 01 62 AD 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9C 68 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 6F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6F 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FC 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 8F 6C 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 CA 08 01 00 35 04 06 00 76 1D E2 F6 44 52 99 C4 0D 39 11 48 4B 7B [08:53:32]CheckFolder [08:53:32]dirname=/storage/ofd_packets [08:53:32]CheckFolder done [08:53:32]ProducePacketName [08:53:32]name=ofd_packets/00067786 [08:53:32]NVStorageSaveData ofd_packets/00067786 [08:53:32]File name is /storage/ofd_packets/00067786 [08:53:32]Write 298 bytes [08:53:32]NVStorageSaveData done [08:53:32]OFDSenderStorePacket done [08:53:32]KKMCreateOFDPacket done [08:53:32]NVStorageSaveData kkm_last_timestamp [08:53:32]File name is /storage/kkm_last_timestamp [08:53:32]Write 4 bytes [08:53:32]NVStorageSaveData done [08:53:32]ExternCall_PrintAddStr [08:53:32]wPrintStart [08:53:32]Write to MH i2c: 01 00 00 F1 23 14 [08:53:32]Write i2c OK [08:53:32]MH_I2C_Read... [08:53:32]Read from MH i2c: 01 [08:53:32]MH_I2C_Read... [08:53:32]Read from MH i2c: 01 07 00 [08:53:32]MH_I2C_Read... [08:53:32]Read from MH i2c: 01 07 00 F1 23 00 00 00 00 00 FF 0F 29 [08:53:32]RasterBufferAndPrint [08:53:32]line Счет N : (1)507964 [08:53:32]line ИНН: 02508201610067 [08:53:32]line Контрольно-Кассовый Чек [08:53:32]line ПРОДАЖА [08:53:32]line ТРК (МРК, ГНК) : 41 [08:53:32]line Товар: 2710194210 [08:53:32]line ДТ-К-5 [08:53:32]line 26.780 * 74.70 [08:53:32]line = 2000.47 [08:53:32]line НДС 12% НСП 1% [08:53:32]line > о реализуемом товаре [08:53:32]line ИТОГО: 2000.47 [08:53:32]line НСП 1% : 17.70 [08:53:32]line НДС 12% : 212.44 [08:53:32]line Наличными: 0.00 [08:53:32]line Безнал.: 2000.47 [08:53:32]line Место: АЗС № 91 "Партнер Нефть" [08:53:32]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [08:53:32]line СНО: Общий режим [08:53:32]line Чек 25 18.05.2024 08:53 [08:53:32]line Смена: 359 ФФД: 1.0 [08:53:32]line ЗНМ: 0300000119 [08:53:32]line РНМ: 0000000000091845 [08:53:32]line Версия ККМ: 001 [08:53:32]line Платежная система: O! деньги [08:53:32]line ФМ: 0000000000871829 [08:53:32]line ФД: 67786 [08:53:32]line ФПД: 129870733919314 [08:53:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T085335&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67786&fm=129870733919314&tin=02508201610067®Number=0000000000091845&sum=200047 [08:53:32]written 0, free lines is 4095 [08:53:32]OFD Sender: Processing packet 67786 [packets to send 35, broken 34] [08:53:32]ProducePacketName [08:53:32]name=ofd_packets/00067786 [08:53:32]OFD Sender: To server: pG, [08:53:32]CommunicateWithHost lk.salyk.kg:30040 [08:53:32]ConnectInit lk.salyk.kg [08:53:32]Connected sock=10 [08:53:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 0E E8 04 01 62 AD 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9C 68 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 6F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6F 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FC 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 8F 6C 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 CA 08 01 00 35 04 06 00 76 1D E2 F6 44 52 99 C4 0D 39 11 48 4B 7B [08:53:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 18 5B 47 00 A8 36 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 CA 08 01 00 F4 03 04 00 65 14 48 66 B6 04 01 00 00 4F 5C 10 54 21 23 61 3E [08:53:32]CommunicateWithHost err = 0 [08:53:32]CheckOFDResponse [08:53:32]1017 (14) - 77093643461234 [08:53:32]1041 (16) - 0000000000871829 [08:53:32]1040 (4) - 67786 [08:53:32]1012 (4) - 18.05.2024 02:37 [08:53:32]1206 (1) - 0 [08:53:32]OFD Sender: Remove packet 67786 [08:53:32]ProducePacketName [08:53:32]name=ofd_packets/00067786 [08:53:32]NVStorageDeleteData [08:53:32]Write to MH i2c: 01 00 00 1A 24 3E [08:53:32]Write i2c OK [08:53:32]MH_I2C_Read... [08:53:32]Read from MH i2c: 01 [08:53:32]MH_I2C_Read... [08:53:32]Read from MH i2c: 01 07 00 [08:53:32]MH_I2C_Read... [08:53:32]Read from MH i2c: 01 07 00 1A 24 00 00 00 00 00 E1 0C 32 [08:53:32]RasterBufferAndPrint [08:53:32]line [08:53:32]line [08:53:32]line [08:53:32]line [08:53:32]line [08:53:32]written 0, free lines is 3305 [08:53:33]MH_Cut [08:53:33]Write to MH i2c: D1 01 00 21 24 01 17 [08:53:33]Write i2c OK [08:53:33]MH_I2C_Read... [08:53:33]Read from MH i2c: D1 [08:53:33]MH_I2C_Read... [08:53:33]Read from MH i2c: D1 01 00 [08:53:33]MH_I2C_Read... [08:53:33]Read from MH i2c: D1 01 00 21 24 00 16 [08:53:33]Write to MH i2c: 01 00 00 22 24 46 [08:53:33]Write i2c OK [08:53:33]MH_I2C_Read... [08:53:33]OFD Sender: No OFD packet to send [08:53:33]*** Cut start [08:53:33]*** Purtial cut [08:53:33]*** CUTSNS_PIN = 0 [08:53:34]*** Stage 1: CUTSNS_PIN = 1 [08:53:35]Read from MH i2c: 01 [08:53:35]MH_I2C_Read... [08:53:35]*** Stop cut motor [08:53:35]*** Cut end [08:53:35]Read from MH i2c: 01 07 00 [08:53:35]MH_I2C_Read... [08:53:35]Read from MH i2c: 01 07 00 22 24 00 00 00 00 00 FF 0F 5B [08:53:35]process_action close_receipt done [08:53:35]requested_data is exist [08:53:35]produce_requested_data [08:53:35]requested_item fm.sn is exist - process it [08:53:35]wFMCommunicate request_size=4 [08:53:35]MH_SAM_APDU [08:53:35]CAPDU: 80 11 00 00 [08:53:35]Write to MH i2c: E2 08 00 23 24 80 11 00 00 00 00 00 00 C1 [08:53:35]Write i2c OK [08:53:35]MH_I2C_Read... [08:53:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:53:35]Read from MH i2c: E2 [08:53:35]MH_I2C_Read... [08:53:35]Read from MH i2c: E2 17 00 [08:53:35]MH_I2C_Read... [08:53:35]Read from MH i2c: E2 17 00 23 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 17 [08:53:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [08:53:35]wFMCommunicate OK [08:53:35]requested_item fd.num is exist - process it [08:53:35]SAM_PROTO_GetFieldsCounters [08:53:35]wFMCommunicate request_size=4 [08:53:35]MH_SAM_APDU [08:53:35]CAPDU: 80 13 00 00 [08:53:35]Write to MH i2c: E2 08 00 24 24 80 13 00 00 00 00 00 00 C4 [08:53:35]Write i2c OK [08:53:35]MH_I2C_Read... [08:53:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:53:36]Read from MH i2c: E2 [08:53:36]MH_I2C_Read... [08:53:36]Read from MH i2c: E2 62 00 [08:53:36]MH_I2C_Read... [08:53:36]Read from MH i2c: E2 62 00 24 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 CA 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 70 [08:53:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 CA 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:53:36]wFMCommunicate OK [08:53:36]SAM_PROTO_GetFieldsCounters done [08:53:36]requested_item shift.num is exist - process it [08:53:36]requested_item shift.opened is exist - process it [08:53:36]req_shift_opened [08:53:36]FM_GetShiftState [08:53:36]SAM_PROTO_GetShiftState [08:53:36]wFMCommunicate request_size=4 [08:53:36]MH_SAM_APDU [08:53:36]CAPDU: 80 13 01 00 [08:53:36]Write to MH i2c: E2 08 00 25 24 80 13 01 00 00 00 00 00 C6 [08:53:36]Write i2c OK [08:53:36]MH_I2C_Read... [08:53:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:53:36]Read from MH i2c: E2 [08:53:36]MH_I2C_Read... [08:53:36]Read from MH i2c: E2 0E 00 [08:53:36]MH_I2C_Read... [08:53:36]Read from MH i2c: E2 0E 00 25 24 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 2D [08:53:36]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [08:53:36]wFMCommunicate OK [08:53:36]SAM_PROTO_GetShiftState done [08:53:36]FM_GetShiftState done [08:53:36]req_shift_opened done [08:53:36]requested_item shift.open_date is exist - process it [08:53:36]req_shift_open_date [08:53:36]req_shift_open_date done [08:53:36]produce_requested_data done [08:53:36]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67786,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [08:53:36]process_action_free close_receipt [08:53:36]json_value_free [08:53:36]json_value_free done [08:53:36]process_json_proto returns [08:53:36]Send response to host [08:53:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67786,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [08:53:36]free response buf [08:53:36]execute_script done [08:53:36]execute_script returns [08:53:36]free content buf [08:53:36]Sock 9.Close socket [08:53:36]Sock 9.Thread stoped [08:53:38]OFD Sender: No OFD packet to send [08:53:43]OFD Sender: No OFD packet to send [08:53:48]OFD Sender: No OFD packet to send [08:53:53]OFD Sender: No OFD packet to send [08:53:58]OFD Sender: No OFD packet to send [08:54:03]OFD Sender: No OFD packet to send [08:54:08]OFD Sender: No OFD packet to send [08:54:13]OFD Sender: No OFD packet to send [08:54:18]OFD Sender: No OFD packet to send [08:54:23]OFD Sender: No OFD packet to send [08:54:28]OFD Sender: No OFD packet to send [08:54:33]OFD Sender: No OFD packet to send [08:54:38]OFD Sender: No OFD packet to send [08:54:43]OFD Sender: No OFD packet to send [08:54:48]OFD Sender: No OFD packet to send [08:54:53]OFD Sender: No OFD packet to send [08:54:58]OFD Sender: No OFD packet to send [08:55:03]OFD Sender: No OFD packet to send [08:55:08]OFD Sender: No OFD packet to send [08:55:13]OFD Sender: No OFD packet to send [08:55:18]OFD Sender: No OFD packet to send [08:55:23]OFD Sender: No OFD packet to send [08:55:28]OFD Sender: No OFD packet to send [08:55:33]OFD Sender: No OFD packet to send [08:55:38]OFD Sender: No OFD packet to send [08:55:43]OFD Sender: No OFD packet to send [08:55:48]OFD Sender: No OFD packet to send [08:55:53]OFD Sender: No OFD packet to send [08:55:58]OFD Sender: No OFD packet to send [08:56:03]OFD Sender: No OFD packet to send [08:56:08]OFD Sender: No OFD packet to send [08:56:13]OFD Sender: No OFD packet to send [08:56:18]OFD Sender: No OFD packet to send [08:56:22]accept exits with 7 [08:56:22]New connection [08:56:22]New thread 3066608996 created [08:56:22]Thread 3066752356 joined [08:56:22]Waiting for new connection... [08:56:22] Sock 7.Parse request [08:56:22]Sock 7.Check first char [08:56:22]Sock 7.First char is OK [08:56:22]request: POST /json_proto HTTP/1.0 [08:56:22]Method: POST [08:56:22]URL: /json_proto [08:56:22]Method is POST - this is cgi request [08:56:22]url: /json_proto [08:56:22]query_string will be loaded in cgi processing [08:56:22]execute_cgi json_proto POST (null) [08:56:22]execute_cgi path=json_proto method=POST [08:56:22]POST find Content-Length [08:56:22]Host: 172.17.41.195:8080 [08:56:22]Content-Length: 1212 [08:56:22]Content-Type: application/json [08:56:22] [08:56:22]POST finish read [08:56:22]Found Content-Length = 1212 [08:56:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0440\u0441\u0442\u0430\u043D\u0431\u0435\u043A\u043E\u0432 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)507966\u000A18.05.2024 08:38\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 33\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 14.980 x 66.80\u000A\u0418\u0422\u041E\u0413: 1000.66\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:56:22]execute_script... [08:56:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0440\u0441\u0442\u0430\u043D\u0431\u0435\u043A\u043E\u0432 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)507966\u000A18.05.2024 08:38\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 33\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 14.980 x 66.80\u000A\u0418\u0422\u041E\u0413: 1000.66\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:56:22]POST & json_proto [08:56:22]process_json_proto [08:56:22]json parsed OK: [08:56:22]protocol is kg_v1.0 [08:56:22]action value=print_text [08:56:22]process_action print_text [08:56:22]cmd_print_text [08:56:22]ExternCall_PrintAddStr [08:56:22]wPrintStart [08:56:22]Write to MH i2c: 01 00 00 26 24 4A [08:56:22]Write i2c OK [08:56:22]MH_I2C_Read... [08:56:22]Read from MH i2c: 01 [08:56:22]MH_I2C_Read... [08:56:22]Read from MH i2c: 01 07 00 [08:56:22]MH_I2C_Read... [08:56:22]Read from MH i2c: 01 07 00 26 24 00 00 00 00 00 FF 0F 5F [08:56:22]RasterBufferAndPrint [08:56:22]line *****ТОВАРНЫЙ ЧЕК***** [08:56:22]line АЗС-91 [08:56:22]line Партнер нефть [08:56:22]line 02508201610067 [08:56:22]line Кассир : Арстанбеков Н. [08:56:22]line Счет N : (1)507966 [08:56:22]line 18.05.2024 08:38 [08:56:22]line ПРОДАЖА [08:56:22]line ТРК (МРК, ГНК): 33 [08:56:22]line Вид ГСМ : 2710124130 [08:56:22]line Аи-92-К-5 [08:56:22]line 14.980 x 66.80 [08:56:22]line ИТОГ: 1000.66 [08:56:22]line Тип оплаты: Талоны: Топливная Карта [08:56:22]line 02750 [08:56:22]line ______________________ [08:56:22]line (подпись) [08:56:22]written 0, free lines is 4095 [08:56:22]Write to MH i2c: 01 00 00 3A 24 5E [08:56:22]Write i2c OK [08:56:22]MH_I2C_Read... [08:56:22]Read from MH i2c: 01 [08:56:22]MH_I2C_Read... [08:56:22]Read from MH i2c: 01 07 00 [08:56:22]MH_I2C_Read... [08:56:22]Read from MH i2c: 01 07 00 3A 24 00 00 00 00 00 14 0E 87 [08:56:22]RasterBufferAndPrint [08:56:22]line [08:56:22]line [08:56:22]line [08:56:22]line [08:56:22]line [08:56:22]written 0, free lines is 3606 [08:56:22]MH_Cut [08:56:22]Write to MH i2c: D1 01 00 41 24 01 37 [08:56:22]Write i2c OK [08:56:22]MH_I2C_Read... [08:56:22]Read from MH i2c: D1 [08:56:22]MH_I2C_Read... [08:56:22]Read from MH i2c: D1 01 00 [08:56:22]MH_I2C_Read... [08:56:22]Read from MH i2c: D1 01 00 41 24 00 36 [08:56:22]Write to MH i2c: 01 00 00 42 24 66 [08:56:22]Write i2c OK [08:56:22]MH_I2C_Read... [08:56:23]*** Cut start [08:56:23]*** Purtial cut [08:56:23]*** Stage 1: CUTSNS_PIN = 1 [08:56:23]Read from MH i2c: 01 [08:56:23]MH_I2C_Read... [08:56:23]*** Stop cut motor [08:56:23]*** Cut end [08:56:23]Read from MH i2c: 01 07 00 [08:56:23]MH_I2C_Read... [08:56:23]Read from MH i2c: 01 07 00 42 24 00 00 00 00 00 FF 0F 7B [08:56:23]process_action print_text done [08:56:23]requested_data is exist [08:56:23]produce_requested_data [08:56:23]requested_item fm.sn is exist - process it [08:56:23]wFMCommunicate request_size=4 [08:56:23]MH_SAM_APDU [08:56:23]CAPDU: 80 11 00 00 [08:56:23]Write to MH i2c: E2 08 00 43 24 80 11 00 00 00 00 00 00 E1 [08:56:23]Write i2c OK [08:56:23]MH_I2C_Read... [08:56:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:56:23]Read from MH i2c: E2 [08:56:23]MH_I2C_Read... [08:56:23]Read from MH i2c: E2 17 00 [08:56:23]MH_I2C_Read... [08:56:23]Read from MH i2c: E2 17 00 43 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 37 [08:56:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [08:56:23]wFMCommunicate OK [08:56:23]requested_item fd.num is exist - process it [08:56:23]SAM_PROTO_GetFieldsCounters [08:56:23]wFMCommunicate request_size=4 [08:56:23]MH_SAM_APDU [08:56:23]CAPDU: 80 13 00 00 [08:56:23]Write to MH i2c: E2 08 00 44 24 80 13 00 00 00 00 00 00 E4 [08:56:23]Write i2c OK [08:56:23]MH_I2C_Read... [08:56:23]OFD Sender: No OFD packet to send [08:56:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:56:23]Read from MH i2c: E2 [08:56:23]MH_I2C_Read... [08:56:23]Read from MH i2c: E2 62 00 [08:56:23]MH_I2C_Read... [08:56:23]Read from MH i2c: E2 62 00 44 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 CA 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 90 [08:56:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 CA 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:56:23]wFMCommunicate OK [08:56:23]SAM_PROTO_GetFieldsCounters done [08:56:23]requested_item shift.num is exist - process it [08:56:23]requested_item shift.opened is exist - process it [08:56:23]req_shift_opened [08:56:23]FM_GetShiftState [08:56:23]SAM_PROTO_GetShiftState [08:56:23]wFMCommunicate request_size=4 [08:56:23]MH_SAM_APDU [08:56:23]CAPDU: 80 13 01 00 [08:56:23]Write to MH i2c: E2 08 00 45 24 80 13 01 00 00 00 00 00 E6 [08:56:23]Write i2c OK [08:56:23]MH_I2C_Read... [08:56:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:56:23]Read from MH i2c: E2 [08:56:23]MH_I2C_Read... [08:56:23]Read from MH i2c: E2 0E 00 [08:56:23]MH_I2C_Read... [08:56:23]Read from MH i2c: E2 0E 00 45 24 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 4D [08:56:23]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [08:56:23]wFMCommunicate OK [08:56:23]SAM_PROTO_GetShiftState done [08:56:23]FM_GetShiftState done [08:56:23]req_shift_opened done [08:56:23]requested_item shift.open_date is exist - process it [08:56:23]req_shift_open_date [08:56:23]req_shift_open_date done [08:56:23]produce_requested_data done [08:56:23]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67786,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [08:56:23]process_action_free print_text [08:56:23]json_value_free [08:56:23]json_value_free done [08:56:23]process_json_proto returns [08:56:23]Send response to host [08:56:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67786,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [08:56:23]free response buf [08:56:23]execute_script done [08:56:23]execute_script returns [08:56:23]free content buf [08:56:23]Sock 7.Close socket [08:56:23]Sock 7.Thread stoped [08:56:28]OFD Sender: No OFD packet to send [08:56:33]OFD Sender: No OFD packet to send [08:56:38]OFD Sender: No OFD packet to send [08:56:43]OFD Sender: No OFD packet to send [08:56:48]OFD Sender: No OFD packet to send [08:56:53]OFD Sender: No OFD packet to send [08:56:58]OFD Sender: No OFD packet to send [08:57:03]OFD Sender: No OFD packet to send [08:57:08]OFD Sender: No OFD packet to send [08:57:13]OFD Sender: No OFD packet to send [08:57:18]OFD Sender: No OFD packet to send [08:57:23]OFD Sender: No OFD packet to send [08:57:28]OFD Sender: No OFD packet to send [08:57:33]OFD Sender: No OFD packet to send [08:57:38]OFD Sender: No OFD packet to send [08:57:43]OFD Sender: No OFD packet to send [08:57:47]accept exits with 9 [08:57:47]New connection [08:57:47]New thread 3066752356 created [08:57:47]Thread 3066608996 joined [08:57:47]Waiting for new connection... [08:57:47] Sock 9.Parse request [08:57:47]Sock 9.Check first char [08:57:47]Sock 9.First char is OK [08:57:47]request: POST /json_proto HTTP/1.0 [08:57:47]Method: POST [08:57:47]URL: /json_proto [08:57:47]Method is POST - this is cgi request [08:57:47]url: /json_proto [08:57:47]query_string will be loaded in cgi processing [08:57:47]execute_cgi json_proto POST (null) [08:57:47]execute_cgi path=json_proto method=POST [08:57:47]POST find Content-Length [08:57:47]Host: 172.17.41.195:8080 [08:57:47]Content-Length: 1209 [08:57:47]Content-Type: application/json [08:57:47] [08:57:47]POST finish read [08:57:47]Found Content-Length = 1209 [08:57:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0440\u0441\u0442\u0430\u043D\u0431\u0435\u043A\u043E\u0432 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)507967\u000A18.05.2024 08:40\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 50.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 3735.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:57:47]execute_script... [08:57:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0440\u0441\u0442\u0430\u043D\u0431\u0435\u043A\u043E\u0432 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)507967\u000A18.05.2024 08:40\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 50.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 3735.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:57:47]POST & json_proto [08:57:47]process_json_proto [08:57:47]json parsed OK: [08:57:47]protocol is kg_v1.0 [08:57:47]action value=print_text [08:57:47]process_action print_text [08:57:47]cmd_print_text [08:57:47]ExternCall_PrintAddStr [08:57:47]wPrintStart [08:57:47]Write to MH i2c: 01 00 00 46 24 6A [08:57:47]Write i2c OK [08:57:47]MH_I2C_Read... [08:57:47]Read from MH i2c: 01 [08:57:47]MH_I2C_Read... [08:57:47]Read from MH i2c: 01 07 00 [08:57:47]MH_I2C_Read... [08:57:47]Read from MH i2c: 01 07 00 46 24 00 00 00 00 00 FF 0F 7F [08:57:47]RasterBufferAndPrint [08:57:47]line *****ТОВАРНЫЙ ЧЕК***** [08:57:47]line АЗС-91 [08:57:47]line Партнер нефть [08:57:47]line 02508201610067 [08:57:47]line Кассир : Арстанбеков Н. [08:57:47]line Счет N : (1)507967 [08:57:47]line 18.05.2024 08:40 [08:57:47]line ПРОДАЖА [08:57:47]line ТРК (МРК, ГНК): 11 [08:57:47]line Вид ГСМ : 2710194210 [08:57:47]line ДТ-К-5 [08:57:47]line 50.000 x 74.70 [08:57:47]line ИТОГ: 3735.00 [08:57:47]line Тип оплаты: Талоны: Топливная Карта [08:57:47]line 02750 [08:57:47]line ______________________ [08:57:47]line (подпись) [08:57:47]written 0, free lines is 4095 [08:57:47]Write to MH i2c: 01 00 00 5A 24 7E [08:57:47]Write i2c OK [08:57:47]MH_I2C_Read... [08:57:47]Read from MH i2c: 01 [08:57:47]MH_I2C_Read... [08:57:47]Read from MH i2c: 01 07 00 [08:57:47]MH_I2C_Read... [08:57:47]Read from MH i2c: 01 07 00 5A 24 00 00 00 00 00 10 0E A3 [08:57:47]RasterBufferAndPrint [08:57:47]line [08:57:47]line [08:57:47]line [08:57:47]line [08:57:47]line [08:57:47]written 0, free lines is 3602 [08:57:47]MH_Cut [08:57:47]Write to MH i2c: D1 01 00 61 24 01 57 [08:57:47]Write i2c OK [08:57:47]MH_I2C_Read... [08:57:47]Read from MH i2c: D1 [08:57:47]MH_I2C_Read... [08:57:47]Read from MH i2c: D1 01 00 [08:57:47]MH_I2C_Read... [08:57:47]Read from MH i2c: D1 01 00 61 24 00 56 [08:57:47]Write to MH i2c: 01 00 00 62 24 86 [08:57:47]Write i2c OK [08:57:47]MH_I2C_Read... [08:57:47]*** Cut start [08:57:47]*** Purtial cut [08:57:47]*** CUTSNS_PIN = 0 [08:57:48]*** Stage 1: CUTSNS_PIN = 1 [08:57:48]OFD Sender: No OFD packet to send [08:57:49]Read from MH i2c: 01 [08:57:49]MH_I2C_Read... [08:57:49]Read from MH i2c: 01 07 00 [08:57:49]MH_I2C_Read... [08:57:49]*** Stop cut motor [08:57:49]*** Cut end [08:57:49]Read from MH i2c: 01 07 00 62 24 00 00 00 00 00 FF 0F 9B [08:57:49]process_action print_text done [08:57:49]requested_data is exist [08:57:49]produce_requested_data [08:57:49]requested_item fm.sn is exist - process it [08:57:49]wFMCommunicate request_size=4 [08:57:49]MH_SAM_APDU [08:57:49]CAPDU: 80 11 00 00 [08:57:49]Write to MH i2c: E2 08 00 63 24 80 11 00 00 00 00 00 00 01 [08:57:49]Write i2c OK [08:57:49]MH_I2C_Read... [08:57:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:57:49]Read from MH i2c: E2 [08:57:49]MH_I2C_Read... [08:57:49]Read from MH i2c: E2 17 00 [08:57:49]MH_I2C_Read... [08:57:49]Read from MH i2c: E2 17 00 63 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 57 [08:57:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [08:57:49]wFMCommunicate OK [08:57:49]requested_item fd.num is exist - process it [08:57:49]SAM_PROTO_GetFieldsCounters [08:57:49]wFMCommunicate request_size=4 [08:57:49]MH_SAM_APDU [08:57:49]CAPDU: 80 13 00 00 [08:57:49]Write to MH i2c: E2 08 00 64 24 80 13 00 00 00 00 00 00 04 [08:57:49]Write i2c OK [08:57:49]MH_I2C_Read... [08:57:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:57:50]Read from MH i2c: E2 [08:57:50]MH_I2C_Read... [08:57:50]Read from MH i2c: E2 62 00 [08:57:50]MH_I2C_Read... [08:57:50]Read from MH i2c: E2 62 00 64 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 CA 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 B0 [08:57:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 CA 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:57:50]wFMCommunicate OK [08:57:50]SAM_PROTO_GetFieldsCounters done [08:57:50]requested_item shift.num is exist - process it [08:57:50]requested_item shift.opened is exist - process it [08:57:50]req_shift_opened [08:57:50]FM_GetShiftState [08:57:50]SAM_PROTO_GetShiftState [08:57:50]wFMCommunicate request_size=4 [08:57:50]MH_SAM_APDU [08:57:50]CAPDU: 80 13 01 00 [08:57:50]Write to MH i2c: E2 08 00 65 24 80 13 01 00 00 00 00 00 06 [08:57:50]Write i2c OK [08:57:50]MH_I2C_Read... [08:57:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:57:50]Read from MH i2c: E2 [08:57:50]MH_I2C_Read... [08:57:50]Read from MH i2c: E2 0E 00 [08:57:50]MH_I2C_Read... [08:57:50]Read from MH i2c: E2 0E 00 65 24 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 6D [08:57:50]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [08:57:50]wFMCommunicate OK [08:57:50]SAM_PROTO_GetShiftState done [08:57:50]FM_GetShiftState done [08:57:50]req_shift_opened done [08:57:50]requested_item shift.open_date is exist - process it [08:57:50]req_shift_open_date [08:57:50]req_shift_open_date done [08:57:50]produce_requested_data done [08:57:50]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67786,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [08:57:50]process_action_free print_text [08:57:50]json_value_free [08:57:50]json_value_free done [08:57:50]process_json_proto returns [08:57:50]Send response to host [08:57:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67786,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [08:57:50]free response buf [08:57:50]execute_script done [08:57:50]execute_script returns [08:57:50]free content buf [08:57:50]Sock 9.Close socket [08:57:50]Sock 9.Thread stoped [08:57:53]OFD Sender: No OFD packet to send [08:57:58]OFD Sender: No OFD packet to send [08:58:03]OFD Sender: No OFD packet to send [08:58:08]OFD Sender: No OFD packet to send [08:58:13]OFD Sender: No OFD packet to send [08:58:18]OFD Sender: No OFD packet to send [08:58:23]OFD Sender: No OFD packet to send [08:58:28]OFD Sender: No OFD packet to send [08:58:33]OFD Sender: No OFD packet to send [08:58:38]OFD Sender: No OFD packet to send [08:58:43]OFD Sender: No OFD packet to send [08:58:48]OFD Sender: No OFD packet to send [08:58:53]OFD Sender: No OFD packet to send [08:58:58]OFD Sender: No OFD packet to send [08:59:03]OFD Sender: No OFD packet to send [08:59:08]OFD Sender: No OFD packet to send [08:59:13]OFD Sender: No OFD packet to send [08:59:18]OFD Sender: No OFD packet to send [08:59:23]OFD Sender: No OFD packet to send [08:59:28]OFD Sender: No OFD packet to send [08:59:33]OFD Sender: No OFD packet to send [08:59:38]OFD Sender: No OFD packet to send [08:59:43]OFD Sender: No OFD packet to send [08:59:48]OFD Sender: No OFD packet to send [08:59:53]OFD Sender: No OFD packet to send [08:59:58]OFD Sender: No OFD packet to send [09:00:03]OFD Sender: No OFD packet to send [09:00:08]OFD Sender: No OFD packet to send [09:00:13]OFD Sender: No OFD packet to send [09:00:18]OFD Sender: No OFD packet to send [09:00:23]OFD Sender: No OFD packet to send [09:00:28]OFD Sender: No OFD packet to send [09:00:33]OFD Sender: No OFD packet to send [09:00:38]OFD Sender: No OFD packet to send [09:00:43]OFD Sender: No OFD packet to send [09:00:48]OFD Sender: No OFD packet to send [09:00:53]OFD Sender: No OFD packet to send [09:00:58]OFD Sender: No OFD packet to send [09:01:03]OFD Sender: No OFD packet to send [09:01:08]OFD Sender: No OFD packet to send [09:01:13]OFD Sender: No OFD packet to send [09:01:18]OFD Sender: No OFD packet to send [09:01:23]OFD Sender: No OFD packet to send [09:01:28]OFD Sender: No OFD packet to send [09:01:33]OFD Sender: No OFD packet to send [09:01:38]OFD Sender: No OFD packet to send [09:01:43]OFD Sender: No OFD packet to send [09:01:48]OFD Sender: No OFD packet to send [09:01:53]OFD Sender: No OFD packet to send [09:01:58]OFD Sender: No OFD packet to send [09:02:03]OFD Sender: No OFD packet to send [09:02:08]OFD Sender: No OFD packet to send [09:02:13]OFD Sender: No OFD packet to send [09:02:18]OFD Sender: No OFD packet to send [09:02:23]OFD Sender: No OFD packet to send [09:02:28]OFD Sender: No OFD packet to send [09:02:33]OFD Sender: No OFD packet to send [09:02:38]OFD Sender: No OFD packet to send [09:02:43]OFD Sender: No OFD packet to send [09:02:48]OFD Sender: No OFD packet to send [09:02:53]OFD Sender: No OFD packet to send [09:02:58]OFD Sender: No OFD packet to send [09:03:03]OFD Sender: No OFD packet to send [09:03:08]OFD Sender: No OFD packet to send [09:03:13]OFD Sender: No OFD packet to send [09:03:18]OFD Sender: No OFD packet to send [09:03:23]OFD Sender: No OFD packet to send [09:03:28]OFD Sender: No OFD packet to send [09:03:33]OFD Sender: No OFD packet to send [09:03:38]OFD Sender: No OFD packet to send [09:03:43]OFD Sender: No OFD packet to send [09:03:48]OFD Sender: No OFD packet to send [09:03:53]OFD Sender: No OFD packet to send [09:03:58]OFD Sender: No OFD packet to send [09:04:03]OFD Sender: No OFD packet to send [09:04:08]OFD Sender: No OFD packet to send [09:04:13]OFD Sender: No OFD packet to send [09:04:18]OFD Sender: No OFD packet to send [09:04:24]OFD Sender: No OFD packet to send [09:04:29]OFD Sender: No OFD packet to send [09:04:34]OFD Sender: No OFD packet to send [09:04:39]OFD Sender: No OFD packet to send [09:04:44]OFD Sender: No OFD packet to send [09:04:49]OFD Sender: No OFD packet to send [09:04:54]OFD Sender: No OFD packet to send [09:04:59]OFD Sender: No OFD packet to send [09:05:04]OFD Sender: No OFD packet to send [09:05:09]OFD Sender: No OFD packet to send [09:05:14]OFD Sender: No OFD packet to send [09:05:19]OFD Sender: No OFD packet to send [09:05:24]OFD Sender: No OFD packet to send [09:05:29]OFD Sender: No OFD packet to send [09:05:34]OFD Sender: No OFD packet to send [09:05:39]OFD Sender: No OFD packet to send [09:05:44]OFD Sender: No OFD packet to send [09:05:49]OFD Sender: No OFD packet to send [09:05:54]OFD Sender: No OFD packet to send [09:05:59]OFD Sender: No OFD packet to send [09:06:04]OFD Sender: No OFD packet to send [09:06:09]OFD Sender: No OFD packet to send [09:06:14]OFD Sender: No OFD packet to send [09:06:19]OFD Sender: No OFD packet to send [09:06:24]OFD Sender: No OFD packet to send [09:06:29]OFD Sender: No OFD packet to send [09:06:34]OFD Sender: No OFD packet to send [09:06:39]OFD Sender: No OFD packet to send [09:06:44]OFD Sender: No OFD packet to send [09:06:49]OFD Sender: No OFD packet to send [09:06:52]accept exits with 7 [09:06:52]New connection [09:06:52]New thread 3066608996 created [09:06:52]Thread 3066752356 joined [09:06:52]Waiting for new connection... [09:06:52] Sock 7.Parse request [09:06:52]Sock 7.Check first char [09:06:52]Sock 7.First char is OK [09:06:52]request: POST /json_proto HTTP/1.0 [09:06:52]Method: POST [09:06:52]URL: /json_proto [09:06:52]Method is POST - this is cgi request [09:06:52]url: /json_proto [09:06:52]query_string will be loaded in cgi processing [09:06:52]execute_cgi json_proto POST (null) [09:06:52]execute_cgi path=json_proto method=POST [09:06:52]POST find Content-Length [09:06:52]Host: 172.17.41.195:8080 [09:06:52]Content-Length: 678 [09:06:52]Content-Type: application/json [09:06:52] [09:06:52]POST finish read [09:06:52]Found Content-Length = 678 [09:06:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507968", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.80, "quantity" : 10.480, "sum" : 700.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:06:52]execute_script... [09:06:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507968", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.80, "quantity" : 10.480, "sum" : 700.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:06:52]POST & json_proto [09:06:52]process_json_proto [09:06:52]json parsed OK: [09:06:52]protocol is kg_v1.0 [09:06:52]action value=close_receipt [09:06:52]process_action close_receipt [09:06:52]cmd_close_receipt [09:06:52]MH_GetDate [09:06:52]Write to MH i2c: F0 00 00 66 24 79 [09:06:52]Write i2c OK [09:06:52]MH_I2C_Read... [09:06:52]Read from MH i2c: F0 [09:06:52]MH_I2C_Read... [09:06:52]Read from MH i2c: F0 09 00 [09:06:52]MH_I2C_Read... [09:06:52]Read from MH i2c: F0 09 00 66 24 00 B1 6F 48 66 FC 21 6F 64 40 [09:06:52]GetLastDocTimeStamp 1716022415 [09:06:52]current date 1716023217 [09:06:52]FM_GetShiftState [09:06:52]SAM_PROTO_GetShiftState [09:06:52]wFMCommunicate request_size=4 [09:06:52]MH_SAM_APDU [09:06:52]CAPDU: 80 13 01 00 [09:06:52]Write to MH i2c: E2 08 00 67 24 80 13 01 00 00 00 00 00 08 [09:06:52]Write i2c OK [09:06:52]MH_I2C_Read... [09:06:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:06:52]Read from MH i2c: E2 [09:06:52]MH_I2C_Read... [09:06:52]Read from MH i2c: E2 0E 00 [09:06:52]MH_I2C_Read... [09:06:52]Read from MH i2c: E2 0E 00 67 24 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 6F [09:06:52]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [09:06:52]wFMCommunicate OK [09:06:52]SAM_PROTO_GetShiftState done [09:06:52]FM_GetShiftState done [09:06:52]opened in 1715991483 [09:06:52]opened+sec_in_day 1716077883 [09:06:52]quantity*price = 70006 [09:06:52]sum+1 = 70007 [09:06:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.19 НДС 12% : 74.34 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 26 18.05.2024 09:06 Смена: 359 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67787 ФПД: 134001491060913 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T090657&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67787&fm=134001491060913&tin=02508201610067®Number=0000000000091845&sum=70000 [09:06:53]StoreToDocumentArchive [09:06:53]shift 359 fd 67787 [09:06:53]save to /storage/0359/doc_00067787 [09:06:53]save last doc name /storage/0359/doc_00067787 to /storage/kkm_last_doc_name [09:06:53]save OK [09:06:53]Clear old archive folders... [09:06:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:06:53]tlvbuf is B6F248B0 [09:06:53]SAM_PROTO_ClearQueue [09:06:53]wFMCommunicate request_size=4 [09:06:53]MH_SAM_APDU [09:06:53]CAPDU: 80 09 00 00 [09:06:53]Write to MH i2c: E2 08 00 74 24 80 09 00 00 00 00 00 00 0A [09:06:53]Write i2c OK [09:06:53]MH_I2C_Read... [09:06:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:06:53]Read from MH i2c: E2 [09:06:53]MH_I2C_Read... [09:06:53]Read from MH i2c: E2 03 00 [09:06:53]MH_I2C_Read... [09:06:53]Read from MH i2c: E2 03 00 74 24 00 90 00 0C [09:06:53]RAPDU: 90 00 [09:06:53]wFMCommunicate OK [09:06:53]SAM_PROTO_ClearQueue done [09:06:53]KKMCreateOFDPacket [09:06:53]OFDProtocolAddRootSTLVToBuf [09:06:53]FM_MakeSignedData [09:06:53]FM_MakeSignedData [09:06:53]SAM_PROTO_SignData [09:06:53]wFMCommunicate request_size=4 [09:06:53]MH_SAM_APDU [09:06:53]CAPDU: 80 0D 01 02 [09:06:53]Write to MH i2c: E2 08 00 75 24 80 0D 01 02 00 00 00 00 12 [09:06:53]Write i2c OK [09:06:53]MH_I2C_Read... [09:06:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:06:53]Read from MH i2c: E2 [09:06:53]MH_I2C_Read... [09:06:53]Read from MH i2c: E2 03 00 [09:06:53]MH_I2C_Read... [09:06:53]Read from MH i2c: E2 03 00 75 24 00 90 00 0D [09:06:53]RAPDU: 90 00 [09:06:53]wFMCommunicate OK [09:06:53]wFMCommunicate request_size=255 [09:06:53]MH_SAM_APDU [09:06:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 28 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 76 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 B1 6F 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 CB 08 01 00 35 04 06 00 79 [09:06:53]Write to MH i2c: E2 02 01 76 24 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 28 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 76 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 B1 6F 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 CB 08 01 00 35 04 06 00 79 00 00 28 [09:06:53]Write i2c OK [09:06:53]MH_I2C_Read... [09:06:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:06:54]Read from MH i2c: E2 [09:06:54]MH_I2C_Read... [09:06:54]Read from MH i2c: E2 03 00 [09:06:54]MH_I2C_Read... [09:06:54]Read from MH i2c: E2 03 00 76 24 00 90 00 0E [09:06:54]RAPDU: 90 00 [09:06:54]wFMCommunicate OK [09:06:54]wFMCommunicate request_size=10 [09:06:54]MH_SAM_APDU [09:06:54]CAPDU: 80 0D 02 02 05 DF A7 46 28 B1 [09:06:54]Write to MH i2c: E2 0D 00 77 24 80 0D 02 02 05 00 DF A7 46 28 B1 00 00 C4 [09:06:54]Write i2c OK [09:06:54]MH_I2C_Read... [09:06:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:06:54]Read from MH i2c: E2 [09:06:54]MH_I2C_Read... [09:06:54]Read from MH i2c: E2 03 00 [09:06:54]MH_I2C_Read... [09:06:54]Read from MH i2c: E2 03 00 77 24 00 90 00 0F [09:06:54]RAPDU: 90 00 [09:06:54]wFMCommunicate OK [09:06:54]wFMCommunicate request_size=4 [09:06:54]MH_SAM_APDU [09:06:54]CAPDU: 80 0D 03 02 [09:06:54]Write to MH i2c: E2 08 00 78 24 80 0D 03 02 00 00 00 00 17 [09:06:54]Write i2c OK [09:06:54]MH_I2C_Read... [09:06:54]OFD Sender: No OFD packet to send [09:06:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:06:54]Read from MH i2c: E2 [09:06:54]MH_I2C_Read... [09:06:54]Read from MH i2c: E2 0B 00 [09:06:54]MH_I2C_Read... [09:06:54]Read from MH i2c: E2 0B 00 78 24 00 4C 5B 78 77 E1 6A 67 A4 90 00 04 [09:06:54]RAPDU: 4C 5B 78 77 E1 6A 67 A4 90 00 [09:06:54]wFMCommunicate OK [09:06:54]SAM_PROTO_SignData done [09:06:54]FM_MakeSignedData done [09:06:54]CreateOFDProtocolMessage [09:06:54]wFMCommunicate request_size=4 [09:06:54]MH_SAM_APDU [09:06:54]CAPDU: 80 11 00 00 [09:06:54]Write to MH i2c: E2 08 00 79 24 80 11 00 00 00 00 00 00 17 [09:06:54]Write i2c OK [09:06:54]MH_I2C_Read... [09:06:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:06:54]Read from MH i2c: E2 [09:06:54]MH_I2C_Read... [09:06:54]Read from MH i2c: E2 17 00 [09:06:54]MH_I2C_Read... [09:06:54]Read from MH i2c: E2 17 00 79 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 6D [09:06:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [09:06:54]wFMCommunicate OK [09:06:54]CreateOFDProtocolMessage done [09:06:54]OFDSenderStorePacket 67787 [09:06:54]StoreOFDPacket docnum=67787 [09:06:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 D6 48 07 01 17 FD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 28 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 76 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 B1 6F 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 CB 08 01 00 35 04 06 00 79 DF A7 46 28 B1 4C 5B 78 77 E1 6A 67 A4 [09:06:54]CheckFolder [09:06:54]dirname=/storage/ofd_packets [09:06:54]CheckFolder done [09:06:54]ProducePacketName [09:06:54]name=ofd_packets/00067787 [09:06:54]NVStorageSaveData ofd_packets/00067787 [09:06:54]File name is /storage/ofd_packets/00067787 [09:06:54]Write 301 bytes [09:06:54]NVStorageSaveData done [09:06:54]OFDSenderStorePacket done [09:06:54]KKMCreateOFDPacket done [09:06:54]NVStorageSaveData kkm_last_timestamp [09:06:54]File name is /storage/kkm_last_timestamp [09:06:54]Write 4 bytes [09:06:54]NVStorageSaveData done [09:06:54]ExternCall_PrintAddStr [09:06:54]wPrintStart [09:06:54]Write to MH i2c: 01 00 00 7A 24 9E [09:06:54]Write i2c OK [09:06:54]MH_I2C_Read... [09:06:54]Read from MH i2c: 01 [09:06:54]MH_I2C_Read... [09:06:54]Read from MH i2c: 01 07 00 [09:06:54]MH_I2C_Read... [09:06:54]Read from MH i2c: 01 07 00 7A 24 00 00 00 00 00 FF 0F B3 [09:06:54]RasterBufferAndPrint [09:06:54]line Счет N : (1)507968 [09:06:54]line ИНН: 02508201610067 [09:06:54]line Контрольно-Кассовый Чек [09:06:54]line ПРОДАЖА [09:06:54]line ТРК (МРК, ГНК) : 33 [09:06:54]line Товар: 2710124130 [09:06:54]line Аи-92-К-5 [09:06:54]line 10.480 * 66.80 [09:06:54]line = 700.06 [09:06:54]line НДС 12% НСП 1% [09:06:54]line > о реализуемом товаре [09:06:54]line ОКРУГЛЕНИЕ: -0.06 [09:06:54]line ИТОГО: 700.00 [09:06:54]line Внесено: 700.00 [09:06:54]line СДАЧА: 0.00 [09:06:54]line НСП 1% : 6.19 [09:06:54]line НДС 12% : 74.34 [09:06:54]line Наличными: 700.00 [09:06:54]line Безнал.: 0.00 [09:06:54]line Место: АЗС № 91 "Партнер Нефть" [09:06:54]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [09:06:54]line СНО: Общий режим [09:06:54]line Чек 26 18.05.2024 09:06 [09:06:54]line Смена: 359 ФФД: 1.0 [09:06:54]line ЗНМ: 0300000119 [09:06:54]line РНМ: 0000000000091845 [09:06:54]line Версия ККМ: 001 [09:06:54]line ФМ: 0000000000871829 [09:06:54]line ФД: 67787 [09:06:54]line ФПД: 134001491060913 [09:06:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T090657&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67787&fm=134001491060913&tin=02508201610067®Number=0000000000091845&sum=70000 [09:06:54]OFD Sender: Processing packet 67787 [packets to send 35, broken 34] [09:06:54]ProducePacketName [09:06:54]name=ofd_packets/00067787 [09:06:54]OFD Sender: To server: pG, [09:06:54]CommunicateWithHost lk.salyk.kg:30040 [09:06:54]ConnectInit lk.salyk.kg [09:06:54]written 0, free lines is 4095 [09:06:54]Connected sock=10 [09:06:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 D6 48 07 01 17 FD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 28 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 76 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 B1 6F 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 CB 08 01 00 35 04 06 00 79 DF A7 46 28 B1 4C 5B 78 77 E1 6A 67 A4 [09:06:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 2A 7B 47 00 5A 8F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 CB 08 01 00 F4 03 04 00 87 17 48 66 B6 04 01 00 00 00 A4 61 9B 7D 15 FF 2C [09:06:54]CommunicateWithHost err = 0 [09:06:54]CheckOFDResponse [09:06:54]1017 (14) - 77093643461234 [09:06:54]1041 (16) - 0000000000871829 [09:06:54]1040 (4) - 67787 [09:06:54]1012 (4) - 18.05.2024 02:50 [09:06:54]1206 (1) - 0 [09:06:54]OFD Sender: Remove packet 67787 [09:06:54]ProducePacketName [09:06:54]name=ofd_packets/00067787 [09:06:54]NVStorageDeleteData [09:06:55]Write to MH i2c: 01 00 00 A4 24 C8 [09:06:55]Write i2c OK [09:06:55]MH_I2C_Read... [09:06:55]Read from MH i2c: 01 [09:06:55]MH_I2C_Read... [09:06:55]Read from MH i2c: 01 07 00 [09:06:55]MH_I2C_Read... [09:06:55]Read from MH i2c: 01 07 00 A4 24 00 00 00 00 00 D2 0C AD [09:06:55]RasterBufferAndPrint [09:06:55]line [09:06:55]line [09:06:55]line [09:06:55]line [09:06:55]line [09:06:55]written 0, free lines is 3288 [09:06:55]MH_Cut [09:06:55]Write to MH i2c: D1 01 00 AB 24 01 A1 [09:06:55]Write i2c OK [09:06:55]MH_I2C_Read... [09:06:55]Read from MH i2c: D1 [09:06:55]MH_I2C_Read... [09:06:55]Read from MH i2c: D1 01 00 [09:06:55]MH_I2C_Read... [09:06:55]Read from MH i2c: D1 01 00 AB 24 00 A0 [09:06:55]Write to MH i2c: 01 00 00 AC 24 D0 [09:06:55]Write i2c OK [09:06:55]MH_I2C_Read... [09:06:55]OFD Sender: No OFD packet to send [09:06:55]*** Cut start [09:06:55]*** Purtial cut [09:06:55]*** Stage 1: CUTSNS_PIN = 1 [09:06:56]Read from MH i2c: 01 [09:06:56]MH_I2C_Read... [09:06:56]*** Stop cut motor [09:06:56]*** Cut end [09:06:56]Read from MH i2c: 01 07 00 [09:06:56]MH_I2C_Read... [09:06:56]Read from MH i2c: 01 07 00 AC 24 00 00 00 00 00 FF 0F E5 [09:06:56]process_action close_receipt done [09:06:56]requested_data is exist [09:06:56]produce_requested_data [09:06:56]requested_item fm.sn is exist - process it [09:06:56]wFMCommunicate request_size=4 [09:06:56]MH_SAM_APDU [09:06:56]CAPDU: 80 11 00 00 [09:06:56]Write to MH i2c: E2 08 00 AD 24 80 11 00 00 00 00 00 00 4B [09:06:56]Write i2c OK [09:06:56]MH_I2C_Read... [09:06:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:06:56]Read from MH i2c: E2 [09:06:56]MH_I2C_Read... [09:06:56]Read from MH i2c: E2 17 00 [09:06:56]MH_I2C_Read... [09:06:56]Read from MH i2c: E2 17 00 AD 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 A1 [09:06:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [09:06:56]wFMCommunicate OK [09:06:56]requested_item fd.num is exist - process it [09:06:56]SAM_PROTO_GetFieldsCounters [09:06:56]wFMCommunicate request_size=4 [09:06:56]MH_SAM_APDU [09:06:56]CAPDU: 80 13 00 00 [09:06:56]Write to MH i2c: E2 08 00 AE 24 80 13 00 00 00 00 00 00 4E [09:06:56]Write i2c OK [09:06:56]MH_I2C_Read... [09:06:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:06:56]Read from MH i2c: E2 [09:06:56]MH_I2C_Read... [09:06:56]Read from MH i2c: E2 62 00 [09:06:56]MH_I2C_Read... [09:06:56]Read from MH i2c: E2 62 00 AE 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 CB 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 FE [09:06:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 CB 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:06:56]wFMCommunicate OK [09:06:56]SAM_PROTO_GetFieldsCounters done [09:06:56]requested_item shift.num is exist - process it [09:06:56]requested_item shift.opened is exist - process it [09:06:56]req_shift_opened [09:06:56]FM_GetShiftState [09:06:56]SAM_PROTO_GetShiftState [09:06:56]wFMCommunicate request_size=4 [09:06:56]MH_SAM_APDU [09:06:56]CAPDU: 80 13 01 00 [09:06:56]Write to MH i2c: E2 08 00 AF 24 80 13 01 00 00 00 00 00 50 [09:06:56]Write i2c OK [09:06:56]MH_I2C_Read... [09:06:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:06:56]Read from MH i2c: E2 [09:06:56]MH_I2C_Read... [09:06:56]Read from MH i2c: E2 0E 00 [09:06:56]MH_I2C_Read... [09:06:56]Read from MH i2c: E2 0E 00 AF 24 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 B7 [09:06:56]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [09:06:56]wFMCommunicate OK [09:06:56]SAM_PROTO_GetShiftState done [09:06:56]FM_GetShiftState done [09:06:56]req_shift_opened done [09:06:56]requested_item shift.open_date is exist - process it [09:06:56]req_shift_open_date [09:06:56]req_shift_open_date done [09:06:56]produce_requested_data done [09:06:56]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67787,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [09:06:56]process_action_free close_receipt [09:06:56]json_value_free [09:06:56]json_value_free done [09:06:56]process_json_proto returns [09:06:56]Send response to host [09:06:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67787,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [09:06:56]free response buf [09:06:56]execute_script done [09:06:56]execute_script returns [09:06:56]free content buf [09:06:56]Sock 7.Close socket [09:06:56]Sock 7.Thread stoped [09:07:00]OFD Sender: No OFD packet to send [09:07:05]OFD Sender: No OFD packet to send [09:07:10]OFD Sender: No OFD packet to send [09:07:15]OFD Sender: No OFD packet to send [09:07:20]OFD Sender: No OFD packet to send [09:07:25]OFD Sender: No OFD packet to send [09:07:30]OFD Sender: No OFD packet to send [09:07:35]OFD Sender: No OFD packet to send [09:07:40]OFD Sender: No OFD packet to send [09:07:45]OFD Sender: No OFD packet to send [09:07:50]OFD Sender: No OFD packet to send [09:07:55]OFD Sender: No OFD packet to send [09:08:00]OFD Sender: No OFD packet to send [09:08:05]OFD Sender: No OFD packet to send [09:08:10]OFD Sender: No OFD packet to send [09:08:15]OFD Sender: No OFD packet to send [09:08:20]OFD Sender: No OFD packet to send [09:08:25]OFD Sender: No OFD packet to send [09:08:30]OFD Sender: No OFD packet to send [09:08:35]OFD Sender: No OFD packet to send [09:08:40]OFD Sender: No OFD packet to send [09:08:45]OFD Sender: No OFD packet to send [09:08:50]OFD Sender: No OFD packet to send [09:08:55]OFD Sender: No OFD packet to send [09:09:00]OFD Sender: No OFD packet to send [09:09:05]OFD Sender: No OFD packet to send [09:09:10]OFD Sender: No OFD packet to send [09:09:15]OFD Sender: No OFD packet to send [09:09:20]OFD Sender: No OFD packet to send [09:09:25]OFD Sender: No OFD packet to send [09:09:30]OFD Sender: No OFD packet to send [09:09:35]OFD Sender: No OFD packet to send [09:09:40]OFD Sender: No OFD packet to send [09:09:45]OFD Sender: No OFD packet to send [09:09:50]OFD Sender: No OFD packet to send [09:09:55]OFD Sender: No OFD packet to send [09:10:00]OFD Sender: No OFD packet to send [09:10:05]OFD Sender: No OFD packet to send [09:10:10]OFD Sender: No OFD packet to send [09:10:15]OFD Sender: No OFD packet to send [09:10:20]OFD Sender: No OFD packet to send [09:10:25]OFD Sender: No OFD packet to send [09:10:30]OFD Sender: No OFD packet to send [09:10:35]OFD Sender: No OFD packet to send [09:10:40]OFD Sender: No OFD packet to send [09:10:45]OFD Sender: No OFD packet to send [09:10:50]OFD Sender: No OFD packet to send [09:10:55]OFD Sender: No OFD packet to send [09:10:56]accept exits with 9 [09:10:56]New connection [09:10:56]New thread 3066752356 created [09:10:56]Thread 3066608996 joined [09:10:56]Waiting for new connection... [09:10:56] Sock 9.Parse request [09:10:56]Sock 9.Check first char [09:10:56]Sock 9.First char is OK [09:10:56]request: POST /json_proto HTTP/1.0 [09:10:56]Method: POST [09:10:56]URL: /json_proto [09:10:56]Method is POST - this is cgi request [09:10:56]url: /json_proto [09:10:56]query_string will be loaded in cgi processing [09:10:56]execute_cgi json_proto POST (null) [09:10:56]execute_cgi path=json_proto method=POST [09:10:56]POST find Content-Length [09:10:56]Host: 172.17.41.195:8080 [09:10:56]Content-Length: 1209 [09:10:56]Content-Type: application/json [09:10:56] [09:10:56]POST finish read [09:10:56]Found Content-Length = 1209 [09:10:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0440\u0441\u0442\u0430\u043D\u0431\u0435\u043A\u043E\u0432 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)507969\u000A18.05.2024 08:53\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 28.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 2091.60\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:10:56]execute_script... [09:10:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0440\u0441\u0442\u0430\u043D\u0431\u0435\u043A\u043E\u0432 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)507969\u000A18.05.2024 08:53\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 28.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 2091.60\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:10:56]POST & json_proto [09:10:56]process_json_proto [09:10:56]json parsed OK: [09:10:56]protocol is kg_v1.0 [09:10:56]action value=print_text [09:10:56]process_action print_text [09:10:56]cmd_print_text [09:10:56]ExternCall_PrintAddStr [09:10:56]wPrintStart [09:10:56]Write to MH i2c: 01 00 00 B0 24 D4 [09:10:56]Write i2c OK [09:10:56]MH_I2C_Read... [09:10:56]Read from MH i2c: 01 [09:10:56]MH_I2C_Read... [09:10:56]Read from MH i2c: 01 07 00 [09:10:56]MH_I2C_Read... [09:10:56]Read from MH i2c: 01 07 00 B0 24 00 00 00 00 00 FF 0F E9 [09:10:56]RasterBufferAndPrint [09:10:56]line *****ТОВАРНЫЙ ЧЕК***** [09:10:56]line АЗС-91 [09:10:56]line Партнер нефть [09:10:56]line 02508201610067 [09:10:56]line Кассир : Арстанбеков Н. [09:10:56]line Счет N : (1)507969 [09:10:56]line 18.05.2024 08:53 [09:10:56]line ПРОДАЖА [09:10:56]line ТРК (МРК, ГНК): 21 [09:10:56]line Вид ГСМ : 2710194210 [09:10:56]line ДТ-К-5 [09:10:56]line 28.000 x 74.70 [09:10:56]line ИТОГ: 2091.60 [09:10:56]line Тип оплаты: Талоны: Топливная Карта [09:10:56]line 02750 [09:10:56]line ______________________ [09:10:56]line (подпись) [09:10:56]written 0, free lines is 4095 [09:10:56]Write to MH i2c: 01 00 00 C4 24 E8 [09:10:56]Write i2c OK [09:10:56]MH_I2C_Read... [09:10:56]Read from MH i2c: 01 [09:10:56]MH_I2C_Read... [09:10:56]Read from MH i2c: 01 07 00 [09:10:56]MH_I2C_Read... [09:10:56]Read from MH i2c: 01 07 00 C4 24 00 00 00 00 00 11 0E 0E [09:10:56]RasterBufferAndPrint [09:10:56]line [09:10:56]line [09:10:56]line [09:10:56]line [09:10:56]line [09:10:56]written 0, free lines is 3602 [09:10:56]MH_Cut [09:10:56]Write to MH i2c: D1 01 00 CB 24 01 C1 [09:10:56]Write i2c OK [09:10:56]MH_I2C_Read... [09:10:56]Read from MH i2c: D1 [09:10:56]MH_I2C_Read... [09:10:56]Read from MH i2c: D1 01 00 [09:10:56]MH_I2C_Read... [09:10:56]Read from MH i2c: D1 01 00 CB 24 00 C0 [09:10:56]Write to MH i2c: 01 00 00 CC 24 F0 [09:10:56]Write i2c OK [09:10:56]MH_I2C_Read... [09:10:57]*** Cut start [09:10:57]*** Purtial cut [09:10:57]*** CUTSNS_PIN = 0 [09:10:57]*** Stage 1: CUTSNS_PIN = 1 [09:10:59]Read from MH i2c: 01 [09:10:59]MH_I2C_Read... [09:10:59]*** Stop cut motor [09:10:59]*** Cut end [09:10:59]Read from MH i2c: 01 07 00 [09:10:59]MH_I2C_Read... [09:10:59]Read from MH i2c: 01 07 00 CC 24 00 00 00 00 00 FF 0F 05 [09:10:59]process_action print_text done [09:10:59]requested_data is exist [09:10:59]produce_requested_data [09:10:59]requested_item fm.sn is exist - process it [09:10:59]wFMCommunicate request_size=4 [09:10:59]MH_SAM_APDU [09:10:59]CAPDU: 80 11 00 00 [09:10:59]Write to MH i2c: E2 08 00 CD 24 80 11 00 00 00 00 00 00 6B [09:10:59]Write i2c OK [09:10:59]MH_I2C_Read... [09:10:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:10:59]Read from MH i2c: E2 [09:10:59]MH_I2C_Read... [09:10:59]Read from MH i2c: E2 17 00 [09:10:59]MH_I2C_Read... [09:10:59]Read from MH i2c: E2 17 00 CD 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 C1 [09:10:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [09:10:59]wFMCommunicate OK [09:10:59]requested_item fd.num is exist - process it [09:10:59]SAM_PROTO_GetFieldsCounters [09:10:59]wFMCommunicate request_size=4 [09:10:59]MH_SAM_APDU [09:10:59]CAPDU: 80 13 00 00 [09:10:59]Write to MH i2c: E2 08 00 CE 24 80 13 00 00 00 00 00 00 6E [09:10:59]Write i2c OK [09:10:59]MH_I2C_Read... [09:10:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:10:59]Read from MH i2c: E2 [09:10:59]MH_I2C_Read... [09:10:59]Read from MH i2c: E2 62 00 [09:10:59]MH_I2C_Read... [09:10:59]Read from MH i2c: E2 62 00 CE 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 CB 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 1E [09:10:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 CB 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:10:59]wFMCommunicate OK [09:10:59]SAM_PROTO_GetFieldsCounters done [09:10:59]requested_item shift.num is exist - process it [09:10:59]requested_item shift.opened is exist - process it [09:10:59]req_shift_opened [09:10:59]FM_GetShiftState [09:10:59]SAM_PROTO_GetShiftState [09:10:59]wFMCommunicate request_size=4 [09:10:59]MH_SAM_APDU [09:10:59]CAPDU: 80 13 01 00 [09:10:59]Write to MH i2c: E2 08 00 CF 24 80 13 01 00 00 00 00 00 70 [09:10:59]Write i2c OK [09:10:59]MH_I2C_Read... [09:10:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:10:59]Read from MH i2c: E2 [09:10:59]MH_I2C_Read... [09:10:59]Read from MH i2c: E2 0E 00 [09:10:59]MH_I2C_Read... [09:10:59]Read from MH i2c: E2 0E 00 CF 24 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 D7 [09:10:59]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [09:10:59]wFMCommunicate OK [09:10:59]SAM_PROTO_GetShiftState done [09:10:59]FM_GetShiftState done [09:10:59]req_shift_opened done [09:10:59]requested_item shift.open_date is exist - process it [09:10:59]req_shift_open_date [09:10:59]req_shift_open_date done [09:10:59]produce_requested_data done [09:10:59]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67787,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [09:10:59]process_action_free print_text [09:10:59]json_value_free [09:10:59]json_value_free done [09:10:59]process_json_proto returns [09:10:59]Send response to host [09:10:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67787,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [09:10:59]free response buf [09:10:59]execute_script done [09:10:59]execute_script returns [09:10:59]free content buf [09:10:59]Sock 9.Close socket [09:10:59]Sock 9.Thread stoped [09:11:00]OFD Sender: No OFD packet to send [09:11:05]OFD Sender: No OFD packet to send [09:11:10]OFD Sender: No OFD packet to send [09:11:15]OFD Sender: No OFD packet to send [09:11:20]OFD Sender: No OFD packet to send [09:11:25]OFD Sender: No OFD packet to send [09:11:30]accept exits with 7 [09:11:30]New connection [09:11:30]New thread 3066608996 created [09:11:30]Thread 3066752356 joined [09:11:30]Waiting for new connection... [09:11:30] Sock 7.Parse request [09:11:30]Sock 7.Check first char [09:11:30]Sock 7.First char is OK [09:11:30]request: POST /json_proto HTTP/1.0 [09:11:30]Method: POST [09:11:30]URL: /json_proto [09:11:30]Method is POST - this is cgi request [09:11:30]url: /json_proto [09:11:30]query_string will be loaded in cgi processing [09:11:30]execute_cgi json_proto POST (null) [09:11:30]execute_cgi path=json_proto method=POST [09:11:30]POST find Content-Length [09:11:30]Host: 172.17.41.195:8080 [09:11:30]Content-Length: 1209 [09:11:30]Content-Type: application/json [09:11:30] [09:11:30]POST finish read [09:11:30]Found Content-Length = 1209 [09:11:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0440\u0441\u0442\u0430\u043D\u0431\u0435\u043A\u043E\u0432 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)507970\u000A18.05.2024 08:53\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 41\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 20.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 1494.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:11:30]execute_script... [09:11:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0440\u0441\u0442\u0430\u043D\u0431\u0435\u043A\u043E\u0432 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)507970\u000A18.05.2024 08:53\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 41\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 20.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 1494.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:11:30]POST & json_proto [09:11:30]process_json_proto [09:11:30]json parsed OK: [09:11:30]protocol is kg_v1.0 [09:11:30]action value=print_text [09:11:30]process_action print_text [09:11:30]cmd_print_text [09:11:30]ExternCall_PrintAddStr [09:11:30]wPrintStart [09:11:30]Write to MH i2c: 01 00 00 D0 24 F4 [09:11:30]Write i2c OK [09:11:30]MH_I2C_Read... [09:11:30]Read from MH i2c: 01 [09:11:30]MH_I2C_Read... [09:11:30]Read from MH i2c: 01 07 00 [09:11:30]MH_I2C_Read... [09:11:30]Read from MH i2c: 01 07 00 D0 24 00 00 00 00 00 FF 0F 09 [09:11:30]RasterBufferAndPrint [09:11:30]line *****ТОВАРНЫЙ ЧЕК***** [09:11:30]line АЗС-91 [09:11:30]line Партнер нефть [09:11:30]line 02508201610067 [09:11:30]line Кассир : Арстанбеков Н. [09:11:30]line Счет N : (1)507970 [09:11:30]line 18.05.2024 08:53 [09:11:30]line ПРОДАЖА [09:11:30]line ТРК (МРК, ГНК): 41 [09:11:30]line Вид ГСМ : 2710194210 [09:11:30]line ДТ-К-5 [09:11:30]line 20.000 x 74.70 [09:11:30]line ИТОГ: 1494.00 [09:11:30]line Тип оплаты: Талоны: Топливная Карта [09:11:30]line 02750 [09:11:30]line ______________________ [09:11:30]line (подпись) [09:11:30]written 0, free lines is 4095 [09:11:30]Write to MH i2c: 01 00 00 E4 24 08 [09:11:30]Write i2c OK [09:11:30]MH_I2C_Read... [09:11:30]Read from MH i2c: 01 [09:11:30]MH_I2C_Read... [09:11:30]Read from MH i2c: 01 07 00 [09:11:30]MH_I2C_Read... [09:11:30]Read from MH i2c: 01 07 00 E4 24 00 00 00 00 00 10 0E 2D [09:11:30]RasterBufferAndPrint [09:11:30]line [09:11:30]line [09:11:30]line [09:11:30]line [09:11:30]line [09:11:30]written 0, free lines is 3601 [09:11:30]MH_Cut [09:11:30]Write to MH i2c: D1 01 00 EB 24 01 E1 [09:11:30]Write i2c OK [09:11:30]MH_I2C_Read... [09:11:30]Read from MH i2c: D1 [09:11:30]MH_I2C_Read... [09:11:30]Read from MH i2c: D1 01 00 [09:11:30]MH_I2C_Read... [09:11:30]Read from MH i2c: D1 01 00 EB 24 00 E0 [09:11:30]Write to MH i2c: 01 00 00 EC 24 10 [09:11:30]Write i2c OK [09:11:30]MH_I2C_Read... [09:11:30]OFD Sender: No OFD packet to send [09:11:31]*** Cut start [09:11:31]*** Purtial cut [09:11:31]*** Stage 1: CUTSNS_PIN = 1 [09:11:31]Read from MH i2c: 01 [09:11:31]MH_I2C_Read... [09:11:31]Read from MH i2c: 01 07 00 [09:11:31]MH_I2C_Read... [09:11:31]*** Stop cut motor [09:11:31]*** Cut end [09:11:31]Read from MH i2c: 01 07 00 EC 24 00 00 00 00 00 FF 0F 25 [09:11:31]process_action print_text done [09:11:31]requested_data is exist [09:11:31]produce_requested_data [09:11:31]requested_item fm.sn is exist - process it [09:11:31]wFMCommunicate request_size=4 [09:11:31]MH_SAM_APDU [09:11:31]CAPDU: 80 11 00 00 [09:11:31]Write to MH i2c: E2 08 00 ED 24 80 11 00 00 00 00 00 00 8B [09:11:31]Write i2c OK [09:11:31]MH_I2C_Read... [09:11:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:11:31]Read from MH i2c: E2 [09:11:31]MH_I2C_Read... [09:11:31]Read from MH i2c: E2 17 00 [09:11:31]MH_I2C_Read... [09:11:31]Read from MH i2c: E2 17 00 ED 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 E1 [09:11:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [09:11:31]wFMCommunicate OK [09:11:31]requested_item fd.num is exist - process it [09:11:31]SAM_PROTO_GetFieldsCounters [09:11:31]wFMCommunicate request_size=4 [09:11:31]MH_SAM_APDU [09:11:31]CAPDU: 80 13 00 00 [09:11:31]Write to MH i2c: E2 08 00 EE 24 80 13 00 00 00 00 00 00 8E [09:11:31]Write i2c OK [09:11:31]MH_I2C_Read... [09:11:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:11:31]Read from MH i2c: E2 [09:11:31]MH_I2C_Read... [09:11:31]Read from MH i2c: E2 62 00 [09:11:31]MH_I2C_Read... [09:11:31]Read from MH i2c: E2 62 00 EE 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 CB 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 3E [09:11:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 CB 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:11:31]wFMCommunicate OK [09:11:31]SAM_PROTO_GetFieldsCounters done [09:11:31]requested_item shift.num is exist - process it [09:11:31]requested_item shift.opened is exist - process it [09:11:31]req_shift_opened [09:11:31]FM_GetShiftState [09:11:31]SAM_PROTO_GetShiftState [09:11:31]wFMCommunicate request_size=4 [09:11:31]MH_SAM_APDU [09:11:31]CAPDU: 80 13 01 00 [09:11:31]Write to MH i2c: E2 08 00 EF 24 80 13 01 00 00 00 00 00 90 [09:11:31]Write i2c OK [09:11:31]MH_I2C_Read... [09:11:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:11:31]Read from MH i2c: E2 [09:11:31]MH_I2C_Read... [09:11:31]Read from MH i2c: E2 0E 00 [09:11:31]MH_I2C_Read... [09:11:31]Read from MH i2c: E2 0E 00 EF 24 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 F7 [09:11:31]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [09:11:31]wFMCommunicate OK [09:11:31]SAM_PROTO_GetShiftState done [09:11:31]FM_GetShiftState done [09:11:31]req_shift_opened done [09:11:31]requested_item shift.open_date is exist - process it [09:11:31]req_shift_open_date [09:11:31]req_shift_open_date done [09:11:31]produce_requested_data done [09:11:31]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67787,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [09:11:31]process_action_free print_text [09:11:31]json_value_free [09:11:31]json_value_free done [09:11:31]process_json_proto returns [09:11:31]Send response to host [09:11:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67787,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [09:11:31]free response buf [09:11:31]execute_script done [09:11:31]execute_script returns [09:11:31]free content buf [09:11:31]Sock 7.Close socket [09:11:31]Sock 7.Thread stoped [09:11:35]OFD Sender: No OFD packet to send [09:11:40]OFD Sender: No OFD packet to send [09:11:45]OFD Sender: No OFD packet to send [09:11:50]OFD Sender: No OFD packet to send [09:11:55]OFD Sender: No OFD packet to send [09:12:00]OFD Sender: No OFD packet to send [09:12:05]OFD Sender: No OFD packet to send [09:12:10]OFD Sender: No OFD packet to send [09:12:15]OFD Sender: No OFD packet to send [09:12:20]OFD Sender: No OFD packet to send [09:12:25]OFD Sender: No OFD packet to send [09:12:30]OFD Sender: No OFD packet to send [09:12:35]OFD Sender: No OFD packet to send [09:12:40]OFD Sender: No OFD packet to send [09:12:45]OFD Sender: No OFD packet to send [09:12:50]OFD Sender: No OFD packet to send [09:12:55]OFD Sender: No OFD packet to send [09:13:00]OFD Sender: No OFD packet to send [09:13:05]OFD Sender: No OFD packet to send [09:13:10]OFD Sender: No OFD packet to send [09:13:15]OFD Sender: No OFD packet to send [09:13:20]OFD Sender: No OFD packet to send [09:13:25]OFD Sender: No OFD packet to send [09:13:30]OFD Sender: No OFD packet to send [09:13:35]OFD Sender: No OFD packet to send [09:13:40]OFD Sender: No OFD packet to send [09:13:45]OFD Sender: No OFD packet to send [09:13:50]OFD Sender: No OFD packet to send [09:13:55]OFD Sender: No OFD packet to send [09:14:00]OFD Sender: No OFD packet to send [09:14:05]OFD Sender: No OFD packet to send [09:14:10]OFD Sender: No OFD packet to send [09:14:15]OFD Sender: No OFD packet to send [09:14:20]OFD Sender: No OFD packet to send [09:14:25]OFD Sender: No OFD packet to send [09:14:30]OFD Sender: No OFD packet to send [09:14:35]OFD Sender: No OFD packet to send [09:14:40]OFD Sender: No OFD packet to send [09:14:45]OFD Sender: No OFD packet to send [09:14:50]OFD Sender: No OFD packet to send [09:14:55]OFD Sender: No OFD packet to send [09:15:00]OFD Sender: No OFD packet to send [09:15:01]accept exits with 9 [09:15:01]New connection [09:15:01]New thread 3066752356 created [09:15:01]Thread 3066608996 joined [09:15:01]Waiting for new connection... [09:15:01] Sock 9.Parse request [09:15:01]Sock 9.Check first char [09:15:01]Sock 9.First char is OK [09:15:01]request: POST /json_proto HTTP/1.0 [09:15:01]Method: POST [09:15:01]URL: /json_proto [09:15:01]Method is POST - this is cgi request [09:15:01]url: /json_proto [09:15:01]query_string will be loaded in cgi processing [09:15:01]execute_cgi json_proto POST (null) [09:15:01]execute_cgi path=json_proto method=POST [09:15:01]POST find Content-Length [09:15:01]Host: 172.17.41.195:8080 [09:15:01]Content-Length: 1208 [09:15:01]Content-Type: application/json [09:15:01] [09:15:01]POST finish read [09:15:01]Found Content-Length = 1208 [09:15:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0440\u0441\u0442\u0430\u043D\u0431\u0435\u043A\u043E\u0432 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)507971\u000A18.05.2024 08:57\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 10.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 747.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:15:01]execute_script... [09:15:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0440\u0441\u0442\u0430\u043D\u0431\u0435\u043A\u043E\u0432 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)507971\u000A18.05.2024 08:57\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 10.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 747.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:15:01]POST & json_proto [09:15:01]process_json_proto [09:15:01]json parsed OK: [09:15:01]protocol is kg_v1.0 [09:15:01]action value=print_text [09:15:01]process_action print_text [09:15:01]cmd_print_text [09:15:01]ExternCall_PrintAddStr [09:15:01]wPrintStart [09:15:01]Write to MH i2c: 01 00 00 F0 24 14 [09:15:01]Write i2c OK [09:15:01]MH_I2C_Read... [09:15:01]Read from MH i2c: 01 [09:15:01]MH_I2C_Read... [09:15:01]Read from MH i2c: 01 07 00 [09:15:01]MH_I2C_Read... [09:15:01]Read from MH i2c: 01 07 00 F0 24 00 00 00 00 00 FF 0F 29 [09:15:01]RasterBufferAndPrint [09:15:01]line *****ТОВАРНЫЙ ЧЕК***** [09:15:01]line АЗС-91 [09:15:01]line Партнер нефть [09:15:01]line 02508201610067 [09:15:01]line Кассир : Арстанбеков Н. [09:15:01]line Счет N : (1)507971 [09:15:01]line 18.05.2024 08:57 [09:15:01]line ПРОДАЖА [09:15:01]line ТРК (МРК, ГНК): 11 [09:15:01]line Вид ГСМ : 2710194210 [09:15:01]line ДТ-К-5 [09:15:01]line 10.000 x 74.70 [09:15:01]line ИТОГ: 747.00 [09:15:01]line Тип оплаты: Талоны: Топливная Карта [09:15:01]line 02750 [09:15:01]line ______________________ [09:15:01]line (подпись) [09:15:01]written 0, free lines is 4095 [09:15:01]Write to MH i2c: 01 00 00 04 25 29 [09:15:01]Write i2c OK [09:15:01]MH_I2C_Read... [09:15:01]Read from MH i2c: 01 [09:15:01]MH_I2C_Read... [09:15:01]Read from MH i2c: 01 07 00 [09:15:01]MH_I2C_Read... [09:15:01]Read from MH i2c: 01 07 00 04 25 00 00 00 00 00 0E 0E 4C [09:15:01]RasterBufferAndPrint [09:15:01]line [09:15:01]line [09:15:01]line [09:15:01]line [09:15:01]line [09:15:01]written 0, free lines is 3600 [09:15:01]MH_Cut [09:15:01]Write to MH i2c: D1 01 00 0B 25 01 02 [09:15:01]Write i2c OK [09:15:01]MH_I2C_Read... [09:15:01]Read from MH i2c: D1 [09:15:01]MH_I2C_Read... [09:15:01]Read from MH i2c: D1 01 00 [09:15:01]MH_I2C_Read... [09:15:01]Read from MH i2c: D1 01 00 0B 25 00 01 [09:15:01]Write to MH i2c: 01 00 00 0C 25 31 [09:15:01]Write i2c OK [09:15:01]MH_I2C_Read... [09:15:02]*** Cut start [09:15:02]*** Purtial cut [09:15:02]*** CUTSNS_PIN = 0 [09:15:02]*** Stage 1: CUTSNS_PIN = 1 [09:15:04]Read from MH i2c: 01 [09:15:04]MH_I2C_Read... [09:15:04]*** Stop cut motor [09:15:04]*** Cut end [09:15:04]Read from MH i2c: 01 07 00 [09:15:04]MH_I2C_Read... [09:15:04]Read from MH i2c: 01 07 00 0C 25 00 00 00 00 00 FF 0F 46 [09:15:04]process_action print_text done [09:15:04]requested_data is exist [09:15:04]produce_requested_data [09:15:04]requested_item fm.sn is exist - process it [09:15:04]wFMCommunicate request_size=4 [09:15:04]MH_SAM_APDU [09:15:04]CAPDU: 80 11 00 00 [09:15:04]Write to MH i2c: E2 08 00 0D 25 80 11 00 00 00 00 00 00 AC [09:15:04]Write i2c OK [09:15:04]MH_I2C_Read... [09:15:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:15:04]Read from MH i2c: E2 [09:15:04]MH_I2C_Read... [09:15:04]Read from MH i2c: E2 17 00 [09:15:04]MH_I2C_Read... [09:15:04]Read from MH i2c: E2 17 00 0D 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 02 [09:15:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [09:15:04]wFMCommunicate OK [09:15:04]requested_item fd.num is exist - process it [09:15:04]SAM_PROTO_GetFieldsCounters [09:15:04]wFMCommunicate request_size=4 [09:15:04]MH_SAM_APDU [09:15:04]CAPDU: 80 13 00 00 [09:15:04]Write to MH i2c: E2 08 00 0E 25 80 13 00 00 00 00 00 00 AF [09:15:04]Write i2c OK [09:15:04]MH_I2C_Read... [09:15:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:15:04]Read from MH i2c: E2 [09:15:04]MH_I2C_Read... [09:15:04]Read from MH i2c: E2 62 00 [09:15:04]MH_I2C_Read... [09:15:04]Read from MH i2c: E2 62 00 0E 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 CB 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 5F [09:15:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 CB 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:15:04]wFMCommunicate OK [09:15:04]SAM_PROTO_GetFieldsCounters done [09:15:04]requested_item shift.num is exist - process it [09:15:04]requested_item shift.opened is exist - process it [09:15:04]req_shift_opened [09:15:04]FM_GetShiftState [09:15:04]SAM_PROTO_GetShiftState [09:15:04]wFMCommunicate request_size=4 [09:15:04]MH_SAM_APDU [09:15:04]CAPDU: 80 13 01 00 [09:15:04]Write to MH i2c: E2 08 00 0F 25 80 13 01 00 00 00 00 00 B1 [09:15:04]Write i2c OK [09:15:04]MH_I2C_Read... [09:15:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:15:04]Read from MH i2c: E2 [09:15:04]MH_I2C_Read... [09:15:04]Read from MH i2c: E2 0E 00 [09:15:04]MH_I2C_Read... [09:15:04]Read from MH i2c: E2 0E 00 0F 25 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 18 [09:15:04]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [09:15:04]wFMCommunicate OK [09:15:04]SAM_PROTO_GetShiftState done [09:15:04]FM_GetShiftState done [09:15:04]req_shift_opened done [09:15:04]requested_item shift.open_date is exist - process it [09:15:04]req_shift_open_date [09:15:04]req_shift_open_date done [09:15:04]produce_requested_data done [09:15:04]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67787,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [09:15:04]process_action_free print_text [09:15:04]json_value_free [09:15:04]json_value_free done [09:15:04]process_json_proto returns [09:15:04]Send response to host [09:15:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67787,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [09:15:04]free response buf [09:15:04]execute_script done [09:15:04]execute_script returns [09:15:04]free content buf [09:15:04]Sock 9.Close socket [09:15:04]Sock 9.Thread stoped [09:15:05]OFD Sender: No OFD packet to send [09:15:10]OFD Sender: No OFD packet to send [09:15:15]OFD Sender: No OFD packet to send [09:15:20]OFD Sender: No OFD packet to send [09:15:25]OFD Sender: No OFD packet to send [09:15:30]OFD Sender: No OFD packet to send [09:15:35]OFD Sender: No OFD packet to send [09:15:40]OFD Sender: No OFD packet to send [09:15:44]accept exits with 10 [09:15:44]New connection [09:15:44]New thread 3066608996 created [09:15:44]Thread 3066752356 joined [09:15:44]Waiting for new connection... [09:15:44] Sock 10.Parse request [09:15:44]Sock 10.Check first char [09:15:44]Sock 10.First char is OK [09:15:44]request: POST /json_proto HTTP/1.0 [09:15:44]Method: POST [09:15:44]URL: /json_proto [09:15:44]Method is POST - this is cgi request [09:15:44]url: /json_proto [09:15:44]query_string will be loaded in cgi processing [09:15:44]execute_cgi json_proto POST (null) [09:15:44]execute_cgi path=json_proto method=POST [09:15:44]POST find Content-Length [09:15:44]Host: 172.17.41.195:8080 [09:15:44]Content-Length: 1209 [09:15:44]Content-Type: application/json [09:15:44] [09:15:44]POST finish read [09:15:44]Found Content-Length = 1209 [09:15:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0440\u0441\u0442\u0430\u043D\u0431\u0435\u043A\u043E\u0432 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)507972\u000A18.05.2024 08:58\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 15.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 1120.50\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:15:44]execute_script... [09:15:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0440\u0441\u0442\u0430\u043D\u0431\u0435\u043A\u043E\u0432 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)507972\u000A18.05.2024 08:58\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 15.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 1120.50\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:15:44]POST & json_proto [09:15:44]process_json_proto [09:15:44]json parsed OK: [09:15:44]protocol is kg_v1.0 [09:15:44]action value=print_text [09:15:44]process_action print_text [09:15:44]cmd_print_text [09:15:44]ExternCall_PrintAddStr [09:15:44]wPrintStart [09:15:44]Write to MH i2c: 01 00 00 10 25 35 [09:15:44]Write i2c OK [09:15:44]MH_I2C_Read... [09:15:44]Read from MH i2c: 01 [09:15:44]MH_I2C_Read... [09:15:44]Read from MH i2c: 01 07 00 [09:15:44]MH_I2C_Read... [09:15:44]Read from MH i2c: 01 07 00 10 25 00 00 00 00 00 FF 0F 4A [09:15:44]RasterBufferAndPrint [09:15:44]line *****ТОВАРНЫЙ ЧЕК***** [09:15:44]line АЗС-91 [09:15:44]line Партнер нефть [09:15:44]line 02508201610067 [09:15:44]line Кассир : Арстанбеков Н. [09:15:44]line Счет N : (1)507972 [09:15:44]line 18.05.2024 08:58 [09:15:44]line ПРОДАЖА [09:15:44]line ТРК (МРК, ГНК): 31 [09:15:44]line Вид ГСМ : 2710194210 [09:15:44]line ДТ-К-5 [09:15:44]line 15.000 x 74.70 [09:15:44]line ИТОГ: 1120.50 [09:15:44]line Тип оплаты: Талоны: Топливная Карта [09:15:44]line 02750 [09:15:44]line ______________________ [09:15:44]line (подпись) [09:15:44]written 0, free lines is 4095 [09:15:44]Write to MH i2c: 01 00 00 24 25 49 [09:15:44]Write i2c OK [09:15:44]MH_I2C_Read... [09:15:44]Read from MH i2c: 01 [09:15:44]MH_I2C_Read... [09:15:44]Read from MH i2c: 01 07 00 [09:15:44]MH_I2C_Read... [09:15:44]Read from MH i2c: 01 07 00 24 25 00 00 00 00 00 10 0E 6E [09:15:44]RasterBufferAndPrint [09:15:44]line [09:15:44]line [09:15:44]line [09:15:44]line [09:15:44]line [09:15:44]written 0, free lines is 3601 [09:15:44]MH_Cut [09:15:44]Write to MH i2c: D1 01 00 2B 25 01 22 [09:15:44]Write i2c OK [09:15:44]MH_I2C_Read... [09:15:44]Read from MH i2c: D1 [09:15:44]MH_I2C_Read... [09:15:44]Read from MH i2c: D1 01 00 [09:15:44]MH_I2C_Read... [09:15:44]Read from MH i2c: D1 01 00 2B 25 00 21 [09:15:44]Write to MH i2c: 01 00 00 2C 25 51 [09:15:44]Write i2c OK [09:15:44]MH_I2C_Read... [09:15:45]*** Cut start [09:15:45]*** Purtial cut [09:15:45]*** Stage 1: CUTSNS_PIN = 1 [09:15:45]Read from MH i2c: 01 [09:15:45]MH_I2C_Read... [09:15:45]*** Stop cut motor [09:15:45]*** Cut end [09:15:45]Read from MH i2c: 01 07 00 [09:15:45]MH_I2C_Read... [09:15:45]Read from MH i2c: 01 07 00 2C 25 00 00 00 00 00 FF 0F 66 [09:15:45]process_action print_text done [09:15:45]requested_data is exist [09:15:45]produce_requested_data [09:15:45]requested_item fm.sn is exist - process it [09:15:45]wFMCommunicate request_size=4 [09:15:45]MH_SAM_APDU [09:15:45]CAPDU: 80 11 00 00 [09:15:45]Write to MH i2c: E2 08 00 2D 25 80 11 00 00 00 00 00 00 CC [09:15:45]Write i2c OK [09:15:45]MH_I2C_Read... [09:15:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:15:45]Read from MH i2c: E2 [09:15:45]MH_I2C_Read... [09:15:45]Read from MH i2c: E2 17 00 [09:15:45]MH_I2C_Read... [09:15:45]Read from MH i2c: E2 17 00 2D 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 22 [09:15:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [09:15:45]wFMCommunicate OK [09:15:45]requested_item fd.num is exist - process it [09:15:45]SAM_PROTO_GetFieldsCounters [09:15:45]wFMCommunicate request_size=4 [09:15:45]MH_SAM_APDU [09:15:45]CAPDU: 80 13 00 00 [09:15:45]Write to MH i2c: E2 08 00 2E 25 80 13 00 00 00 00 00 00 CF [09:15:45]Write i2c OK [09:15:45]MH_I2C_Read... [09:15:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:15:45]Read from MH i2c: E2 [09:15:45]MH_I2C_Read... [09:15:45]Read from MH i2c: E2 62 00 [09:15:45]MH_I2C_Read... [09:15:45]Read from MH i2c: E2 62 00 2E 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 CB 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 7F [09:15:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 CB 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:15:45]wFMCommunicate OK [09:15:45]SAM_PROTO_GetFieldsCounters done [09:15:45]requested_item shift.num is exist - process it [09:15:45]requested_item shift.opened is exist - process it [09:15:45]req_shift_opened [09:15:45]FM_GetShiftState [09:15:45]SAM_PROTO_GetShiftState [09:15:45]wFMCommunicate request_size=4 [09:15:45]MH_SAM_APDU [09:15:45]CAPDU: 80 13 01 00 [09:15:45]Write to MH i2c: E2 08 00 2F 25 80 13 01 00 00 00 00 00 D1 [09:15:45]Write i2c OK [09:15:45]MH_I2C_Read... [09:15:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:15:45]Read from MH i2c: E2 [09:15:45]MH_I2C_Read... [09:15:45]Read from MH i2c: E2 0E 00 [09:15:45]MH_I2C_Read... [09:15:45]Read from MH i2c: E2 0E 00 2F 25 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 38 [09:15:45]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [09:15:45]wFMCommunicate OK [09:15:45]SAM_PROTO_GetShiftState done [09:15:45]FM_GetShiftState done [09:15:45]req_shift_opened done [09:15:45]requested_item shift.open_date is exist - process it [09:15:45]req_shift_open_date [09:15:45]req_shift_open_date done [09:15:45]produce_requested_data done [09:15:45]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67787,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [09:15:45]process_action_free print_text [09:15:45]json_value_free [09:15:45]json_value_free done [09:15:45]process_json_proto returns [09:15:45]Send response to host [09:15:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67787,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [09:15:45]free response buf [09:15:45]execute_script done [09:15:45]execute_script returns [09:15:45]free content buf [09:15:45]Sock 10.Close socket [09:15:45]Sock 10.Thread stoped [09:15:45]OFD Sender: No OFD packet to send [09:15:50]OFD Sender: No OFD packet to send [09:15:55]OFD Sender: No OFD packet to send [09:16:00]OFD Sender: No OFD packet to send [09:16:05]OFD Sender: No OFD packet to send [09:16:10]OFD Sender: No OFD packet to send [09:16:15]OFD Sender: No OFD packet to send [09:16:20]OFD Sender: No OFD packet to send [09:16:25]OFD Sender: No OFD packet to send [09:16:30]OFD Sender: No OFD packet to send [09:16:35]OFD Sender: No OFD packet to send [09:16:40]OFD Sender: No OFD packet to send [09:16:45]OFD Sender: No OFD packet to send [09:16:50]OFD Sender: No OFD packet to send [09:16:55]OFD Sender: No OFD packet to send [09:17:01]OFD Sender: No OFD packet to send [09:17:06]OFD Sender: No OFD packet to send [09:17:11]OFD Sender: No OFD packet to send [09:17:16]OFD Sender: No OFD packet to send [09:17:21]OFD Sender: No OFD packet to send [09:17:26]OFD Sender: No OFD packet to send [09:17:31]OFD Sender: No OFD packet to send [09:17:36]OFD Sender: No OFD packet to send [09:17:41]OFD Sender: No OFD packet to send [09:17:46]OFD Sender: No OFD packet to send [09:17:51]OFD Sender: No OFD packet to send [09:17:56]OFD Sender: No OFD packet to send [09:18:01]OFD Sender: No OFD packet to send [09:18:06]OFD Sender: No OFD packet to send [09:18:11]OFD Sender: No OFD packet to send [09:18:16]OFD Sender: No OFD packet to send [09:18:21]OFD Sender: No OFD packet to send [09:18:26]OFD Sender: No OFD packet to send [09:18:31]OFD Sender: No OFD packet to send [09:18:36]OFD Sender: No OFD packet to send [09:18:41]OFD Sender: No OFD packet to send [09:18:46]OFD Sender: No OFD packet to send [09:18:51]OFD Sender: No OFD packet to send [09:18:56]OFD Sender: No OFD packet to send [09:19:01]OFD Sender: No OFD packet to send [09:19:06]OFD Sender: No OFD packet to send [09:19:11]OFD Sender: No OFD packet to send [09:19:16]OFD Sender: No OFD packet to send [09:19:21]OFD Sender: No OFD packet to send [09:19:26]OFD Sender: No OFD packet to send [09:19:31]OFD Sender: No OFD packet to send [09:19:36]OFD Sender: No OFD packet to send [09:19:41]OFD Sender: No OFD packet to send [09:19:46]OFD Sender: No OFD packet to send [09:19:51]OFD Sender: No OFD packet to send [09:19:56]OFD Sender: No OFD packet to send [09:20:01]OFD Sender: No OFD packet to send [09:20:02]accept exits with 7 [09:20:02]New connection [09:20:02]New thread 3066752356 created [09:20:02]Thread 3066608996 joined [09:20:02]Waiting for new connection... [09:20:02] Sock 7.Parse request [09:20:02]Sock 7.Check first char [09:20:02]Sock 7.First char is OK [09:20:02]request: POST /json_proto HTTP/1.0 [09:20:02]Method: POST [09:20:02]URL: /json_proto [09:20:02]Method is POST - this is cgi request [09:20:02]url: /json_proto [09:20:02]query_string will be loaded in cgi processing [09:20:02]execute_cgi json_proto POST (null) [09:20:02]execute_cgi path=json_proto method=POST [09:20:02]POST find Content-Length [09:20:02]Host: 172.17.41.195:8080 [09:20:02]Content-Length: 1209 [09:20:02]Content-Type: application/json [09:20:02] [09:20:02]POST finish read [09:20:02]Found Content-Length = 1209 [09:20:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0440\u0441\u0442\u0430\u043D\u0431\u0435\u043A\u043E\u0432 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)507973\u000A18.05.2024 09:02\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 20.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 1494.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:20:02]execute_script... [09:20:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0440\u0441\u0442\u0430\u043D\u0431\u0435\u043A\u043E\u0432 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)507973\u000A18.05.2024 09:02\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 20.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 1494.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:20:02]POST & json_proto [09:20:02]process_json_proto [09:20:02]json parsed OK: [09:20:02]protocol is kg_v1.0 [09:20:02]action value=print_text [09:20:02]process_action print_text [09:20:02]cmd_print_text [09:20:02]ExternCall_PrintAddStr [09:20:02]wPrintStart [09:20:02]Write to MH i2c: 01 00 00 30 25 55 [09:20:02]Write i2c OK [09:20:02]MH_I2C_Read... [09:20:02]Read from MH i2c: 01 [09:20:02]MH_I2C_Read... [09:20:02]Read from MH i2c: 01 07 00 [09:20:02]MH_I2C_Read... [09:20:02]Read from MH i2c: 01 07 00 30 25 00 00 00 00 00 FF 0F 6A [09:20:02]RasterBufferAndPrint [09:20:02]line *****ТОВАРНЫЙ ЧЕК***** [09:20:02]line АЗС-91 [09:20:02]line Партнер нефть [09:20:02]line 02508201610067 [09:20:02]line Кассир : Арстанбеков Н. [09:20:02]line Счет N : (1)507973 [09:20:02]line 18.05.2024 09:02 [09:20:02]line ПРОДАЖА [09:20:02]line ТРК (МРК, ГНК): 21 [09:20:02]line Вид ГСМ : 2710194210 [09:20:02]line ДТ-К-5 [09:20:02]line 20.000 x 74.70 [09:20:02]line ИТОГ: 1494.00 [09:20:02]line Тип оплаты: Талоны: Топливная Карта [09:20:02]line 02750 [09:20:02]line ______________________ [09:20:02]line (подпись) [09:20:02]written 0, free lines is 4095 [09:20:02]Write to MH i2c: 01 00 00 44 25 69 [09:20:02]Write i2c OK [09:20:02]MH_I2C_Read... [09:20:02]Read from MH i2c: 01 [09:20:02]MH_I2C_Read... [09:20:02]Read from MH i2c: 01 07 00 [09:20:02]MH_I2C_Read... [09:20:02]Read from MH i2c: 01 07 00 44 25 00 00 00 00 00 10 0E 8E [09:20:02]RasterBufferAndPrint [09:20:02]line [09:20:02]line [09:20:02]line [09:20:02]line [09:20:02]line [09:20:02]written 0, free lines is 3602 [09:20:02]MH_Cut [09:20:02]Write to MH i2c: D1 01 00 4B 25 01 42 [09:20:02]Write i2c OK [09:20:02]MH_I2C_Read... [09:20:02]Read from MH i2c: D1 [09:20:02]MH_I2C_Read... [09:20:02]Read from MH i2c: D1 01 00 [09:20:02]MH_I2C_Read... [09:20:02]Read from MH i2c: D1 01 00 4B 25 00 41 [09:20:02]Write to MH i2c: 01 00 00 4C 25 71 [09:20:02]Write i2c OK [09:20:02]MH_I2C_Read... [09:20:03]*** Cut start [09:20:03]*** Purtial cut [09:20:03]*** CUTSNS_PIN = 0 [09:20:03]*** Stage 1: CUTSNS_PIN = 1 [09:20:05]Read from MH i2c: 01 [09:20:05]MH_I2C_Read... [09:20:05]*** Stop cut motor [09:20:05]*** Cut end [09:20:05]Read from MH i2c: 01 07 00 [09:20:05]MH_I2C_Read... [09:20:05]Read from MH i2c: 01 07 00 4C 25 00 00 00 00 00 FF 0F 86 [09:20:05]process_action print_text done [09:20:05]requested_data is exist [09:20:05]produce_requested_data [09:20:05]requested_item fm.sn is exist - process it [09:20:05]wFMCommunicate request_size=4 [09:20:05]MH_SAM_APDU [09:20:05]CAPDU: 80 11 00 00 [09:20:05]Write to MH i2c: E2 08 00 4D 25 80 11 00 00 00 00 00 00 EC [09:20:05]Write i2c OK [09:20:05]MH_I2C_Read... [09:20:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:20:05]Read from MH i2c: E2 [09:20:05]MH_I2C_Read... [09:20:05]Read from MH i2c: E2 17 00 [09:20:05]MH_I2C_Read... [09:20:05]Read from MH i2c: E2 17 00 4D 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 42 [09:20:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [09:20:05]wFMCommunicate OK [09:20:05]requested_item fd.num is exist - process it [09:20:05]SAM_PROTO_GetFieldsCounters [09:20:05]wFMCommunicate request_size=4 [09:20:05]MH_SAM_APDU [09:20:05]CAPDU: 80 13 00 00 [09:20:05]Write to MH i2c: E2 08 00 4E 25 80 13 00 00 00 00 00 00 EF [09:20:05]Write i2c OK [09:20:05]MH_I2C_Read... [09:20:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:20:05]Read from MH i2c: E2 [09:20:05]MH_I2C_Read... [09:20:05]Read from MH i2c: E2 62 00 [09:20:05]MH_I2C_Read... [09:20:05]Read from MH i2c: E2 62 00 4E 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 CB 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 9F [09:20:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 CB 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:20:05]wFMCommunicate OK [09:20:05]SAM_PROTO_GetFieldsCounters done [09:20:05]requested_item shift.num is exist - process it [09:20:05]requested_item shift.opened is exist - process it [09:20:05]req_shift_opened [09:20:05]FM_GetShiftState [09:20:05]SAM_PROTO_GetShiftState [09:20:05]wFMCommunicate request_size=4 [09:20:05]MH_SAM_APDU [09:20:05]CAPDU: 80 13 01 00 [09:20:05]Write to MH i2c: E2 08 00 4F 25 80 13 01 00 00 00 00 00 F1 [09:20:05]Write i2c OK [09:20:05]MH_I2C_Read... [09:20:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:20:05]Read from MH i2c: E2 [09:20:05]MH_I2C_Read... [09:20:05]Read from MH i2c: E2 0E 00 [09:20:05]MH_I2C_Read... [09:20:05]Read from MH i2c: E2 0E 00 4F 25 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 58 [09:20:05]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [09:20:05]wFMCommunicate OK [09:20:05]SAM_PROTO_GetShiftState done [09:20:05]FM_GetShiftState done [09:20:05]req_shift_opened done [09:20:05]requested_item shift.open_date is exist - process it [09:20:05]req_shift_open_date [09:20:05]req_shift_open_date done [09:20:05]produce_requested_data done [09:20:05]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67787,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [09:20:05]process_action_free print_text [09:20:05]json_value_free [09:20:05]json_value_free done [09:20:05]process_json_proto returns [09:20:05]Send response to host [09:20:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67787,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [09:20:05]free response buf [09:20:05]execute_script done [09:20:05]execute_script returns [09:20:05]free content buf [09:20:05]Sock 7.Close socket [09:20:05]Sock 7.Thread stoped [09:20:06]OFD Sender: No OFD packet to send [09:20:07]int [09:20:07]Write to MH i2c: 01 00 00 50 25 75 [09:20:07]*** FLAG_PRN_PAP1 set [09:20:07]Write i2c OK [09:20:07]MH_I2C_Read... [09:20:07]Read from MH i2c: 01 [09:20:07]MH_I2C_Read... [09:20:07]Read from MH i2c: 01 07 00 [09:20:07]MH_I2C_Read... [09:20:07]Read from MH i2c: 01 07 00 50 25 00 01 00 00 00 FF 0F 8B [09:20:07]state=0 [09:20:07]No paper [09:20:07]int [09:20:07]Write to MH i2c: 01 00 00 51 25 76 [09:20:07]*** FLAG_PRN_PAP2 set [09:20:07]Write i2c OK [09:20:07]MH_I2C_Read... [09:20:07]Read from MH i2c: 01 [09:20:07]MH_I2C_Read... [09:20:07]Read from MH i2c: 01 07 00 [09:20:07]MH_I2C_Read... [09:20:07]Read from MH i2c: 01 07 00 51 25 00 03 00 00 00 FF 0F 8E [09:20:07]state=0 [09:20:07]No paper [09:20:07]Cover opened [09:20:07]int [09:20:07]Write to MH i2c: 01 00 00 52 25 77 [09:20:07]*** FLAG_PRN_PAP2 reset [09:20:07]Write i2c OK [09:20:07]MH_I2C_Read... [09:20:07]Read from MH i2c: 01 [09:20:07]MH_I2C_Read... [09:20:07]Read from MH i2c: 01 07 00 [09:20:07]MH_I2C_Read... [09:20:07]Read from MH i2c: 01 07 00 52 25 00 01 00 00 00 FF 0F 8D [09:20:07]state=3 [09:20:07]No paper [09:20:07]Cover closed [09:20:11]OFD Sender: No OFD packet to send [09:20:16]OFD Sender: No OFD packet to send [09:20:21]OFD Sender: No OFD packet to send [09:20:25]int [09:20:25]Write to MH i2c: 01 00 00 53 25 78 [09:20:25]*** FLAG_PRN_PAP1 reset [09:20:25]Write i2c OK [09:20:25]MH_I2C_Read... [09:20:25]Read from MH i2c: 01 [09:20:25]MH_I2C_Read... [09:20:25]Read from MH i2c: 01 07 00 [09:20:25]MH_I2C_Read... [09:20:25]Read from MH i2c: 01 07 00 53 25 00 00 00 00 00 FF 0F 8D [09:20:25]state=0 [09:20:26]OFD Sender: No OFD packet to send [09:20:30]int [09:20:30]Write to MH i2c: 01 00 00 54 25 79 [09:20:30]*** FLAG_PRN_KEY set [09:20:30]Write i2c OK [09:20:30]MH_I2C_Read... [09:20:30]Read from MH i2c: 01 [09:20:30]MH_I2C_Read... [09:20:30]Read from MH i2c: 01 07 00 [09:20:30]MH_I2C_Read... [09:20:30]Read from MH i2c: 01 07 00 54 25 00 08 00 00 00 FF 0F 96 [09:20:30]state=0 [09:20:30]Key pressed [09:20:30]Feed [09:20:30]Write to MH i2c: D8 00 00 55 25 51 [09:20:30]Write i2c OK [09:20:30]MH_I2C_Read... [09:20:30]Read from MH i2c: D8 [09:20:30]MH_I2C_Read... [09:20:30]Read from MH i2c: D8 01 00 [09:20:30]MH_I2C_Read... [09:20:30]Read from MH i2c: D8 01 00 55 25 00 52 [09:20:30]int [09:20:30]Write to MH i2c: 01 00 00 56 25 7B [09:20:30]Write i2c OK [09:20:30]MH_I2C_Read... [09:20:30]Read from MH i2c: 01 [09:20:30]MH_I2C_Read... [09:20:30]Read from MH i2c: 01 07 00 [09:20:30]MH_I2C_Read... [09:20:30]Read from MH i2c: 01 07 00 56 25 00 48 00 00 00 3C 00 06 [09:20:30]state=2 [09:20:30]Key pressed [09:20:30]int [09:20:30]Write to MH i2c: 01 00 00 57 25 7C [09:20:30]*** FLAG_PRN_KEY reset [09:20:30]Write i2c OK [09:20:30]MH_I2C_Read... [09:20:30]Read from MH i2c: 01 [09:20:30]MH_I2C_Read... [09:20:30]Read from MH i2c: 01 07 00 [09:20:30]MH_I2C_Read... [09:20:30]Read from MH i2c: 01 07 00 57 25 00 00 00 00 00 F7 0F 89 [09:20:30]state=2 [09:20:30]Stop feed [09:20:31]OFD Sender: No OFD packet to send [09:20:31]int [09:20:31]Write to MH i2c: 01 00 00 58 25 7D [09:20:31]*** FLAG_PRN_KEY set [09:20:31]Write i2c OK [09:20:31]MH_I2C_Read... [09:20:31]Read from MH i2c: 01 [09:20:31]MH_I2C_Read... [09:20:31]Read from MH i2c: 01 07 00 [09:20:31]MH_I2C_Read... [09:20:31]Read from MH i2c: 01 07 00 58 25 00 08 00 00 00 FF 0F 9A [09:20:31]state=0 [09:20:31]Key pressed [09:20:31]Feed [09:20:31]Write to MH i2c: D8 00 00 59 25 55 [09:20:31]Write i2c OK [09:20:31]MH_I2C_Read... [09:20:31]Read from MH i2c: D8 [09:20:31]MH_I2C_Read... [09:20:31]Read from MH i2c: D8 01 00 [09:20:31]MH_I2C_Read... [09:20:31]Read from MH i2c: D8 01 00 59 25 00 56 [09:20:31]int [09:20:31]Write to MH i2c: 01 00 00 5A 25 7F [09:20:31]Write i2c OK [09:20:31]MH_I2C_Read... [09:20:31]Read from MH i2c: 01 [09:20:31]MH_I2C_Read... [09:20:31]Read from MH i2c: 01 07 00 [09:20:31]MH_I2C_Read... [09:20:31]Read from MH i2c: 01 07 00 5A 25 00 48 00 00 00 3C 00 0A [09:20:31]state=2 [09:20:31]Key pressed [09:20:32]int [09:20:32]Write to MH i2c: 01 00 00 5B 25 80 [09:20:32]*** FLAG_PRN_KEY reset [09:20:32]Write i2c OK [09:20:32]MH_I2C_Read... [09:20:32]Read from MH i2c: 01 [09:20:32]MH_I2C_Read... [09:20:32]Read from MH i2c: 01 07 00 [09:20:32]MH_I2C_Read... [09:20:32]Read from MH i2c: 01 07 00 5B 25 00 00 00 00 00 F6 0F 8C [09:20:32]state=2 [09:20:32]Stop feed [09:20:36]OFD Sender: No OFD packet to send [09:20:41]OFD Sender: No OFD packet to send [09:20:43]accept exits with 9 [09:20:43]New connection [09:20:43]New thread 3066608996 created [09:20:43]Thread 3066752356 joined [09:20:43]Waiting for new connection... [09:20:43] Sock 9.Parse request [09:20:43]Sock 9.Check first char [09:20:43]Sock 9.First char is OK [09:20:43]request: POST /json_proto HTTP/1.0 [09:20:43]Method: POST [09:20:43]URL: /json_proto [09:20:43]Method is POST - this is cgi request [09:20:43]url: /json_proto [09:20:43]query_string will be loaded in cgi processing [09:20:43]execute_cgi json_proto POST (null) [09:20:43]execute_cgi path=json_proto method=POST [09:20:43]POST find Content-Length [09:20:43]Host: 172.17.41.195:8080 [09:20:43]Content-Length: 215 [09:20:43]Content-Type: application/json [09:20:43] [09:20:43]POST finish read [09:20:43]Found Content-Length = 215 [09:20:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:20:43]execute_script... [09:20:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:20:43]POST & json_proto [09:20:43]process_json_proto [09:20:43]json parsed OK: [09:20:43]protocol is kg_v1.0 [09:20:43]action value=get_value [09:20:43]process_action get_value [09:20:43]cmd_get_value [09:20:43]process_action get_value done [09:20:43]requested_data is exist [09:20:43]produce_requested_data [09:20:43]requested_item kkm.sn is exist - process it [09:20:43]requested_item kkm.ver is exist - process it [09:20:43]requested_item fm.sn is exist - process it [09:20:43]wFMCommunicate request_size=4 [09:20:43]MH_SAM_APDU [09:20:43]CAPDU: 80 11 00 00 [09:20:43]Write to MH i2c: E2 08 00 5C 25 80 11 00 00 00 00 00 00 FB [09:20:43]Write i2c OK [09:20:43]MH_I2C_Read... [09:20:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:20:43]Read from MH i2c: E2 [09:20:43]MH_I2C_Read... [09:20:43]Read from MH i2c: E2 17 00 [09:20:43]MH_I2C_Read... [09:20:43]Read from MH i2c: E2 17 00 5C 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 51 [09:20:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [09:20:43]wFMCommunicate OK [09:20:43]requested_item fd.num is exist - process it [09:20:43]SAM_PROTO_GetFieldsCounters [09:20:43]wFMCommunicate request_size=4 [09:20:43]MH_SAM_APDU [09:20:43]CAPDU: 80 13 00 00 [09:20:43]Write to MH i2c: E2 08 00 5D 25 80 13 00 00 00 00 00 00 FE [09:20:43]Write i2c OK [09:20:43]MH_I2C_Read... [09:20:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:20:43]Read from MH i2c: E2 [09:20:43]MH_I2C_Read... [09:20:43]Read from MH i2c: E2 62 00 [09:20:43]MH_I2C_Read... [09:20:43]Read from MH i2c: E2 62 00 5D 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 CB 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 AE [09:20:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 CB 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:20:43]wFMCommunicate OK [09:20:43]SAM_PROTO_GetFieldsCounters done [09:20:43]requested_item shift.num is exist - process it [09:20:43]requested_item shift.opened is exist - process it [09:20:43]req_shift_opened [09:20:43]FM_GetShiftState [09:20:43]SAM_PROTO_GetShiftState [09:20:43]wFMCommunicate request_size=4 [09:20:43]MH_SAM_APDU [09:20:43]CAPDU: 80 13 01 00 [09:20:43]Write to MH i2c: E2 08 00 5E 25 80 13 01 00 00 00 00 00 00 [09:20:43]Write i2c OK [09:20:43]MH_I2C_Read... [09:20:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:20:43]Read from MH i2c: E2 [09:20:43]MH_I2C_Read... [09:20:43]Read from MH i2c: E2 0E 00 [09:20:43]MH_I2C_Read... [09:20:43]Read from MH i2c: E2 0E 00 5E 25 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 67 [09:20:43]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [09:20:43]wFMCommunicate OK [09:20:43]SAM_PROTO_GetShiftState done [09:20:43]FM_GetShiftState done [09:20:43]req_shift_opened done [09:20:43]requested_item shift.open_date is exist - process it [09:20:43]req_shift_open_date [09:20:43]req_shift_open_date done [09:20:43]produce_requested_data done [09:20:43]produce_requested_data return {"kkm.sn":"0300000119","kkm.ver":"001","fm.sn":"0000000000871829","fd.num":67787,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [09:20:43]process_action_free get_value [09:20:43]json_value_free [09:20:43]json_value_free done [09:20:43]process_json_proto returns [09:20:43]Send response to host [09:20:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000119","kkm.ver":"001","fm.sn":"0000000000871829","fd.num":67787,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [09:20:43]free response buf [09:20:43]execute_script done [09:20:43]execute_script returns [09:20:43]free content buf [09:20:43]Sock 9.Close socket [09:20:43]Sock 9.Thread stoped [09:20:43]accept exits with 7 [09:20:43]New connection [09:20:43]New thread 3066752356 created [09:20:43]Thread 3066608996 joined [09:20:43]Waiting for new connection... [09:20:43] Sock 7.Parse request [09:20:43]Sock 7.Check first char [09:20:43]Sock 7.First char is OK [09:20:43]request: POST /json_proto HTTP/1.0 [09:20:43]Method: POST [09:20:43]URL: /json_proto [09:20:43]Method is POST - this is cgi request [09:20:43]url: /json_proto [09:20:43]query_string will be loaded in cgi processing [09:20:43]execute_cgi json_proto POST (null) [09:20:43]execute_cgi path=json_proto method=POST [09:20:43]POST find Content-Length [09:20:43]Host: 172.17.41.195:8080 [09:20:43]Content-Length: 331 [09:20:43]Content-Type: application/json [09:20:43] [09:20:43]POST finish read [09:20:43]Found Content-Length = 331 [09:20:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [09:20:43]execute_script... [09:20:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [09:20:44]POST & json_proto [09:20:44]process_json_proto [09:20:44]json parsed OK: [09:20:44]protocol is kg_v1.0 [09:20:44]action value=get_value [09:20:44]process_action get_value [09:20:44]cmd_get_value [09:20:44]process_action get_value done [09:20:44]requested_data is exist [09:20:44]produce_requested_data [09:20:44]requested_item fm.sale.total is exist - process it [09:20:44]SAM_PROTO_GetFMData [09:20:44]wFMCommunicate request_size=4 [09:20:44]MH_SAM_APDU [09:20:44]CAPDU: 80 13 03 00 [09:20:44]Write to MH i2c: E2 08 00 5F 25 80 13 03 00 00 00 00 00 03 [09:20:44]Write i2c OK [09:20:44]MH_I2C_Read... [09:20:44]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [09:20:44]Read from MH i2c: E2 [09:20:44]MH_I2C_Read... [09:20:44]Read from MH i2c: E2 FD 00 [09:20:44]MH_I2C_Read... [09:20:44]Read from MH i2c: E2 FD 00 5F 25 00 C6 04 85 04 C2 04 6E 04 04 00 FD 05 01 00 69 04 A3 00 6F 04 04 00 53 05 01 00 B1 04 05 00 4A 14 B8 1D 03 70 04 05 00 DC 8B D4 C0 02 72 04 04 00 6E 88 E3 5C 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 40 A3 B9 54 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 AE 63 0F 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9D 00 6F 04 04 00 AA 00 00 00 B1 04 04 00 00 23 C3 DC 70 04 04 00 00 23 C3 DC 72 04 00 00 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 DD 9D 71 17 EF 03 09 90 00 36 [09:20:44]RAPDU: C6 04 85 04 C2 04 6E 04 04 00 FD 05 01 00 69 04 A3 00 6F 04 04 00 53 05 01 00 B1 04 05 00 4A 14 B8 1D 03 70 04 05 00 DC 8B D4 C0 02 72 04 04 00 6E 88 E3 5C 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 40 A3 B9 54 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 AE 63 0F 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9D 00 6F 04 04 00 AA 00 00 00 B1 04 04 00 00 23 C3 DC 70 04 04 00 00 23 C3 DC 72 04 00 00 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 DD 9D 71 17 EF 03 09 90 00 [09:20:44]wFMCommunicate OK [09:20:44]wFMCommunicate request_size=4 [09:20:44]MH_SAM_APDU [09:20:44]CAPDU: 80 17 00 00 [09:20:44]Write to MH i2c: E2 08 00 60 25 80 17 00 00 00 00 00 00 05 [09:20:44]Write i2c OK [09:20:44]MH_I2C_Read... [09:20:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:20:44]Read from MH i2c: E2 [09:20:44]MH_I2C_Read... [09:20:44]Read from MH i2c: E2 FD 00 [09:20:44]MH_I2C_Read... [09:20:44]Read from MH i2c: E2 FD 00 60 25 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 70 22 F4 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 90 00 40 [09:20:44]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 70 22 F4 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 90 00 [09:20:44]wFMCommunicate OK [09:20:44]wFMCommunicate request_size=4 [09:20:44]MH_SAM_APDU [09:20:44]CAPDU: 80 17 00 00 [09:20:44]Write to MH i2c: E2 08 00 61 25 80 17 00 00 00 00 00 00 06 [09:20:44]Write i2c OK [09:20:44]MH_I2C_Read... [09:20:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:20:45]Read from MH i2c: E2 [09:20:45]MH_I2C_Read... [09:20:45]Read from MH i2c: E2 FD 00 [09:20:45]MH_I2C_Read... [09:20:45]Read from MH i2c: E2 FD 00 61 25 00 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 90 00 2D [09:20:45]RAPDU: 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 90 00 [09:20:45]wFMCommunicate OK [09:20:45]wFMCommunicate request_size=4 [09:20:45]MH_SAM_APDU [09:20:45]CAPDU: 80 17 00 00 [09:20:45]Write to MH i2c: E2 08 00 62 25 80 17 00 00 00 00 00 00 07 [09:20:45]Write i2c OK [09:20:45]MH_I2C_Read... [09:20:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:20:45]Read from MH i2c: E2 [09:20:45]MH_I2C_Read... [09:20:45]Read from MH i2c: E2 FD 00 [09:20:45]MH_I2C_Read... [09:20:45]Read from MH i2c: E2 FD 00 62 25 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 82 [09:20:45]RAPDU: EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 [09:20:45]wFMCommunicate OK [09:20:45]wFMCommunicate request_size=4 [09:20:45]MH_SAM_APDU [09:20:45]CAPDU: 80 17 00 00 [09:20:45]Write to MH i2c: E2 08 00 63 25 80 17 00 00 00 00 00 00 08 [09:20:45]Write i2c OK [09:20:45]MH_I2C_Read... [09:20:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 224! [09:20:45]Read from MH i2c: E2 [09:20:45]MH_I2C_Read... [09:20:45]Read from MH i2c: E2 E3 00 [09:20:45]MH_I2C_Read... [09:20:45]Read from MH i2c: E2 E3 00 63 25 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 E7 [09:20:45]RAPDU: 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [09:20:45]wFMCommunicate OK [09:20:45]SAM_PROTO_GetFMData done [09:20:45]requested_item fm.sale_refund.total is exist - process it [09:20:45]requested_item fm.buy.total is exist - process it [09:20:45]requested_item shift.sale.total is exist - process it [09:20:45]SAM_PROTO_GetShiftData [09:20:45]wFMCommunicate request_size=4 [09:20:45]MH_SAM_APDU [09:20:45]CAPDU: 80 13 02 00 [09:20:45]Write to MH i2c: E2 08 00 64 25 80 13 02 00 00 00 00 00 07 [09:20:45]Write i2c OK [09:20:45]MH_I2C_Read... [09:20:46]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [09:20:46]Read from MH i2c: E2 [09:20:46]MH_I2C_Read... [09:20:46]Read from MH i2c: E2 FD 00 [09:20:46]MH_I2C_Read... [09:20:46]Read from MH i2c: E2 FD 00 64 25 00 AE 04 AA 04 AA 04 6E 04 04 00 1A 00 00 00 69 04 9B 00 6F 04 04 00 1A 00 00 00 B1 04 03 00 BE 23 29 70 04 03 00 20 97 11 72 04 03 00 9E 8C 17 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 9C 5E 04 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 34 5D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 9E [09:20:46]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 1A 00 00 00 69 04 9B 00 6F 04 04 00 1A 00 00 00 B1 04 03 00 BE 23 29 70 04 03 00 20 97 11 72 04 03 00 9E 8C 17 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 9C 5E 04 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 34 5D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [09:20:46]wFMCommunicate OK [09:20:46]wFMCommunicate request_size=4 [09:20:46]MH_SAM_APDU [09:20:46]CAPDU: 80 17 00 00 [09:20:46]Write to MH i2c: E2 08 00 65 25 80 17 00 00 00 00 00 00 0A [09:20:46]Write i2c OK [09:20:46]MH_I2C_Read... [09:20:46]OFD Sender: No OFD packet to send [09:20:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:20:46]Read from MH i2c: E2 [09:20:46]MH_I2C_Read... [09:20:46]Read from MH i2c: E2 FD 00 [09:20:46]MH_I2C_Read... [09:20:46]Read from MH i2c: E2 FD 00 65 25 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 2C [09:20:46]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [09:20:46]wFMCommunicate OK [09:20:46]wFMCommunicate request_size=4 [09:20:46]MH_SAM_APDU [09:20:46]CAPDU: 80 17 00 00 [09:20:46]Write to MH i2c: E2 08 00 66 25 80 17 00 00 00 00 00 00 0B [09:20:46]Write i2c OK [09:20:46]MH_I2C_Read... [09:20:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:20:46]Read from MH i2c: E2 [09:20:46]MH_I2C_Read... [09:20:46]Read from MH i2c: E2 FD 00 [09:20:46]MH_I2C_Read... [09:20:46]Read from MH i2c: E2 FD 00 66 25 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 C2 [09:20:46]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [09:20:46]wFMCommunicate OK [09:20:46]wFMCommunicate request_size=4 [09:20:46]MH_SAM_APDU [09:20:46]CAPDU: 80 17 00 00 [09:20:46]Write to MH i2c: E2 08 00 67 25 80 17 00 00 00 00 00 00 0C [09:20:46]Write i2c OK [09:20:46]MH_I2C_Read... [09:20:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:20:47]Read from MH i2c: E2 [09:20:47]MH_I2C_Read... [09:20:47]Read from MH i2c: E2 FD 00 [09:20:47]MH_I2C_Read... [09:20:47]Read from MH i2c: E2 FD 00 67 25 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 7E [09:20:47]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [09:20:47]wFMCommunicate OK [09:20:47]wFMCommunicate request_size=4 [09:20:47]MH_SAM_APDU [09:20:47]CAPDU: 80 17 00 00 [09:20:47]Write to MH i2c: E2 08 00 68 25 80 17 00 00 00 00 00 00 0D [09:20:47]Write i2c OK [09:20:47]MH_I2C_Read... [09:20:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [09:20:47]Read from MH i2c: E2 [09:20:47]MH_I2C_Read... [09:20:47]Read from MH i2c: E2 CB 00 [09:20:47]MH_I2C_Read... [09:20:47]Read from MH i2c: E2 CB 00 68 25 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 F6 [09:20:47]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [09:20:47]wFMCommunicate OK [09:20:47]SAM_PROTO_GetShiftData done [09:20:47]requested_item shift.sale.total_cash is exist - process it [09:20:47]requested_item shift.sale_refund.total is exist - process it [09:20:47]requested_item shift.sale_refund.total_cash is exist - process it [09:20:47]requested_item shift.buy.total is exist - process it [09:20:47]requested_item shift.buy.total_cash is exist - process it [09:20:47]produce_requested_data done [09:20:47]produce_requested_data return {"fm.sale.total":133835049.70,"fm.sale_refund.total":37037760.00,"fm.buy.total":0.00,"shift.sale.total":26961.26,"shift.sale.total_cash":11528.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [09:20:47]process_action_free get_value [09:20:47]json_value_free [09:20:47]json_value_free done [09:20:47]process_json_proto returns [09:20:47]Send response to host [09:20:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":133835049.70,"fm.sale_refund.total":37037760.00,"fm.buy.total":0.00,"shift.sale.total":26961.26,"shift.sale.total_cash":11528.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [09:20:47]free response buf [09:20:47]execute_script done [09:20:47]execute_script returns [09:20:47]free content buf [09:20:47]Sock 7.Close socket [09:20:47]Sock 7.Thread stoped [09:20:51]OFD Sender: No OFD packet to send [09:20:56]OFD Sender: No OFD packet to send [09:21:01]OFD Sender: No OFD packet to send [09:21:02]accept exits with 9 [09:21:02]New connection [09:21:02]New thread 3066608996 created [09:21:02]Thread 3066752356 joined [09:21:02]Waiting for new connection... [09:21:02] Sock 9.Parse request [09:21:02]Sock 9.Check first char [09:21:02]Sock 9.First char is OK [09:21:02]request: POST /json_proto HTTP/1.0 [09:21:02]Method: POST [09:21:02]URL: /json_proto [09:21:02]Method is POST - this is cgi request [09:21:02]url: /json_proto [09:21:02]query_string will be loaded in cgi processing [09:21:02]execute_cgi json_proto POST (null) [09:21:02]execute_cgi path=json_proto method=POST [09:21:02]POST find Content-Length [09:21:02]Host: 172.17.41.195:8080 [09:21:02]Content-Length: 1209 [09:21:02]Content-Type: application/json [09:21:02] [09:21:02]POST finish read [09:21:02]Found Content-Length = 1209 [09:21:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0440\u0441\u0442\u0430\u043D\u0431\u0435\u043A\u043E\u0432 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)507974\u000A18.05.2024 09:03\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 41\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 23.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 1718.10\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:21:02]execute_script... [09:21:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0440\u0441\u0442\u0430\u043D\u0431\u0435\u043A\u043E\u0432 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)507974\u000A18.05.2024 09:03\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 41\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 23.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 1718.10\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:21:02]POST & json_proto [09:21:02]process_json_proto [09:21:02]json parsed OK: [09:21:02]protocol is kg_v1.0 [09:21:02]action value=print_text [09:21:02]process_action print_text [09:21:02]cmd_print_text [09:21:02]ExternCall_PrintAddStr [09:21:02]wPrintStart [09:21:02]Write to MH i2c: 01 00 00 69 25 8E [09:21:02]Write i2c OK [09:21:02]MH_I2C_Read... [09:21:02]Read from MH i2c: 01 [09:21:02]MH_I2C_Read... [09:21:02]Read from MH i2c: 01 07 00 [09:21:02]MH_I2C_Read... [09:21:02]Read from MH i2c: 01 07 00 69 25 00 00 00 00 00 FF 0F A3 [09:21:02]RasterBufferAndPrint [09:21:02]line *****ТОВАРНЫЙ ЧЕК***** [09:21:02]line АЗС-91 [09:21:02]line Партнер нефть [09:21:02]line 02508201610067 [09:21:02]line Кассир : Арстанбеков Н. [09:21:02]line Счет N : (1)507974 [09:21:02]line 18.05.2024 09:03 [09:21:02]line ПРОДАЖА [09:21:02]line ТРК (МРК, ГНК): 41 [09:21:02]line Вид ГСМ : 2710194210 [09:21:02]line ДТ-К-5 [09:21:02]line 23.000 x 74.70 [09:21:02]line ИТОГ: 1718.10 [09:21:02]line Тип оплаты: Талоны: Топливная Карта [09:21:02]line 02750 [09:21:02]line ______________________ [09:21:02]line (подпись) [09:21:02]written 0, free lines is 4095 [09:21:02]Write to MH i2c: 01 00 00 7D 25 A2 [09:21:02]Write i2c OK [09:21:02]MH_I2C_Read... [09:21:02]Read from MH i2c: 01 [09:21:02]MH_I2C_Read... [09:21:02]Read from MH i2c: 01 07 00 [09:21:02]MH_I2C_Read... [09:21:02]Read from MH i2c: 01 07 00 7D 25 00 00 00 00 00 12 0E C9 [09:21:02]RasterBufferAndPrint [09:21:02]line [09:21:02]line [09:21:02]line [09:21:02]line [09:21:02]line [09:21:02]written 0, free lines is 3604 [09:21:02]MH_Cut [09:21:02]Write to MH i2c: D1 01 00 84 25 01 7B [09:21:02]Write i2c OK [09:21:02]MH_I2C_Read... [09:21:02]Read from MH i2c: D1 [09:21:02]MH_I2C_Read... [09:21:02]Read from MH i2c: D1 01 00 [09:21:02]MH_I2C_Read... [09:21:02]Read from MH i2c: D1 01 00 84 25 00 7A [09:21:02]Write to MH i2c: 01 00 00 85 25 AA [09:21:02]Write i2c OK [09:21:02]MH_I2C_Read... [09:21:02]*** Cut start [09:21:02]*** Purtial cut [09:21:02]*** Stage 1: CUTSNS_PIN = 1 [09:21:03]Read from MH i2c: 01 [09:21:03]MH_I2C_Read... [09:21:03]*** Stop cut motor [09:21:03]*** Cut end [09:21:03]Read from MH i2c: 01 07 00 [09:21:03]MH_I2C_Read... [09:21:03]Read from MH i2c: 01 07 00 85 25 00 00 00 00 00 FF 0F BF [09:21:03]process_action print_text done [09:21:03]requested_data is exist [09:21:03]produce_requested_data [09:21:03]requested_item fm.sn is exist - process it [09:21:03]wFMCommunicate request_size=4 [09:21:03]MH_SAM_APDU [09:21:03]CAPDU: 80 11 00 00 [09:21:03]Write to MH i2c: E2 08 00 86 25 80 11 00 00 00 00 00 00 25 [09:21:03]Write i2c OK [09:21:03]MH_I2C_Read... [09:21:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:21:03]Read from MH i2c: E2 [09:21:03]MH_I2C_Read... [09:21:03]Read from MH i2c: E2 17 00 [09:21:03]MH_I2C_Read... [09:21:03]Read from MH i2c: E2 17 00 86 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 7B [09:21:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [09:21:03]wFMCommunicate OK [09:21:03]requested_item fd.num is exist - process it [09:21:03]SAM_PROTO_GetFieldsCounters [09:21:03]wFMCommunicate request_size=4 [09:21:03]MH_SAM_APDU [09:21:03]CAPDU: 80 13 00 00 [09:21:03]Write to MH i2c: E2 08 00 87 25 80 13 00 00 00 00 00 00 28 [09:21:03]Write i2c OK [09:21:03]MH_I2C_Read... [09:21:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:21:03]Read from MH i2c: E2 [09:21:03]MH_I2C_Read... [09:21:03]Read from MH i2c: E2 62 00 [09:21:03]MH_I2C_Read... [09:21:03]Read from MH i2c: E2 62 00 87 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 CB 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 D8 [09:21:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 CB 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:21:03]wFMCommunicate OK [09:21:03]SAM_PROTO_GetFieldsCounters done [09:21:03]requested_item shift.num is exist - process it [09:21:03]requested_item shift.opened is exist - process it [09:21:03]req_shift_opened [09:21:03]FM_GetShiftState [09:21:03]SAM_PROTO_GetShiftState [09:21:03]wFMCommunicate request_size=4 [09:21:03]MH_SAM_APDU [09:21:03]CAPDU: 80 13 01 00 [09:21:03]Write to MH i2c: E2 08 00 88 25 80 13 01 00 00 00 00 00 2A [09:21:03]Write i2c OK [09:21:03]MH_I2C_Read... [09:21:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:21:03]Read from MH i2c: E2 [09:21:03]MH_I2C_Read... [09:21:03]Read from MH i2c: E2 0E 00 [09:21:03]MH_I2C_Read... [09:21:03]Read from MH i2c: E2 0E 00 88 25 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 91 [09:21:03]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [09:21:03]wFMCommunicate OK [09:21:03]SAM_PROTO_GetShiftState done [09:21:03]FM_GetShiftState done [09:21:03]req_shift_opened done [09:21:03]requested_item shift.open_date is exist - process it [09:21:03]req_shift_open_date [09:21:03]req_shift_open_date done [09:21:03]produce_requested_data done [09:21:03]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67787,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [09:21:03]process_action_free print_text [09:21:03]json_value_free [09:21:03]json_value_free done [09:21:03]process_json_proto returns [09:21:03]Send response to host [09:21:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67787,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [09:21:03]free response buf [09:21:03]execute_script done [09:21:03]execute_script returns [09:21:03]free content buf [09:21:03]Sock 9.Close socket [09:21:03]Sock 9.Thread stoped [09:21:06]OFD Sender: No OFD packet to send [09:21:11]OFD Sender: No OFD packet to send [09:21:16]OFD Sender: No OFD packet to send [09:21:21]OFD Sender: No OFD packet to send [09:21:26]OFD Sender: No OFD packet to send [09:21:31]OFD Sender: No OFD packet to send [09:21:36]OFD Sender: No OFD packet to send [09:21:41]OFD Sender: No OFD packet to send [09:21:46]OFD Sender: No OFD packet to send [09:21:51]OFD Sender: No OFD packet to send [09:21:56]OFD Sender: No OFD packet to send [09:22:01]OFD Sender: No OFD packet to send [09:22:06]OFD Sender: No OFD packet to send [09:22:11]OFD Sender: No OFD packet to send [09:22:16]OFD Sender: No OFD packet to send [09:22:21]OFD Sender: No OFD packet to send [09:22:26]OFD Sender: No OFD packet to send [09:22:31]OFD Sender: No OFD packet to send [09:22:36]OFD Sender: No OFD packet to send [09:22:41]OFD Sender: No OFD packet to send [09:22:46]OFD Sender: No OFD packet to send [09:22:51]OFD Sender: No OFD packet to send [09:22:55]accept exits with 7 [09:22:55]New connection [09:22:55]New thread 3066752356 created [09:22:55]Thread 3066608996 joined [09:22:55]Waiting for new connection... [09:22:55] Sock 7.Parse request [09:22:55]Sock 7.Check first char [09:22:55]Sock 7.First char is OK [09:22:55]request: POST /json_proto HTTP/1.0 [09:22:55]Method: POST [09:22:55]URL: /json_proto [09:22:55]Method is POST - this is cgi request [09:22:55]url: /json_proto [09:22:55]query_string will be loaded in cgi processing [09:22:55]execute_cgi json_proto POST (null) [09:22:55]execute_cgi path=json_proto method=POST [09:22:55]POST find Content-Length [09:22:55]Host: 172.17.41.195:8080 [09:22:55]Content-Length: 1209 [09:22:55]Content-Type: application/json [09:22:55] [09:22:55]POST finish read [09:22:55]Found Content-Length = 1209 [09:22:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0440\u0441\u0442\u0430\u043D\u0431\u0435\u043A\u043E\u0432 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)507975\u000A18.05.2024 09:05\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 26.780 x 74.70\u000A\u0418\u0422\u041E\u0413: 2000.47\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:22:55]execute_script... [09:22:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0440\u0441\u0442\u0430\u043D\u0431\u0435\u043A\u043E\u0432 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)507975\u000A18.05.2024 09:05\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 26.780 x 74.70\u000A\u0418\u0422\u041E\u0413: 2000.47\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:22:55]POST & json_proto [09:22:55]process_json_proto [09:22:55]json parsed OK: [09:22:55]protocol is kg_v1.0 [09:22:55]action value=print_text [09:22:55]process_action print_text [09:22:55]cmd_print_text [09:22:55]ExternCall_PrintAddStr [09:22:55]wPrintStart [09:22:55]Write to MH i2c: 01 00 00 89 25 AE [09:22:55]Write i2c OK [09:22:55]MH_I2C_Read... [09:22:55]Read from MH i2c: 01 [09:22:55]MH_I2C_Read... [09:22:55]Read from MH i2c: 01 07 00 [09:22:55]MH_I2C_Read... [09:22:55]Read from MH i2c: 01 07 00 89 25 00 00 00 00 00 FF 0F C3 [09:22:55]RasterBufferAndPrint [09:22:55]line *****ТОВАРНЫЙ ЧЕК***** [09:22:55]line АЗС-91 [09:22:55]line Партнер нефть [09:22:55]line 02508201610067 [09:22:55]line Кассир : Арстанбеков Н. [09:22:55]line Счет N : (1)507975 [09:22:55]line 18.05.2024 09:05 [09:22:55]line ПРОДАЖА [09:22:55]line ТРК (МРК, ГНК): 31 [09:22:55]line Вид ГСМ : 2710194210 [09:22:55]line ДТ-К-5 [09:22:55]line 26.780 x 74.70 [09:22:55]line ИТОГ: 2000.47 [09:22:55]line Тип оплаты: Талоны: Топливная Карта [09:22:55]line 02750 [09:22:55]line ______________________ [09:22:55]line (подпись) [09:22:55]written 0, free lines is 4095 [09:22:55]Write to MH i2c: 01 00 00 9D 25 C2 [09:22:55]Write i2c OK [09:22:55]MH_I2C_Read... [09:22:55]Read from MH i2c: 01 [09:22:55]MH_I2C_Read... [09:22:55]Read from MH i2c: 01 07 00 [09:22:55]MH_I2C_Read... [09:22:55]Read from MH i2c: 01 07 00 9D 25 00 00 00 00 00 10 0E E7 [09:22:55]RasterBufferAndPrint [09:22:55]line [09:22:55]line [09:22:55]line [09:22:55]line [09:22:55]line [09:22:55]written 0, free lines is 3602 [09:22:55]MH_Cut [09:22:55]Write to MH i2c: D1 01 00 A4 25 01 9B [09:22:55]Write i2c OK [09:22:55]MH_I2C_Read... [09:22:55]Read from MH i2c: D1 [09:22:55]MH_I2C_Read... [09:22:55]Read from MH i2c: D1 01 00 [09:22:55]MH_I2C_Read... [09:22:55]Read from MH i2c: D1 01 00 A4 25 00 9A [09:22:55]Write to MH i2c: 01 00 00 A5 25 CA [09:22:55]Write i2c OK [09:22:55]MH_I2C_Read... [09:22:56]OFD Sender: No OFD packet to send [09:22:56]*** Cut start [09:22:56]*** Purtial cut [09:22:56]*** CUTSNS_PIN = 0 [09:22:56]*** Stage 1: CUTSNS_PIN = 1 [09:22:58]Read from MH i2c: 01 [09:22:58]MH_I2C_Read... [09:22:58]*** Stop cut motor [09:22:58]*** Cut end [09:22:58]Read from MH i2c: 01 07 00 [09:22:58]MH_I2C_Read... [09:22:58]Read from MH i2c: 01 07 00 A5 25 00 00 00 00 00 FF 0F DF [09:22:58]process_action print_text done [09:22:58]requested_data is exist [09:22:58]produce_requested_data [09:22:58]requested_item fm.sn is exist - process it [09:22:58]wFMCommunicate request_size=4 [09:22:58]MH_SAM_APDU [09:22:58]CAPDU: 80 11 00 00 [09:22:58]Write to MH i2c: E2 08 00 A6 25 80 11 00 00 00 00 00 00 45 [09:22:58]Write i2c OK [09:22:58]MH_I2C_Read... [09:22:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:22:58]Read from MH i2c: E2 [09:22:58]MH_I2C_Read... [09:22:58]Read from MH i2c: E2 17 00 [09:22:58]MH_I2C_Read... [09:22:58]Read from MH i2c: E2 17 00 A6 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 9B [09:22:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [09:22:58]wFMCommunicate OK [09:22:58]requested_item fd.num is exist - process it [09:22:58]SAM_PROTO_GetFieldsCounters [09:22:58]wFMCommunicate request_size=4 [09:22:58]MH_SAM_APDU [09:22:58]CAPDU: 80 13 00 00 [09:22:58]Write to MH i2c: E2 08 00 A7 25 80 13 00 00 00 00 00 00 48 [09:22:58]Write i2c OK [09:22:58]MH_I2C_Read... [09:22:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:22:58]Read from MH i2c: E2 [09:22:58]MH_I2C_Read... [09:22:58]Read from MH i2c: E2 62 00 [09:22:58]MH_I2C_Read... [09:22:58]Read from MH i2c: E2 62 00 A7 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 CB 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 F8 [09:22:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 CB 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:22:58]wFMCommunicate OK [09:22:58]SAM_PROTO_GetFieldsCounters done [09:22:58]requested_item shift.num is exist - process it [09:22:58]requested_item shift.opened is exist - process it [09:22:58]req_shift_opened [09:22:58]FM_GetShiftState [09:22:58]SAM_PROTO_GetShiftState [09:22:58]wFMCommunicate request_size=4 [09:22:58]MH_SAM_APDU [09:22:58]CAPDU: 80 13 01 00 [09:22:58]Write to MH i2c: E2 08 00 A8 25 80 13 01 00 00 00 00 00 4A [09:22:58]Write i2c OK [09:22:58]MH_I2C_Read... [09:22:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:22:58]Read from MH i2c: E2 [09:22:58]MH_I2C_Read... [09:22:58]Read from MH i2c: E2 0E 00 [09:22:58]MH_I2C_Read... [09:22:58]Read from MH i2c: E2 0E 00 A8 25 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 B1 [09:22:58]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [09:22:58]wFMCommunicate OK [09:22:58]SAM_PROTO_GetShiftState done [09:22:58]FM_GetShiftState done [09:22:58]req_shift_opened done [09:22:58]requested_item shift.open_date is exist - process it [09:22:58]req_shift_open_date [09:22:58]req_shift_open_date done [09:22:58]produce_requested_data done [09:22:58]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67787,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [09:22:58]process_action_free print_text [09:22:58]json_value_free [09:22:58]json_value_free done [09:22:58]process_json_proto returns [09:22:58]Send response to host [09:22:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67787,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [09:22:58]free response buf [09:22:58]execute_script done [09:22:58]execute_script returns [09:22:58]free content buf [09:22:58]Sock 7.Close socket [09:22:58]Sock 7.Thread stoped [09:23:01]OFD Sender: No OFD packet to send [09:23:01]accept exits with 9 [09:23:01]New connection [09:23:01]New thread 3066608996 created [09:23:01]Thread 3066752356 joined [09:23:01]Waiting for new connection... [09:23:01] Sock 9.Parse request [09:23:01]Sock 9.Check first char [09:23:01]Sock 9.First char is OK [09:23:01]request: POST /json_proto HTTP/1.0 [09:23:01]Method: POST [09:23:01]URL: /json_proto [09:23:01]Method is POST - this is cgi request [09:23:01]url: /json_proto [09:23:01]query_string will be loaded in cgi processing [09:23:01]execute_cgi json_proto POST (null) [09:23:01]execute_cgi path=json_proto method=POST [09:23:01]POST find Content-Length [09:23:01]Host: 172.17.41.195:8080 [09:23:01]Content-Length: 1209 [09:23:01]Content-Type: application/json [09:23:01] [09:23:01]POST finish read [09:23:01]Found Content-Length = 1209 [09:23:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0440\u0441\u0442\u0430\u043D\u0431\u0435\u043A\u043E\u0432 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)507976\u000A18.05.2024 09:05\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 15.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 1120.50\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:23:01]execute_script... [09:23:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0440\u0441\u0442\u0430\u043D\u0431\u0435\u043A\u043E\u0432 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)507976\u000A18.05.2024 09:05\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 15.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 1120.50\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:23:01]POST & json_proto [09:23:01]process_json_proto [09:23:01]json parsed OK: [09:23:01]protocol is kg_v1.0 [09:23:01]action value=print_text [09:23:01]process_action print_text [09:23:01]cmd_print_text [09:23:01]ExternCall_PrintAddStr [09:23:01]wPrintStart [09:23:01]Write to MH i2c: 01 00 00 A9 25 CE [09:23:01]Write i2c OK [09:23:01]MH_I2C_Read... [09:23:01]Read from MH i2c: 01 [09:23:01]MH_I2C_Read... [09:23:01]Read from MH i2c: 01 07 00 [09:23:01]MH_I2C_Read... [09:23:01]Read from MH i2c: 01 07 00 A9 25 00 00 00 00 00 FF 0F E3 [09:23:01]RasterBufferAndPrint [09:23:01]line *****ТОВАРНЫЙ ЧЕК***** [09:23:01]line АЗС-91 [09:23:01]line Партнер нефть [09:23:01]line 02508201610067 [09:23:01]line Кассир : Арстанбеков Н. [09:23:01]line Счет N : (1)507976 [09:23:01]line 18.05.2024 09:05 [09:23:01]line ПРОДАЖА [09:23:01]line ТРК (МРК, ГНК): 11 [09:23:01]line Вид ГСМ : 2710194210 [09:23:01]line ДТ-К-5 [09:23:01]line 15.000 x 74.70 [09:23:01]line ИТОГ: 1120.50 [09:23:01]line Тип оплаты: Талоны: Топливная Карта [09:23:01]line 02750 [09:23:01]line ______________________ [09:23:01]line (подпись) [09:23:01]written 0, free lines is 4095 [09:23:01]Write to MH i2c: 01 00 00 BD 25 E2 [09:23:01]Write i2c OK [09:23:01]MH_I2C_Read... [09:23:01]Read from MH i2c: 01 [09:23:01]MH_I2C_Read... [09:23:01]Read from MH i2c: 01 07 00 [09:23:01]MH_I2C_Read... [09:23:01]Read from MH i2c: 01 07 00 BD 25 00 00 00 00 00 0F 0E 06 [09:23:01]RasterBufferAndPrint [09:23:01]line [09:23:01]line [09:23:01]line [09:23:01]line [09:23:01]line [09:23:01]written 0, free lines is 3601 [09:23:01]MH_Cut [09:23:01]Write to MH i2c: D1 01 00 C4 25 01 BB [09:23:01]Write i2c OK [09:23:01]MH_I2C_Read... [09:23:01]Read from MH i2c: D1 [09:23:01]MH_I2C_Read... [09:23:01]Read from MH i2c: D1 01 00 [09:23:01]MH_I2C_Read... [09:23:01]Read from MH i2c: D1 01 00 C4 25 00 BA [09:23:01]Write to MH i2c: 01 00 00 C5 25 EA [09:23:01]Write i2c OK [09:23:01]MH_I2C_Read... [09:23:02]*** Cut start [09:23:02]*** Purtial cut [09:23:02]*** Stage 1: CUTSNS_PIN = 1 [09:23:02]Read from MH i2c: 01 [09:23:02]MH_I2C_Read... [09:23:02]*** Stop cut motor [09:23:02]*** Cut end [09:23:02]Read from MH i2c: 01 07 00 [09:23:02]MH_I2C_Read... [09:23:02]Read from MH i2c: 01 07 00 C5 25 00 00 00 00 00 FF 0F FF [09:23:02]process_action print_text done [09:23:02]requested_data is exist [09:23:02]produce_requested_data [09:23:02]requested_item fm.sn is exist - process it [09:23:02]wFMCommunicate request_size=4 [09:23:02]MH_SAM_APDU [09:23:02]CAPDU: 80 11 00 00 [09:23:02]Write to MH i2c: E2 08 00 C6 25 80 11 00 00 00 00 00 00 65 [09:23:02]Write i2c OK [09:23:02]MH_I2C_Read... [09:23:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:23:02]Read from MH i2c: E2 [09:23:02]MH_I2C_Read... [09:23:02]Read from MH i2c: E2 17 00 [09:23:02]MH_I2C_Read... [09:23:02]Read from MH i2c: E2 17 00 C6 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 BB [09:23:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [09:23:02]wFMCommunicate OK [09:23:02]requested_item fd.num is exist - process it [09:23:02]SAM_PROTO_GetFieldsCounters [09:23:02]wFMCommunicate request_size=4 [09:23:02]MH_SAM_APDU [09:23:02]CAPDU: 80 13 00 00 [09:23:02]Write to MH i2c: E2 08 00 C7 25 80 13 00 00 00 00 00 00 68 [09:23:02]Write i2c OK [09:23:02]MH_I2C_Read... [09:23:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:23:02]Read from MH i2c: E2 [09:23:02]MH_I2C_Read... [09:23:02]Read from MH i2c: E2 62 00 [09:23:02]MH_I2C_Read... [09:23:02]Read from MH i2c: E2 62 00 C7 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 CB 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 18 [09:23:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 CB 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:23:02]wFMCommunicate OK [09:23:02]SAM_PROTO_GetFieldsCounters done [09:23:02]requested_item shift.num is exist - process it [09:23:02]requested_item shift.opened is exist - process it [09:23:02]req_shift_opened [09:23:02]FM_GetShiftState [09:23:02]SAM_PROTO_GetShiftState [09:23:02]wFMCommunicate request_size=4 [09:23:02]MH_SAM_APDU [09:23:02]CAPDU: 80 13 01 00 [09:23:02]Write to MH i2c: E2 08 00 C8 25 80 13 01 00 00 00 00 00 6A [09:23:02]Write i2c OK [09:23:02]MH_I2C_Read... [09:23:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:23:02]Read from MH i2c: E2 [09:23:02]MH_I2C_Read... [09:23:02]Read from MH i2c: E2 0E 00 [09:23:02]MH_I2C_Read... [09:23:02]Read from MH i2c: E2 0E 00 C8 25 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 D1 [09:23:02]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [09:23:02]wFMCommunicate OK [09:23:02]SAM_PROTO_GetShiftState done [09:23:02]FM_GetShiftState done [09:23:02]req_shift_opened done [09:23:02]requested_item shift.open_date is exist - process it [09:23:02]req_shift_open_date [09:23:02]req_shift_open_date done [09:23:02]produce_requested_data done [09:23:02]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67787,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [09:23:02]process_action_free print_text [09:23:02]json_value_free [09:23:02]json_value_free done [09:23:02]process_json_proto returns [09:23:02]Send response to host [09:23:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67787,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [09:23:02]free response buf [09:23:02]execute_script done [09:23:02]execute_script returns [09:23:02]free content buf [09:23:02]Sock 9.Close socket [09:23:02]Sock 9.Thread stoped [09:23:06]OFD Sender: No OFD packet to send [09:23:11]OFD Sender: No OFD packet to send [09:23:16]OFD Sender: No OFD packet to send [09:23:21]OFD Sender: No OFD packet to send [09:23:26]OFD Sender: No OFD packet to send [09:23:31]OFD Sender: No OFD packet to send [09:23:36]OFD Sender: No OFD packet to send [09:23:41]OFD Sender: No OFD packet to send [09:23:46]OFD Sender: No OFD packet to send [09:23:51]OFD Sender: No OFD packet to send [09:23:56]OFD Sender: No OFD packet to send [09:24:01]OFD Sender: No OFD packet to send [09:24:06]OFD Sender: No OFD packet to send [09:24:11]OFD Sender: No OFD packet to send [09:24:16]OFD Sender: No OFD packet to send [09:24:21]OFD Sender: No OFD packet to send [09:24:26]OFD Sender: No OFD packet to send [09:24:31]OFD Sender: No OFD packet to send [09:24:36]OFD Sender: No OFD packet to send [09:24:41]OFD Sender: No OFD packet to send [09:24:46]OFD Sender: No OFD packet to send [09:24:51]OFD Sender: No OFD packet to send [09:24:56]OFD Sender: No OFD packet to send [09:25:01]OFD Sender: No OFD packet to send [09:25:06]OFD Sender: No OFD packet to send [09:25:11]OFD Sender: No OFD packet to send [09:25:16]OFD Sender: No OFD packet to send [09:25:21]OFD Sender: No OFD packet to send [09:25:26]OFD Sender: No OFD packet to send [09:25:31]OFD Sender: No OFD packet to send [09:25:36]OFD Sender: No OFD packet to send [09:25:41]OFD Sender: No OFD packet to send [09:25:46]OFD Sender: No OFD packet to send [09:25:51]OFD Sender: No OFD packet to send [09:25:56]OFD Sender: No OFD packet to send [09:26:01]OFD Sender: No OFD packet to send [09:26:06]OFD Sender: No OFD packet to send [09:26:11]OFD Sender: No OFD packet to send [09:26:16]OFD Sender: No OFD packet to send [09:26:19]accept exits with 7 [09:26:19]New connection [09:26:19]New thread 3066752356 created [09:26:19]Thread 3066608996 joined [09:26:19]Waiting for new connection... [09:26:19] Sock 7.Parse request [09:26:19]Sock 7.Check first char [09:26:19]Sock 7.First char is OK [09:26:19]request: POST /json_proto HTTP/1.0 [09:26:19]Method: POST [09:26:19]URL: /json_proto [09:26:19]Method is POST - this is cgi request [09:26:19]url: /json_proto [09:26:19]query_string will be loaded in cgi processing [09:26:19]execute_cgi json_proto POST (null) [09:26:19]execute_cgi path=json_proto method=POST [09:26:19]POST find Content-Length [09:26:19]Host: 172.17.41.195:8080 [09:26:19]Content-Length: 1209 [09:26:19]Content-Type: application/json [09:26:19] [09:26:19]POST finish read [09:26:19]Found Content-Length = 1209 [09:26:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0440\u0441\u0442\u0430\u043D\u0431\u0435\u043A\u043E\u0432 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)507977\u000A18.05.2024 09:08\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 20.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 1494.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:26:19]execute_script... [09:26:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0440\u0441\u0442\u0430\u043D\u0431\u0435\u043A\u043E\u0432 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)507977\u000A18.05.2024 09:08\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 20.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 1494.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:26:19]POST & json_proto [09:26:19]process_json_proto [09:26:19]json parsed OK: [09:26:19]protocol is kg_v1.0 [09:26:19]action value=print_text [09:26:19]process_action print_text [09:26:19]cmd_print_text [09:26:19]ExternCall_PrintAddStr [09:26:19]wPrintStart [09:26:19]Write to MH i2c: 01 00 00 C9 25 EE [09:26:19]Write i2c OK [09:26:19]MH_I2C_Read... [09:26:19]Read from MH i2c: 01 [09:26:19]MH_I2C_Read... [09:26:19]Read from MH i2c: 01 07 00 [09:26:19]MH_I2C_Read... [09:26:19]Read from MH i2c: 01 07 00 C9 25 00 00 00 00 00 FF 0F 03 [09:26:19]RasterBufferAndPrint [09:26:19]line *****ТОВАРНЫЙ ЧЕК***** [09:26:19]line АЗС-91 [09:26:19]line Партнер нефть [09:26:19]line 02508201610067 [09:26:19]line Кассир : Арстанбеков Н. [09:26:19]line Счет N : (1)507977 [09:26:19]line 18.05.2024 09:08 [09:26:19]line ПРОДАЖА [09:26:19]line ТРК (МРК, ГНК): 31 [09:26:19]line Вид ГСМ : 2710194210 [09:26:19]line ДТ-К-5 [09:26:19]line 20.000 x 74.70 [09:26:19]line ИТОГ: 1494.00 [09:26:19]line Тип оплаты: Талоны: Топливная Карта [09:26:19]line 02750 [09:26:19]line ______________________ [09:26:19]line (подпись) [09:26:19]written 0, free lines is 4095 [09:26:19]Write to MH i2c: 01 00 00 DD 25 02 [09:26:19]Write i2c OK [09:26:19]MH_I2C_Read... [09:26:19]Read from MH i2c: 01 [09:26:19]MH_I2C_Read... [09:26:19]Read from MH i2c: 01 07 00 [09:26:19]MH_I2C_Read... [09:26:19]Read from MH i2c: 01 07 00 DD 25 00 00 00 00 00 10 0E 27 [09:26:19]RasterBufferAndPrint [09:26:19]line [09:26:19]line [09:26:19]line [09:26:19]line [09:26:19]line [09:26:19]written 0, free lines is 3602 [09:26:19]MH_Cut [09:26:19]Write to MH i2c: D1 01 00 E4 25 01 DB [09:26:19]Write i2c OK [09:26:19]MH_I2C_Read... [09:26:19]Read from MH i2c: D1 [09:26:19]MH_I2C_Read... [09:26:19]Read from MH i2c: D1 01 00 [09:26:19]MH_I2C_Read... [09:26:19]Read from MH i2c: D1 01 00 E4 25 00 DA [09:26:19]Write to MH i2c: 01 00 00 E5 25 0A [09:26:19]Write i2c OK [09:26:19]MH_I2C_Read... [09:26:20]*** Cut start [09:26:20]*** Purtial cut [09:26:20]*** CUTSNS_PIN = 0 [09:26:20]*** Stage 1: CUTSNS_PIN = 1 [09:26:21]OFD Sender: No OFD packet to send [09:26:22]Read from MH i2c: 01 [09:26:22]MH_I2C_Read... [09:26:22]*** Stop cut motor [09:26:22]*** Cut end [09:26:22]Read from MH i2c: 01 07 00 [09:26:22]MH_I2C_Read... [09:26:22]Read from MH i2c: 01 07 00 E5 25 00 00 00 00 00 FF 0F 1F [09:26:22]process_action print_text done [09:26:22]requested_data is exist [09:26:22]produce_requested_data [09:26:22]requested_item fm.sn is exist - process it [09:26:22]wFMCommunicate request_size=4 [09:26:22]MH_SAM_APDU [09:26:22]CAPDU: 80 11 00 00 [09:26:22]Write to MH i2c: E2 08 00 E6 25 80 11 00 00 00 00 00 00 85 [09:26:22]Write i2c OK [09:26:22]MH_I2C_Read... [09:26:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:26:22]Read from MH i2c: E2 [09:26:22]MH_I2C_Read... [09:26:22]Read from MH i2c: E2 17 00 [09:26:22]MH_I2C_Read... [09:26:22]Read from MH i2c: E2 17 00 E6 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 DB [09:26:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [09:26:22]wFMCommunicate OK [09:26:22]requested_item fd.num is exist - process it [09:26:22]SAM_PROTO_GetFieldsCounters [09:26:22]wFMCommunicate request_size=4 [09:26:22]MH_SAM_APDU [09:26:22]CAPDU: 80 13 00 00 [09:26:22]Write to MH i2c: E2 08 00 E7 25 80 13 00 00 00 00 00 00 88 [09:26:22]Write i2c OK [09:26:22]MH_I2C_Read... [09:26:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:26:22]Read from MH i2c: E2 [09:26:22]MH_I2C_Read... [09:26:22]Read from MH i2c: E2 62 00 [09:26:22]MH_I2C_Read... [09:26:22]Read from MH i2c: E2 62 00 E7 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 CB 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 38 [09:26:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 CB 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:26:22]wFMCommunicate OK [09:26:22]SAM_PROTO_GetFieldsCounters done [09:26:22]requested_item shift.num is exist - process it [09:26:22]requested_item shift.opened is exist - process it [09:26:22]req_shift_opened [09:26:22]FM_GetShiftState [09:26:22]SAM_PROTO_GetShiftState [09:26:22]wFMCommunicate request_size=4 [09:26:22]MH_SAM_APDU [09:26:22]CAPDU: 80 13 01 00 [09:26:22]Write to MH i2c: E2 08 00 E8 25 80 13 01 00 00 00 00 00 8A [09:26:22]Write i2c OK [09:26:22]MH_I2C_Read... [09:26:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:26:22]Read from MH i2c: E2 [09:26:22]MH_I2C_Read... [09:26:22]Read from MH i2c: E2 0E 00 [09:26:22]MH_I2C_Read... [09:26:22]Read from MH i2c: E2 0E 00 E8 25 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 F1 [09:26:22]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [09:26:22]wFMCommunicate OK [09:26:22]SAM_PROTO_GetShiftState done [09:26:22]FM_GetShiftState done [09:26:22]req_shift_opened done [09:26:22]requested_item shift.open_date is exist - process it [09:26:22]req_shift_open_date [09:26:22]req_shift_open_date done [09:26:22]produce_requested_data done [09:26:22]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67787,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [09:26:22]process_action_free print_text [09:26:22]json_value_free [09:26:22]json_value_free done [09:26:22]process_json_proto returns [09:26:22]Send response to host [09:26:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67787,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [09:26:22]free response buf [09:26:22]execute_script done [09:26:22]execute_script returns [09:26:22]free content buf [09:26:22]Sock 7.Close socket [09:26:22]Sock 7.Thread stoped [09:26:26]OFD Sender: No OFD packet to send [09:26:31]OFD Sender: No OFD packet to send [09:26:36]OFD Sender: No OFD packet to send [09:26:41]OFD Sender: No OFD packet to send [09:26:46]OFD Sender: No OFD packet to send [09:26:51]OFD Sender: No OFD packet to send [09:26:56]OFD Sender: No OFD packet to send [09:27:01]OFD Sender: No OFD packet to send [09:27:06]OFD Sender: No OFD packet to send [09:27:11]OFD Sender: No OFD packet to send [09:27:16]OFD Sender: No OFD packet to send [09:27:21]OFD Sender: No OFD packet to send [09:27:26]OFD Sender: No OFD packet to send [09:27:31]OFD Sender: No OFD packet to send [09:27:36]OFD Sender: No OFD packet to send [09:27:41]OFD Sender: No OFD packet to send [09:27:46]OFD Sender: No OFD packet to send [09:27:51]OFD Sender: No OFD packet to send [09:27:56]OFD Sender: No OFD packet to send [09:28:01]OFD Sender: No OFD packet to send [09:28:06]OFD Sender: No OFD packet to send [09:28:11]OFD Sender: No OFD packet to send [09:28:16]OFD Sender: No OFD packet to send [09:28:21]OFD Sender: No OFD packet to send [09:28:26]OFD Sender: No OFD packet to send [09:28:31]OFD Sender: No OFD packet to send [09:28:36]OFD Sender: No OFD packet to send [09:28:41]OFD Sender: No OFD packet to send [09:28:46]OFD Sender: No OFD packet to send [09:28:51]OFD Sender: No OFD packet to send [09:28:56]OFD Sender: No OFD packet to send [09:29:01]OFD Sender: No OFD packet to send [09:29:06]OFD Sender: No OFD packet to send [09:29:11]OFD Sender: No OFD packet to send [09:29:16]OFD Sender: No OFD packet to send [09:29:21]OFD Sender: No OFD packet to send [09:29:26]OFD Sender: No OFD packet to send [09:29:31]OFD Sender: No OFD packet to send [09:29:36]OFD Sender: No OFD packet to send [09:29:41]OFD Sender: No OFD packet to send [09:29:46]OFD Sender: No OFD packet to send [09:29:51]OFD Sender: No OFD packet to send [09:29:56]OFD Sender: No OFD packet to send [09:30:00]accept exits with 9 [09:30:00]New connection [09:30:00]New thread 3066608996 created [09:30:00]Thread 3066752356 joined [09:30:00]Waiting for new connection... [09:30:00] Sock 9.Parse request [09:30:00]Sock 9.Check first char [09:30:00]Sock 9.First char is OK [09:30:00]request: POST /json_proto HTTP/1.0 [09:30:00]Method: POST [09:30:00]URL: /json_proto [09:30:00]Method is POST - this is cgi request [09:30:00]url: /json_proto [09:30:00]query_string will be loaded in cgi processing [09:30:00]execute_cgi json_proto POST (null) [09:30:00]execute_cgi path=json_proto method=POST [09:30:00]POST find Content-Length [09:30:00]Host: 172.17.41.195:8080 [09:30:00]Content-Length: 674 [09:30:00]Content-Type: application/json [09:30:00] [09:30:00]POST finish read [09:30:00]Found Content-Length = 674 [09:30:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507978", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 4.020, "sum" : 300.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:30:00]execute_script... [09:30:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507978", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 4.020, "sum" : 300.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:30:00]POST & json_proto [09:30:00]process_json_proto [09:30:00]json parsed OK: [09:30:00]protocol is kg_v1.0 [09:30:00]action value=close_receipt [09:30:00]process_action close_receipt [09:30:00]cmd_close_receipt [09:30:00]MH_GetDate [09:30:00]Write to MH i2c: F0 00 00 E9 25 FD [09:30:00]Write i2c OK [09:30:00]MH_I2C_Read... [09:30:00]Read from MH i2c: F0 [09:30:00]MH_I2C_Read... [09:30:00]Read from MH i2c: F0 09 00 [09:30:00]MH_I2C_Read... [09:30:00]Read from MH i2c: F0 09 00 E9 25 00 1C 75 48 66 FC 21 6F 64 35 [09:30:00]GetLastDocTimeStamp 1716023217 [09:30:00]current date 1716024604 [09:30:00]FM_GetShiftState [09:30:00]SAM_PROTO_GetShiftState [09:30:00]wFMCommunicate request_size=4 [09:30:00]MH_SAM_APDU [09:30:00]CAPDU: 80 13 01 00 [09:30:00]Write to MH i2c: E2 08 00 EA 25 80 13 01 00 00 00 00 00 8C [09:30:00]Write i2c OK [09:30:00]MH_I2C_Read... [09:30:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:30:00]Read from MH i2c: E2 [09:30:00]MH_I2C_Read... [09:30:00]Read from MH i2c: E2 0E 00 [09:30:00]MH_I2C_Read... [09:30:00]Read from MH i2c: E2 0E 00 EA 25 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 F3 [09:30:00]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [09:30:00]wFMCommunicate OK [09:30:00]SAM_PROTO_GetShiftState done [09:30:00]FM_GetShiftState done [09:30:00]opened in 1715991483 [09:30:00]opened+sec_in_day 1716077883 [09:30:00]quantity*price = 30029 [09:30:00]sum+1 = 30030 [09:30:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.29 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.89 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 27 18.05.2024 09:30 Смена: 359 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67788 ФПД: 164816116963038 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T093004&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67788&fm=164816116963038&tin=02508201610067®Number=0000000000091845&sum=30000 [09:30:01]StoreToDocumentArchive [09:30:01]shift 359 fd 67788 [09:30:01]save to /storage/0359/doc_00067788 [09:30:01]save last doc name /storage/0359/doc_00067788 to /storage/kkm_last_doc_name [09:30:01]save OK [09:30:01]Clear old archive folders... [09:30:01]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:30:01]tlvbuf is 01B57550 [09:30:01]SAM_PROTO_ClearQueue [09:30:01]wFMCommunicate request_size=4 [09:30:01]MH_SAM_APDU [09:30:01]CAPDU: 80 09 00 00 [09:30:01]Write to MH i2c: E2 08 00 F7 25 80 09 00 00 00 00 00 00 8E [09:30:01]Write i2c OK [09:30:01]MH_I2C_Read... [09:30:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:30:01]Read from MH i2c: E2 [09:30:01]MH_I2C_Read... [09:30:01]Read from MH i2c: E2 03 00 [09:30:01]MH_I2C_Read... [09:30:01]Read from MH i2c: E2 03 00 F7 25 00 90 00 90 [09:30:01]RAPDU: 90 00 [09:30:01]wFMCommunicate OK [09:30:01]SAM_PROTO_ClearQueue done [09:30:01]KKMCreateOFDPacket [09:30:01]OFDProtocolAddRootSTLVToBuf [09:30:01]FM_MakeSignedData [09:30:01]FM_MakeSignedData [09:30:01]SAM_PROTO_SignData [09:30:01]wFMCommunicate request_size=4 [09:30:01]MH_SAM_APDU [09:30:01]CAPDU: 80 0D 01 02 [09:30:01]Write to MH i2c: E2 08 00 F8 25 80 0D 01 02 00 00 00 00 96 [09:30:01]Write i2c OK [09:30:01]MH_I2C_Read... [09:30:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:30:01]Read from MH i2c: E2 [09:30:01]MH_I2C_Read... [09:30:01]Read from MH i2c: E2 03 00 [09:30:01]MH_I2C_Read... [09:30:01]Read from MH i2c: E2 03 00 F8 25 00 90 00 91 [09:30:01]RAPDU: 90 00 [09:30:01]wFMCommunicate OK [09:30:01]wFMCommunicate request_size=255 [09:30:01]MH_SAM_APDU [09:30:01]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 B4 0F 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 1C 75 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 CC 08 01 00 35 04 06 00 95 E6 3E 1A [09:30:01]Write to MH i2c: E2 02 01 F9 25 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 B4 0F 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 1C 75 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 CC 08 01 00 35 04 06 00 95 E6 3E 1A 00 00 08 [09:30:01]Write i2c OK [09:30:01]MH_I2C_Read... [09:30:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:30:01]Read from MH i2c: E2 [09:30:01]MH_I2C_Read... [09:30:01]Read from MH i2c: E2 03 00 [09:30:01]MH_I2C_Read... [09:30:01]Read from MH i2c: E2 03 00 F9 25 00 90 00 92 [09:30:01]RAPDU: 90 00 [09:30:01]wFMCommunicate OK [09:30:01]wFMCommunicate request_size=7 [09:30:01]MH_SAM_APDU [09:30:01]CAPDU: 80 0D 02 02 02 D6 DE [09:30:01]Write to MH i2c: E2 0A 00 FA 25 80 0D 02 02 02 00 D6 DE 00 00 51 [09:30:01]Write i2c OK [09:30:01]MH_I2C_Read... [09:30:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:30:01]Read from MH i2c: E2 [09:30:01]MH_I2C_Read... [09:30:01]Read from MH i2c: E2 03 00 [09:30:01]MH_I2C_Read... [09:30:01]Read from MH i2c: E2 03 00 FA 25 00 90 00 93 [09:30:01]RAPDU: 90 00 [09:30:01]wFMCommunicate OK [09:30:01]wFMCommunicate request_size=4 [09:30:01]MH_SAM_APDU [09:30:01]CAPDU: 80 0D 03 02 [09:30:01]Write to MH i2c: E2 08 00 FB 25 80 0D 03 02 00 00 00 00 9B [09:30:01]Write i2c OK [09:30:01]MH_I2C_Read... [09:30:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:30:01]Read from MH i2c: E2 [09:30:01]MH_I2C_Read... [09:30:01]Read from MH i2c: E2 0B 00 [09:30:01]MH_I2C_Read... [09:30:01]Read from MH i2c: E2 0B 00 FB 25 00 38 18 9D 1B 4C B4 4B AD 90 00 9C [09:30:01]RAPDU: 38 18 9D 1B 4C B4 4B AD 90 00 [09:30:01]wFMCommunicate OK [09:30:01]SAM_PROTO_SignData done [09:30:01]FM_MakeSignedData done [09:30:01]CreateOFDProtocolMessage [09:30:01]wFMCommunicate request_size=4 [09:30:01]MH_SAM_APDU [09:30:01]CAPDU: 80 11 00 00 [09:30:01]Write to MH i2c: E2 08 00 FC 25 80 11 00 00 00 00 00 00 9B [09:30:01]Write i2c OK [09:30:01]MH_I2C_Read... [09:30:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:30:01]Read from MH i2c: E2 [09:30:01]MH_I2C_Read... [09:30:01]Read from MH i2c: E2 17 00 [09:30:01]MH_I2C_Read... [09:30:01]Read from MH i2c: E2 17 00 FC 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 F1 [09:30:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [09:30:01]wFMCommunicate OK [09:30:01]CreateOFDProtocolMessage done [09:30:01]OFDSenderStorePacket 67788 [09:30:01]StoreOFDPacket docnum=67788 [09:30:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 AC 6E 04 01 F0 CB 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 B4 0F 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 1C 75 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 CC 08 01 00 35 04 06 00 95 E6 3E 1A D6 DE 38 18 9D 1B 4C B4 4B AD [09:30:01]CheckFolder [09:30:01]dirname=/storage/ofd_packets [09:30:01]CheckFolder done [09:30:01]ProducePacketName [09:30:01]name=ofd_packets/00067788 [09:30:01]NVStorageSaveData ofd_packets/00067788 [09:30:01]File name is /storage/ofd_packets/00067788 [09:30:01]Write 298 bytes [09:30:01]NVStorageSaveData done [09:30:01]OFDSenderStorePacket done [09:30:01]KKMCreateOFDPacket done [09:30:01]NVStorageSaveData kkm_last_timestamp [09:30:01]File name is /storage/kkm_last_timestamp [09:30:01]Write 4 bytes [09:30:01]NVStorageSaveData done [09:30:01]ExternCall_PrintAddStr [09:30:01]wPrintStart [09:30:01]Write to MH i2c: 01 00 00 FD 25 22 [09:30:01]Write i2c OK [09:30:01]MH_I2C_Read... [09:30:01]Read from MH i2c: 01 [09:30:01]MH_I2C_Read... [09:30:01]Read from MH i2c: 01 07 00 [09:30:01]MH_I2C_Read... [09:30:01]Read from MH i2c: 01 07 00 FD 25 00 00 00 00 00 FF 0F 37 [09:30:01]RasterBufferAndPrint [09:30:01]line Счет N : (1)507978 [09:30:01]line ИНН: 02508201610067 [09:30:01]line Контрольно-Кассовый Чек [09:30:01]line ПРОДАЖА [09:30:01]line ТРК (МРК, ГНК) : 41 [09:30:01]line Товар: 2710194210 [09:30:01]line ДТ-К-5 [09:30:01]line 4.020 * 74.70 [09:30:01]line = 300.29 [09:30:01]line НДС 12% НСП 1% [09:30:01]line > о реализуемом товаре [09:30:01]line ОКРУГЛЕНИЕ: -0.29 [09:30:01]line ИТОГО: 300.00 [09:30:01]line Внесено: 300.00 [09:30:01]line СДАЧА: 0.00 [09:30:01]line НСП 1% : 2.66 [09:30:01]line НДС 12% : 31.89 [09:30:01]line Наличными: 300.00 [09:30:01]line Безнал.: 0.00 [09:30:01]line Место: АЗС № 91 "Партнер Нефть" [09:30:01]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [09:30:01]line СНО: Общий режим [09:30:01]line Чек 27 18.05.2024 09:30 [09:30:01]line Смена: 359 ФФД: 1.0 [09:30:01]line ЗНМ: 0300000119 [09:30:01]line РНМ: 0000000000091845 [09:30:01]line Версия ККМ: 001 [09:30:01]line ФМ: 0000000000871829 [09:30:01]line ФД: 67788 [09:30:01]line ФПД: 164816116963038 [09:30:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T093004&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67788&fm=164816116963038&tin=02508201610067®Number=0000000000091845&sum=30000 [09:30:02]OFD Sender: Processing packet 67788 [packets to send 35, broken 34] [09:30:02]ProducePacketName [09:30:02]name=ofd_packets/00067788 [09:30:02]OFD Sender: To server: pG, [09:30:02]CommunicateWithHost lk.salyk.kg:30040 [09:30:02]ConnectInit lk.salyk.kg [09:30:02]written 0, free lines is 4095 [09:30:02]Connected sock=10 [09:30:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 AC 6E 04 01 F0 CB 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 B4 0F 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 1C 75 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 CC 08 01 00 35 04 06 00 95 E6 3E 1A D6 DE 38 18 9D 1B 4C B4 4B AD [09:30:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 B3 99 47 00 E0 92 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 CC 08 01 00 F4 03 04 00 F2 1C 48 66 B6 04 01 00 00 9F D4 0F 1D 93 6D 3A 95 [09:30:02]CommunicateWithHost err = 0 [09:30:02]CheckOFDResponse [09:30:02]1017 (14) - 77093643461234 [09:30:02]1041 (16) - 0000000000871829 [09:30:02]1040 (4) - 67788 [09:30:02]1012 (4) - 18.05.2024 03:13 [09:30:02]1206 (1) - 0 [09:30:02]OFD Sender: Remove packet 67788 [09:30:02]ProducePacketName [09:30:02]name=ofd_packets/00067788 [09:30:02]NVStorageDeleteData [09:30:02]Write to MH i2c: 01 00 00 27 26 4D [09:30:02]Write i2c OK [09:30:02]MH_I2C_Read... [09:30:02]Read from MH i2c: 01 [09:30:02]MH_I2C_Read... [09:30:02]Read from MH i2c: 01 07 00 [09:30:02]MH_I2C_Read... [09:30:02]Read from MH i2c: 01 07 00 27 26 00 00 00 00 00 CA 0C 2A [09:30:02]RasterBufferAndPrint [09:30:02]line [09:30:02]line [09:30:02]line [09:30:02]line [09:30:02]line [09:30:02]written 0, free lines is 3281 [09:30:02]MH_Cut [09:30:02]Write to MH i2c: D1 01 00 2E 26 01 26 [09:30:02]Write i2c OK [09:30:02]MH_I2C_Read... [09:30:02]Read from MH i2c: D1 [09:30:02]MH_I2C_Read... [09:30:02]Read from MH i2c: D1 01 00 [09:30:02]MH_I2C_Read... [09:30:02]Read from MH i2c: D1 01 00 2E 26 00 25 [09:30:02]Write to MH i2c: 01 00 00 2F 26 55 [09:30:02]Write i2c OK [09:30:02]MH_I2C_Read... [09:30:02]OFD Sender: No OFD packet to send [09:30:03]*** Cut start [09:30:03]*** Purtial cut [09:30:03]*** Stage 1: CUTSNS_PIN = 1 [09:30:03]Read from MH i2c: 01 [09:30:03]MH_I2C_Read... [09:30:03]*** Stop cut motor [09:30:03]*** Cut end [09:30:03]Read from MH i2c: 01 07 00 [09:30:03]MH_I2C_Read... [09:30:03]Read from MH i2c: 01 07 00 2F 26 00 00 00 00 00 FF 0F 6A [09:30:03]process_action close_receipt done [09:30:03]requested_data is exist [09:30:03]produce_requested_data [09:30:03]requested_item fm.sn is exist - process it [09:30:03]wFMCommunicate request_size=4 [09:30:03]MH_SAM_APDU [09:30:03]CAPDU: 80 11 00 00 [09:30:03]Write to MH i2c: E2 08 00 30 26 80 11 00 00 00 00 00 00 D0 [09:30:03]Write i2c OK [09:30:03]MH_I2C_Read... [09:30:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:30:03]Read from MH i2c: E2 [09:30:03]MH_I2C_Read... [09:30:03]Read from MH i2c: E2 17 00 [09:30:03]MH_I2C_Read... [09:30:03]Read from MH i2c: E2 17 00 30 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 26 [09:30:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [09:30:03]wFMCommunicate OK [09:30:03]requested_item fd.num is exist - process it [09:30:03]SAM_PROTO_GetFieldsCounters [09:30:03]wFMCommunicate request_size=4 [09:30:03]MH_SAM_APDU [09:30:03]CAPDU: 80 13 00 00 [09:30:03]Write to MH i2c: E2 08 00 31 26 80 13 00 00 00 00 00 00 D3 [09:30:03]Write i2c OK [09:30:03]MH_I2C_Read... [09:30:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:30:03]Read from MH i2c: E2 [09:30:03]MH_I2C_Read... [09:30:03]Read from MH i2c: E2 62 00 [09:30:03]MH_I2C_Read... [09:30:03]Read from MH i2c: E2 62 00 31 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 CC 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 87 [09:30:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 CC 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:30:03]wFMCommunicate OK [09:30:03]SAM_PROTO_GetFieldsCounters done [09:30:03]requested_item shift.num is exist - process it [09:30:03]requested_item shift.opened is exist - process it [09:30:03]req_shift_opened [09:30:03]FM_GetShiftState [09:30:03]SAM_PROTO_GetShiftState [09:30:03]wFMCommunicate request_size=4 [09:30:03]MH_SAM_APDU [09:30:03]CAPDU: 80 13 01 00 [09:30:03]Write to MH i2c: E2 08 00 32 26 80 13 01 00 00 00 00 00 D5 [09:30:03]Write i2c OK [09:30:03]MH_I2C_Read... [09:30:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:30:03]Read from MH i2c: E2 [09:30:03]MH_I2C_Read... [09:30:03]Read from MH i2c: E2 0E 00 [09:30:03]MH_I2C_Read... [09:30:04]Read from MH i2c: E2 0E 00 32 26 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 3C [09:30:04]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [09:30:04]wFMCommunicate OK [09:30:04]SAM_PROTO_GetShiftState done [09:30:04]FM_GetShiftState done [09:30:04]req_shift_opened done [09:30:04]requested_item shift.open_date is exist - process it [09:30:04]req_shift_open_date [09:30:04]req_shift_open_date done [09:30:04]produce_requested_data done [09:30:04]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67788,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [09:30:04]process_action_free close_receipt [09:30:04]json_value_free [09:30:04]json_value_free done [09:30:04]process_json_proto returns [09:30:04]Send response to host [09:30:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67788,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [09:30:04]free response buf [09:30:04]execute_script done [09:30:04]execute_script returns [09:30:04]free content buf [09:30:04]Sock 9.Close socket [09:30:04]Sock 9.Thread stoped [09:30:07]OFD Sender: No OFD packet to send [09:30:12]OFD Sender: No OFD packet to send [09:30:17]OFD Sender: No OFD packet to send [09:30:22]OFD Sender: No OFD packet to send [09:30:27]OFD Sender: No OFD packet to send [09:30:32]OFD Sender: No OFD packet to send [09:30:37]OFD Sender: No OFD packet to send [09:30:42]OFD Sender: No OFD packet to send [09:30:47]OFD Sender: No OFD packet to send [09:30:52]OFD Sender: No OFD packet to send [09:30:57]OFD Sender: No OFD packet to send [09:31:02]OFD Sender: No OFD packet to send [09:31:08]OFD Sender: No OFD packet to send [09:31:13]OFD Sender: No OFD packet to send [09:31:18]OFD Sender: No OFD packet to send [09:31:23]OFD Sender: No OFD packet to send [09:31:28]OFD Sender: No OFD packet to send [09:31:33]OFD Sender: No OFD packet to send [09:31:38]OFD Sender: No OFD packet to send [09:31:43]OFD Sender: No OFD packet to send [09:31:48]OFD Sender: No OFD packet to send [09:31:53]OFD Sender: No OFD packet to send [09:31:58]OFD Sender: No OFD packet to send [09:32:03]OFD Sender: No OFD packet to send [09:32:08]OFD Sender: No OFD packet to send [09:32:10]accept exits with 7 [09:32:10]New connection [09:32:10]New thread 3066752356 created [09:32:10]Thread 3066608996 joined [09:32:10]Waiting for new connection... [09:32:10] Sock 7.Parse request [09:32:10]Sock 7.Check first char [09:32:10]Sock 7.First char is OK [09:32:10]request: POST /json_proto HTTP/1.0 [09:32:10]Method: POST [09:32:10]URL: /json_proto [09:32:10]Method is POST - this is cgi request [09:32:10]url: /json_proto [09:32:10]query_string will be loaded in cgi processing [09:32:10]execute_cgi json_proto POST (null) [09:32:10]execute_cgi path=json_proto method=POST [09:32:10]POST find Content-Length [09:32:10]Host: 172.17.41.195:8080 [09:32:10]Content-Length: 1209 [09:32:10]Content-Type: application/json [09:32:10] [09:32:10]POST finish read [09:32:10]Found Content-Length = 1209 [09:32:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0440\u0441\u0442\u0430\u043D\u0431\u0435\u043A\u043E\u0432 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)507979\u000A18.05.2024 09:14\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 19.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 1419.30\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:32:10]execute_script... [09:32:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0440\u0441\u0442\u0430\u043D\u0431\u0435\u043A\u043E\u0432 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)507979\u000A18.05.2024 09:14\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 19.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 1419.30\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:32:10]POST & json_proto [09:32:10]process_json_proto [09:32:10]json parsed OK: [09:32:10]protocol is kg_v1.0 [09:32:10]action value=print_text [09:32:10]process_action print_text [09:32:10]cmd_print_text [09:32:10]ExternCall_PrintAddStr [09:32:10]wPrintStart [09:32:10]Write to MH i2c: 01 00 00 33 26 59 [09:32:10]Write i2c OK [09:32:10]MH_I2C_Read... [09:32:10]Read from MH i2c: 01 [09:32:10]MH_I2C_Read... [09:32:10]Read from MH i2c: 01 07 00 [09:32:10]MH_I2C_Read... [09:32:10]Read from MH i2c: 01 07 00 33 26 00 00 00 00 00 FF 0F 6E [09:32:10]RasterBufferAndPrint [09:32:10]line *****ТОВАРНЫЙ ЧЕК***** [09:32:10]line АЗС-91 [09:32:10]line Партнер нефть [09:32:10]line 02508201610067 [09:32:10]line Кассир : Арстанбеков Н. [09:32:10]line Счет N : (1)507979 [09:32:10]line 18.05.2024 09:14 [09:32:10]line ПРОДАЖА [09:32:10]line ТРК (МРК, ГНК): 21 [09:32:10]line Вид ГСМ : 2710194210 [09:32:10]line ДТ-К-5 [09:32:10]line 19.000 x 74.70 [09:32:10]line ИТОГ: 1419.30 [09:32:10]line Тип оплаты: Талоны: Топливная Карта [09:32:10]line 02750 [09:32:10]line ______________________ [09:32:10]line (подпись) [09:32:10]written 0, free lines is 4095 [09:32:10]Write to MH i2c: 01 00 00 47 26 6D [09:32:10]Write i2c OK [09:32:10]MH_I2C_Read... [09:32:10]Read from MH i2c: 01 [09:32:10]MH_I2C_Read... [09:32:10]Read from MH i2c: 01 07 00 [09:32:10]MH_I2C_Read... [09:32:10]Read from MH i2c: 01 07 00 47 26 00 00 00 00 00 10 0E 92 [09:32:10]RasterBufferAndPrint [09:32:10]line [09:32:10]line [09:32:10]line [09:32:10]line [09:32:10]line [09:32:10]written 0, free lines is 3601 [09:32:10]MH_Cut [09:32:10]Write to MH i2c: D1 01 00 4E 26 01 46 [09:32:10]Write i2c OK [09:32:10]MH_I2C_Read... [09:32:10]Read from MH i2c: D1 [09:32:10]MH_I2C_Read... [09:32:10]Read from MH i2c: D1 01 00 [09:32:10]MH_I2C_Read... [09:32:10]Read from MH i2c: D1 01 00 4E 26 00 45 [09:32:10]Write to MH i2c: 01 00 00 4F 26 75 [09:32:10]Write i2c OK [09:32:10]MH_I2C_Read... [09:32:11]*** Cut start [09:32:11]*** Purtial cut [09:32:11]*** CUTSNS_PIN = 0 [09:32:11]*** Stage 1: CUTSNS_PIN = 1 [09:32:13]OFD Sender: No OFD packet to send [09:32:13]Read from MH i2c: 01 [09:32:13]MH_I2C_Read... [09:32:13]Read from MH i2c: 01 07 00 [09:32:13]MH_I2C_Read... [09:32:13]*** Stop cut motor [09:32:13]*** Cut end [09:32:13]Read from MH i2c: 01 07 00 4F 26 00 00 00 00 00 FF 0F 8A [09:32:13]process_action print_text done [09:32:13]requested_data is exist [09:32:13]produce_requested_data [09:32:13]requested_item fm.sn is exist - process it [09:32:13]wFMCommunicate request_size=4 [09:32:13]MH_SAM_APDU [09:32:13]CAPDU: 80 11 00 00 [09:32:13]Write to MH i2c: E2 08 00 50 26 80 11 00 00 00 00 00 00 F0 [09:32:13]Write i2c OK [09:32:13]MH_I2C_Read... [09:32:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:32:13]Read from MH i2c: E2 [09:32:13]MH_I2C_Read... [09:32:13]Read from MH i2c: E2 17 00 [09:32:13]MH_I2C_Read... [09:32:13]Read from MH i2c: E2 17 00 50 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 46 [09:32:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [09:32:13]wFMCommunicate OK [09:32:13]requested_item fd.num is exist - process it [09:32:13]SAM_PROTO_GetFieldsCounters [09:32:13]wFMCommunicate request_size=4 [09:32:13]MH_SAM_APDU [09:32:13]CAPDU: 80 13 00 00 [09:32:13]Write to MH i2c: E2 08 00 51 26 80 13 00 00 00 00 00 00 F3 [09:32:13]Write i2c OK [09:32:13]MH_I2C_Read... [09:32:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:32:13]Read from MH i2c: E2 [09:32:13]MH_I2C_Read... [09:32:13]Read from MH i2c: E2 62 00 [09:32:13]MH_I2C_Read... [09:32:13]Read from MH i2c: E2 62 00 51 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 CC 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 A7 [09:32:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 CC 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:32:13]wFMCommunicate OK [09:32:13]SAM_PROTO_GetFieldsCounters done [09:32:13]requested_item shift.num is exist - process it [09:32:13]requested_item shift.opened is exist - process it [09:32:13]req_shift_opened [09:32:13]FM_GetShiftState [09:32:13]SAM_PROTO_GetShiftState [09:32:13]wFMCommunicate request_size=4 [09:32:13]MH_SAM_APDU [09:32:13]CAPDU: 80 13 01 00 [09:32:13]Write to MH i2c: E2 08 00 52 26 80 13 01 00 00 00 00 00 F5 [09:32:13]Write i2c OK [09:32:13]MH_I2C_Read... [09:32:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:32:13]Read from MH i2c: E2 [09:32:13]MH_I2C_Read... [09:32:13]Read from MH i2c: E2 0E 00 [09:32:13]MH_I2C_Read... [09:32:13]Read from MH i2c: E2 0E 00 52 26 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 5C [09:32:13]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [09:32:13]wFMCommunicate OK [09:32:13]SAM_PROTO_GetShiftState done [09:32:13]FM_GetShiftState done [09:32:13]req_shift_opened done [09:32:13]requested_item shift.open_date is exist - process it [09:32:13]req_shift_open_date [09:32:13]req_shift_open_date done [09:32:13]produce_requested_data done [09:32:13]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67788,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [09:32:13]process_action_free print_text [09:32:13]json_value_free [09:32:13]json_value_free done [09:32:13]process_json_proto returns [09:32:13]Send response to host [09:32:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67788,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [09:32:13]free response buf [09:32:13]execute_script done [09:32:13]execute_script returns [09:32:13]free content buf [09:32:13]Sock 7.Close socket [09:32:13]Sock 7.Thread stoped [09:32:18]OFD Sender: No OFD packet to send [09:32:23]OFD Sender: No OFD packet to send [09:32:28]OFD Sender: No OFD packet to send [09:32:33]OFD Sender: No OFD packet to send [09:32:38]OFD Sender: No OFD packet to send [09:32:43]OFD Sender: No OFD packet to send [09:32:48]OFD Sender: No OFD packet to send [09:32:53]OFD Sender: No OFD packet to send [09:32:58]OFD Sender: No OFD packet to send [09:33:03]OFD Sender: No OFD packet to send [09:33:08]OFD Sender: No OFD packet to send [09:33:13]OFD Sender: No OFD packet to send [09:33:18]OFD Sender: No OFD packet to send [09:33:23]OFD Sender: No OFD packet to send [09:33:28]OFD Sender: No OFD packet to send [09:33:33]OFD Sender: No OFD packet to send [09:33:36]accept exits with 9 [09:33:36]New connection [09:33:36]New thread 3066608996 created [09:33:36]Thread 3066752356 joined [09:33:36]Waiting for new connection... [09:33:36] Sock 9.Parse request [09:33:36]Sock 9.Check first char [09:33:36]Sock 9.First char is OK [09:33:36]request: POST /json_proto HTTP/1.0 [09:33:36]Method: POST [09:33:36]URL: /json_proto [09:33:36]Method is POST - this is cgi request [09:33:36]url: /json_proto [09:33:36]query_string will be loaded in cgi processing [09:33:36]execute_cgi json_proto POST (null) [09:33:36]execute_cgi path=json_proto method=POST [09:33:36]POST find Content-Length [09:33:36]Host: 172.17.41.195:8080 [09:33:36]Content-Length: 1209 [09:33:36]Content-Type: application/json [09:33:36] [09:33:36]POST finish read [09:33:36]Found Content-Length = 1209 [09:33:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0440\u0441\u0442\u0430\u043D\u0431\u0435\u043A\u043E\u0432 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)507980\u000A18.05.2024 09:16\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 41\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 24.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 1792.80\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:33:36]execute_script... [09:33:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0440\u0441\u0442\u0430\u043D\u0431\u0435\u043A\u043E\u0432 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)507980\u000A18.05.2024 09:16\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 41\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 24.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 1792.80\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:33:36]POST & json_proto [09:33:36]process_json_proto [09:33:36]json parsed OK: [09:33:36]protocol is kg_v1.0 [09:33:36]action value=print_text [09:33:36]process_action print_text [09:33:36]cmd_print_text [09:33:36]ExternCall_PrintAddStr [09:33:36]wPrintStart [09:33:36]Write to MH i2c: 01 00 00 53 26 79 [09:33:36]Write i2c OK [09:33:36]MH_I2C_Read... [09:33:36]Read from MH i2c: 01 [09:33:36]MH_I2C_Read... [09:33:36]Read from MH i2c: 01 07 00 [09:33:36]MH_I2C_Read... [09:33:36]Read from MH i2c: 01 07 00 53 26 00 00 00 00 00 FF 0F 8E [09:33:36]RasterBufferAndPrint [09:33:36]line *****ТОВАРНЫЙ ЧЕК***** [09:33:36]line АЗС-91 [09:33:36]line Партнер нефть [09:33:36]line 02508201610067 [09:33:36]line Кассир : Арстанбеков Н. [09:33:36]line Счет N : (1)507980 [09:33:36]line 18.05.2024 09:16 [09:33:36]line ПРОДАЖА [09:33:36]line ТРК (МРК, ГНК): 41 [09:33:36]line Вид ГСМ : 2710194210 [09:33:36]line ДТ-К-5 [09:33:36]line 24.000 x 74.70 [09:33:36]line ИТОГ: 1792.80 [09:33:36]line Тип оплаты: Талоны: Топливная Карта [09:33:36]line 02750 [09:33:36]line ______________________ [09:33:36]line (подпись) [09:33:36]written 0, free lines is 4095 [09:33:36]Write to MH i2c: 01 00 00 67 26 8D [09:33:36]Write i2c OK [09:33:36]MH_I2C_Read... [09:33:36]Read from MH i2c: 01 [09:33:36]MH_I2C_Read... [09:33:36]Read from MH i2c: 01 07 00 [09:33:36]MH_I2C_Read... [09:33:36]Read from MH i2c: 01 07 00 67 26 00 00 00 00 00 10 0E B2 [09:33:36]RasterBufferAndPrint [09:33:36]line [09:33:36]line [09:33:36]line [09:33:36]line [09:33:36]line [09:33:36]written 0, free lines is 3602 [09:33:36]MH_Cut [09:33:36]Write to MH i2c: D1 01 00 6E 26 01 66 [09:33:36]Write i2c OK [09:33:36]MH_I2C_Read... [09:33:36]Read from MH i2c: D1 [09:33:36]MH_I2C_Read... [09:33:36]Read from MH i2c: D1 01 00 [09:33:36]MH_I2C_Read... [09:33:36]Read from MH i2c: D1 01 00 6E 26 00 65 [09:33:36]Write to MH i2c: 01 00 00 6F 26 95 [09:33:36]Write i2c OK [09:33:36]MH_I2C_Read... [09:33:37]*** Cut start [09:33:37]*** Purtial cut [09:33:37]*** Stage 1: CUTSNS_PIN = 1 [09:33:37]Read from MH i2c: 01 [09:33:37]MH_I2C_Read... [09:33:37]*** Stop cut motor [09:33:37]*** Cut end [09:33:37]Read from MH i2c: 01 07 00 [09:33:37]MH_I2C_Read... [09:33:37]Read from MH i2c: 01 07 00 6F 26 00 00 00 00 00 FF 0F AA [09:33:37]process_action print_text done [09:33:37]requested_data is exist [09:33:37]produce_requested_data [09:33:37]requested_item fm.sn is exist - process it [09:33:37]wFMCommunicate request_size=4 [09:33:37]MH_SAM_APDU [09:33:37]CAPDU: 80 11 00 00 [09:33:37]Write to MH i2c: E2 08 00 70 26 80 11 00 00 00 00 00 00 10 [09:33:37]Write i2c OK [09:33:37]MH_I2C_Read... [09:33:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:33:37]Read from MH i2c: E2 [09:33:37]MH_I2C_Read... [09:33:37]Read from MH i2c: E2 17 00 [09:33:37]MH_I2C_Read... [09:33:37]Read from MH i2c: E2 17 00 70 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 66 [09:33:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [09:33:37]wFMCommunicate OK [09:33:37]requested_item fd.num is exist - process it [09:33:37]SAM_PROTO_GetFieldsCounters [09:33:37]wFMCommunicate request_size=4 [09:33:37]MH_SAM_APDU [09:33:37]CAPDU: 80 13 00 00 [09:33:37]Write to MH i2c: E2 08 00 71 26 80 13 00 00 00 00 00 00 13 [09:33:37]Write i2c OK [09:33:37]MH_I2C_Read... [09:33:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:33:37]Read from MH i2c: E2 [09:33:37]MH_I2C_Read... [09:33:37]Read from MH i2c: E2 62 00 [09:33:37]MH_I2C_Read... [09:33:37]Read from MH i2c: E2 62 00 71 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 CC 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 C7 [09:33:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 CC 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:33:37]wFMCommunicate OK [09:33:37]SAM_PROTO_GetFieldsCounters done [09:33:37]requested_item shift.num is exist - process it [09:33:37]requested_item shift.opened is exist - process it [09:33:37]req_shift_opened [09:33:37]FM_GetShiftState [09:33:37]SAM_PROTO_GetShiftState [09:33:37]wFMCommunicate request_size=4 [09:33:37]MH_SAM_APDU [09:33:37]CAPDU: 80 13 01 00 [09:33:37]Write to MH i2c: E2 08 00 72 26 80 13 01 00 00 00 00 00 15 [09:33:37]Write i2c OK [09:33:37]MH_I2C_Read... [09:33:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:33:37]Read from MH i2c: E2 [09:33:37]MH_I2C_Read... [09:33:37]Read from MH i2c: E2 0E 00 [09:33:37]MH_I2C_Read... [09:33:37]Read from MH i2c: E2 0E 00 72 26 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 7C [09:33:37]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [09:33:37]wFMCommunicate OK [09:33:37]SAM_PROTO_GetShiftState done [09:33:37]FM_GetShiftState done [09:33:37]req_shift_opened done [09:33:37]requested_item shift.open_date is exist - process it [09:33:37]req_shift_open_date [09:33:37]req_shift_open_date done [09:33:37]produce_requested_data done [09:33:37]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67788,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [09:33:37]process_action_free print_text [09:33:37]json_value_free [09:33:37]json_value_free done [09:33:37]process_json_proto returns [09:33:37]Send response to host [09:33:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67788,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [09:33:37]free response buf [09:33:37]execute_script done [09:33:37]execute_script returns [09:33:37]free content buf [09:33:37]Sock 9.Close socket [09:33:37]Sock 9.Thread stoped [09:33:38]OFD Sender: No OFD packet to send [09:33:43]OFD Sender: No OFD packet to send [09:33:48]OFD Sender: No OFD packet to send [09:33:53]OFD Sender: No OFD packet to send [09:33:58]OFD Sender: No OFD packet to send [09:34:03]OFD Sender: No OFD packet to send [09:34:08]OFD Sender: No OFD packet to send [09:34:13]OFD Sender: No OFD packet to send [09:34:18]OFD Sender: No OFD packet to send [09:34:23]OFD Sender: No OFD packet to send [09:34:28]OFD Sender: No OFD packet to send [09:34:33]OFD Sender: No OFD packet to send [09:34:38]OFD Sender: No OFD packet to send [09:34:43]OFD Sender: No OFD packet to send [09:34:48]OFD Sender: No OFD packet to send [09:34:53]OFD Sender: No OFD packet to send [09:34:58]OFD Sender: No OFD packet to send [09:35:03]OFD Sender: No OFD packet to send [09:35:03]accept exits with 7 [09:35:03]New connection [09:35:03]New thread 3066752356 created [09:35:03]Thread 3066608996 joined [09:35:03]Waiting for new connection... [09:35:03] Sock 7.Parse request [09:35:03]Sock 7.Check first char [09:35:03]Sock 7.First char is OK [09:35:03]request: POST /json_proto HTTP/1.0 [09:35:03]Method: POST [09:35:03]URL: /json_proto [09:35:03]Method is POST - this is cgi request [09:35:03]url: /json_proto [09:35:03]query_string will be loaded in cgi processing [09:35:03]execute_cgi json_proto POST (null) [09:35:03]execute_cgi path=json_proto method=POST [09:35:03]POST find Content-Length [09:35:03]Host: 172.17.41.195:8080 [09:35:03]Content-Length: 215 [09:35:03]Content-Type: application/json [09:35:03] [09:35:03]POST finish read [09:35:03]Found Content-Length = 215 [09:35:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:35:03]execute_script... [09:35:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:35:03]POST & json_proto [09:35:03]process_json_proto [09:35:03]json parsed OK: [09:35:03]protocol is kg_v1.0 [09:35:03]action value=get_value [09:35:03]process_action get_value [09:35:03]cmd_get_value [09:35:03]process_action get_value done [09:35:03]requested_data is exist [09:35:03]produce_requested_data [09:35:03]requested_item kkm.sn is exist - process it [09:35:03]requested_item kkm.ver is exist - process it [09:35:03]requested_item fm.sn is exist - process it [09:35:03]wFMCommunicate request_size=4 [09:35:03]MH_SAM_APDU [09:35:03]CAPDU: 80 11 00 00 [09:35:03]Write to MH i2c: E2 08 00 73 26 80 11 00 00 00 00 00 00 13 [09:35:03]Write i2c OK [09:35:03]MH_I2C_Read... [09:35:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:35:03]Read from MH i2c: E2 [09:35:03]MH_I2C_Read... [09:35:03]Read from MH i2c: E2 17 00 [09:35:03]MH_I2C_Read... [09:35:03]Read from MH i2c: E2 17 00 73 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 69 [09:35:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [09:35:03]wFMCommunicate OK [09:35:03]requested_item fd.num is exist - process it [09:35:03]SAM_PROTO_GetFieldsCounters [09:35:03]wFMCommunicate request_size=4 [09:35:03]MH_SAM_APDU [09:35:03]CAPDU: 80 13 00 00 [09:35:03]Write to MH i2c: E2 08 00 74 26 80 13 00 00 00 00 00 00 16 [09:35:03]Write i2c OK [09:35:03]MH_I2C_Read... [09:35:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:35:03]Read from MH i2c: E2 [09:35:03]MH_I2C_Read... [09:35:03]Read from MH i2c: E2 62 00 [09:35:03]MH_I2C_Read... [09:35:03]Read from MH i2c: E2 62 00 74 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 CC 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 CA [09:35:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 CC 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:35:03]wFMCommunicate OK [09:35:03]SAM_PROTO_GetFieldsCounters done [09:35:03]requested_item shift.num is exist - process it [09:35:03]requested_item shift.opened is exist - process it [09:35:03]req_shift_opened [09:35:03]FM_GetShiftState [09:35:03]SAM_PROTO_GetShiftState [09:35:03]wFMCommunicate request_size=4 [09:35:03]MH_SAM_APDU [09:35:03]CAPDU: 80 13 01 00 [09:35:03]Write to MH i2c: E2 08 00 75 26 80 13 01 00 00 00 00 00 18 [09:35:03]Write i2c OK [09:35:03]MH_I2C_Read... [09:35:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:35:03]Read from MH i2c: E2 [09:35:03]MH_I2C_Read... [09:35:03]Read from MH i2c: E2 0E 00 [09:35:03]MH_I2C_Read... [09:35:03]Read from MH i2c: E2 0E 00 75 26 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 7F [09:35:03]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [09:35:03]wFMCommunicate OK [09:35:03]SAM_PROTO_GetShiftState done [09:35:03]FM_GetShiftState done [09:35:03]req_shift_opened done [09:35:03]requested_item shift.open_date is exist - process it [09:35:03]req_shift_open_date [09:35:03]req_shift_open_date done [09:35:03]produce_requested_data done [09:35:03]produce_requested_data return {"kkm.sn":"0300000119","kkm.ver":"001","fm.sn":"0000000000871829","fd.num":67788,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [09:35:03]process_action_free get_value [09:35:03]json_value_free [09:35:03]json_value_free done [09:35:03]process_json_proto returns [09:35:03]Send response to host [09:35:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000119","kkm.ver":"001","fm.sn":"0000000000871829","fd.num":67788,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [09:35:03]free response buf [09:35:03]execute_script done [09:35:03]execute_script returns [09:35:03]free content buf [09:35:03]Sock 7.Close socket [09:35:03]Sock 7.Thread stoped [09:35:03]accept exits with 10 [09:35:03]New connection [09:35:03]New thread 3066608996 created [09:35:03]Thread 3066752356 joined [09:35:03]Waiting for new connection... [09:35:03] Sock 10.Parse request [09:35:03]Sock 10.Check first char [09:35:03]Sock 10.First char is OK [09:35:03]request: POST /json_proto HTTP/1.0 [09:35:03]Method: POST [09:35:03]URL: /json_proto [09:35:03]Method is POST - this is cgi request [09:35:03]url: /json_proto [09:35:03]query_string will be loaded in cgi processing [09:35:03]execute_cgi json_proto POST (null) [09:35:03]execute_cgi path=json_proto method=POST [09:35:03]POST find Content-Length [09:35:03]Host: 172.17.41.195:8080 [09:35:03]Content-Length: 331 [09:35:03]Content-Type: application/json [09:35:03] [09:35:03]POST finish read [09:35:03]Found Content-Length = 331 [09:35:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [09:35:03]execute_script... [09:35:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [09:35:04]POST & json_proto [09:35:04]process_json_proto [09:35:04]json parsed OK: [09:35:04]protocol is kg_v1.0 [09:35:04]action value=get_value [09:35:04]process_action get_value [09:35:04]cmd_get_value [09:35:04]process_action get_value done [09:35:04]requested_data is exist [09:35:04]produce_requested_data [09:35:04]requested_item fm.sale.total is exist - process it [09:35:04]SAM_PROTO_GetFMData [09:35:04]wFMCommunicate request_size=4 [09:35:04]MH_SAM_APDU [09:35:04]CAPDU: 80 13 03 00 [09:35:04]Write to MH i2c: E2 08 00 76 26 80 13 03 00 00 00 00 00 1B [09:35:04]Write i2c OK [09:35:04]MH_I2C_Read... [09:35:04]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [09:35:04]Read from MH i2c: E2 [09:35:04]MH_I2C_Read... [09:35:04]Read from MH i2c: E2 FD 00 [09:35:04]MH_I2C_Read... [09:35:04]Read from MH i2c: E2 FD 00 76 26 00 C6 04 85 04 C2 04 6E 04 04 00 FE 05 01 00 69 04 A3 00 6F 04 04 00 54 05 01 00 B1 04 05 00 7A 89 B8 1D 03 70 04 05 00 0C 01 D5 C0 02 72 04 04 00 6E 88 E3 5C 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 B5 AF B9 54 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 B8 64 0F 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9D 00 6F 04 04 00 AA 00 00 00 B1 04 04 00 00 23 C3 DC 70 04 04 00 00 23 C3 DC 72 04 00 00 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 DD 9D 71 17 EF 03 09 90 00 28 [09:35:04]RAPDU: C6 04 85 04 C2 04 6E 04 04 00 FE 05 01 00 69 04 A3 00 6F 04 04 00 54 05 01 00 B1 04 05 00 7A 89 B8 1D 03 70 04 05 00 0C 01 D5 C0 02 72 04 04 00 6E 88 E3 5C 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 B5 AF B9 54 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 B8 64 0F 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9D 00 6F 04 04 00 AA 00 00 00 B1 04 04 00 00 23 C3 DC 70 04 04 00 00 23 C3 DC 72 04 00 00 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 DD 9D 71 17 EF 03 09 90 00 [09:35:04]wFMCommunicate OK [09:35:04]wFMCommunicate request_size=4 [09:35:04]MH_SAM_APDU [09:35:04]CAPDU: 80 17 00 00 [09:35:04]Write to MH i2c: E2 08 00 77 26 80 17 00 00 00 00 00 00 1D [09:35:04]Write i2c OK [09:35:04]MH_I2C_Read... [09:35:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:35:04]Read from MH i2c: E2 [09:35:04]MH_I2C_Read... [09:35:04]Read from MH i2c: E2 FD 00 [09:35:04]MH_I2C_Read... [09:35:04]Read from MH i2c: E2 FD 00 77 26 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 70 22 F4 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 90 00 58 [09:35:04]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 70 22 F4 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 90 00 [09:35:04]wFMCommunicate OK [09:35:04]wFMCommunicate request_size=4 [09:35:04]MH_SAM_APDU [09:35:04]CAPDU: 80 17 00 00 [09:35:04]Write to MH i2c: E2 08 00 78 26 80 17 00 00 00 00 00 00 1E [09:35:04]Write i2c OK [09:35:04]MH_I2C_Read... [09:35:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:35:05]Read from MH i2c: E2 [09:35:05]MH_I2C_Read... [09:35:05]Read from MH i2c: E2 FD 00 [09:35:05]MH_I2C_Read... [09:35:05]Read from MH i2c: E2 FD 00 78 26 00 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 90 00 45 [09:35:05]RAPDU: 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 90 00 [09:35:05]wFMCommunicate OK [09:35:05]wFMCommunicate request_size=4 [09:35:05]MH_SAM_APDU [09:35:05]CAPDU: 80 17 00 00 [09:35:05]Write to MH i2c: E2 08 00 79 26 80 17 00 00 00 00 00 00 1F [09:35:05]Write i2c OK [09:35:05]MH_I2C_Read... [09:35:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:35:05]Read from MH i2c: E2 [09:35:05]MH_I2C_Read... [09:35:05]Read from MH i2c: E2 FD 00 [09:35:05]MH_I2C_Read... [09:35:05]Read from MH i2c: E2 FD 00 79 26 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 9A [09:35:05]RAPDU: EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 [09:35:05]wFMCommunicate OK [09:35:05]wFMCommunicate request_size=4 [09:35:05]MH_SAM_APDU [09:35:05]CAPDU: 80 17 00 00 [09:35:05]Write to MH i2c: E2 08 00 7A 26 80 17 00 00 00 00 00 00 20 [09:35:05]Write i2c OK [09:35:05]MH_I2C_Read... [09:35:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 224! [09:35:05]Read from MH i2c: E2 [09:35:05]MH_I2C_Read... [09:35:05]Read from MH i2c: E2 E3 00 [09:35:05]MH_I2C_Read... [09:35:05]Read from MH i2c: E2 E3 00 7A 26 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 FF [09:35:05]RAPDU: 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [09:35:05]wFMCommunicate OK [09:35:05]SAM_PROTO_GetFMData done [09:35:05]requested_item fm.sale_refund.total is exist - process it [09:35:05]requested_item fm.buy.total is exist - process it [09:35:05]requested_item shift.sale.total is exist - process it [09:35:05]SAM_PROTO_GetShiftData [09:35:05]wFMCommunicate request_size=4 [09:35:05]MH_SAM_APDU [09:35:05]CAPDU: 80 13 02 00 [09:35:05]Write to MH i2c: E2 08 00 7B 26 80 13 02 00 00 00 00 00 1F [09:35:05]Write i2c OK [09:35:05]MH_I2C_Read... [09:35:06]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [09:35:06]Read from MH i2c: E2 [09:35:06]MH_I2C_Read... [09:35:06]Read from MH i2c: E2 FD 00 [09:35:06]MH_I2C_Read... [09:35:06]Read from MH i2c: E2 FD 00 7B 26 00 AE 04 AA 04 AA 04 6E 04 04 00 1B 00 00 00 69 04 9B 00 6F 04 04 00 1B 00 00 00 B1 04 03 00 EE 98 29 70 04 03 00 50 0C 12 72 04 03 00 9E 8C 17 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 11 6B 04 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 3E 5E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 90 [09:35:06]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 1B 00 00 00 69 04 9B 00 6F 04 04 00 1B 00 00 00 B1 04 03 00 EE 98 29 70 04 03 00 50 0C 12 72 04 03 00 9E 8C 17 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 11 6B 04 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 3E 5E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [09:35:06]wFMCommunicate OK [09:35:06]wFMCommunicate request_size=4 [09:35:06]MH_SAM_APDU [09:35:06]CAPDU: 80 17 00 00 [09:35:06]Write to MH i2c: E2 08 00 7C 26 80 17 00 00 00 00 00 00 22 [09:35:06]Write i2c OK [09:35:06]MH_I2C_Read... [09:35:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:35:06]Read from MH i2c: E2 [09:35:06]MH_I2C_Read... [09:35:06]Read from MH i2c: E2 FD 00 [09:35:06]MH_I2C_Read... [09:35:06]Read from MH i2c: E2 FD 00 7C 26 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 44 [09:35:06]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [09:35:06]wFMCommunicate OK [09:35:06]wFMCommunicate request_size=4 [09:35:06]MH_SAM_APDU [09:35:06]CAPDU: 80 17 00 00 [09:35:06]Write to MH i2c: E2 08 00 7D 26 80 17 00 00 00 00 00 00 23 [09:35:06]Write i2c OK [09:35:06]MH_I2C_Read... [09:35:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:35:06]Read from MH i2c: E2 [09:35:06]MH_I2C_Read... [09:35:06]Read from MH i2c: E2 FD 00 [09:35:06]MH_I2C_Read... [09:35:06]Read from MH i2c: E2 FD 00 7D 26 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 DA [09:35:06]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [09:35:06]wFMCommunicate OK [09:35:06]wFMCommunicate request_size=4 [09:35:06]MH_SAM_APDU [09:35:06]CAPDU: 80 17 00 00 [09:35:06]Write to MH i2c: E2 08 00 7E 26 80 17 00 00 00 00 00 00 24 [09:35:06]Write i2c OK [09:35:06]MH_I2C_Read... [09:35:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:35:07]Read from MH i2c: E2 [09:35:07]MH_I2C_Read... [09:35:07]Read from MH i2c: E2 FD 00 [09:35:07]MH_I2C_Read... [09:35:07]Read from MH i2c: E2 FD 00 7E 26 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 96 [09:35:07]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [09:35:07]wFMCommunicate OK [09:35:07]wFMCommunicate request_size=4 [09:35:07]MH_SAM_APDU [09:35:07]CAPDU: 80 17 00 00 [09:35:07]Write to MH i2c: E2 08 00 7F 26 80 17 00 00 00 00 00 00 25 [09:35:07]Write i2c OK [09:35:07]MH_I2C_Read... [09:35:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [09:35:07]Read from MH i2c: E2 [09:35:07]MH_I2C_Read... [09:35:07]Read from MH i2c: E2 CB 00 [09:35:07]MH_I2C_Read... [09:35:07]Read from MH i2c: E2 CB 00 7F 26 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 0E [09:35:07]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [09:35:07]wFMCommunicate OK [09:35:07]SAM_PROTO_GetShiftData done [09:35:07]requested_item shift.sale.total_cash is exist - process it [09:35:07]requested_item shift.sale_refund.total is exist - process it [09:35:07]requested_item shift.sale_refund.total_cash is exist - process it [09:35:07]requested_item shift.buy.total is exist - process it [09:35:07]requested_item shift.buy.total_cash is exist - process it [09:35:07]produce_requested_data done [09:35:07]produce_requested_data return {"fm.sale.total":133835349.70,"fm.sale_refund.total":37037760.00,"fm.buy.total":0.00,"shift.sale.total":27261.26,"shift.sale.total_cash":11828.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [09:35:07]process_action_free get_value [09:35:07]json_value_free [09:35:07]json_value_free done [09:35:07]process_json_proto returns [09:35:07]Send response to host [09:35:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":133835349.70,"fm.sale_refund.total":37037760.00,"fm.buy.total":0.00,"shift.sale.total":27261.26,"shift.sale.total_cash":11828.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [09:35:07]free response buf [09:35:07]execute_script done [09:35:07]execute_script returns [09:35:07]free content buf [09:35:07]Sock 10.Close socket [09:35:07]Sock 10.Thread stoped [09:35:08]OFD Sender: No OFD packet to send [09:35:13]OFD Sender: No OFD packet to send [09:35:18]OFD Sender: No OFD packet to send [09:35:23]OFD Sender: No OFD packet to send [09:35:28]OFD Sender: No OFD packet to send [09:35:33]OFD Sender: No OFD packet to send [09:35:38]OFD Sender: No OFD packet to send [09:35:43]OFD Sender: No OFD packet to send [09:35:48]OFD Sender: No OFD packet to send [09:35:50]accept exits with 7 [09:35:50]New connection [09:35:50]New thread 3066752356 created [09:35:50]Thread 3066608996 joined [09:35:50]Waiting for new connection... [09:35:50] Sock 7.Parse request [09:35:50]Sock 7.Check first char [09:35:50]Sock 7.First char is OK [09:35:50]request: POST /json_proto HTTP/1.0 [09:35:50]Method: POST [09:35:50]URL: /json_proto [09:35:50]Method is POST - this is cgi request [09:35:50]url: /json_proto [09:35:50]query_string will be loaded in cgi processing [09:35:50]execute_cgi json_proto POST (null) [09:35:50]execute_cgi path=json_proto method=POST [09:35:50]POST find Content-Length [09:35:50]Host: 172.17.41.195:8080 [09:35:50]Content-Length: 674 [09:35:50]Content-Type: application/json [09:35:50] [09:35:50]POST finish read [09:35:50]Found Content-Length = 674 [09:35:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507982", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 5.360, "sum" : 400.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:35:50]execute_script... [09:35:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507982", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 5.360, "sum" : 400.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:35:50]POST & json_proto [09:35:50]process_json_proto [09:35:50]json parsed OK: [09:35:50]protocol is kg_v1.0 [09:35:50]action value=close_receipt [09:35:50]process_action close_receipt [09:35:50]cmd_close_receipt [09:35:50]MH_GetDate [09:35:50]Write to MH i2c: F0 00 00 80 26 95 [09:35:50]Write i2c OK [09:35:50]MH_I2C_Read... [09:35:50]Read from MH i2c: F0 [09:35:50]MH_I2C_Read... [09:35:50]Read from MH i2c: F0 09 00 [09:35:50]MH_I2C_Read... [09:35:50]Read from MH i2c: F0 09 00 80 26 00 7B 76 48 66 FC 21 6F 64 2D [09:35:50]GetLastDocTimeStamp 1716024604 [09:35:50]current date 1716024955 [09:35:50]FM_GetShiftState [09:35:50]SAM_PROTO_GetShiftState [09:35:50]wFMCommunicate request_size=4 [09:35:50]MH_SAM_APDU [09:35:50]CAPDU: 80 13 01 00 [09:35:50]Write to MH i2c: E2 08 00 81 26 80 13 01 00 00 00 00 00 24 [09:35:50]Write i2c OK [09:35:50]MH_I2C_Read... [09:35:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:35:50]Read from MH i2c: E2 [09:35:50]MH_I2C_Read... [09:35:50]Read from MH i2c: E2 0E 00 [09:35:50]MH_I2C_Read... [09:35:50]Read from MH i2c: E2 0E 00 81 26 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 8B [09:35:50]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [09:35:50]wFMCommunicate OK [09:35:50]SAM_PROTO_GetShiftState done [09:35:50]FM_GetShiftState done [09:35:50]opened in 1715991483 [09:35:50]opened+sec_in_day 1716077883 [09:35:50]quantity*price = 40039 [09:35:50]sum+1 = 40040 [09:35:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.52 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 28 18.05.2024 09:35 Смена: 359 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67789 ФПД: 146086137748923 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T093555&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67789&fm=146086137748923&tin=02508201610067®Number=0000000000091845&sum=40000 [09:35:51]StoreToDocumentArchive [09:35:51]shift 359 fd 67789 [09:35:51]save to /storage/0359/doc_00067789 [09:35:51]save last doc name /storage/0359/doc_00067789 to /storage/kkm_last_doc_name [09:35:51]save OK [09:35:51]Clear old archive folders... [09:35:51]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:35:51]tlvbuf is 01B5D7C0 [09:35:51]SAM_PROTO_ClearQueue [09:35:51]wFMCommunicate request_size=4 [09:35:51]MH_SAM_APDU [09:35:51]CAPDU: 80 09 00 00 [09:35:51]Write to MH i2c: E2 08 00 8E 26 80 09 00 00 00 00 00 00 26 [09:35:51]Write i2c OK [09:35:51]MH_I2C_Read... [09:35:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:35:51]Read from MH i2c: E2 [09:35:51]MH_I2C_Read... [09:35:51]Read from MH i2c: E2 03 00 [09:35:51]MH_I2C_Read... [09:35:51]Read from MH i2c: E2 03 00 8E 26 00 90 00 28 [09:35:51]RAPDU: 90 00 [09:35:51]wFMCommunicate OK [09:35:51]SAM_PROTO_ClearQueue done [09:35:51]KKMCreateOFDPacket [09:35:51]OFDProtocolAddRootSTLVToBuf [09:35:51]FM_MakeSignedData [09:35:51]FM_MakeSignedData [09:35:51]SAM_PROTO_SignData [09:35:51]wFMCommunicate request_size=4 [09:35:51]MH_SAM_APDU [09:35:51]CAPDU: 80 0D 01 02 [09:35:51]Write to MH i2c: E2 08 00 8F 26 80 0D 01 02 00 00 00 00 2E [09:35:51]Write i2c OK [09:35:51]MH_I2C_Read... [09:35:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:35:52]Read from MH i2c: E2 [09:35:52]MH_I2C_Read... [09:35:52]Read from MH i2c: E2 03 00 [09:35:52]MH_I2C_Read... [09:35:52]Read from MH i2c: E2 03 00 8F 26 00 90 00 29 [09:35:52]RAPDU: 90 00 [09:35:52]wFMCommunicate OK [09:35:52]wFMCommunicate request_size=255 [09:35:52]MH_SAM_APDU [09:35:52]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F0 14 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 7B 76 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 CD 08 01 00 35 04 06 00 84 DD 54 58 [09:35:52]Write to MH i2c: E2 02 01 90 26 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F0 14 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 7B 76 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 CD 08 01 00 35 04 06 00 84 DD 54 58 00 00 AF [09:35:52]Write i2c OK [09:35:52]MH_I2C_Read... [09:35:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:35:52]Read from MH i2c: E2 [09:35:52]MH_I2C_Read... [09:35:52]Read from MH i2c: E2 03 00 [09:35:52]MH_I2C_Read... [09:35:52]Read from MH i2c: E2 03 00 90 26 00 90 00 2A [09:35:52]RAPDU: 90 00 [09:35:52]wFMCommunicate OK [09:35:52]wFMCommunicate request_size=7 [09:35:52]MH_SAM_APDU [09:35:52]CAPDU: 80 0D 02 02 02 DD BB [09:35:52]Write to MH i2c: E2 0A 00 91 26 80 0D 02 02 02 00 DD BB 00 00 CD [09:35:52]Write i2c OK [09:35:52]MH_I2C_Read... [09:35:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:35:52]Read from MH i2c: E2 [09:35:52]MH_I2C_Read... [09:35:52]Read from MH i2c: E2 03 00 [09:35:52]MH_I2C_Read... [09:35:52]Read from MH i2c: E2 03 00 91 26 00 90 00 2B [09:35:52]RAPDU: 90 00 [09:35:52]wFMCommunicate OK [09:35:52]wFMCommunicate request_size=4 [09:35:52]MH_SAM_APDU [09:35:52]CAPDU: 80 0D 03 02 [09:35:52]Write to MH i2c: E2 08 00 92 26 80 0D 03 02 00 00 00 00 33 [09:35:52]Write i2c OK [09:35:52]MH_I2C_Read... [09:35:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:35:52]Read from MH i2c: E2 [09:35:52]MH_I2C_Read... [09:35:52]Read from MH i2c: E2 0B 00 [09:35:52]MH_I2C_Read... [09:35:52]Read from MH i2c: E2 0B 00 92 26 00 C8 7E FC 61 9D 13 C0 96 90 00 DD [09:35:52]RAPDU: C8 7E FC 61 9D 13 C0 96 90 00 [09:35:52]wFMCommunicate OK [09:35:52]SAM_PROTO_SignData done [09:35:52]FM_MakeSignedData done [09:35:52]CreateOFDProtocolMessage [09:35:52]wFMCommunicate request_size=4 [09:35:52]MH_SAM_APDU [09:35:52]CAPDU: 80 11 00 00 [09:35:52]Write to MH i2c: E2 08 00 93 26 80 11 00 00 00 00 00 00 33 [09:35:52]Write i2c OK [09:35:52]MH_I2C_Read... [09:35:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:35:52]Read from MH i2c: E2 [09:35:52]MH_I2C_Read... [09:35:52]Read from MH i2c: E2 17 00 [09:35:52]MH_I2C_Read... [09:35:52]Read from MH i2c: E2 17 00 93 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 89 [09:35:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [09:35:52]wFMCommunicate OK [09:35:52]CreateOFDProtocolMessage done [09:35:52]OFDSenderStorePacket 67789 [09:35:52]StoreOFDPacket docnum=67789 [09:35:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 41 E0 04 01 4E 67 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F0 14 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 7B 76 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 CD 08 01 00 35 04 06 00 84 DD 54 58 DD BB C8 7E FC 61 9D 13 C0 96 [09:35:52]CheckFolder [09:35:52]dirname=/storage/ofd_packets [09:35:52]CheckFolder done [09:35:52]ProducePacketName [09:35:52]name=ofd_packets/00067789 [09:35:52]NVStorageSaveData ofd_packets/00067789 [09:35:52]File name is /storage/ofd_packets/00067789 [09:35:52]Write 298 bytes [09:35:52]NVStorageSaveData done [09:35:52]OFDSenderStorePacket done [09:35:52]KKMCreateOFDPacket done [09:35:52]NVStorageSaveData kkm_last_timestamp [09:35:52]File name is /storage/kkm_last_timestamp [09:35:52]Write 4 bytes [09:35:52]NVStorageSaveData done [09:35:52]ExternCall_PrintAddStr [09:35:52]wPrintStart [09:35:52]Write to MH i2c: 01 00 00 94 26 BA [09:35:52]Write i2c OK [09:35:52]MH_I2C_Read... [09:35:52]Read from MH i2c: 01 [09:35:52]MH_I2C_Read... [09:35:52]Read from MH i2c: 01 07 00 [09:35:52]MH_I2C_Read... [09:35:52]Read from MH i2c: 01 07 00 94 26 00 00 00 00 00 FF 0F CF [09:35:52]RasterBufferAndPrint [09:35:52]line Счет N : (1)507982 [09:35:52]line ИНН: 02508201610067 [09:35:52]line Контрольно-Кассовый Чек [09:35:52]line ПРОДАЖА [09:35:52]line ТРК (МРК, ГНК) : 11 [09:35:52]line Товар: 2710194210 [09:35:52]line ДТ-К-5 [09:35:52]line 5.360 * 74.70 [09:35:52]line = 400.39 [09:35:52]line НДС 12% НСП 1% [09:35:52]line > о реализуемом товаре [09:35:52]line ОКРУГЛЕНИЕ: -0.39 [09:35:52]line ИТОГО: 400.00 [09:35:52]line Внесено: 400.00 [09:35:52]line СДАЧА: 0.00 [09:35:52]line НСП 1% : 3.54 [09:35:52]line НДС 12% : 42.52 [09:35:52]line Наличными: 400.00 [09:35:52]line Безнал.: 0.00 [09:35:52]line Место: АЗС № 91 "Партнер Нефть" [09:35:52]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [09:35:52]line СНО: Общий режим [09:35:52]line Чек 28 18.05.2024 09:35 [09:35:52]line Смена: 359 ФФД: 1.0 [09:35:52]line ЗНМ: 0300000119 [09:35:52]line РНМ: 0000000000091845 [09:35:52]line Версия ККМ: 001 [09:35:52]line ФМ: 0000000000871829 [09:35:52]line ФД: 67789 [09:35:52]line ФПД: 146086137748923 [09:35:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T093555&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67789&fm=146086137748923&tin=02508201610067®Number=0000000000091845&sum=40000 [09:35:52]OFD Sender: Processing packet 67789 [packets to send 35, broken 34] [09:35:52]ProducePacketName [09:35:52]name=ofd_packets/00067789 [09:35:52]OFD Sender: To server: pG, [09:35:52]CommunicateWithHost lk.salyk.kg:30040 [09:35:52]ConnectInit lk.salyk.kg [09:35:52]written 0, free lines is 4095 [09:35:52]Connected sock=10 [09:35:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 41 E0 04 01 4E 67 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F0 14 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 7B 76 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 CD 08 01 00 35 04 06 00 84 DD 54 58 DD BB C8 7E FC 61 9D 13 C0 96 [09:35:52]recv_with_timeout no data received [09:35:52]CommunicateWithHost answer receiving error [09:35:52]CommunicateWithHost err = -3 [09:35:52]OFD Sender: Server communicate error [09:35:53]Write to MH i2c: 01 00 00 BE 26 E4 [09:35:53]Write i2c OK [09:35:53]MH_I2C_Read... [09:35:53]Read from MH i2c: 01 [09:35:53]MH_I2C_Read... [09:35:53]Read from MH i2c: 01 07 00 [09:35:53]MH_I2C_Read... [09:35:53]Read from MH i2c: 01 07 00 BE 26 00 00 00 00 00 C1 0C B8 [09:35:53]RasterBufferAndPrint [09:35:53]line [09:35:53]line [09:35:53]line [09:35:53]line [09:35:53]line [09:35:53]written 0, free lines is 3272 [09:35:53]MH_Cut [09:35:53]Write to MH i2c: D1 01 00 C5 26 01 BD [09:35:53]Write i2c OK [09:35:53]MH_I2C_Read... [09:35:53]Read from MH i2c: D1 [09:35:53]MH_I2C_Read... [09:35:53]Read from MH i2c: D1 01 00 [09:35:53]MH_I2C_Read... [09:35:53]Read from MH i2c: D1 01 00 C5 26 00 BC [09:35:53]Write to MH i2c: 01 00 00 C6 26 EC [09:35:53]Write i2c OK [09:35:53]MH_I2C_Read... [09:35:54]*** Cut start [09:35:54]*** Purtial cut [09:35:54]*** CUTSNS_PIN = 0 [09:35:54]*** Stage 1: CUTSNS_PIN = 1 [09:35:56]Read from MH i2c: 01 [09:35:56]MH_I2C_Read... [09:35:56]*** Stop cut motor [09:35:56]*** Cut end [09:35:56]Read from MH i2c: 01 07 00 [09:35:56]MH_I2C_Read... [09:35:56]Read from MH i2c: 01 07 00 C6 26 00 00 00 00 00 FF 0F 01 [09:35:56]process_action close_receipt done [09:35:56]requested_data is exist [09:35:56]produce_requested_data [09:35:56]requested_item fm.sn is exist - process it [09:35:56]wFMCommunicate request_size=4 [09:35:56]MH_SAM_APDU [09:35:56]CAPDU: 80 11 00 00 [09:35:56]Write to MH i2c: E2 08 00 C7 26 80 11 00 00 00 00 00 00 67 [09:35:56]Write i2c OK [09:35:56]MH_I2C_Read... [09:35:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:35:56]Read from MH i2c: E2 [09:35:56]MH_I2C_Read... [09:35:56]Read from MH i2c: E2 17 00 [09:35:56]MH_I2C_Read... [09:35:56]Read from MH i2c: E2 17 00 C7 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 BD [09:35:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [09:35:56]wFMCommunicate OK [09:35:56]requested_item fd.num is exist - process it [09:35:56]SAM_PROTO_GetFieldsCounters [09:35:56]wFMCommunicate request_size=4 [09:35:56]MH_SAM_APDU [09:35:56]CAPDU: 80 13 00 00 [09:35:56]Write to MH i2c: E2 08 00 C8 26 80 13 00 00 00 00 00 00 6A [09:35:56]Write i2c OK [09:35:56]MH_I2C_Read... [09:35:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:35:56]Read from MH i2c: E2 [09:35:56]MH_I2C_Read... [09:35:56]Read from MH i2c: E2 62 00 [09:35:56]MH_I2C_Read... [09:35:56]Read from MH i2c: E2 62 00 C8 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 CD 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 22 [09:35:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 CD 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:35:56]wFMCommunicate OK [09:35:56]SAM_PROTO_GetFieldsCounters done [09:35:56]requested_item shift.num is exist - process it [09:35:56]requested_item shift.opened is exist - process it [09:35:56]req_shift_opened [09:35:56]FM_GetShiftState [09:35:56]SAM_PROTO_GetShiftState [09:35:56]wFMCommunicate request_size=4 [09:35:56]MH_SAM_APDU [09:35:56]CAPDU: 80 13 01 00 [09:35:56]Write to MH i2c: E2 08 00 C9 26 80 13 01 00 00 00 00 00 6C [09:35:56]Write i2c OK [09:35:56]MH_I2C_Read... [09:35:56]Read from MH i2c: E2 [09:35:56]MH_I2C_Read... [09:35:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:35:56]Read from MH i2c: E2 0E 00 [09:35:56]MH_I2C_Read... [09:35:56]Read from MH i2c: E2 0E 00 C9 26 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 D3 [09:35:56]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [09:35:56]wFMCommunicate OK [09:35:56]SAM_PROTO_GetShiftState done [09:35:56]FM_GetShiftState done [09:35:56]req_shift_opened done [09:35:56]requested_item shift.open_date is exist - process it [09:35:56]req_shift_open_date [09:35:56]req_shift_open_date done [09:35:56]produce_requested_data done [09:35:56]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67789,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [09:35:56]process_action_free close_receipt [09:35:56]json_value_free [09:35:56]json_value_free done [09:35:56]process_json_proto returns [09:35:56]Send response to host [09:35:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67789,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [09:35:56]free response buf [09:35:56]execute_script done [09:35:56]execute_script returns [09:35:56]free content buf [09:35:56]Sock 7.Close socket [09:35:56]Sock 7.Thread stoped [09:35:56]accept exits with 9 [09:35:56]New connection [09:35:56]New thread 3066608996 created [09:35:56]Thread 3066752356 joined [09:35:56]Waiting for new connection... [09:35:56] Sock 9.Parse request [09:35:56]Sock 9.Check first char [09:35:56]Sock 9.First char is OK [09:35:56]request: POST /json_proto HTTP/1.0 [09:35:56]Method: POST [09:35:56]URL: /json_proto [09:35:56]Method is POST - this is cgi request [09:35:56]url: /json_proto [09:35:56]query_string will be loaded in cgi processing [09:35:56]execute_cgi json_proto POST (null) [09:35:56]execute_cgi path=json_proto method=POST [09:35:56]POST find Content-Length [09:35:56]Host: 172.17.41.195:8080 [09:35:56]Content-Length: 796 [09:35:56]Content-Type: application/json [09:35:56] [09:35:56]POST finish read [09:35:56]Found Content-Length = 796 [09:35:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507981", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.80, "quantity" : 29.500, "sum" : 2000.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.10 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:35:56]execute_script... [09:35:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507981", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.80, "quantity" : 29.500, "sum" : 2000.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.10 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:35:56]POST & json_proto [09:35:56]process_json_proto [09:35:56]json parsed OK: [09:35:56]protocol is kg_v1.0 [09:35:56]action value=close_receipt [09:35:56]process_action close_receipt [09:35:56]cmd_close_receipt [09:35:56]MH_GetDate [09:35:56]Write to MH i2c: F0 00 00 CA 26 DF [09:35:56]Write i2c OK [09:35:56]MH_I2C_Read... [09:35:56]Read from MH i2c: F0 [09:35:56]MH_I2C_Read... [09:35:56]Read from MH i2c: F0 09 00 [09:35:56]MH_I2C_Read... [09:35:56]Read from MH i2c: F0 09 00 CA 26 00 81 76 48 66 FC 21 6F 64 7D [09:35:56]GetLastDocTimeStamp 1716024955 [09:35:56]current date 1716024961 [09:35:56]FM_GetShiftState [09:35:56]SAM_PROTO_GetShiftState [09:35:56]wFMCommunicate request_size=4 [09:35:56]MH_SAM_APDU [09:35:56]CAPDU: 80 13 01 00 [09:35:56]Write to MH i2c: E2 08 00 CB 26 80 13 01 00 00 00 00 00 6E [09:35:56]Write i2c OK [09:35:56]MH_I2C_Read... [09:35:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:35:56]Read from MH i2c: E2 [09:35:56]MH_I2C_Read... [09:35:56]Read from MH i2c: E2 0E 00 [09:35:56]MH_I2C_Read... [09:35:56]Read from MH i2c: E2 0E 00 CB 26 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 D5 [09:35:56]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [09:35:56]wFMCommunicate OK [09:35:56]SAM_PROTO_GetShiftState done [09:35:56]FM_GetShiftState done [09:35:56]opened in 1715991483 [09:35:56]opened+sec_in_day 1716077883 [09:35:56]quantity*price = 200010 [09:35:56]sum+1 = 200011 [09:35:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.10 НСП 1% : 17.70 НДС 12% : 212.40 Наличными: 0.00 Безнал.: 2000.10 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 29 18.05.2024 09:36 Смена: 359 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67790 ФПД: 106116690810110 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T093601&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67790&fm=106116690810110&tin=02508201610067®Number=0000000000091845&sum=200010 [09:35:57]StoreToDocumentArchive [09:35:57]shift 359 fd 67790 [09:35:57]save to /storage/0359/doc_00067790 [09:35:57]save last doc name /storage/0359/doc_00067790 to /storage/kkm_last_doc_name [09:35:57]save OK [09:35:57]Clear old archive folders... [09:35:57]ProcessDocumentItem done err = 0, tmpTLVsize=252 [09:35:57]tlvbuf is 01B18F50 [09:35:57]SAM_PROTO_ClearQueue [09:35:57]wFMCommunicate request_size=4 [09:35:57]MH_SAM_APDU [09:35:57]CAPDU: 80 09 00 00 [09:35:57]Write to MH i2c: E2 08 00 D8 26 80 09 00 00 00 00 00 00 70 [09:35:57]Write i2c OK [09:35:57]MH_I2C_Read... [09:35:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:35:57]Read from MH i2c: E2 [09:35:57]MH_I2C_Read... [09:35:57]Read from MH i2c: E2 03 00 [09:35:57]MH_I2C_Read... [09:35:57]Read from MH i2c: E2 03 00 D8 26 00 90 00 72 [09:35:57]RAPDU: 90 00 [09:35:57]wFMCommunicate OK [09:35:57]SAM_PROTO_ClearQueue done [09:35:57]KKMCreateOFDPacket [09:35:57]OFDProtocolAddRootSTLVToBuf [09:35:57]FM_MakeSignedData [09:35:57]FM_MakeSignedData [09:35:57]SAM_PROTO_SignData [09:35:57]wFMCommunicate request_size=4 [09:35:57]MH_SAM_APDU [09:35:57]CAPDU: 80 0D 01 02 [09:35:57]Write to MH i2c: E2 08 00 D9 26 80 0D 01 02 00 00 00 00 78 [09:35:57]Write i2c OK [09:35:57]MH_I2C_Read... [09:35:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:35:57]Read from MH i2c: E2 [09:35:57]MH_I2C_Read... [09:35:57]Read from MH i2c: E2 03 00 [09:35:57]MH_I2C_Read... [09:35:57]Read from MH i2c: E2 03 00 D9 26 00 90 00 73 [09:35:57]RAPDU: 90 00 [09:35:57]wFMCommunicate OK [09:35:57]wFMCommunicate request_size=255 [09:35:57]MH_SAM_APDU [09:35:57]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3C 73 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 4A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4A 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4A 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 81 76 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 CE 08 01 00 35 04 06 00 [09:35:57]Write to MH i2c: E2 02 01 DA 26 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3C 73 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 4A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4A 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4A 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 81 76 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 CE 08 01 00 35 04 06 00 00 00 3F [09:35:57]Write i2c OK [09:35:57]MH_I2C_Read... [09:35:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:35:58]Read from MH i2c: E2 [09:35:58]MH_I2C_Read... [09:35:58]Read from MH i2c: E2 03 00 [09:35:58]MH_I2C_Read... [09:35:58]OFD Sender: Processing packet 67789 [packets to send 35, broken 34] [09:35:58]ProducePacketName [09:35:58]name=ofd_packets/00067789 [09:35:58]OFD Sender: To server: pG, [09:35:58]CommunicateWithHost lk.salyk.kg:30040 [09:35:58]ConnectInit lk.salyk.kg [09:35:58]Read from MH i2c: E2 03 00 DA 26 00 90 00 74 [09:35:58]RAPDU: 90 00 [09:35:58]wFMCommunicate OK [09:35:58]wFMCommunicate request_size=11 [09:35:58]MH_SAM_APDU [09:35:58]CAPDU: 80 0D 02 02 06 60 83 37 A9 14 FE [09:35:58]Write to MH i2c: E2 0E 00 DB 26 80 0D 02 02 06 00 60 83 37 A9 14 FE 00 00 5C [09:35:58]Write i2c OK [09:35:58]MH_I2C_Read... [09:35:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:35:58]Read from MH i2c: E2 [09:35:58]MH_I2C_Read... [09:35:58]Read from MH i2c: E2 03 00 [09:35:58]MH_I2C_Read... [09:35:58]Read from MH i2c: E2 03 00 DB 26 00 90 00 75 [09:35:58]RAPDU: 90 00 [09:35:58]wFMCommunicate OK [09:35:58]wFMCommunicate request_size=4 [09:35:58]MH_SAM_APDU [09:35:58]CAPDU: 80 0D 03 02 [09:35:58]Write to MH i2c: E2 08 00 DC 26 80 0D 03 02 00 00 00 00 7D [09:35:58]Write i2c OK [09:35:58]MH_I2C_Read... [09:35:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:35:58]Connected sock=7 [09:35:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 41 E0 04 01 4E 67 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F0 14 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 7B 76 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 CD 08 01 00 35 04 06 00 84 DD 54 58 DD BB C8 7E FC 61 9D 13 C0 96 [09:35:58]Read from MH i2c: E2 [09:35:58]MH_I2C_Read... [09:35:58]Read from MH i2c: E2 0B 00 [09:35:58]MH_I2C_Read... [09:35:58]Read from MH i2c: E2 0B 00 DC 26 00 31 3C FD 83 21 22 9E 6D 90 00 B9 [09:35:58]RAPDU: 31 3C FD 83 21 22 9E 6D 90 00 [09:35:58]wFMCommunicate OK [09:35:58]SAM_PROTO_SignData done [09:35:58]FM_MakeSignedData done [09:35:58]CreateOFDProtocolMessage [09:35:58]wFMCommunicate request_size=4 [09:35:58]MH_SAM_APDU [09:35:58]CAPDU: 80 11 00 00 [09:35:58]Write to MH i2c: E2 08 00 DD 26 80 11 00 00 00 00 00 00 7D [09:35:58]Write i2c OK [09:35:58]MH_I2C_Read... [09:35:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:35:58]Read from MH i2c: E2 [09:35:58]MH_I2C_Read... [09:35:58]Read from MH i2c: E2 17 00 [09:35:58]MH_I2C_Read... [09:35:58]Read from MH i2c: E2 17 00 DD 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 D3 [09:35:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [09:35:58]wFMCommunicate OK [09:35:58]CreateOFDProtocolMessage done [09:35:58]OFDSenderStorePacket 67790 [09:35:58]StoreOFDPacket docnum=67790 [09:35:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 01 00 00 E3 F2 08 01 A7 64 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3C 73 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 4A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4A 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4A 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 81 76 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 CE 08 01 00 35 04 06 00 60 83 37 A9 14 FE 31 3C FD 83 21 22 9E 6D [09:35:58]CheckFolder [09:35:58]dirname=/storage/ofd_packets [09:35:58]CheckFolder done [09:35:58]ProducePacketName [09:35:58]name=ofd_packets/00067790 [09:35:58]NVStorageSaveData ofd_packets/00067790 [09:35:58]File name is /storage/ofd_packets/00067790 [09:35:58]Write 302 bytes [09:35:58]NVStorageSaveData done [09:35:58]OFDSenderStorePacket done [09:35:58]KKMCreateOFDPacket done [09:35:58]NVStorageSaveData kkm_last_timestamp [09:35:58]File name is /storage/kkm_last_timestamp [09:35:58]Write 4 bytes [09:35:58]NVStorageSaveData done [09:35:58]ExternCall_PrintAddStr [09:35:58]wPrintStart [09:35:58]Write to MH i2c: 01 00 00 DE 26 04 [09:35:58]Write i2c OK [09:35:58]MH_I2C_Read... [09:35:58]Read from MH i2c: 01 [09:35:58]MH_I2C_Read... [09:35:58]Read from MH i2c: 01 07 00 [09:35:58]MH_I2C_Read... [09:35:58]Read from MH i2c: 01 07 00 DE 26 00 00 00 00 00 FF 0F 19 [09:35:58]RasterBufferAndPrint [09:35:58]line Счет N : (1)507981 [09:35:58]line ИНН: 02508201610067 [09:35:58]line Контрольно-Кассовый Чек [09:35:58]line ПРОДАЖА [09:35:58]line ТРК (МРК, ГНК) : 32 [09:35:58]line Товар: 2710124130 [09:35:58]line Super-92-К-5 [09:35:58]line 29.500 * 67.80 [09:35:58]line = 2000.10 [09:35:58]line НДС 12% НСП 1% [09:35:58]line > о реализуемом товаре [09:35:58]line ИТОГО: 2000.10 [09:35:58]line НСП 1% : 17.70 [09:35:58]line НДС 12% : 212.40 [09:35:58]line Наличными: 0.00 [09:35:58]line Безнал.: 2000.10 [09:35:58]line Место: АЗС № 91 "Партнер Нефть" [09:35:58]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [09:35:58]line СНО: Общий режим [09:35:58]line Чек 29 18.05.2024 09:36 [09:35:58]line Смена: 359 ФФД: 1.0 [09:35:58]line ЗНМ: 0300000119 [09:35:58]line РНМ: 0000000000091845 [09:35:58]line Версия ККМ: 001 [09:35:58]line Платежная система: O! деньги [09:35:58]line ФМ: 0000000000871829 [09:35:58]line ФД: 67790 [09:35:58]line ФПД: 106116690810110 [09:35:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T093601&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67790&fm=106116690810110&tin=02508201610067®Number=0000000000091845&sum=200010 [09:35:58]written 0, free lines is 4095 [09:35:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 9F 6E 47 00 F9 C4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 CD 08 01 00 F4 03 04 00 56 1E 48 66 B6 04 01 00 00 A4 A5 44 C2 DA B4 9B 01 [09:35:58]CommunicateWithHost err = 0 [09:35:58]CheckOFDResponse [09:35:58]1017 (14) - 77093643461234 [09:35:58]1041 (16) - 0000000000871829 [09:35:58]1040 (4) - 67789 [09:35:58]1012 (4) - 18.05.2024 03:19 [09:35:58]1206 (1) - 0 [09:35:58]OFD Sender: Remove packet 67789 [09:35:58]ProducePacketName [09:35:58]name=ofd_packets/00067789 [09:35:58]NVStorageDeleteData [09:35:59]Write to MH i2c: 01 00 00 07 27 2E [09:35:59]Write i2c OK [09:35:59]MH_I2C_Read... [09:35:59]Read from MH i2c: 01 [09:35:59]MH_I2C_Read... [09:35:59]Read from MH i2c: 01 07 00 [09:35:59]MH_I2C_Read... [09:35:59]Read from MH i2c: 01 07 00 07 27 00 00 00 00 00 EA 0C 2B [09:35:59]RasterBufferAndPrint [09:35:59]line [09:35:59]line [09:35:59]line [09:35:59]line [09:35:59]line [09:35:59]written 0, free lines is 3316 [09:35:59]MH_Cut [09:35:59]Write to MH i2c: D1 01 00 0E 27 01 07 [09:35:59]Write i2c OK [09:35:59]MH_I2C_Read... [09:35:59]Read from MH i2c: D1 [09:35:59]MH_I2C_Read... [09:35:59]Read from MH i2c: D1 01 00 [09:35:59]MH_I2C_Read... [09:35:59]Read from MH i2c: D1 01 00 0E 27 00 06 [09:35:59]Write to MH i2c: 01 00 00 0F 27 36 [09:35:59]Write i2c OK [09:35:59]MH_I2C_Read... [09:35:59]int [09:35:59]*** FLAG_PRN_PAP2 set [09:35:59]*** Cut start [09:35:59]*** Purtial cut [09:35:59]*** Stage 1: CUTSNS_PIN = 1 [09:35:59]OFD Sender: Processing packet 67790 [packets to send 35, broken 34] [09:35:59]ProducePacketName [09:35:59]name=ofd_packets/00067790 [09:35:59]OFD Sender: To server: pG, [09:35:59]CommunicateWithHost lk.salyk.kg:30040 [09:35:59]ConnectInit lk.salyk.kg [09:35:59]Connected sock=6 [09:35:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 01 00 00 E3 F2 08 01 A7 64 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3C 73 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 4A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4A 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4A 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 81 76 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 CE 08 01 00 35 04 06 00 60 83 37 A9 14 FE 31 3C FD 83 21 22 9E 6D [09:35:59]Read from MH i2c: 01 [09:35:59]MH_I2C_Read... [09:35:59]*** Stop cut motor [09:35:59]*** Cut end [09:35:59]Read from MH i2c: 01 07 00 [09:35:59]MH_I2C_Read... [09:35:59]Read from MH i2c: 01 07 00 0F 27 00 02 00 00 00 FF 0F 4D [09:35:59]process_action close_receipt done [09:35:59]requested_data is exist [09:35:59]produce_requested_data [09:35:59]requested_item fm.sn is exist - process it [09:35:59]wFMCommunicate request_size=4 [09:35:59]MH_SAM_APDU [09:35:59]CAPDU: 80 11 00 00 [09:35:59]Write to MH i2c: E2 08 00 10 27 80 11 00 00 00 00 00 00 B1 [09:35:59]Write i2c OK [09:35:59]MH_I2C_Read... [09:35:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:35:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 FD 88 47 00 93 FA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 CE 08 01 00 F4 03 04 00 57 1E 48 66 B6 04 01 00 00 5E 11 E9 92 DA 08 35 88 [09:35:59]CommunicateWithHost err = 0 [09:35:59]CheckOFDResponse [09:35:59]1017 (14) - 77093643461234 [09:35:59]1041 (16) - 0000000000871829 [09:35:59]1040 (4) - 67790 [09:35:59]1012 (4) - 18.05.2024 03:19 [09:35:59]1206 (1) - 0 [09:35:59]OFD Sender: Remove packet 67790 [09:35:59]ProducePacketName [09:35:59]name=ofd_packets/00067790 [09:35:59]NVStorageDeleteData [09:35:59]Read from MH i2c: E2 [09:35:59]MH_I2C_Read... [09:35:59]Read from MH i2c: E2 17 00 [09:35:59]MH_I2C_Read... [09:35:59]Read from MH i2c: E2 17 00 10 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 07 [09:35:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [09:35:59]wFMCommunicate OK [09:35:59]requested_item fd.num is exist - process it [09:35:59]SAM_PROTO_GetFieldsCounters [09:35:59]wFMCommunicate request_size=4 [09:35:59]MH_SAM_APDU [09:35:59]CAPDU: 80 13 00 00 [09:35:59]Write to MH i2c: 01 00 00 11 27 38 [09:35:59]Write i2c OK [09:35:59]MH_I2C_Read... [09:35:59]Read from MH i2c: 01 [09:35:59]MH_I2C_Read... [09:35:59]Read from MH i2c: 01 07 00 [09:35:59]MH_I2C_Read... [09:35:59]Read from MH i2c: 01 07 00 11 27 00 02 00 00 00 FF 0F 4F [09:35:59]state=0 [09:35:59]Cover opened [09:35:59]Write to MH i2c: E2 08 00 12 27 80 13 00 00 00 00 00 00 B5 [09:35:59]Write i2c OK [09:35:59]MH_I2C_Read... [09:35:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:35:59]Read from MH i2c: E2 [09:35:59]MH_I2C_Read... [09:35:59]Read from MH i2c: E2 62 00 [09:35:59]MH_I2C_Read... [09:35:59]Read from MH i2c: E2 62 00 12 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 CE 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 71 [09:35:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 CE 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:35:59]wFMCommunicate OK [09:35:59]SAM_PROTO_GetFieldsCounters done [09:35:59]requested_item shift.num is exist - process it [09:35:59]requested_item shift.opened is exist - process it [09:35:59]req_shift_opened [09:35:59]FM_GetShiftState [09:35:59]SAM_PROTO_GetShiftState [09:35:59]wFMCommunicate request_size=4 [09:35:59]MH_SAM_APDU [09:35:59]CAPDU: 80 13 01 00 [09:35:59]Write to MH i2c: E2 08 00 13 27 80 13 01 00 00 00 00 00 B7 [09:35:59]Write i2c OK [09:35:59]MH_I2C_Read... [09:35:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:35:59]Read from MH i2c: E2 [09:35:59]MH_I2C_Read... [09:35:59]Read from MH i2c: E2 0E 00 [09:35:59]MH_I2C_Read... [09:35:59]Read from MH i2c: E2 0E 00 13 27 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 1E [09:35:59]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [09:35:59]wFMCommunicate OK [09:35:59]SAM_PROTO_GetShiftState done [09:35:59]FM_GetShiftState done [09:35:59]req_shift_opened done [09:35:59]requested_item shift.open_date is exist - process it [09:35:59]req_shift_open_date [09:35:59]req_shift_open_date done [09:35:59]produce_requested_data done [09:35:59]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67790,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [09:35:59]process_action_free close_receipt [09:35:59]json_value_free [09:35:59]json_value_free done [09:35:59]process_json_proto returns [09:35:59]Send response to host [09:35:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67790,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [09:35:59]free response buf [09:35:59]execute_script done [09:35:59]execute_script returns [09:35:59]free content buf [09:35:59]Sock 9.Close socket [09:35:59]Sock 9.Thread stoped [09:36:00]OFD Sender: No OFD packet to send [09:36:00]OFD Sender: No OFD packet to send [09:36:04]Write to MH i2c: 01 00 00 14 27 3B [09:36:04]Write i2c OK [09:36:04]MH_I2C_Read... [09:36:04]Read from MH i2c: 01 [09:36:04]MH_I2C_Read... [09:36:04]Read from MH i2c: 01 07 00 [09:36:04]MH_I2C_Read... [09:36:04]Read from MH i2c: 01 07 00 14 27 00 02 00 00 00 FF 0F 52 [09:36:04]state=3 [09:36:04]Cover opened [09:36:05]OFD Sender: No OFD packet to send [09:36:09]Write to MH i2c: 01 00 00 15 27 3C [09:36:09]Write i2c OK [09:36:09]MH_I2C_Read... [09:36:09]Read from MH i2c: 01 [09:36:09]MH_I2C_Read... [09:36:09]Read from MH i2c: 01 07 00 [09:36:09]MH_I2C_Read... [09:36:09]Read from MH i2c: 01 07 00 15 27 00 02 00 00 00 FF 0F 53 [09:36:09]state=3 [09:36:09]Cover opened [09:36:10]OFD Sender: No OFD packet to send [09:36:14]Write to MH i2c: 01 00 00 16 27 3D [09:36:14]Write i2c OK [09:36:14]MH_I2C_Read... [09:36:14]Read from MH i2c: 01 [09:36:14]MH_I2C_Read... [09:36:14]Read from MH i2c: 01 07 00 [09:36:14]MH_I2C_Read... [09:36:14]Read from MH i2c: 01 07 00 16 27 00 02 00 00 00 FF 0F 54 [09:36:14]state=3 [09:36:14]Cover opened [09:36:15]OFD Sender: No OFD packet to send [09:36:17]int [09:36:17]Write to MH i2c: 01 00 00 17 27 3E [09:36:17]*** FLAG_PRN_PAP2 reset [09:36:17]Write i2c OK [09:36:17]MH_I2C_Read... [09:36:17]Read from MH i2c: 01 [09:36:17]MH_I2C_Read... [09:36:17]Read from MH i2c: 01 07 00 [09:36:17]MH_I2C_Read... [09:36:17]Read from MH i2c: 01 07 00 17 27 00 00 00 00 00 FF 0F 53 [09:36:17]state=3 [09:36:17]Cover closed [09:36:17]int [09:36:17]Write to MH i2c: 01 00 00 18 27 3F [09:36:17]*** FLAG_PRN_PAP1 set [09:36:17]Write i2c OK [09:36:17]MH_I2C_Read... [09:36:17]Read from MH i2c: 01 [09:36:17]MH_I2C_Read... [09:36:17]Read from MH i2c: 01 07 00 [09:36:17]MH_I2C_Read... [09:36:17]Read from MH i2c: 01 07 00 18 27 00 01 00 00 00 FF 0F 55 [09:36:17]state=0 [09:36:17]No paper [09:36:17]int [09:36:17]Write to MH i2c: 01 00 00 19 27 40 [09:36:17]*** FLAG_PRN_PAP2 set [09:36:17]Write i2c OK [09:36:17]MH_I2C_Read... [09:36:17]Read from MH i2c: 01 [09:36:17]MH_I2C_Read... [09:36:17]Read from MH i2c: 01 07 00 [09:36:17]MH_I2C_Read... [09:36:17]Read from MH i2c: 01 07 00 19 27 00 03 00 00 00 FF 0F 58 [09:36:17]state=0 [09:36:17]No paper [09:36:17]Cover opened [09:36:20]OFD Sender: No OFD packet to send [09:36:20]int [09:36:20]Write to MH i2c: 01 00 00 1A 27 41 [09:36:20]*** FLAG_PRN_PAP1 reset [09:36:20]*** FLAG_PRN_PAP2 reset [09:36:20]Write i2c OK [09:36:20]MH_I2C_Read... [09:36:20]Read from MH i2c: 01 [09:36:20]MH_I2C_Read... [09:36:20]Read from MH i2c: 01 07 00 [09:36:20]MH_I2C_Read... [09:36:20]Read from MH i2c: 01 07 00 1A 27 00 00 00 00 00 FF 0F 56 [09:36:20]state=3 [09:36:20]Cover closed [09:36:22]int [09:36:22]Write to MH i2c: 01 00 00 1B 27 42 [09:36:22]*** FLAG_PRN_KEY set [09:36:22]Write i2c OK [09:36:22]MH_I2C_Read... [09:36:22]Read from MH i2c: 01 [09:36:22]MH_I2C_Read... [09:36:22]Read from MH i2c: 01 07 00 [09:36:22]MH_I2C_Read... [09:36:22]Read from MH i2c: 01 07 00 1B 27 00 08 00 00 00 FF 0F 5F [09:36:22]state=0 [09:36:22]Key pressed [09:36:22]Feed [09:36:22]Write to MH i2c: D8 00 00 1C 27 1A [09:36:22]Write i2c OK [09:36:22]MH_I2C_Read... [09:36:22]Read from MH i2c: D8 [09:36:22]MH_I2C_Read... [09:36:22]Read from MH i2c: D8 01 00 [09:36:22]MH_I2C_Read... [09:36:22]Read from MH i2c: D8 01 00 1C 27 00 1B [09:36:22]int [09:36:22]Write to MH i2c: 01 00 00 1D 27 44 [09:36:22]Write i2c OK [09:36:22]MH_I2C_Read... [09:36:22]Read from MH i2c: 01 [09:36:22]MH_I2C_Read... [09:36:22]Read from MH i2c: 01 07 00 [09:36:22]MH_I2C_Read... [09:36:22]Read from MH i2c: 01 07 00 1D 27 00 48 00 00 00 3C 00 CF [09:36:22]state=2 [09:36:22]Key pressed [09:36:22]int [09:36:22]Write to MH i2c: 01 00 00 1E 27 45 [09:36:22]*** FLAG_PRN_KEY reset [09:36:22]Write i2c OK [09:36:22]MH_I2C_Read... [09:36:22]Read from MH i2c: 01 [09:36:22]MH_I2C_Read... [09:36:22]Read from MH i2c: 01 07 00 [09:36:22]MH_I2C_Read... [09:36:22]Read from MH i2c: 01 07 00 1E 27 00 00 00 00 00 F7 0F 52 [09:36:22]state=2 [09:36:22]Stop feed [09:36:25]OFD Sender: No OFD packet to send [09:36:30]OFD Sender: No OFD packet to send [09:36:35]OFD Sender: No OFD packet to send [09:36:40]OFD Sender: No OFD packet to send [09:36:45]OFD Sender: No OFD packet to send [09:36:50]OFD Sender: No OFD packet to send [09:36:55]OFD Sender: No OFD packet to send [09:37:00]OFD Sender: No OFD packet to send [09:37:05]OFD Sender: No OFD packet to send [09:37:10]OFD Sender: No OFD packet to send [09:37:10]int [09:37:10]Write to MH i2c: 01 00 00 1F 27 46 [09:37:10]*** FLAG_PRN_KEY set [09:37:10]Write i2c OK [09:37:10]MH_I2C_Read... [09:37:10]Read from MH i2c: 01 [09:37:10]MH_I2C_Read... [09:37:10]Read from MH i2c: 01 07 00 [09:37:10]MH_I2C_Read... [09:37:10]Read from MH i2c: 01 07 00 1F 27 00 08 00 00 00 FF 0F 63 [09:37:10]state=0 [09:37:10]Key pressed [09:37:10]Feed [09:37:10]Write to MH i2c: D8 00 00 20 27 1E [09:37:10]Write i2c OK [09:37:10]MH_I2C_Read... [09:37:10]Read from MH i2c: D8 [09:37:10]MH_I2C_Read... [09:37:10]Read from MH i2c: D8 01 00 [09:37:10]MH_I2C_Read... [09:37:10]Read from MH i2c: D8 01 00 20 27 00 1F [09:37:10]int [09:37:10]Write to MH i2c: 01 00 00 21 27 48 [09:37:10]Write i2c OK [09:37:10]MH_I2C_Read... [09:37:10]Read from MH i2c: 01 [09:37:10]MH_I2C_Read... [09:37:10]Read from MH i2c: 01 07 00 [09:37:10]MH_I2C_Read... [09:37:10]Read from MH i2c: 01 07 00 21 27 00 48 00 00 00 3D 00 D4 [09:37:10]state=2 [09:37:10]Key pressed [09:37:11]int [09:37:11]Write to MH i2c: 01 00 00 22 27 49 [09:37:11]*** FLAG_PRN_KEY reset [09:37:11]Write i2c OK [09:37:11]MH_I2C_Read... [09:37:11]Read from MH i2c: 01 [09:37:11]MH_I2C_Read... [09:37:11]Read from MH i2c: 01 07 00 [09:37:11]MH_I2C_Read... [09:37:11]Read from MH i2c: 01 07 00 22 27 00 00 00 00 00 F6 0F 55 [09:37:11]state=2 [09:37:11]Stop feed [09:37:11]int [09:37:11]Write to MH i2c: 01 00 00 23 27 4A [09:37:11]*** FLAG_PRN_KEY set [09:37:11]Write i2c OK [09:37:11]MH_I2C_Read... [09:37:11]Read from MH i2c: 01 [09:37:11]MH_I2C_Read... [09:37:11]Read from MH i2c: 01 07 00 [09:37:11]MH_I2C_Read... [09:37:11]Read from MH i2c: 01 07 00 23 27 00 08 00 00 00 FF 0F 67 [09:37:11]state=0 [09:37:11]Key pressed [09:37:11]Feed [09:37:11]Write to MH i2c: D8 00 00 24 27 22 [09:37:11]Write i2c OK [09:37:11]MH_I2C_Read... [09:37:11]Read from MH i2c: D8 [09:37:11]MH_I2C_Read... [09:37:11]Read from MH i2c: D8 01 00 [09:37:11]MH_I2C_Read... [09:37:11]Read from MH i2c: D8 01 00 24 27 00 23 [09:37:11]int [09:37:11]Write to MH i2c: 01 00 00 25 27 4C [09:37:11]Write i2c OK [09:37:11]MH_I2C_Read... [09:37:11]Read from MH i2c: 01 [09:37:11]MH_I2C_Read... [09:37:11]Read from MH i2c: 01 07 00 [09:37:11]MH_I2C_Read... [09:37:11]Read from MH i2c: 01 07 00 25 27 00 48 00 00 00 3C 00 D7 [09:37:11]state=2 [09:37:11]Key pressed [09:37:11]int [09:37:11]Write to MH i2c: 01 00 00 26 27 4D [09:37:11]*** FLAG_PRN_KEY reset [09:37:11]Write i2c OK [09:37:11]MH_I2C_Read... [09:37:11]Read from MH i2c: 01 [09:37:11]MH_I2C_Read... [09:37:11]Read from MH i2c: 01 07 00 [09:37:11]MH_I2C_Read... [09:37:11]Read from MH i2c: 01 07 00 26 27 00 00 00 00 00 F6 0F 59 [09:37:11]state=2 [09:37:11]Stop feed [09:37:15]OFD Sender: No OFD packet to send [09:37:20]OFD Sender: No OFD packet to send [09:37:25]OFD Sender: No OFD packet to send [09:37:30]OFD Sender: No OFD packet to send [09:37:34]int [09:37:34]Write to MH i2c: 01 00 00 27 27 4E [09:37:34]*** FLAG_PRN_KEY set [09:37:34]Write i2c OK [09:37:34]MH_I2C_Read... [09:37:34]Read from MH i2c: 01 [09:37:34]MH_I2C_Read... [09:37:34]Read from MH i2c: 01 07 00 [09:37:34]MH_I2C_Read... [09:37:34]Read from MH i2c: 01 07 00 27 27 00 08 00 00 00 FF 0F 6B [09:37:34]state=0 [09:37:34]Key pressed [09:37:34]Feed [09:37:34]Write to MH i2c: D8 00 00 28 27 26 [09:37:34]Write i2c OK [09:37:34]MH_I2C_Read... [09:37:34]Read from MH i2c: D8 [09:37:34]MH_I2C_Read... [09:37:34]Read from MH i2c: D8 01 00 [09:37:34]MH_I2C_Read... [09:37:34]Read from MH i2c: D8 01 00 28 27 00 27 [09:37:34]int [09:37:34]Write to MH i2c: 01 00 00 29 27 50 [09:37:34]Write i2c OK [09:37:34]MH_I2C_Read... [09:37:34]Read from MH i2c: 01 [09:37:34]MH_I2C_Read... [09:37:34]Read from MH i2c: 01 07 00 [09:37:34]MH_I2C_Read... [09:37:34]Read from MH i2c: 01 07 00 29 27 00 48 00 00 00 3D 00 DC [09:37:34]state=2 [09:37:34]Key pressed [09:37:34]int [09:37:34]Write to MH i2c: 01 00 00 2A 27 51 [09:37:34]*** FLAG_PRN_KEY reset [09:37:34]Write i2c OK [09:37:34]MH_I2C_Read... [09:37:34]Read from MH i2c: 01 [09:37:34]MH_I2C_Read... [09:37:34]Read from MH i2c: 01 07 00 [09:37:34]MH_I2C_Read... [09:37:34]Read from MH i2c: 01 07 00 2A 27 00 00 00 00 00 F7 0F 5E [09:37:34]state=2 [09:37:34]Stop feed [09:37:35]int [09:37:35]Write to MH i2c: 01 00 00 2B 27 52 [09:37:35]*** FLAG_PRN_KEY set [09:37:35]Write i2c OK [09:37:35]MH_I2C_Read... [09:37:35]Read from MH i2c: 01 [09:37:35]MH_I2C_Read... [09:37:35]Read from MH i2c: 01 07 00 [09:37:35]MH_I2C_Read... [09:37:35]Read from MH i2c: 01 07 00 2B 27 00 08 00 00 00 FF 0F 6F [09:37:35]state=0 [09:37:35]Key pressed [09:37:35]Feed [09:37:35]Write to MH i2c: D8 00 00 2C 27 2A [09:37:35]Write i2c OK [09:37:35]MH_I2C_Read... [09:37:35]Read from MH i2c: D8 [09:37:35]MH_I2C_Read... [09:37:35]Read from MH i2c: D8 01 00 [09:37:35]MH_I2C_Read... [09:37:35]Read from MH i2c: D8 01 00 2C 27 00 2B [09:37:35]int [09:37:35]Write to MH i2c: 01 00 00 2D 27 54 [09:37:35]Write i2c OK [09:37:35]MH_I2C_Read... [09:37:35]Read from MH i2c: 01 [09:37:35]MH_I2C_Read... [09:37:35]Read from MH i2c: 01 07 00 [09:37:35]MH_I2C_Read... [09:37:35]Read from MH i2c: 01 07 00 2D 27 00 48 00 00 00 3C 00 DF [09:37:35]state=2 [09:37:35]Key pressed [09:37:35]int [09:37:35]Write to MH i2c: 01 00 00 2E 27 55 [09:37:35]*** FLAG_PRN_KEY reset [09:37:35]Write i2c OK [09:37:35]MH_I2C_Read... [09:37:35]Read from MH i2c: 01 [09:37:35]MH_I2C_Read... [09:37:35]Read from MH i2c: 01 07 00 [09:37:35]MH_I2C_Read... [09:37:35]Read from MH i2c: 01 07 00 2E 27 00 00 00 00 00 F6 0F 61 [09:37:35]state=2 [09:37:35]Stop feed [09:37:35]OFD Sender: No OFD packet to send [09:37:37]int [09:37:37]Write to MH i2c: 01 00 00 2F 27 56 [09:37:37]*** FLAG_PRN_KEY set [09:37:37]Write i2c OK [09:37:37]MH_I2C_Read... [09:37:37]Read from MH i2c: 01 [09:37:37]MH_I2C_Read... [09:37:37]Read from MH i2c: 01 07 00 [09:37:37]MH_I2C_Read... [09:37:37]Read from MH i2c: 01 07 00 2F 27 00 08 00 00 00 FF 0F 73 [09:37:37]state=0 [09:37:37]Key pressed [09:37:37]Feed [09:37:37]Write to MH i2c: D8 00 00 30 27 2E [09:37:37]Write i2c OK [09:37:37]MH_I2C_Read... [09:37:37]Read from MH i2c: D8 [09:37:37]MH_I2C_Read... [09:37:37]Read from MH i2c: D8 01 00 [09:37:37]MH_I2C_Read... [09:37:37]Read from MH i2c: D8 01 00 30 27 00 2F [09:37:37]int [09:37:37]Write to MH i2c: 01 00 00 31 27 58 [09:37:37]Write i2c OK [09:37:37]MH_I2C_Read... [09:37:37]Read from MH i2c: 01 [09:37:37]MH_I2C_Read... [09:37:37]Read from MH i2c: 01 07 00 [09:37:37]MH_I2C_Read... [09:37:37]Read from MH i2c: 01 07 00 31 27 00 48 00 00 00 3C 00 E3 [09:37:37]state=2 [09:37:37]Key pressed [09:37:38]int [09:37:38]Write to MH i2c: 01 00 00 32 27 59 [09:37:38]*** FLAG_PRN_KEY reset [09:37:38]Write i2c OK [09:37:38]MH_I2C_Read... [09:37:38]Read from MH i2c: 01 [09:37:38]MH_I2C_Read... [09:37:38]Read from MH i2c: 01 07 00 [09:37:38]MH_I2C_Read... [09:37:38]Read from MH i2c: 01 07 00 32 27 00 00 00 00 00 F6 0F 65 [09:37:38]state=2 [09:37:38]Stop feed [09:37:40]OFD Sender: No OFD packet to send [09:37:45]OFD Sender: No OFD packet to send [09:37:50]OFD Sender: No OFD packet to send [09:37:55]OFD Sender: No OFD packet to send [09:38:00]OFD Sender: No OFD packet to send [09:38:05]OFD Sender: No OFD packet to send [09:38:10]OFD Sender: No OFD packet to send [09:38:15]OFD Sender: No OFD packet to send [09:38:20]OFD Sender: No OFD packet to send [09:38:25]OFD Sender: No OFD packet to send [09:38:30]OFD Sender: No OFD packet to send [09:38:35]OFD Sender: No OFD packet to send [09:38:40]OFD Sender: No OFD packet to send [09:38:45]OFD Sender: No OFD packet to send [09:38:50]OFD Sender: No OFD packet to send [09:38:55]OFD Sender: No OFD packet to send [09:39:00]OFD Sender: No OFD packet to send [09:39:05]OFD Sender: No OFD packet to send [09:39:10]OFD Sender: No OFD packet to send [09:39:15]OFD Sender: No OFD packet to send [09:39:20]OFD Sender: No OFD packet to send [09:39:25]OFD Sender: No OFD packet to send [09:39:30]OFD Sender: No OFD packet to send [09:39:35]OFD Sender: No OFD packet to send [09:39:40]OFD Sender: No OFD packet to send [09:39:45]OFD Sender: No OFD packet to send [09:39:50]OFD Sender: No OFD packet to send [09:39:55]OFD Sender: No OFD packet to send [09:40:00]OFD Sender: No OFD packet to send [09:40:05]OFD Sender: No OFD packet to send [09:40:10]OFD Sender: No OFD packet to send [09:40:15]OFD Sender: No OFD packet to send [09:40:20]OFD Sender: No OFD packet to send [09:40:25]OFD Sender: No OFD packet to send [09:40:30]OFD Sender: No OFD packet to send [09:40:35]OFD Sender: No OFD packet to send [09:40:39]accept exits with 10 [09:40:39]New connection [09:40:39]New thread 3066752356 created [09:40:39]Thread 3066608996 joined [09:40:39]Waiting for new connection... [09:40:39] Sock 10.Parse request [09:40:39]Sock 10.Check first char [09:40:39]Sock 10.First char is OK [09:40:39]request: POST /json_proto HTTP/1.0 [09:40:39]Method: POST [09:40:39]URL: /json_proto [09:40:39]Method is POST - this is cgi request [09:40:39]url: /json_proto [09:40:39]query_string will be loaded in cgi processing [09:40:39]execute_cgi json_proto POST (null) [09:40:39]execute_cgi path=json_proto method=POST [09:40:39]POST find Content-Length [09:40:39]Host: 172.17.41.195:8080 [09:40:39]Content-Length: 1209 [09:40:39]Content-Type: application/json [09:40:39] [09:40:39]POST finish read [09:40:39]Found Content-Length = 1209 [09:40:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0440\u0441\u0442\u0430\u043D\u0431\u0435\u043A\u043E\u0432 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)507983\u000A18.05.2024 09:23\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 15.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 1120.50\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:40:39]execute_script... [09:40:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0440\u0441\u0442\u0430\u043D\u0431\u0435\u043A\u043E\u0432 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)507983\u000A18.05.2024 09:23\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 15.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 1120.50\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:40:39]POST & json_proto [09:40:39]process_json_proto [09:40:39]json parsed OK: [09:40:39]protocol is kg_v1.0 [09:40:39]action value=print_text [09:40:39]process_action print_text [09:40:39]cmd_print_text [09:40:39]ExternCall_PrintAddStr [09:40:39]wPrintStart [09:40:39]Write to MH i2c: 01 00 00 33 27 5A [09:40:39]Write i2c OK [09:40:39]MH_I2C_Read... [09:40:39]Read from MH i2c: 01 [09:40:39]MH_I2C_Read... [09:40:39]Read from MH i2c: 01 07 00 [09:40:39]MH_I2C_Read... [09:40:39]Read from MH i2c: 01 07 00 33 27 00 00 00 00 00 FF 0F 6F [09:40:39]RasterBufferAndPrint [09:40:39]line *****ТОВАРНЫЙ ЧЕК***** [09:40:39]line АЗС-91 [09:40:39]line Партнер нефть [09:40:39]line 02508201610067 [09:40:39]line Кассир : Арстанбеков Н. [09:40:39]line Счет N : (1)507983 [09:40:39]line 18.05.2024 09:23 [09:40:39]line ПРОДАЖА [09:40:39]line ТРК (МРК, ГНК): 31 [09:40:39]line Вид ГСМ : 2710194210 [09:40:39]line ДТ-К-5 [09:40:39]line 15.000 x 74.70 [09:40:39]line ИТОГ: 1120.50 [09:40:39]line Тип оплаты: Талоны: Топливная Карта [09:40:39]line 02750 [09:40:39]line ______________________ [09:40:39]line (подпись) [09:40:39]written 0, free lines is 4095 [09:40:40]Write to MH i2c: 01 00 00 47 27 6E [09:40:40]Write i2c OK [09:40:40]MH_I2C_Read... [09:40:40]Read from MH i2c: 01 [09:40:40]MH_I2C_Read... [09:40:40]Read from MH i2c: 01 07 00 [09:40:40]MH_I2C_Read... [09:40:40]Read from MH i2c: 01 07 00 47 27 00 00 00 00 00 12 0E 95 [09:40:40]RasterBufferAndPrint [09:40:40]line [09:40:40]line [09:40:40]line [09:40:40]line [09:40:40]line [09:40:40]written 0, free lines is 3604 [09:40:40]MH_Cut [09:40:40]Write to MH i2c: D1 01 00 4E 27 01 47 [09:40:40]Write i2c OK [09:40:40]MH_I2C_Read... [09:40:40]Read from MH i2c: D1 [09:40:40]MH_I2C_Read... [09:40:40]Read from MH i2c: D1 01 00 [09:40:40]MH_I2C_Read... [09:40:40]Read from MH i2c: D1 01 00 4E 27 00 46 [09:40:40]Write to MH i2c: 01 00 00 4F 27 76 [09:40:40]Write i2c OK [09:40:40]MH_I2C_Read... [09:40:40]OFD Sender: No OFD packet to send [09:40:40]*** Cut start [09:40:40]*** Purtial cut [09:40:40]*** CUTSNS_PIN = 0 [09:40:41]*** Stage 1: CUTSNS_PIN = 1 [09:40:42]Read from MH i2c: 01 [09:40:42]MH_I2C_Read... [09:40:42]*** Stop cut motor [09:40:42]*** Cut end [09:40:42]Read from MH i2c: 01 07 00 [09:40:42]MH_I2C_Read... [09:40:42]Read from MH i2c: 01 07 00 4F 27 00 00 00 00 00 FF 0F 8B [09:40:42]process_action print_text done [09:40:42]requested_data is exist [09:40:42]produce_requested_data [09:40:42]requested_item fm.sn is exist - process it [09:40:42]wFMCommunicate request_size=4 [09:40:42]MH_SAM_APDU [09:40:42]CAPDU: 80 11 00 00 [09:40:42]Write to MH i2c: E2 08 00 50 27 80 11 00 00 00 00 00 00 F1 [09:40:42]Write i2c OK [09:40:42]MH_I2C_Read... [09:40:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:40:42]Read from MH i2c: E2 [09:40:42]MH_I2C_Read... [09:40:42]Read from MH i2c: E2 17 00 [09:40:42]MH_I2C_Read... [09:40:42]Read from MH i2c: E2 17 00 50 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 47 [09:40:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [09:40:42]wFMCommunicate OK [09:40:42]requested_item fd.num is exist - process it [09:40:42]SAM_PROTO_GetFieldsCounters [09:40:42]wFMCommunicate request_size=4 [09:40:42]MH_SAM_APDU [09:40:42]CAPDU: 80 13 00 00 [09:40:42]Write to MH i2c: E2 08 00 51 27 80 13 00 00 00 00 00 00 F4 [09:40:42]Write i2c OK [09:40:42]MH_I2C_Read... [09:40:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:40:42]Read from MH i2c: E2 [09:40:42]MH_I2C_Read... [09:40:42]Read from MH i2c: E2 62 00 [09:40:42]MH_I2C_Read... [09:40:42]Read from MH i2c: E2 62 00 51 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 CE 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 B0 [09:40:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 CE 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:40:42]wFMCommunicate OK [09:40:42]SAM_PROTO_GetFieldsCounters done [09:40:42]requested_item shift.num is exist - process it [09:40:42]requested_item shift.opened is exist - process it [09:40:42]req_shift_opened [09:40:42]FM_GetShiftState [09:40:42]SAM_PROTO_GetShiftState [09:40:42]wFMCommunicate request_size=4 [09:40:42]MH_SAM_APDU [09:40:42]CAPDU: 80 13 01 00 [09:40:42]Write to MH i2c: E2 08 00 52 27 80 13 01 00 00 00 00 00 F6 [09:40:42]Write i2c OK [09:40:42]MH_I2C_Read... [09:40:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:40:43]Read from MH i2c: E2 [09:40:43]MH_I2C_Read... [09:40:43]Read from MH i2c: E2 0E 00 [09:40:43]MH_I2C_Read... [09:40:43]Read from MH i2c: E2 0E 00 52 27 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 5D [09:40:43]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [09:40:43]wFMCommunicate OK [09:40:43]SAM_PROTO_GetShiftState done [09:40:43]FM_GetShiftState done [09:40:43]req_shift_opened done [09:40:43]requested_item shift.open_date is exist - process it [09:40:43]req_shift_open_date [09:40:43]req_shift_open_date done [09:40:43]produce_requested_data done [09:40:43]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67790,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [09:40:43]process_action_free print_text [09:40:43]json_value_free [09:40:43]json_value_free done [09:40:43]process_json_proto returns [09:40:43]Send response to host [09:40:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67790,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [09:40:43]free response buf [09:40:43]execute_script done [09:40:43]execute_script returns [09:40:43]free content buf [09:40:43]Sock 10.Close socket [09:40:43]Sock 10.Thread stoped [09:40:45]OFD Sender: No OFD packet to send [09:40:50]OFD Sender: No OFD packet to send [09:40:55]OFD Sender: No OFD packet to send [09:41:00]OFD Sender: No OFD packet to send [09:41:05]OFD Sender: No OFD packet to send [09:41:10]OFD Sender: No OFD packet to send [09:41:15]OFD Sender: No OFD packet to send [09:41:20]OFD Sender: No OFD packet to send [09:41:25]OFD Sender: No OFD packet to send [09:41:30]OFD Sender: No OFD packet to send [09:41:35]OFD Sender: No OFD packet to send [09:41:40]OFD Sender: No OFD packet to send [09:41:45]OFD Sender: No OFD packet to send [09:41:50]OFD Sender: No OFD packet to send [09:41:55]OFD Sender: No OFD packet to send [09:42:00]OFD Sender: No OFD packet to send [09:42:05]OFD Sender: No OFD packet to send [09:42:10]OFD Sender: No OFD packet to send [09:42:15]OFD Sender: No OFD packet to send [09:42:18]accept exits with 7 [09:42:18]New connection [09:42:18]New thread 3066608996 created [09:42:18]Thread 3066752356 joined [09:42:18]Waiting for new connection... [09:42:18] Sock 7.Parse request [09:42:18]Sock 7.Check first char [09:42:18]Sock 7.First char is OK [09:42:18]request: POST /json_proto HTTP/1.0 [09:42:18]Method: POST [09:42:18]URL: /json_proto [09:42:18]Method is POST - this is cgi request [09:42:18]url: /json_proto [09:42:18]query_string will be loaded in cgi processing [09:42:18]execute_cgi json_proto POST (null) [09:42:18]execute_cgi path=json_proto method=POST [09:42:18]POST find Content-Length [09:42:18]Host: 172.17.41.195:8080 [09:42:18]Content-Length: 800 [09:42:18]Content-Type: application/json [09:42:18] [09:42:18]POST finish read [09:42:18]Found Content-Length = 800 [09:42:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507984", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.80, "quantity" : 4.500, "sum" : 300.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 300.60 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:42:18]execute_script... [09:42:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507984", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.80, "quantity" : 4.500, "sum" : 300.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 300.60 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:42:18]POST & json_proto [09:42:18]process_json_proto [09:42:18]json parsed OK: [09:42:18]protocol is kg_v1.0 [09:42:18]action value=close_receipt [09:42:18]process_action close_receipt [09:42:18]cmd_close_receipt [09:42:18]MH_GetDate [09:42:18]Write to MH i2c: F0 00 00 53 27 69 [09:42:18]Write i2c OK [09:42:18]MH_I2C_Read... [09:42:18]Read from MH i2c: F0 [09:42:18]MH_I2C_Read... [09:42:18]Read from MH i2c: F0 09 00 [09:42:18]MH_I2C_Read... [09:42:18]Read from MH i2c: F0 09 00 53 27 00 FF 77 48 66 FC 21 6F 64 86 [09:42:18]GetLastDocTimeStamp 1716024961 [09:42:18]current date 1716025343 [09:42:18]FM_GetShiftState [09:42:18]SAM_PROTO_GetShiftState [09:42:18]wFMCommunicate request_size=4 [09:42:18]MH_SAM_APDU [09:42:18]CAPDU: 80 13 01 00 [09:42:18]Write to MH i2c: E2 08 00 54 27 80 13 01 00 00 00 00 00 F8 [09:42:18]Write i2c OK [09:42:18]MH_I2C_Read... [09:42:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:42:18]Read from MH i2c: E2 [09:42:18]MH_I2C_Read... [09:42:18]Read from MH i2c: E2 0E 00 [09:42:18]MH_I2C_Read... [09:42:18]Read from MH i2c: E2 0E 00 54 27 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 5F [09:42:18]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [09:42:18]wFMCommunicate OK [09:42:18]SAM_PROTO_GetShiftState done [09:42:18]FM_GetShiftState done [09:42:18]opened in 1715991483 [09:42:18]opened+sec_in_day 1716077883 [09:42:18]quantity*price = 30060 [09:42:18]sum+1 = 30061 [09:42:18]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.60 НСП 1% : 2.66 НДС 12% : 31.92 Наличными: 0.00 Безнал.: 300.60 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 30 18.05.2024 09:42 Смена: 359 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67791 ФПД: 111289879396243 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T094223&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67791&fm=111289879396243&tin=02508201610067®Number=0000000000091845&sum=30060 [09:42:19]StoreToDocumentArchive [09:42:19]shift 359 fd 67791 [09:42:19]save to /storage/0359/doc_00067791 [09:42:19]save last doc name /storage/0359/doc_00067791 to /storage/kkm_last_doc_name [09:42:19]save OK [09:42:19]Clear old archive folders... [09:42:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:42:19]tlvbuf is B6E90620 [09:42:19]SAM_PROTO_ClearQueue [09:42:19]wFMCommunicate request_size=4 [09:42:19]MH_SAM_APDU [09:42:19]CAPDU: 80 09 00 00 [09:42:19]Write to MH i2c: E2 08 00 61 27 80 09 00 00 00 00 00 00 FA [09:42:19]Write i2c OK [09:42:19]MH_I2C_Read... [09:42:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:42:19]Read from MH i2c: E2 [09:42:19]MH_I2C_Read... [09:42:19]Read from MH i2c: E2 03 00 [09:42:19]MH_I2C_Read... [09:42:19]Read from MH i2c: E2 03 00 61 27 00 90 00 FC [09:42:19]RAPDU: 90 00 [09:42:19]wFMCommunicate OK [09:42:19]SAM_PROTO_ClearQueue done [09:42:19]KKMCreateOFDPacket [09:42:19]OFDProtocolAddRootSTLVToBuf [09:42:19]FM_MakeSignedData [09:42:19]FM_MakeSignedData [09:42:19]SAM_PROTO_SignData [09:42:19]wFMCommunicate request_size=4 [09:42:19]MH_SAM_APDU [09:42:19]CAPDU: 80 0D 01 02 [09:42:19]Write to MH i2c: E2 08 00 62 27 80 0D 01 02 00 00 00 00 02 [09:42:19]Write i2c OK [09:42:19]MH_I2C_Read... [09:42:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:42:19]Read from MH i2c: E2 [09:42:19]MH_I2C_Read... [09:42:19]Read from MH i2c: E2 03 00 [09:42:19]MH_I2C_Read... [09:42:19]Read from MH i2c: E2 03 00 62 27 00 90 00 FD [09:42:19]RAPDU: 90 00 [09:42:19]wFMCommunicate OK [09:42:19]wFMCommunicate request_size=255 [09:42:19]MH_SAM_APDU [09:42:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 94 11 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 6C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6C 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 FF 77 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 CF 08 01 00 35 04 06 00 65 [09:42:19]Write to MH i2c: E2 02 01 63 27 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 94 11 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 6C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6C 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 FF 77 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 CF 08 01 00 35 04 06 00 65 00 00 01 [09:42:19]Write i2c OK [09:42:19]MH_I2C_Read... [09:42:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:42:20]Read from MH i2c: E2 [09:42:20]MH_I2C_Read... [09:42:20]Read from MH i2c: E2 03 00 [09:42:20]MH_I2C_Read... [09:42:20]Read from MH i2c: E2 03 00 63 27 00 90 00 FE [09:42:20]RAPDU: 90 00 [09:42:20]wFMCommunicate OK [09:42:20]wFMCommunicate request_size=10 [09:42:20]MH_SAM_APDU [09:42:20]CAPDU: 80 0D 02 02 05 37 B1 BA 7F 93 [09:42:20]Write to MH i2c: E2 0D 00 64 27 80 0D 02 02 05 00 37 B1 BA 7F 93 00 00 C3 [09:42:20]Write i2c OK [09:42:20]MH_I2C_Read... [09:42:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:42:20]Read from MH i2c: E2 [09:42:20]MH_I2C_Read... [09:42:20]Read from MH i2c: E2 03 00 [09:42:20]MH_I2C_Read... [09:42:20]Read from MH i2c: E2 03 00 64 27 00 90 00 FF [09:42:20]RAPDU: 90 00 [09:42:20]wFMCommunicate OK [09:42:20]wFMCommunicate request_size=4 [09:42:20]MH_SAM_APDU [09:42:20]CAPDU: 80 0D 03 02 [09:42:20]Write to MH i2c: E2 08 00 65 27 80 0D 03 02 00 00 00 00 07 [09:42:20]Write i2c OK [09:42:20]MH_I2C_Read... [09:42:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:42:20]Read from MH i2c: E2 [09:42:20]MH_I2C_Read... [09:42:20]Read from MH i2c: E2 0B 00 [09:42:20]MH_I2C_Read... [09:42:20]Read from MH i2c: E2 0B 00 65 27 00 8F 4C 64 99 B0 3C C3 46 90 00 D5 [09:42:20]RAPDU: 8F 4C 64 99 B0 3C C3 46 90 00 [09:42:20]wFMCommunicate OK [09:42:20]SAM_PROTO_SignData done [09:42:20]FM_MakeSignedData done [09:42:20]CreateOFDProtocolMessage [09:42:20]wFMCommunicate request_size=4 [09:42:20]MH_SAM_APDU [09:42:20]CAPDU: 80 11 00 00 [09:42:20]Write to MH i2c: E2 08 00 66 27 80 11 00 00 00 00 00 00 07 [09:42:20]Write i2c OK [09:42:20]MH_I2C_Read... [09:42:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:42:20]Read from MH i2c: E2 [09:42:20]MH_I2C_Read... [09:42:20]Read from MH i2c: E2 17 00 [09:42:20]MH_I2C_Read... [09:42:20]Read from MH i2c: E2 17 00 66 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 5D [09:42:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [09:42:20]wFMCommunicate OK [09:42:20]CreateOFDProtocolMessage done [09:42:20]OFDSenderStorePacket 67791 [09:42:20]StoreOFDPacket docnum=67791 [09:42:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 4E C4 07 01 EF 9D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 94 11 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 6C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6C 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 FF 77 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 CF 08 01 00 35 04 06 00 65 37 B1 BA 7F 93 8F 4C 64 99 B0 3C C3 46 [09:42:20]CheckFolder [09:42:20]dirname=/storage/ofd_packets [09:42:20]CheckFolder done [09:42:20]ProducePacketName [09:42:20]name=ofd_packets/00067791 [09:42:20]NVStorageSaveData ofd_packets/00067791 [09:42:20]File name is /storage/ofd_packets/00067791 [09:42:20]Write 301 bytes [09:42:20]NVStorageSaveData done [09:42:20]OFDSenderStorePacket done [09:42:20]KKMCreateOFDPacket done [09:42:20]NVStorageSaveData kkm_last_timestamp [09:42:20]File name is /storage/kkm_last_timestamp [09:42:20]Write 4 bytes [09:42:20]NVStorageSaveData done [09:42:20]ExternCall_PrintAddStr [09:42:20]wPrintStart [09:42:20]Write to MH i2c: 01 00 00 67 27 8E [09:42:20]Write i2c OK [09:42:20]MH_I2C_Read... [09:42:20]Read from MH i2c: 01 [09:42:20]MH_I2C_Read... [09:42:20]Read from MH i2c: 01 07 00 [09:42:20]MH_I2C_Read... [09:42:20]Read from MH i2c: 01 07 00 67 27 00 00 00 00 00 FF 0F A3 [09:42:20]RasterBufferAndPrint [09:42:20]line Счет N : (1)507984 [09:42:20]line ИНН: 02508201610067 [09:42:20]line Контрольно-Кассовый Чек [09:42:20]line ПРОДАЖА [09:42:20]line ТРК (МРК, ГНК) : 43 [09:42:20]line Товар: 2710124130 [09:42:20]line Аи-92-К-5 [09:42:20]line 4.500 * 66.80 [09:42:20]line = 300.60 [09:42:20]line НДС 12% НСП 1% [09:42:20]line > о реализуемом товаре [09:42:20]line ИТОГО: 300.60 [09:42:20]line НСП 1% : 2.66 [09:42:20]line НДС 12% : 31.92 [09:42:20]line Наличными: 0.00 [09:42:20]line Безнал.: 300.60 [09:42:20]line Место: АЗС № 91 "Партнер Нефть" [09:42:20]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [09:42:20]line СНО: Общий режим [09:42:20]line Чек 30 18.05.2024 09:42 [09:42:20]line Смена: 359 ФФД: 1.0 [09:42:20]line ЗНМ: 0300000119 [09:42:20]line РНМ: 0000000000091845 [09:42:20]line Версия ККМ: 001 [09:42:20]line Платежная система: O! деньги [09:42:20]line ФМ: 0000000000871829 [09:42:20]line ФД: 67791 [09:42:20]line ФПД: 111289879396243 [09:42:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T094223&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67791&fm=111289879396243&tin=02508201610067®Number=0000000000091845&sum=30060 [09:42:20]written 0, free lines is 4095 [09:42:20]OFD Sender: Processing packet 67791 [packets to send 35, broken 34] [09:42:20]ProducePacketName [09:42:20]name=ofd_packets/00067791 [09:42:20]OFD Sender: To server: pG, [09:42:20]CommunicateWithHost lk.salyk.kg:30040 [09:42:20]ConnectInit lk.salyk.kg [09:42:20]Connected sock=10 [09:42:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 4E C4 07 01 EF 9D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 94 11 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 6C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6C 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 FF 77 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 CF 08 01 00 35 04 06 00 65 37 B1 BA 7F 93 8F 4C 64 99 B0 3C C3 46 [09:42:20]Write to MH i2c: 01 00 00 90 27 B7 [09:42:20]Write i2c OK [09:42:20]MH_I2C_Read... [09:42:20]Read from MH i2c: 01 [09:42:20]MH_I2C_Read... [09:42:20]Read from MH i2c: 01 07 00 [09:42:20]MH_I2C_Read... [09:42:20]Read from MH i2c: 01 07 00 90 27 00 00 00 00 00 F7 0C C1 [09:42:20]RasterBufferAndPrint [09:42:20]line [09:42:20]line [09:42:20]line [09:42:20]line [09:42:20]line [09:42:20]written 0, free lines is 3325 [09:42:20]MH_Cut [09:42:20]Write to MH i2c: D1 01 00 97 27 01 90 [09:42:20]Write i2c OK [09:42:20]MH_I2C_Read... [09:42:20]Read from MH i2c: D1 [09:42:20]MH_I2C_Read... [09:42:20]Read from MH i2c: D1 01 00 [09:42:20]MH_I2C_Read... [09:42:20]Read from MH i2c: D1 01 00 97 27 00 8F [09:42:20]Write to MH i2c: 01 00 00 98 27 BF [09:42:20]Write i2c OK [09:42:20]MH_I2C_Read... [09:42:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 8A D7 47 00 CC 16 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 CF 08 01 00 F4 03 04 00 D5 1F 48 66 B6 04 01 00 00 39 FF 84 9A 11 CF 96 2D [09:42:20]CommunicateWithHost err = 0 [09:42:20]CheckOFDResponse [09:42:20]1017 (14) - 77093643461234 [09:42:20]1041 (16) - 0000000000871829 [09:42:20]1040 (4) - 67791 [09:42:20]1012 (4) - 18.05.2024 03:26 [09:42:20]1206 (1) - 0 [09:42:20]OFD Sender: Remove packet 67791 [09:42:20]ProducePacketName [09:42:20]name=ofd_packets/00067791 [09:42:20]NVStorageDeleteData [09:42:21]OFD Sender: No OFD packet to send [09:42:21]*** Cut start [09:42:21]*** Purtial cut [09:42:21]*** Stage 1: CUTSNS_PIN = 1 [09:42:21]Read from MH i2c: 01 [09:42:21]MH_I2C_Read... [09:42:21]*** Stop cut motor [09:42:21]*** Cut end [09:42:21]Read from MH i2c: 01 07 00 [09:42:21]MH_I2C_Read... [09:42:21]Read from MH i2c: 01 07 00 98 27 00 00 00 00 00 FF 0F D4 [09:42:21]process_action close_receipt done [09:42:21]requested_data is exist [09:42:21]produce_requested_data [09:42:21]requested_item fm.sn is exist - process it [09:42:21]wFMCommunicate request_size=4 [09:42:21]MH_SAM_APDU [09:42:21]CAPDU: 80 11 00 00 [09:42:21]Write to MH i2c: E2 08 00 99 27 80 11 00 00 00 00 00 00 3A [09:42:21]Write i2c OK [09:42:21]MH_I2C_Read... [09:42:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:42:21]Read from MH i2c: E2 [09:42:21]MH_I2C_Read... [09:42:21]Read from MH i2c: E2 17 00 [09:42:21]MH_I2C_Read... [09:42:21]Read from MH i2c: E2 17 00 99 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 90 [09:42:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [09:42:21]wFMCommunicate OK [09:42:21]requested_item fd.num is exist - process it [09:42:21]SAM_PROTO_GetFieldsCounters [09:42:21]wFMCommunicate request_size=4 [09:42:21]MH_SAM_APDU [09:42:21]CAPDU: 80 13 00 00 [09:42:21]Write to MH i2c: E2 08 00 9A 27 80 13 00 00 00 00 00 00 3D [09:42:21]Write i2c OK [09:42:21]MH_I2C_Read... [09:42:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:42:21]Read from MH i2c: E2 [09:42:21]MH_I2C_Read... [09:42:21]Read from MH i2c: E2 62 00 [09:42:21]MH_I2C_Read... [09:42:21]Read from MH i2c: E2 62 00 9A 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 CF 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 FD [09:42:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 CF 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:42:21]wFMCommunicate OK [09:42:21]SAM_PROTO_GetFieldsCounters done [09:42:21]requested_item shift.num is exist - process it [09:42:21]requested_item shift.opened is exist - process it [09:42:21]req_shift_opened [09:42:21]FM_GetShiftState [09:42:21]SAM_PROTO_GetShiftState [09:42:21]wFMCommunicate request_size=4 [09:42:21]MH_SAM_APDU [09:42:21]CAPDU: 80 13 01 00 [09:42:21]Write to MH i2c: E2 08 00 9B 27 80 13 01 00 00 00 00 00 3F [09:42:21]Write i2c OK [09:42:21]MH_I2C_Read... [09:42:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:42:22]Read from MH i2c: E2 [09:42:22]MH_I2C_Read... [09:42:22]Read from MH i2c: E2 0E 00 [09:42:22]MH_I2C_Read... [09:42:22]Read from MH i2c: E2 0E 00 9B 27 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 A6 [09:42:22]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [09:42:22]wFMCommunicate OK [09:42:22]SAM_PROTO_GetShiftState done [09:42:22]FM_GetShiftState done [09:42:22]req_shift_opened done [09:42:22]requested_item shift.open_date is exist - process it [09:42:22]req_shift_open_date [09:42:22]req_shift_open_date done [09:42:22]produce_requested_data done [09:42:22]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67791,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [09:42:22]process_action_free close_receipt [09:42:22]json_value_free [09:42:22]json_value_free done [09:42:22]process_json_proto returns [09:42:22]Send response to host [09:42:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67791,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [09:42:22]free response buf [09:42:22]execute_script done [09:42:22]execute_script returns [09:42:22]free content buf [09:42:22]Sock 7.Close socket [09:42:22]Sock 7.Thread stoped [09:42:26]OFD Sender: No OFD packet to send [09:42:31]OFD Sender: No OFD packet to send [09:42:36]OFD Sender: No OFD packet to send [09:42:41]OFD Sender: No OFD packet to send [09:42:46]OFD Sender: No OFD packet to send [09:42:51]OFD Sender: No OFD packet to send [09:42:56]OFD Sender: No OFD packet to send [09:43:01]OFD Sender: No OFD packet to send [09:43:06]OFD Sender: No OFD packet to send [09:43:11]OFD Sender: No OFD packet to send [09:43:16]OFD Sender: No OFD packet to send [09:43:21]OFD Sender: No OFD packet to send [09:43:26]OFD Sender: No OFD packet to send [09:43:31]OFD Sender: No OFD packet to send [09:43:36]OFD Sender: No OFD packet to send [09:43:41]OFD Sender: No OFD packet to send [09:43:46]OFD Sender: No OFD packet to send [09:43:51]OFD Sender: No OFD packet to send [09:43:56]OFD Sender: No OFD packet to send [09:44:01]OFD Sender: No OFD packet to send [09:44:06]OFD Sender: No OFD packet to send [09:44:11]OFD Sender: No OFD packet to send [09:44:11]int [09:44:11]Write to MH i2c: 01 00 00 9C 27 C3 [09:44:11]*** FLAG_PRN_KEY set [09:44:11]Write i2c OK [09:44:11]MH_I2C_Read... [09:44:11]Read from MH i2c: 01 [09:44:11]MH_I2C_Read... [09:44:11]Read from MH i2c: 01 07 00 [09:44:11]MH_I2C_Read... [09:44:11]Read from MH i2c: 01 07 00 9C 27 00 08 00 00 00 FF 0F E0 [09:44:11]state=0 [09:44:11]Key pressed [09:44:11]Feed [09:44:11]Write to MH i2c: D8 00 00 9D 27 9B [09:44:11]Write i2c OK [09:44:11]MH_I2C_Read... [09:44:11]Read from MH i2c: D8 [09:44:11]MH_I2C_Read... [09:44:11]Read from MH i2c: D8 01 00 [09:44:11]MH_I2C_Read... [09:44:11]Read from MH i2c: D8 01 00 9D 27 00 9C [09:44:11]int [09:44:11]Write to MH i2c: 01 00 00 9E 27 C5 [09:44:11]Write i2c OK [09:44:11]MH_I2C_Read... [09:44:11]Read from MH i2c: 01 [09:44:11]MH_I2C_Read... [09:44:11]Read from MH i2c: 01 07 00 [09:44:11]MH_I2C_Read... [09:44:11]Read from MH i2c: 01 07 00 9E 27 00 48 00 00 00 3C 00 50 [09:44:11]state=2 [09:44:11]Key pressed [09:44:11]int [09:44:11]Write to MH i2c: 01 00 00 9F 27 C6 [09:44:11]*** FLAG_PRN_KEY reset [09:44:11]Write i2c OK [09:44:11]MH_I2C_Read... [09:44:11]Read from MH i2c: 01 [09:44:11]MH_I2C_Read... [09:44:11]Read from MH i2c: 01 07 00 [09:44:11]MH_I2C_Read... [09:44:11]Read from MH i2c: 01 07 00 9F 27 00 00 00 00 00 FF 0F DB [09:44:11]state=2 [09:44:11]Stop feed [09:44:13]int [09:44:13]Write to MH i2c: 01 00 00 A0 27 C7 [09:44:13]*** FLAG_PRN_PAP1 set [09:44:13]Write i2c OK [09:44:13]MH_I2C_Read... [09:44:13]Read from MH i2c: 01 [09:44:13]MH_I2C_Read... [09:44:13]Read from MH i2c: 01 07 00 [09:44:13]MH_I2C_Read... [09:44:13]Read from MH i2c: 01 07 00 A0 27 00 01 00 00 00 FF 0F DD [09:44:13]state=0 [09:44:13]No paper [09:44:14]int [09:44:14]Write to MH i2c: 01 00 00 A1 27 C8 [09:44:14]*** FLAG_PRN_PAP2 set [09:44:14]Write i2c OK [09:44:14]MH_I2C_Read... [09:44:14]Read from MH i2c: 01 [09:44:14]MH_I2C_Read... [09:44:14]Read from MH i2c: 01 07 00 [09:44:14]MH_I2C_Read... [09:44:14]Read from MH i2c: 01 07 00 A1 27 00 03 00 00 00 FF 0F E0 [09:44:14]state=0 [09:44:14]No paper [09:44:14]Cover opened [09:44:16]OFD Sender: No OFD packet to send [09:44:19]Write to MH i2c: 01 00 00 A2 27 C9 [09:44:19]Write i2c OK [09:44:19]MH_I2C_Read... [09:44:19]Read from MH i2c: 01 [09:44:19]MH_I2C_Read... [09:44:19]Read from MH i2c: 01 07 00 [09:44:19]MH_I2C_Read... [09:44:19]Read from MH i2c: 01 07 00 A2 27 00 03 00 00 00 FF 0F E1 [09:44:19]state=3 [09:44:19]No paper [09:44:19]Cover opened [09:44:21]OFD Sender: No OFD packet to send [09:44:24]Write to MH i2c: 01 00 00 A3 27 CA [09:44:24]Write i2c OK [09:44:24]MH_I2C_Read... [09:44:24]Read from MH i2c: 01 [09:44:24]MH_I2C_Read... [09:44:24]Read from MH i2c: 01 07 00 [09:44:24]MH_I2C_Read... [09:44:24]Read from MH i2c: 01 07 00 A3 27 00 03 00 00 00 FF 0F E2 [09:44:24]state=3 [09:44:24]No paper [09:44:24]Cover opened [09:44:26]OFD Sender: No OFD packet to send [09:44:29]Write to MH i2c: 01 00 00 A4 27 CB [09:44:29]Write i2c OK [09:44:29]MH_I2C_Read... [09:44:29]Read from MH i2c: 01 [09:44:29]MH_I2C_Read... [09:44:29]Read from MH i2c: 01 07 00 [09:44:29]MH_I2C_Read... [09:44:29]Read from MH i2c: 01 07 00 A4 27 00 03 00 00 00 FF 0F E3 [09:44:29]state=3 [09:44:29]No paper [09:44:29]Cover opened [09:44:30]int [09:44:30]Write to MH i2c: 01 00 00 A5 27 CC [09:44:30]Write i2c OK [09:44:30]MH_I2C_Read... [09:44:30]Read from MH i2c: 01 [09:44:30]MH_I2C_Read... [09:44:30]Read from MH i2c: 01 07 00 [09:44:30]MH_I2C_Read... [09:44:30]*** FLAG_PRN_PAP1 reset [09:44:30]*** FLAG_PRN_PAP2 reset [09:44:30]Read from MH i2c: 01 07 00 A5 27 00 00 00 00 00 FF 0F E1 [09:44:30]state=3 [09:44:30]Cover closed [09:44:31]OFD Sender: No OFD packet to send [09:44:36]OFD Sender: No OFD packet to send [09:44:41]OFD Sender: No OFD packet to send [09:44:46]OFD Sender: No OFD packet to send [09:44:51]OFD Sender: No OFD packet to send [09:44:53]accept exits with 9 [09:44:53]New connection [09:44:53]New thread 3066752356 created [09:44:53]Thread 3066608996 joined [09:44:53]Waiting for new connection... [09:44:53] Sock 9.Parse request [09:44:53]Sock 9.Check first char [09:44:53]Sock 9.First char is OK [09:44:53]request: POST /json_proto HTTP/1.0 [09:44:53]Method: POST [09:44:53]URL: /json_proto [09:44:53]Method is POST - this is cgi request [09:44:53]url: /json_proto [09:44:53]query_string will be loaded in cgi processing [09:44:53]execute_cgi json_proto POST (null) [09:44:53]execute_cgi path=json_proto method=POST [09:44:53]POST find Content-Length [09:44:53]Host: 172.17.41.195:8080 [09:44:53]Content-Length: 215 [09:44:53]Content-Type: application/json [09:44:53] [09:44:53]POST finish read [09:44:53]Found Content-Length = 215 [09:44:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:44:53]execute_script... [09:44:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:44:53]POST & json_proto [09:44:53]process_json_proto [09:44:53]json parsed OK: [09:44:53]protocol is kg_v1.0 [09:44:53]action value=get_value [09:44:53]process_action get_value [09:44:53]cmd_get_value [09:44:53]process_action get_value done [09:44:53]requested_data is exist [09:44:53]produce_requested_data [09:44:53]requested_item kkm.sn is exist - process it [09:44:53]requested_item kkm.ver is exist - process it [09:44:53]requested_item fm.sn is exist - process it [09:44:53]wFMCommunicate request_size=4 [09:44:53]MH_SAM_APDU [09:44:53]CAPDU: 80 11 00 00 [09:44:53]Write to MH i2c: E2 08 00 A6 27 80 11 00 00 00 00 00 00 47 [09:44:53]Write i2c OK [09:44:53]MH_I2C_Read... [09:44:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:44:53]Read from MH i2c: E2 [09:44:53]MH_I2C_Read... [09:44:53]Read from MH i2c: E2 17 00 [09:44:53]MH_I2C_Read... [09:44:53]Read from MH i2c: E2 17 00 A6 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 9D [09:44:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [09:44:53]wFMCommunicate OK [09:44:53]requested_item fd.num is exist - process it [09:44:53]SAM_PROTO_GetFieldsCounters [09:44:53]wFMCommunicate request_size=4 [09:44:53]MH_SAM_APDU [09:44:53]CAPDU: 80 13 00 00 [09:44:53]Write to MH i2c: E2 08 00 A7 27 80 13 00 00 00 00 00 00 4A [09:44:53]Write i2c OK [09:44:53]MH_I2C_Read... [09:44:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:44:53]Read from MH i2c: E2 [09:44:53]MH_I2C_Read... [09:44:53]Read from MH i2c: E2 62 00 [09:44:53]MH_I2C_Read... [09:44:53]Read from MH i2c: E2 62 00 A7 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 CF 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 0A [09:44:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 CF 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:44:53]wFMCommunicate OK [09:44:53]SAM_PROTO_GetFieldsCounters done [09:44:53]requested_item shift.num is exist - process it [09:44:53]requested_item shift.opened is exist - process it [09:44:53]req_shift_opened [09:44:53]FM_GetShiftState [09:44:53]SAM_PROTO_GetShiftState [09:44:53]wFMCommunicate request_size=4 [09:44:53]MH_SAM_APDU [09:44:53]CAPDU: 80 13 01 00 [09:44:53]Write to MH i2c: E2 08 00 A8 27 80 13 01 00 00 00 00 00 4C [09:44:53]Write i2c OK [09:44:53]MH_I2C_Read... [09:44:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:44:53]Read from MH i2c: E2 [09:44:53]MH_I2C_Read... [09:44:53]Read from MH i2c: E2 0E 00 [09:44:53]MH_I2C_Read... [09:44:53]Read from MH i2c: E2 0E 00 A8 27 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 B3 [09:44:53]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [09:44:53]wFMCommunicate OK [09:44:53]SAM_PROTO_GetShiftState done [09:44:53]FM_GetShiftState done [09:44:53]req_shift_opened done [09:44:53]requested_item shift.open_date is exist - process it [09:44:53]req_shift_open_date [09:44:53]req_shift_open_date done [09:44:53]produce_requested_data done [09:44:53]produce_requested_data return {"kkm.sn":"0300000119","kkm.ver":"001","fm.sn":"0000000000871829","fd.num":67791,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [09:44:53]process_action_free get_value [09:44:53]json_value_free [09:44:53]json_value_free done [09:44:53]process_json_proto returns [09:44:53]Send response to host [09:44:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000119","kkm.ver":"001","fm.sn":"0000000000871829","fd.num":67791,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [09:44:53]free response buf [09:44:53]execute_script done [09:44:53]execute_script returns [09:44:53]free content buf [09:44:53]Sock 9.Close socket [09:44:53]Sock 9.Thread stoped [09:44:53]accept exits with 7 [09:44:53]New connection [09:44:53]New thread 3066608996 created [09:44:53]Thread 3066752356 joined [09:44:53]Waiting for new connection... [09:44:53] Sock 7.Parse request [09:44:53]Sock 7.Check first char [09:44:53]Sock 7.First char is OK [09:44:53]request: POST /json_proto HTTP/1.0 [09:44:53]Method: POST [09:44:53]URL: /json_proto [09:44:53]Method is POST - this is cgi request [09:44:53]url: /json_proto [09:44:53]query_string will be loaded in cgi processing [09:44:53]execute_cgi json_proto POST (null) [09:44:53]execute_cgi path=json_proto method=POST [09:44:53]POST find Content-Length [09:44:53]Host: 172.17.41.195:8080 [09:44:53]Content-Length: 331 [09:44:53]Content-Type: application/json [09:44:53] [09:44:53]POST finish read [09:44:53]Found Content-Length = 331 [09:44:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [09:44:53]execute_script... [09:44:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [09:44:53]POST & json_proto [09:44:53]process_json_proto [09:44:53]json parsed OK: [09:44:53]protocol is kg_v1.0 [09:44:53]action value=get_value [09:44:53]process_action get_value [09:44:53]cmd_get_value [09:44:53]process_action get_value done [09:44:53]requested_data is exist [09:44:53]produce_requested_data [09:44:53]requested_item fm.sale.total is exist - process it [09:44:53]SAM_PROTO_GetFMData [09:44:53]wFMCommunicate request_size=4 [09:44:53]MH_SAM_APDU [09:44:53]CAPDU: 80 13 03 00 [09:44:53]Write to MH i2c: E2 08 00 A9 27 80 13 03 00 00 00 00 00 4F [09:44:53]Write i2c OK [09:44:53]MH_I2C_Read... [09:44:54]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [09:44:54]Read from MH i2c: E2 [09:44:54]MH_I2C_Read... [09:44:54]Read from MH i2c: E2 FD 00 [09:44:54]MH_I2C_Read... [09:44:54]Read from MH i2c: E2 FD 00 A9 27 00 C6 04 85 04 C2 04 6E 04 04 00 01 06 01 00 69 04 A3 00 6F 04 04 00 57 05 01 00 B1 04 05 00 70 A8 BC 1D 03 70 04 05 00 4C 9D D5 C0 02 72 04 04 00 24 0B E7 5C 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 C1 1F BA 54 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 0E 6E 0F 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9D 00 6F 04 04 00 AA 00 00 00 B1 04 04 00 00 23 C3 DC 70 04 04 00 00 23 C3 DC 72 04 00 00 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 DD 9D 71 17 EF 03 09 90 00 72 [09:44:54]RAPDU: C6 04 85 04 C2 04 6E 04 04 00 01 06 01 00 69 04 A3 00 6F 04 04 00 57 05 01 00 B1 04 05 00 70 A8 BC 1D 03 70 04 05 00 4C 9D D5 C0 02 72 04 04 00 24 0B E7 5C 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 C1 1F BA 54 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 0E 6E 0F 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9D 00 6F 04 04 00 AA 00 00 00 B1 04 04 00 00 23 C3 DC 70 04 04 00 00 23 C3 DC 72 04 00 00 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 DD 9D 71 17 EF 03 09 90 00 [09:44:54]wFMCommunicate OK [09:44:54]wFMCommunicate request_size=4 [09:44:54]MH_SAM_APDU [09:44:54]CAPDU: 80 17 00 00 [09:44:54]Write to MH i2c: E2 08 00 AA 27 80 17 00 00 00 00 00 00 51 [09:44:54]Write i2c OK [09:44:54]MH_I2C_Read... [09:44:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:44:54]Read from MH i2c: E2 [09:44:54]MH_I2C_Read... [09:44:54]Read from MH i2c: E2 FD 00 [09:44:54]MH_I2C_Read... [09:44:54]Read from MH i2c: E2 FD 00 AA 27 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 70 22 F4 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 90 00 8C [09:44:54]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 70 22 F4 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 90 00 [09:44:54]wFMCommunicate OK [09:44:54]wFMCommunicate request_size=4 [09:44:54]MH_SAM_APDU [09:44:54]CAPDU: 80 17 00 00 [09:44:54]Write to MH i2c: E2 08 00 AB 27 80 17 00 00 00 00 00 00 52 [09:44:54]Write i2c OK [09:44:54]MH_I2C_Read... [09:44:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:44:54]Read from MH i2c: E2 [09:44:54]MH_I2C_Read... [09:44:54]Read from MH i2c: E2 FD 00 [09:44:54]MH_I2C_Read... [09:44:54]Read from MH i2c: E2 FD 00 AB 27 00 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 90 00 79 [09:44:54]RAPDU: 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 90 00 [09:44:54]wFMCommunicate OK [09:44:54]wFMCommunicate request_size=4 [09:44:54]MH_SAM_APDU [09:44:54]CAPDU: 80 17 00 00 [09:44:54]Write to MH i2c: E2 08 00 AC 27 80 17 00 00 00 00 00 00 53 [09:44:54]Write i2c OK [09:44:54]MH_I2C_Read... [09:44:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:44:54]Read from MH i2c: E2 [09:44:54]MH_I2C_Read... [09:44:54]Read from MH i2c: E2 FD 00 [09:44:54]MH_I2C_Read... [09:44:54]Read from MH i2c: E2 FD 00 AC 27 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 CE [09:44:54]RAPDU: EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 [09:44:54]wFMCommunicate OK [09:44:54]wFMCommunicate request_size=4 [09:44:54]MH_SAM_APDU [09:44:54]CAPDU: 80 17 00 00 [09:44:54]Write to MH i2c: E2 08 00 AD 27 80 17 00 00 00 00 00 00 54 [09:44:54]Write i2c OK [09:44:54]MH_I2C_Read... [09:44:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 224! [09:44:55]Read from MH i2c: E2 [09:44:55]MH_I2C_Read... [09:44:55]Read from MH i2c: E2 E3 00 [09:44:55]MH_I2C_Read... [09:44:55]Read from MH i2c: E2 E3 00 AD 27 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 33 [09:44:55]RAPDU: 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [09:44:55]wFMCommunicate OK [09:44:55]SAM_PROTO_GetFMData done [09:44:55]requested_item fm.sale_refund.total is exist - process it [09:44:55]requested_item fm.buy.total is exist - process it [09:44:55]requested_item shift.sale.total is exist - process it [09:44:55]SAM_PROTO_GetShiftData [09:44:55]wFMCommunicate request_size=4 [09:44:55]MH_SAM_APDU [09:44:55]CAPDU: 80 13 02 00 [09:44:55]Write to MH i2c: E2 08 00 AE 27 80 13 02 00 00 00 00 00 53 [09:44:55]Write i2c OK [09:44:55]MH_I2C_Read... [09:44:55]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [09:44:55]Read from MH i2c: E2 [09:44:55]MH_I2C_Read... [09:44:55]Read from MH i2c: E2 FD 00 [09:44:55]MH_I2C_Read... [09:44:55]Read from MH i2c: E2 FD 00 AE 27 00 AE 04 AA 04 AA 04 6E 04 04 00 1E 00 00 00 69 04 9B 00 6F 04 04 00 1E 00 00 00 B1 04 03 00 E4 B7 2D 70 04 03 00 90 A8 12 72 04 03 00 54 0F 1B 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 1D DB 04 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 94 67 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 D7 [09:44:55]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 1E 00 00 00 69 04 9B 00 6F 04 04 00 1E 00 00 00 B1 04 03 00 E4 B7 2D 70 04 03 00 90 A8 12 72 04 03 00 54 0F 1B 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 1D DB 04 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 94 67 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [09:44:55]wFMCommunicate OK [09:44:55]wFMCommunicate request_size=4 [09:44:55]MH_SAM_APDU [09:44:55]CAPDU: 80 17 00 00 [09:44:55]Write to MH i2c: E2 08 00 AF 27 80 17 00 00 00 00 00 00 56 [09:44:55]Write i2c OK [09:44:55]MH_I2C_Read... [09:44:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:44:55]Read from MH i2c: E2 [09:44:55]MH_I2C_Read... [09:44:55]Read from MH i2c: E2 FD 00 [09:44:55]MH_I2C_Read... [09:44:55]Read from MH i2c: E2 FD 00 AF 27 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 78 [09:44:55]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [09:44:55]wFMCommunicate OK [09:44:55]wFMCommunicate request_size=4 [09:44:55]MH_SAM_APDU [09:44:55]CAPDU: 80 17 00 00 [09:44:55]Write to MH i2c: E2 08 00 B0 27 80 17 00 00 00 00 00 00 57 [09:44:55]Write i2c OK [09:44:55]MH_I2C_Read... [09:44:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:44:56]Read from MH i2c: E2 [09:44:56]MH_I2C_Read... [09:44:56]Read from MH i2c: E2 FD 00 [09:44:56]MH_I2C_Read... [09:44:56]Read from MH i2c: E2 FD 00 B0 27 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 0E [09:44:56]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [09:44:56]wFMCommunicate OK [09:44:56]wFMCommunicate request_size=4 [09:44:56]MH_SAM_APDU [09:44:56]CAPDU: 80 17 00 00 [09:44:56]Write to MH i2c: E2 08 00 B1 27 80 17 00 00 00 00 00 00 58 [09:44:56]Write i2c OK [09:44:56]MH_I2C_Read... [09:44:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:44:56]Read from MH i2c: E2 [09:44:56]MH_I2C_Read... [09:44:56]Read from MH i2c: E2 FD 00 [09:44:56]MH_I2C_Read... [09:44:56]Read from MH i2c: E2 FD 00 B1 27 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 CA [09:44:56]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [09:44:56]wFMCommunicate OK [09:44:56]wFMCommunicate request_size=4 [09:44:56]MH_SAM_APDU [09:44:56]CAPDU: 80 17 00 00 [09:44:56]Write to MH i2c: E2 08 00 B2 27 80 17 00 00 00 00 00 00 59 [09:44:56]Write i2c OK [09:44:56]MH_I2C_Read... [09:44:56]OFD Sender: No OFD packet to send [09:44:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [09:44:56]Read from MH i2c: E2 [09:44:56]MH_I2C_Read... [09:44:56]Read from MH i2c: E2 CB 00 [09:44:56]MH_I2C_Read... [09:44:56]Read from MH i2c: E2 CB 00 B2 27 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 42 [09:44:56]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [09:44:56]wFMCommunicate OK [09:44:56]SAM_PROTO_GetShiftData done [09:44:56]requested_item shift.sale.total_cash is exist - process it [09:44:56]requested_item shift.sale_refund.total is exist - process it [09:44:56]requested_item shift.sale_refund.total_cash is exist - process it [09:44:56]requested_item shift.buy.total is exist - process it [09:44:56]requested_item shift.buy.total_cash is exist - process it [09:44:56]produce_requested_data done [09:44:56]produce_requested_data return {"fm.sale.total":133838050.40,"fm.sale_refund.total":37037760.00,"fm.buy.total":0.00,"shift.sale.total":29961.96,"shift.sale.total_cash":12228.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [09:44:56]process_action_free get_value [09:44:56]json_value_free [09:44:56]json_value_free done [09:44:56]process_json_proto returns [09:44:56]Send response to host [09:44:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":133838050.40,"fm.sale_refund.total":37037760.00,"fm.buy.total":0.00,"shift.sale.total":29961.96,"shift.sale.total_cash":12228.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [09:44:56]free response buf [09:44:56]execute_script done [09:44:56]execute_script returns [09:44:56]free content buf [09:44:56]Sock 7.Close socket [09:44:56]Sock 7.Thread stoped [09:45:01]OFD Sender: No OFD packet to send [09:45:06]OFD Sender: No OFD packet to send [09:45:11]OFD Sender: No OFD packet to send [09:45:16]OFD Sender: No OFD packet to send [09:45:21]OFD Sender: No OFD packet to send [09:45:26]OFD Sender: No OFD packet to send [09:45:31]OFD Sender: No OFD packet to send [09:45:36]OFD Sender: No OFD packet to send [09:45:41]OFD Sender: No OFD packet to send [09:45:46]OFD Sender: No OFD packet to send [09:45:51]OFD Sender: No OFD packet to send [09:45:56]OFD Sender: No OFD packet to send [09:46:01]OFD Sender: No OFD packet to send [09:46:06]OFD Sender: No OFD packet to send [09:46:11]OFD Sender: No OFD packet to send [09:46:16]OFD Sender: No OFD packet to send [09:46:21]OFD Sender: No OFD packet to send [09:46:26]OFD Sender: No OFD packet to send [09:46:31]OFD Sender: No OFD packet to send [09:46:36]OFD Sender: No OFD packet to send [09:46:41]OFD Sender: No OFD packet to send [09:46:46]OFD Sender: No OFD packet to send [09:46:51]OFD Sender: No OFD packet to send [09:46:56]OFD Sender: No OFD packet to send [09:47:01]OFD Sender: No OFD packet to send [09:47:06]OFD Sender: No OFD packet to send [09:47:11]OFD Sender: No OFD packet to send [09:47:16]OFD Sender: No OFD packet to send [09:47:21]OFD Sender: No OFD packet to send [09:47:26]OFD Sender: No OFD packet to send [09:47:31]OFD Sender: No OFD packet to send [09:47:36]OFD Sender: No OFD packet to send [09:47:41]OFD Sender: No OFD packet to send [09:47:46]OFD Sender: No OFD packet to send [09:47:51]OFD Sender: No OFD packet to send [09:47:54]accept exits with 9 [09:47:54]New connection [09:47:54]New thread 3066752356 created [09:47:54]Thread 3066608996 joined [09:47:54]Waiting for new connection... [09:47:54] Sock 9.Parse request [09:47:54]Sock 9.Check first char [09:47:54]Sock 9.First char is OK [09:47:54]request: POST /json_proto HTTP/1.0 [09:47:54]Method: POST [09:47:54]URL: /json_proto [09:47:54]Method is POST - this is cgi request [09:47:54]url: /json_proto [09:47:54]query_string will be loaded in cgi processing [09:47:54]execute_cgi json_proto POST (null) [09:47:54]execute_cgi path=json_proto method=POST [09:47:54]POST find Content-Length [09:47:54]Host: 172.17.41.195:8080 [09:47:54]Content-Length: 1212 [09:47:54]Content-Type: application/json [09:47:54] [09:47:54]POST finish read [09:47:54]Found Content-Length = 1212 [09:47:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0440\u0441\u0442\u0430\u043D\u0431\u0435\u043A\u043E\u0432 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)507985\u000A18.05.2024 09:30\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 33\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 40.000 x 66.80\u000A\u0418\u0422\u041E\u0413: 2672.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03260\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:47:54]execute_script... [09:47:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0440\u0441\u0442\u0430\u043D\u0431\u0435\u043A\u043E\u0432 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)507985\u000A18.05.2024 09:30\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 33\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 40.000 x 66.80\u000A\u0418\u0422\u041E\u0413: 2672.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03260\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:47:54]POST & json_proto [09:47:54]process_json_proto [09:47:54]json parsed OK: [09:47:54]protocol is kg_v1.0 [09:47:54]action value=print_text [09:47:54]process_action print_text [09:47:54]cmd_print_text [09:47:54]ExternCall_PrintAddStr [09:47:54]wPrintStart [09:47:54]Write to MH i2c: 01 00 00 B3 27 DA [09:47:54]Write i2c OK [09:47:54]MH_I2C_Read... [09:47:54]Read from MH i2c: 01 [09:47:54]MH_I2C_Read... [09:47:54]Read from MH i2c: 01 07 00 [09:47:54]MH_I2C_Read... [09:47:54]Read from MH i2c: 01 07 00 B3 27 00 00 00 00 00 FF 0F EF [09:47:54]RasterBufferAndPrint [09:47:54]line *****ТОВАРНЫЙ ЧЕК***** [09:47:54]line АЗС-91 [09:47:54]line Партнер нефть [09:47:54]line 02508201610067 [09:47:54]line Кассир : Арстанбеков Н. [09:47:54]line Счет N : (1)507985 [09:47:54]line 18.05.2024 09:30 [09:47:54]line ПРОДАЖА [09:47:54]line ТРК (МРК, ГНК): 33 [09:47:54]line Вид ГСМ : 2710124130 [09:47:54]line Аи-92-К-5 [09:47:54]line 40.000 x 66.80 [09:47:54]line ИТОГ: 2672.00 [09:47:54]line Тип оплаты: Талоны: Топливная Карта [09:47:54]line 03260 [09:47:54]line ______________________ [09:47:54]line (подпись) [09:47:54]written 0, free lines is 4095 [09:47:54]Write to MH i2c: 01 00 00 C7 27 EE [09:47:54]Write i2c OK [09:47:54]MH_I2C_Read... [09:47:54]Read from MH i2c: 01 [09:47:54]MH_I2C_Read... [09:47:54]Read from MH i2c: 01 07 00 [09:47:54]MH_I2C_Read... [09:47:54]Read from MH i2c: 01 07 00 C7 27 00 00 00 00 00 17 0E 1A [09:47:54]RasterBufferAndPrint [09:47:54]line [09:47:54]line [09:47:54]line [09:47:54]line [09:47:54]line [09:47:54]written 0, free lines is 3608 [09:47:54]MH_Cut [09:47:54]Write to MH i2c: D1 01 00 CE 27 01 C7 [09:47:54]Write i2c OK [09:47:54]MH_I2C_Read... [09:47:54]Read from MH i2c: D1 [09:47:54]MH_I2C_Read... [09:47:54]Read from MH i2c: D1 01 00 [09:47:54]MH_I2C_Read... [09:47:54]Read from MH i2c: D1 01 00 CE 27 00 C6 [09:47:54]Write to MH i2c: 01 00 00 CF 27 F6 [09:47:54]Write i2c OK [09:47:54]MH_I2C_Read... [09:47:55]*** Cut start [09:47:55]*** Purtial cut [09:47:55]*** CUTSNS_PIN = 0 [09:47:55]*** Stage 1: CUTSNS_PIN = 1 [09:47:56]OFD Sender: No OFD packet to send [09:47:57]Read from MH i2c: 01 [09:47:57]MH_I2C_Read... [09:47:57]Read from MH i2c: 01 07 00 [09:47:57]MH_I2C_Read... [09:47:57]*** Stop cut motor [09:47:57]*** Cut end [09:47:57]Read from MH i2c: 01 07 00 CF 27 00 00 00 00 00 FF 0F 0B [09:47:57]process_action print_text done [09:47:57]requested_data is exist [09:47:57]produce_requested_data [09:47:57]requested_item fm.sn is exist - process it [09:47:57]wFMCommunicate request_size=4 [09:47:57]MH_SAM_APDU [09:47:57]CAPDU: 80 11 00 00 [09:47:57]Write to MH i2c: E2 08 00 D0 27 80 11 00 00 00 00 00 00 71 [09:47:57]Write i2c OK [09:47:57]MH_I2C_Read... [09:47:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:47:57]Read from MH i2c: E2 [09:47:57]MH_I2C_Read... [09:47:57]Read from MH i2c: E2 17 00 [09:47:57]MH_I2C_Read... [09:47:57]Read from MH i2c: E2 17 00 D0 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 C7 [09:47:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [09:47:57]wFMCommunicate OK [09:47:57]requested_item fd.num is exist - process it [09:47:57]SAM_PROTO_GetFieldsCounters [09:47:57]wFMCommunicate request_size=4 [09:47:57]MH_SAM_APDU [09:47:57]CAPDU: 80 13 00 00 [09:47:57]Write to MH i2c: E2 08 00 D1 27 80 13 00 00 00 00 00 00 74 [09:47:57]Write i2c OK [09:47:57]MH_I2C_Read... [09:47:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:47:57]Read from MH i2c: E2 [09:47:57]MH_I2C_Read... [09:47:57]Read from MH i2c: E2 62 00 [09:47:57]MH_I2C_Read... [09:47:57]Read from MH i2c: E2 62 00 D1 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 CF 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 34 [09:47:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 CF 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:47:57]wFMCommunicate OK [09:47:57]SAM_PROTO_GetFieldsCounters done [09:47:57]requested_item shift.num is exist - process it [09:47:57]requested_item shift.opened is exist - process it [09:47:57]req_shift_opened [09:47:57]FM_GetShiftState [09:47:57]SAM_PROTO_GetShiftState [09:47:57]wFMCommunicate request_size=4 [09:47:57]MH_SAM_APDU [09:47:57]CAPDU: 80 13 01 00 [09:47:57]Write to MH i2c: E2 08 00 D2 27 80 13 01 00 00 00 00 00 76 [09:47:57]Write i2c OK [09:47:57]MH_I2C_Read... [09:47:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:47:57]Read from MH i2c: E2 [09:47:57]MH_I2C_Read... [09:47:57]Read from MH i2c: E2 0E 00 [09:47:57]MH_I2C_Read... [09:47:57]Read from MH i2c: E2 0E 00 D2 27 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 DD [09:47:57]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [09:47:57]wFMCommunicate OK [09:47:57]SAM_PROTO_GetShiftState done [09:47:57]FM_GetShiftState done [09:47:57]req_shift_opened done [09:47:57]requested_item shift.open_date is exist - process it [09:47:57]req_shift_open_date [09:47:57]req_shift_open_date done [09:47:57]produce_requested_data done [09:47:57]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67791,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [09:47:57]process_action_free print_text [09:47:57]json_value_free [09:47:57]json_value_free done [09:47:57]process_json_proto returns [09:47:57]Send response to host [09:47:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67791,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [09:47:57]free response buf [09:47:57]execute_script done [09:47:57]execute_script returns [09:47:57]free content buf [09:47:57]Sock 9.Close socket [09:47:57]Sock 9.Thread stoped [09:48:01]OFD Sender: No OFD packet to send [09:48:06]OFD Sender: No OFD packet to send [09:48:11]OFD Sender: No OFD packet to send [09:48:16]OFD Sender: No OFD packet to send [09:48:21]OFD Sender: No OFD packet to send [09:48:26]OFD Sender: No OFD packet to send [09:48:31]OFD Sender: No OFD packet to send [09:48:36]OFD Sender: No OFD packet to send [09:48:41]OFD Sender: No OFD packet to send [09:48:46]OFD Sender: No OFD packet to send [09:48:51]OFD Sender: No OFD packet to send [09:48:56]OFD Sender: No OFD packet to send [09:49:01]OFD Sender: No OFD packet to send [09:49:06]OFD Sender: No OFD packet to send [09:49:11]OFD Sender: No OFD packet to send [09:49:16]OFD Sender: No OFD packet to send [09:49:21]OFD Sender: No OFD packet to send [09:49:26]OFD Sender: No OFD packet to send [09:49:31]OFD Sender: No OFD packet to send [09:49:36]OFD Sender: No OFD packet to send [09:49:41]OFD Sender: No OFD packet to send [09:49:46]OFD Sender: No OFD packet to send [09:49:51]OFD Sender: No OFD packet to send [09:49:56]OFD Sender: No OFD packet to send [09:50:01]OFD Sender: No OFD packet to send [09:50:06]OFD Sender: No OFD packet to send [09:50:11]OFD Sender: No OFD packet to send [09:50:16]OFD Sender: No OFD packet to send [09:50:21]OFD Sender: No OFD packet to send [09:50:26]OFD Sender: No OFD packet to send [09:50:31]OFD Sender: No OFD packet to send [09:50:36]OFD Sender: No OFD packet to send [09:50:41]OFD Sender: No OFD packet to send [09:50:46]OFD Sender: No OFD packet to send [09:50:51]OFD Sender: No OFD packet to send [09:50:56]OFD Sender: No OFD packet to send [09:51:01]OFD Sender: No OFD packet to send [09:51:06]OFD Sender: No OFD packet to send [09:51:11]OFD Sender: No OFD packet to send [09:51:16]OFD Sender: No OFD packet to send [09:51:21]OFD Sender: No OFD packet to send [09:51:26]OFD Sender: No OFD packet to send [09:51:31]OFD Sender: No OFD packet to send [09:51:36]OFD Sender: No OFD packet to send [09:51:37]accept exits with 7 [09:51:37]New connection [09:51:37]New thread 3066608996 created [09:51:37]Thread 3066752356 joined [09:51:37]Waiting for new connection... [09:51:37] Sock 7.Parse request [09:51:37]Sock 7.Check first char [09:51:37]Sock 7.First char is OK [09:51:37]request: POST /json_proto HTTP/1.0 [09:51:37]Method: POST [09:51:37]URL: /json_proto [09:51:37]Method is POST - this is cgi request [09:51:37]url: /json_proto [09:51:37]query_string will be loaded in cgi processing [09:51:37]execute_cgi json_proto POST (null) [09:51:37]execute_cgi path=json_proto method=POST [09:51:37]POST find Content-Length [09:51:37]Host: 172.17.41.195:8080 [09:51:37]Content-Length: 215 [09:51:37]Content-Type: application/json [09:51:37] [09:51:37]POST finish read [09:51:37]Found Content-Length = 215 [09:51:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:51:37]execute_script... [09:51:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:51:37]POST & json_proto [09:51:37]process_json_proto [09:51:37]json parsed OK: [09:51:37]protocol is kg_v1.0 [09:51:37]action value=get_value [09:51:37]process_action get_value [09:51:37]cmd_get_value [09:51:37]process_action get_value done [09:51:37]requested_data is exist [09:51:37]produce_requested_data [09:51:37]requested_item kkm.sn is exist - process it [09:51:37]requested_item kkm.ver is exist - process it [09:51:37]requested_item fm.sn is exist - process it [09:51:37]wFMCommunicate request_size=4 [09:51:37]MH_SAM_APDU [09:51:37]CAPDU: 80 11 00 00 [09:51:37]Write to MH i2c: E2 08 00 D3 27 80 11 00 00 00 00 00 00 74 [09:51:37]Write i2c OK [09:51:37]MH_I2C_Read... [09:51:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:51:37]Read from MH i2c: E2 [09:51:37]MH_I2C_Read... [09:51:37]Read from MH i2c: E2 17 00 [09:51:37]MH_I2C_Read... [09:51:37]Read from MH i2c: E2 17 00 D3 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 CA [09:51:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [09:51:37]wFMCommunicate OK [09:51:37]requested_item fd.num is exist - process it [09:51:37]SAM_PROTO_GetFieldsCounters [09:51:37]wFMCommunicate request_size=4 [09:51:37]MH_SAM_APDU [09:51:37]CAPDU: 80 13 00 00 [09:51:37]Write to MH i2c: E2 08 00 D4 27 80 13 00 00 00 00 00 00 77 [09:51:37]Write i2c OK [09:51:37]MH_I2C_Read... [09:51:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:51:38]Read from MH i2c: E2 [09:51:38]MH_I2C_Read... [09:51:38]Read from MH i2c: E2 62 00 [09:51:38]MH_I2C_Read... [09:51:38]Read from MH i2c: E2 62 00 D4 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 CF 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 37 [09:51:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 CF 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:51:38]wFMCommunicate OK [09:51:38]SAM_PROTO_GetFieldsCounters done [09:51:38]requested_item shift.num is exist - process it [09:51:38]requested_item shift.opened is exist - process it [09:51:38]req_shift_opened [09:51:38]FM_GetShiftState [09:51:38]SAM_PROTO_GetShiftState [09:51:38]wFMCommunicate request_size=4 [09:51:38]MH_SAM_APDU [09:51:38]CAPDU: 80 13 01 00 [09:51:38]Write to MH i2c: E2 08 00 D5 27 80 13 01 00 00 00 00 00 79 [09:51:38]Write i2c OK [09:51:38]MH_I2C_Read... [09:51:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:51:38]Read from MH i2c: E2 [09:51:38]MH_I2C_Read... [09:51:38]Read from MH i2c: E2 0E 00 [09:51:38]MH_I2C_Read... [09:51:38]Read from MH i2c: E2 0E 00 D5 27 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 E0 [09:51:38]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [09:51:38]wFMCommunicate OK [09:51:38]SAM_PROTO_GetShiftState done [09:51:38]FM_GetShiftState done [09:51:38]req_shift_opened done [09:51:38]requested_item shift.open_date is exist - process it [09:51:38]req_shift_open_date [09:51:38]req_shift_open_date done [09:51:38]produce_requested_data done [09:51:38]produce_requested_data return {"kkm.sn":"0300000119","kkm.ver":"001","fm.sn":"0000000000871829","fd.num":67791,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [09:51:38]process_action_free get_value [09:51:38]json_value_free [09:51:38]json_value_free done [09:51:38]process_json_proto returns [09:51:38]Send response to host [09:51:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000119","kkm.ver":"001","fm.sn":"0000000000871829","fd.num":67791,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [09:51:38]free response buf [09:51:38]execute_script done [09:51:38]execute_script returns [09:51:38]free content buf [09:51:38]Sock 7.Close socket [09:51:38]Sock 7.Thread stoped [09:51:38]accept exits with 9 [09:51:38]New connection [09:51:38]New thread 3066752356 created [09:51:38]Thread 3066608996 joined [09:51:38]Waiting for new connection... [09:51:38] Sock 9.Parse request [09:51:38]Sock 9.Check first char [09:51:38]Sock 9.First char is OK [09:51:38]request: POST /json_proto HTTP/1.0 [09:51:38]Method: POST [09:51:38]URL: /json_proto [09:51:38]Method is POST - this is cgi request [09:51:38]url: /json_proto [09:51:38]query_string will be loaded in cgi processing [09:51:38]execute_cgi json_proto POST (null) [09:51:38]execute_cgi path=json_proto method=POST [09:51:38]POST find Content-Length [09:51:38]Host: 172.17.41.195:8080 [09:51:38]Content-Length: 331 [09:51:38]Content-Type: application/json [09:51:38] [09:51:38]POST finish read [09:51:38]Found Content-Length = 331 [09:51:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [09:51:38]execute_script... [09:51:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [09:51:38]POST & json_proto [09:51:38]process_json_proto [09:51:38]json parsed OK: [09:51:38]protocol is kg_v1.0 [09:51:38]action value=get_value [09:51:38]process_action get_value [09:51:38]cmd_get_value [09:51:38]process_action get_value done [09:51:38]requested_data is exist [09:51:38]produce_requested_data [09:51:38]requested_item fm.sale.total is exist - process it [09:51:38]SAM_PROTO_GetFMData [09:51:38]wFMCommunicate request_size=4 [09:51:38]MH_SAM_APDU [09:51:38]CAPDU: 80 13 03 00 [09:51:38]Write to MH i2c: E2 08 00 D6 27 80 13 03 00 00 00 00 00 7C [09:51:38]Write i2c OK [09:51:38]MH_I2C_Read... [09:51:38]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [09:51:38]Read from MH i2c: E2 [09:51:38]MH_I2C_Read... [09:51:38]Read from MH i2c: E2 FD 00 [09:51:38]MH_I2C_Read... [09:51:38]Read from MH i2c: E2 FD 00 D6 27 00 C6 04 85 04 C2 04 6E 04 04 00 01 06 01 00 69 04 A3 00 6F 04 04 00 57 05 01 00 B1 04 05 00 70 A8 BC 1D 03 70 04 05 00 4C 9D D5 C0 02 72 04 04 00 24 0B E7 5C 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 C1 1F BA 54 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 0E 6E 0F 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9D 00 6F 04 04 00 AA 00 00 00 B1 04 04 00 00 23 C3 DC 70 04 04 00 00 23 C3 DC 72 04 00 00 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 DD 9D 71 17 EF 03 09 90 00 9F [09:51:38]RAPDU: C6 04 85 04 C2 04 6E 04 04 00 01 06 01 00 69 04 A3 00 6F 04 04 00 57 05 01 00 B1 04 05 00 70 A8 BC 1D 03 70 04 05 00 4C 9D D5 C0 02 72 04 04 00 24 0B E7 5C 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 C1 1F BA 54 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 0E 6E 0F 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9D 00 6F 04 04 00 AA 00 00 00 B1 04 04 00 00 23 C3 DC 70 04 04 00 00 23 C3 DC 72 04 00 00 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 DD 9D 71 17 EF 03 09 90 00 [09:51:38]wFMCommunicate OK [09:51:38]wFMCommunicate request_size=4 [09:51:38]MH_SAM_APDU [09:51:38]CAPDU: 80 17 00 00 [09:51:38]Write to MH i2c: E2 08 00 D7 27 80 17 00 00 00 00 00 00 7E [09:51:38]Write i2c OK [09:51:38]MH_I2C_Read... [09:51:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:51:39]Read from MH i2c: E2 [09:51:39]MH_I2C_Read... [09:51:39]Read from MH i2c: E2 FD 00 [09:51:39]MH_I2C_Read... [09:51:39]Read from MH i2c: E2 FD 00 D7 27 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 70 22 F4 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 90 00 B9 [09:51:39]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 70 22 F4 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 90 00 [09:51:39]wFMCommunicate OK [09:51:39]wFMCommunicate request_size=4 [09:51:39]MH_SAM_APDU [09:51:39]CAPDU: 80 17 00 00 [09:51:39]Write to MH i2c: E2 08 00 D8 27 80 17 00 00 00 00 00 00 7F [09:51:39]Write i2c OK [09:51:39]MH_I2C_Read... [09:51:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:51:39]Read from MH i2c: E2 [09:51:39]MH_I2C_Read... [09:51:39]Read from MH i2c: E2 FD 00 [09:51:39]MH_I2C_Read... [09:51:39]Read from MH i2c: E2 FD 00 D8 27 00 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 90 00 A6 [09:51:39]RAPDU: 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 90 00 [09:51:39]wFMCommunicate OK [09:51:39]wFMCommunicate request_size=4 [09:51:39]MH_SAM_APDU [09:51:39]CAPDU: 80 17 00 00 [09:51:39]Write to MH i2c: E2 08 00 D9 27 80 17 00 00 00 00 00 00 80 [09:51:39]Write i2c OK [09:51:39]MH_I2C_Read... [09:51:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:51:39]Read from MH i2c: E2 [09:51:39]MH_I2C_Read... [09:51:39]Read from MH i2c: E2 FD 00 [09:51:39]MH_I2C_Read... [09:51:39]Read from MH i2c: E2 FD 00 D9 27 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 FB [09:51:39]RAPDU: EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 [09:51:39]wFMCommunicate OK [09:51:39]wFMCommunicate request_size=4 [09:51:39]MH_SAM_APDU [09:51:39]CAPDU: 80 17 00 00 [09:51:39]Write to MH i2c: E2 08 00 DA 27 80 17 00 00 00 00 00 00 81 [09:51:39]Write i2c OK [09:51:39]MH_I2C_Read... [09:51:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 224! [09:51:39]Read from MH i2c: E2 [09:51:39]MH_I2C_Read... [09:51:39]Read from MH i2c: E2 E3 00 [09:51:39]MH_I2C_Read... [09:51:39]Read from MH i2c: E2 E3 00 DA 27 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 60 [09:51:39]RAPDU: 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [09:51:39]wFMCommunicate OK [09:51:39]SAM_PROTO_GetFMData done [09:51:39]requested_item fm.sale_refund.total is exist - process it [09:51:39]requested_item fm.buy.total is exist - process it [09:51:39]requested_item shift.sale.total is exist - process it [09:51:39]SAM_PROTO_GetShiftData [09:51:39]wFMCommunicate request_size=4 [09:51:39]MH_SAM_APDU [09:51:39]CAPDU: 80 13 02 00 [09:51:39]Write to MH i2c: E2 08 00 DB 27 80 13 02 00 00 00 00 00 80 [09:51:39]Write i2c OK [09:51:39]MH_I2C_Read... [09:51:40]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [09:51:40]Read from MH i2c: E2 [09:51:40]MH_I2C_Read... [09:51:40]Read from MH i2c: E2 FD 00 [09:51:40]MH_I2C_Read... [09:51:40]Read from MH i2c: E2 FD 00 DB 27 00 AE 04 AA 04 AA 04 6E 04 04 00 1E 00 00 00 69 04 9B 00 6F 04 04 00 1E 00 00 00 B1 04 03 00 E4 B7 2D 70 04 03 00 90 A8 12 72 04 03 00 54 0F 1B 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 1D DB 04 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 94 67 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 04 [09:51:40]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 1E 00 00 00 69 04 9B 00 6F 04 04 00 1E 00 00 00 B1 04 03 00 E4 B7 2D 70 04 03 00 90 A8 12 72 04 03 00 54 0F 1B 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 1D DB 04 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 94 67 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [09:51:40]wFMCommunicate OK [09:51:40]wFMCommunicate request_size=4 [09:51:40]MH_SAM_APDU [09:51:40]CAPDU: 80 17 00 00 [09:51:40]Write to MH i2c: E2 08 00 DC 27 80 17 00 00 00 00 00 00 83 [09:51:40]Write i2c OK [09:51:40]MH_I2C_Read... [09:51:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:51:40]Read from MH i2c: E2 [09:51:40]MH_I2C_Read... [09:51:40]Read from MH i2c: E2 FD 00 [09:51:40]MH_I2C_Read... [09:51:40]Read from MH i2c: E2 FD 00 DC 27 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 A5 [09:51:40]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [09:51:40]wFMCommunicate OK [09:51:40]wFMCommunicate request_size=4 [09:51:40]MH_SAM_APDU [09:51:40]CAPDU: 80 17 00 00 [09:51:40]Write to MH i2c: E2 08 00 DD 27 80 17 00 00 00 00 00 00 84 [09:51:40]Write i2c OK [09:51:40]MH_I2C_Read... [09:51:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:51:40]Read from MH i2c: E2 [09:51:40]MH_I2C_Read... [09:51:40]Read from MH i2c: E2 FD 00 [09:51:40]MH_I2C_Read... [09:51:40]Read from MH i2c: E2 FD 00 DD 27 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 3B [09:51:40]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [09:51:40]wFMCommunicate OK [09:51:40]wFMCommunicate request_size=4 [09:51:40]MH_SAM_APDU [09:51:40]CAPDU: 80 17 00 00 [09:51:40]Write to MH i2c: E2 08 00 DE 27 80 17 00 00 00 00 00 00 85 [09:51:40]Write i2c OK [09:51:40]MH_I2C_Read... [09:51:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:51:41]Read from MH i2c: E2 [09:51:41]MH_I2C_Read... [09:51:41]Read from MH i2c: E2 FD 00 [09:51:41]MH_I2C_Read... [09:51:41]Read from MH i2c: E2 FD 00 DE 27 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 F7 [09:51:41]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [09:51:41]wFMCommunicate OK [09:51:41]wFMCommunicate request_size=4 [09:51:41]MH_SAM_APDU [09:51:41]CAPDU: 80 17 00 00 [09:51:41]Write to MH i2c: E2 08 00 DF 27 80 17 00 00 00 00 00 00 86 [09:51:41]Write i2c OK [09:51:41]MH_I2C_Read... [09:51:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [09:51:41]Read from MH i2c: E2 [09:51:41]MH_I2C_Read... [09:51:41]Read from MH i2c: E2 CB 00 [09:51:41]MH_I2C_Read... [09:51:41]Read from MH i2c: E2 CB 00 DF 27 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 6F [09:51:41]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [09:51:41]wFMCommunicate OK [09:51:41]SAM_PROTO_GetShiftData done [09:51:41]requested_item shift.sale.total_cash is exist - process it [09:51:41]requested_item shift.sale_refund.total is exist - process it [09:51:41]requested_item shift.sale_refund.total_cash is exist - process it [09:51:41]requested_item shift.buy.total is exist - process it [09:51:41]requested_item shift.buy.total_cash is exist - process it [09:51:41]produce_requested_data done [09:51:41]produce_requested_data return {"fm.sale.total":133838050.40,"fm.sale_refund.total":37037760.00,"fm.buy.total":0.00,"shift.sale.total":29961.96,"shift.sale.total_cash":12228.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [09:51:41]process_action_free get_value [09:51:41]json_value_free [09:51:41]json_value_free done [09:51:41]process_json_proto returns [09:51:41]Send response to host [09:51:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":133838050.40,"fm.sale_refund.total":37037760.00,"fm.buy.total":0.00,"shift.sale.total":29961.96,"shift.sale.total_cash":12228.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [09:51:41]free response buf [09:51:41]execute_script done [09:51:41]execute_script returns [09:51:41]free content buf [09:51:41]Sock 9.Close socket [09:51:41]Sock 9.Thread stoped [09:51:41]OFD Sender: No OFD packet to send [09:51:46]OFD Sender: No OFD packet to send [09:51:51]OFD Sender: No OFD packet to send [09:51:56]OFD Sender: No OFD packet to send [09:52:01]OFD Sender: No OFD packet to send [09:52:06]OFD Sender: No OFD packet to send [09:52:11]OFD Sender: No OFD packet to send [09:52:16]OFD Sender: No OFD packet to send [09:52:21]OFD Sender: No OFD packet to send [09:52:27]OFD Sender: No OFD packet to send [09:52:32]OFD Sender: No OFD packet to send [09:52:37]OFD Sender: No OFD packet to send [09:52:37]accept exits with 7 [09:52:37]New connection [09:52:37]New thread 3066608996 created [09:52:37]Thread 3066752356 joined [09:52:37]Waiting for new connection... [09:52:37] Sock 7.Parse request [09:52:37]Sock 7.Check first char [09:52:37]Sock 7.First char is OK [09:52:37]request: POST /json_proto HTTP/1.0 [09:52:37]Method: POST [09:52:37]URL: /json_proto [09:52:37]Method is POST - this is cgi request [09:52:37]url: /json_proto [09:52:37]query_string will be loaded in cgi processing [09:52:37]execute_cgi json_proto POST (null) [09:52:37]execute_cgi path=json_proto method=POST [09:52:37]POST find Content-Length [09:52:37]Host: 172.17.41.195:8080 [09:52:37]Content-Length: 796 [09:52:37]Content-Type: application/json [09:52:37] [09:52:37]POST finish read [09:52:37]Found Content-Length = 796 [09:52:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507986", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.80, "quantity" : 16.230, "sum" : 1100.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1100.39 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:52:37]execute_script... [09:52:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507986", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.80, "quantity" : 16.230, "sum" : 1100.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1100.39 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:52:37]POST & json_proto [09:52:37]process_json_proto [09:52:37]json parsed OK: [09:52:37]protocol is kg_v1.0 [09:52:37]action value=close_receipt [09:52:37]process_action close_receipt [09:52:37]cmd_close_receipt [09:52:37]MH_GetDate [09:52:37]Write to MH i2c: F0 00 00 E0 27 F6 [09:52:37]Write i2c OK [09:52:37]MH_I2C_Read... [09:52:37]Read from MH i2c: F0 [09:52:37]MH_I2C_Read... [09:52:37]Read from MH i2c: F0 09 00 [09:52:37]MH_I2C_Read... [09:52:37]Read from MH i2c: F0 09 00 E0 27 00 69 7A 48 66 FC 21 6F 64 80 [09:52:37]GetLastDocTimeStamp 1716025343 [09:52:37]current date 1716025961 [09:52:37]FM_GetShiftState [09:52:37]SAM_PROTO_GetShiftState [09:52:37]wFMCommunicate request_size=4 [09:52:37]MH_SAM_APDU [09:52:37]CAPDU: 80 13 01 00 [09:52:37]Write to MH i2c: E2 08 00 E1 27 80 13 01 00 00 00 00 00 85 [09:52:37]Write i2c OK [09:52:37]MH_I2C_Read... [09:52:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:52:37]Read from MH i2c: E2 [09:52:37]MH_I2C_Read... [09:52:37]Read from MH i2c: E2 0E 00 [09:52:37]MH_I2C_Read... [09:52:37]Read from MH i2c: E2 0E 00 E1 27 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 EC [09:52:37]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [09:52:37]wFMCommunicate OK [09:52:37]SAM_PROTO_GetShiftState done [09:52:37]FM_GetShiftState done [09:52:37]opened in 1715991483 [09:52:37]opened+sec_in_day 1716077883 [09:52:37]quantity*price = 110039 [09:52:37]sum+1 = 110040 [09:52:37]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1100.39 НСП 1% : 9.74 НДС 12% : 116.86 Наличными: 0.00 Безнал.: 1100.39 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 31 18.05.2024 09:52 Смена: 359 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67792 ФПД: 27631948393913 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T095241&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67792&fm=27631948393913&tin=02508201610067®Number=0000000000091845&sum=110039 [09:52:38]StoreToDocumentArchive [09:52:38]shift 359 fd 67792 [09:52:38]save to /storage/0359/doc_00067792 [09:52:38]save last doc name /storage/0359/doc_00067792 to /storage/kkm_last_doc_name [09:52:38]save OK [09:52:38]Clear old archive folders... [09:52:38]ProcessDocumentItem done err = 0, tmpTLVsize=252 [09:52:38]tlvbuf is B6D772A0 [09:52:38]SAM_PROTO_ClearQueue [09:52:38]wFMCommunicate request_size=4 [09:52:38]MH_SAM_APDU [09:52:38]CAPDU: 80 09 00 00 [09:52:38]Write to MH i2c: E2 08 00 EE 27 80 09 00 00 00 00 00 00 87 [09:52:38]Write i2c OK [09:52:38]MH_I2C_Read... [09:52:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:52:38]Read from MH i2c: E2 [09:52:38]MH_I2C_Read... [09:52:38]Read from MH i2c: E2 03 00 [09:52:38]MH_I2C_Read... [09:52:38]Read from MH i2c: E2 03 00 EE 27 00 90 00 89 [09:52:38]RAPDU: 90 00 [09:52:38]wFMCommunicate OK [09:52:38]SAM_PROTO_ClearQueue done [09:52:38]KKMCreateOFDPacket [09:52:38]OFDProtocolAddRootSTLVToBuf [09:52:38]FM_MakeSignedData [09:52:38]FM_MakeSignedData [09:52:38]SAM_PROTO_SignData [09:52:38]wFMCommunicate request_size=4 [09:52:38]MH_SAM_APDU [09:52:38]CAPDU: 80 0D 01 02 [09:52:38]Write to MH i2c: E2 08 00 EF 27 80 0D 01 02 00 00 00 00 8F [09:52:38]Write i2c OK [09:52:38]MH_I2C_Read... [09:52:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:52:38]Read from MH i2c: E2 [09:52:38]MH_I2C_Read... [09:52:38]Read from MH i2c: E2 03 00 [09:52:38]MH_I2C_Read... [09:52:38]Read from MH i2c: E2 03 00 EF 27 00 90 00 8A [09:52:38]RAPDU: 90 00 [09:52:38]wFMCommunicate OK [09:52:38]wFMCommunicate request_size=255 [09:52:38]MH_SAM_APDU [09:52:38]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3F 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 D7 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D7 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A6 2D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D7 AD 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 69 7A 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 D0 08 01 00 35 04 06 00 [09:52:38]Write to MH i2c: E2 02 01 F0 27 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3F 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 D7 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D7 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A6 2D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D7 AD 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 69 7A 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 D0 08 01 00 35 04 06 00 00 00 27 [09:52:38]Write i2c OK [09:52:38]MH_I2C_Read... [09:52:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:52:38]Read from MH i2c: E2 [09:52:38]MH_I2C_Read... [09:52:38]Read from MH i2c: E2 03 00 [09:52:38]MH_I2C_Read... [09:52:38]Read from MH i2c: E2 03 00 F0 27 00 90 00 8B [09:52:38]RAPDU: 90 00 [09:52:38]wFMCommunicate OK [09:52:38]wFMCommunicate request_size=11 [09:52:38]MH_SAM_APDU [09:52:38]CAPDU: 80 0D 02 02 06 19 21 90 77 ED B9 [09:52:38]Write to MH i2c: E2 0E 00 F1 27 80 0D 02 02 06 00 19 21 90 77 ED B9 00 00 85 [09:52:38]Write i2c OK [09:52:38]MH_I2C_Read... [09:52:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:52:38]Read from MH i2c: E2 [09:52:38]MH_I2C_Read... [09:52:38]Read from MH i2c: E2 03 00 [09:52:38]MH_I2C_Read... [09:52:38]Read from MH i2c: E2 03 00 F1 27 00 90 00 8C [09:52:38]RAPDU: 90 00 [09:52:38]wFMCommunicate OK [09:52:38]wFMCommunicate request_size=4 [09:52:38]MH_SAM_APDU [09:52:38]CAPDU: 80 0D 03 02 [09:52:38]Write to MH i2c: E2 08 00 F2 27 80 0D 03 02 00 00 00 00 94 [09:52:38]Write i2c OK [09:52:38]MH_I2C_Read... [09:52:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:52:38]Read from MH i2c: E2 [09:52:38]MH_I2C_Read... [09:52:38]Read from MH i2c: E2 0B 00 [09:52:38]MH_I2C_Read... [09:52:38]Read from MH i2c: E2 0B 00 F2 27 00 CD 19 6E F7 BC 36 50 21 90 00 43 [09:52:38]RAPDU: CD 19 6E F7 BC 36 50 21 90 00 [09:52:38]wFMCommunicate OK [09:52:38]SAM_PROTO_SignData done [09:52:38]FM_MakeSignedData done [09:52:38]CreateOFDProtocolMessage [09:52:38]wFMCommunicate request_size=4 [09:52:38]MH_SAM_APDU [09:52:38]CAPDU: 80 11 00 00 [09:52:38]Write to MH i2c: E2 08 00 F3 27 80 11 00 00 00 00 00 00 94 [09:52:38]Write i2c OK [09:52:38]MH_I2C_Read... [09:52:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:52:38]Read from MH i2c: E2 [09:52:38]MH_I2C_Read... [09:52:38]Read from MH i2c: E2 17 00 [09:52:38]MH_I2C_Read... [09:52:38]Read from MH i2c: E2 17 00 F3 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 EA [09:52:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [09:52:38]wFMCommunicate OK [09:52:38]CreateOFDProtocolMessage done [09:52:38]OFDSenderStorePacket 67792 [09:52:38]StoreOFDPacket docnum=67792 [09:52:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 01 00 00 F2 D6 08 01 B9 DB 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3F 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 D7 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D7 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A6 2D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D7 AD 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 69 7A 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 D0 08 01 00 35 04 06 00 19 21 90 77 ED B9 CD 19 6E F7 BC 36 50 21 [09:52:38]CheckFolder [09:52:38]dirname=/storage/ofd_packets [09:52:38]CheckFolder done [09:52:38]ProducePacketName [09:52:38]name=ofd_packets/00067792 [09:52:38]NVStorageSaveData ofd_packets/00067792 [09:52:38]File name is /storage/ofd_packets/00067792 [09:52:38]Write 302 bytes [09:52:38]NVStorageSaveData done [09:52:38]OFDSenderStorePacket done [09:52:38]KKMCreateOFDPacket done [09:52:38]NVStorageSaveData kkm_last_timestamp [09:52:38]File name is /storage/kkm_last_timestamp [09:52:38]Write 4 bytes [09:52:38]NVStorageSaveData done [09:52:38]ExternCall_PrintAddStr [09:52:38]wPrintStart [09:52:38]Write to MH i2c: 01 00 00 F4 27 1B [09:52:38]Write i2c OK [09:52:38]MH_I2C_Read... [09:52:38]Read from MH i2c: 01 [09:52:38]MH_I2C_Read... [09:52:38]Read from MH i2c: 01 07 00 [09:52:38]MH_I2C_Read... [09:52:38]Read from MH i2c: 01 07 00 F4 27 00 00 00 00 00 FF 0F 30 [09:52:38]RasterBufferAndPrint [09:52:38]line Счет N : (1)507986 [09:52:38]line ИНН: 02508201610067 [09:52:38]line Контрольно-Кассовый Чек [09:52:38]line ПРОДАЖА [09:52:38]line ТРК (МРК, ГНК) : 42 [09:52:38]line Товар: 2710124130 [09:52:38]line Super-92-К-5 [09:52:38]line 16.230 * 67.80 [09:52:38]line = 1100.39 [09:52:38]line НДС 12% НСП 1% [09:52:38]line > о реализуемом товаре [09:52:38]line ИТОГО: 1100.39 [09:52:38]line НСП 1% : 9.74 [09:52:38]line НДС 12% : 116.86 [09:52:38]line Наличными: 0.00 [09:52:38]line Безнал.: 1100.39 [09:52:38]line Место: АЗС № 91 "Партнер Нефть" [09:52:38]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [09:52:38]line СНО: Общий режим [09:52:38]line Чек 31 18.05.2024 09:52 [09:52:38]line Смена: 359 ФФД: 1.0 [09:52:38]line ЗНМ: 0300000119 [09:52:38]line РНМ: 0000000000091845 [09:52:38]line Версия ККМ: 001 [09:52:38]line Платежная система: O! деньги [09:52:38]line ФМ: 0000000000871829 [09:52:38]line ФД: 67792 [09:52:38]line ФПД: 27631948393913 [09:52:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T095241&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67792&fm=27631948393913&tin=02508201610067®Number=0000000000091845&sum=110039 [09:52:38]written 0, free lines is 4095 [09:52:38]OFD Sender: Processing packet 67792 [packets to send 35, broken 34] [09:52:38]ProducePacketName [09:52:38]name=ofd_packets/00067792 [09:52:38]OFD Sender: To server: pG, [09:52:38]CommunicateWithHost lk.salyk.kg:30040 [09:52:38]ConnectInit lk.salyk.kg [09:52:38]Connected sock=10 [09:52:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 01 00 00 F2 D6 08 01 B9 DB 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3F 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 D7 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D7 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A6 2D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D7 AD 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 69 7A 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 D0 08 01 00 35 04 06 00 19 21 90 77 ED B9 CD 19 6E F7 BC 36 50 21 [09:52:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 51 C3 47 00 91 C1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 D0 08 01 00 F4 03 04 00 3F 22 48 66 B6 04 01 00 00 A6 D5 19 62 34 38 A5 B9 [09:52:39]CommunicateWithHost err = 0 [09:52:39]CheckOFDResponse [09:52:39]1017 (14) - 77093643461234 [09:52:39]1041 (16) - 0000000000871829 [09:52:39]1040 (4) - 67792 [09:52:39]1012 (4) - 18.05.2024 03:36 [09:52:39]1206 (1) - 0 [09:52:39]OFD Sender: Remove packet 67792 [09:52:39]ProducePacketName [09:52:39]name=ofd_packets/00067792 [09:52:39]NVStorageDeleteData [09:52:39]Write to MH i2c: 01 00 00 1D 28 45 [09:52:39]Write i2c OK [09:52:39]MH_I2C_Read... [09:52:39]Read from MH i2c: 01 [09:52:39]MH_I2C_Read... [09:52:39]Read from MH i2c: 01 07 00 [09:52:39]MH_I2C_Read... [09:52:39]Read from MH i2c: 01 07 00 1D 28 00 00 00 00 00 E4 0C 3C [09:52:39]RasterBufferAndPrint [09:52:39]line [09:52:39]line [09:52:39]line [09:52:39]line [09:52:39]line [09:52:39]written 0, free lines is 3308 [09:52:39]MH_Cut [09:52:39]Write to MH i2c: D1 01 00 24 28 01 1E [09:52:39]Write i2c OK [09:52:39]MH_I2C_Read... [09:52:39]Read from MH i2c: D1 [09:52:39]MH_I2C_Read... [09:52:39]Read from MH i2c: D1 01 00 [09:52:39]MH_I2C_Read... [09:52:39]Read from MH i2c: D1 01 00 24 28 00 1D [09:52:39]Write to MH i2c: 01 00 00 25 28 4D [09:52:39]Write i2c OK [09:52:39]MH_I2C_Read... [09:52:39]OFD Sender: No OFD packet to send [09:52:40]*** Cut start [09:52:40]*** Purtial cut [09:52:40]*** Stage 1: CUTSNS_PIN = 1 [09:52:40]Read from MH i2c: 01 [09:52:40]MH_I2C_Read... [09:52:40]*** Stop cut motor [09:52:40]*** Cut end [09:52:40]Read from MH i2c: 01 07 00 [09:52:40]MH_I2C_Read... [09:52:40]Read from MH i2c: 01 07 00 25 28 00 00 00 00 00 FF 0F 62 [09:52:40]process_action close_receipt done [09:52:40]requested_data is exist [09:52:40]produce_requested_data [09:52:40]requested_item fm.sn is exist - process it [09:52:40]wFMCommunicate request_size=4 [09:52:40]MH_SAM_APDU [09:52:40]CAPDU: 80 11 00 00 [09:52:40]Write to MH i2c: E2 08 00 26 28 80 11 00 00 00 00 00 00 C8 [09:52:40]Write i2c OK [09:52:40]MH_I2C_Read... [09:52:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:52:40]Read from MH i2c: E2 [09:52:40]MH_I2C_Read... [09:52:40]Read from MH i2c: E2 17 00 [09:52:40]MH_I2C_Read... [09:52:40]Read from MH i2c: E2 17 00 26 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 1E [09:52:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [09:52:40]wFMCommunicate OK [09:52:40]requested_item fd.num is exist - process it [09:52:40]SAM_PROTO_GetFieldsCounters [09:52:40]wFMCommunicate request_size=4 [09:52:40]MH_SAM_APDU [09:52:40]CAPDU: 80 13 00 00 [09:52:40]Write to MH i2c: E2 08 00 27 28 80 13 00 00 00 00 00 00 CB [09:52:40]Write i2c OK [09:52:40]MH_I2C_Read... [09:52:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:52:40]Read from MH i2c: E2 [09:52:40]MH_I2C_Read... [09:52:40]Read from MH i2c: E2 62 00 [09:52:40]MH_I2C_Read... [09:52:40]Read from MH i2c: E2 62 00 27 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 D0 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 1F 00 00 00 5E 04 04 00 1F 00 00 00 57 04 04 00 20 00 00 00 19 04 04 00 00 00 00 00 90 00 8F [09:52:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 D0 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 1F 00 00 00 5E 04 04 00 1F 00 00 00 57 04 04 00 20 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:52:40]wFMCommunicate OK [09:52:40]SAM_PROTO_GetFieldsCounters done [09:52:40]requested_item shift.num is exist - process it [09:52:40]requested_item shift.opened is exist - process it [09:52:40]req_shift_opened [09:52:40]FM_GetShiftState [09:52:40]SAM_PROTO_GetShiftState [09:52:40]wFMCommunicate request_size=4 [09:52:40]MH_SAM_APDU [09:52:40]CAPDU: 80 13 01 00 [09:52:40]Write to MH i2c: E2 08 00 28 28 80 13 01 00 00 00 00 00 CD [09:52:40]Write i2c OK [09:52:40]MH_I2C_Read... [09:52:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:52:40]Read from MH i2c: E2 [09:52:40]MH_I2C_Read... [09:52:40]Read from MH i2c: E2 0E 00 [09:52:40]MH_I2C_Read... [09:52:40]Read from MH i2c: E2 0E 00 28 28 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 34 [09:52:40]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [09:52:40]wFMCommunicate OK [09:52:40]SAM_PROTO_GetShiftState done [09:52:40]FM_GetShiftState done [09:52:40]req_shift_opened done [09:52:40]requested_item shift.open_date is exist - process it [09:52:40]req_shift_open_date [09:52:40]req_shift_open_date done [09:52:40]produce_requested_data done [09:52:40]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67792,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [09:52:40]process_action_free close_receipt [09:52:40]json_value_free [09:52:40]json_value_free done [09:52:40]process_json_proto returns [09:52:40]Send response to host [09:52:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67792,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [09:52:40]free response buf [09:52:40]execute_script done [09:52:40]execute_script returns [09:52:40]free content buf [09:52:40]Sock 7.Close socket [09:52:40]Sock 7.Thread stoped [09:52:44]OFD Sender: No OFD packet to send [09:52:49]OFD Sender: No OFD packet to send [09:52:54]OFD Sender: No OFD packet to send [09:52:59]OFD Sender: No OFD packet to send [09:53:04]OFD Sender: No OFD packet to send [09:53:09]OFD Sender: No OFD packet to send [09:53:14]OFD Sender: No OFD packet to send [09:53:19]OFD Sender: No OFD packet to send [09:53:24]OFD Sender: No OFD packet to send [09:53:29]OFD Sender: No OFD packet to send [09:53:34]OFD Sender: No OFD packet to send [09:53:39]OFD Sender: No OFD packet to send [09:53:44]OFD Sender: No OFD packet to send [09:53:49]OFD Sender: No OFD packet to send [09:53:54]OFD Sender: No OFD packet to send [09:53:59]OFD Sender: No OFD packet to send [09:54:04]OFD Sender: No OFD packet to send [09:54:09]OFD Sender: No OFD packet to send [09:54:14]OFD Sender: No OFD packet to send [09:54:19]OFD Sender: No OFD packet to send [09:54:24]OFD Sender: No OFD packet to send [09:54:29]OFD Sender: No OFD packet to send [09:54:34]OFD Sender: No OFD packet to send [09:54:39]OFD Sender: No OFD packet to send [09:54:40]accept exits with 9 [09:54:40]New connection [09:54:40]New thread 3066752356 created [09:54:40]Thread 3066608996 joined [09:54:40]Waiting for new connection... [09:54:40] Sock 9.Parse request [09:54:40]Sock 9.Check first char [09:54:40]Sock 9.First char is OK [09:54:40]request: POST /json_proto HTTP/1.0 [09:54:40]Method: POST [09:54:40]URL: /json_proto [09:54:40]Method is POST - this is cgi request [09:54:40]url: /json_proto [09:54:40]query_string will be loaded in cgi processing [09:54:40]execute_cgi json_proto POST (null) [09:54:40]execute_cgi path=json_proto method=POST [09:54:40]POST find Content-Length [09:54:40]Host: 172.17.41.195:8080 [09:54:40]Content-Length: 796 [09:54:40]Content-Type: application/json [09:54:40] [09:54:40]POST finish read [09:54:40]Found Content-Length = 796 [09:54:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507987", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.80, "quantity" : 22.130, "sum" : 1500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:54:40]execute_script... [09:54:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507987", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.80, "quantity" : 22.130, "sum" : 1500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:54:40]POST & json_proto [09:54:40]process_json_proto [09:54:40]json parsed OK: [09:54:40]protocol is kg_v1.0 [09:54:40]action value=close_receipt [09:54:40]process_action close_receipt [09:54:40]cmd_close_receipt [09:54:40]MH_GetDate [09:54:40]Write to MH i2c: F0 00 00 29 28 40 [09:54:40]Write i2c OK [09:54:40]MH_I2C_Read... [09:54:40]Read from MH i2c: F0 [09:54:40]MH_I2C_Read... [09:54:40]Read from MH i2c: F0 09 00 [09:54:40]MH_I2C_Read... [09:54:40]Read from MH i2c: F0 09 00 29 28 00 E5 7A 48 66 FC 21 6F 64 46 [09:54:40]GetLastDocTimeStamp 1716025961 [09:54:40]current date 1716026085 [09:54:40]FM_GetShiftState [09:54:40]SAM_PROTO_GetShiftState [09:54:40]wFMCommunicate request_size=4 [09:54:40]MH_SAM_APDU [09:54:40]CAPDU: 80 13 01 00 [09:54:40]Write to MH i2c: E2 08 00 2A 28 80 13 01 00 00 00 00 00 CF [09:54:40]Write i2c OK [09:54:40]MH_I2C_Read... [09:54:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:54:40]Read from MH i2c: E2 [09:54:40]MH_I2C_Read... [09:54:40]Read from MH i2c: E2 0E 00 [09:54:40]MH_I2C_Read... [09:54:40]Read from MH i2c: E2 0E 00 2A 28 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 36 [09:54:40]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [09:54:40]wFMCommunicate OK [09:54:40]SAM_PROTO_GetShiftState done [09:54:40]FM_GetShiftState done [09:54:40]opened in 1715991483 [09:54:40]opened+sec_in_day 1716077883 [09:54:40]quantity*price = 150041 [09:54:40]sum+1 = 150042 [09:54:40]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.41 НСП 1% : 13.28 НДС 12% : 159.34 Наличными: 0.00 Безнал.: 1500.41 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 32 18.05.2024 09:54 Смена: 359 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67793 ФПД: 236368766800418 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T095445&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67793&fm=236368766800418&tin=02508201610067®Number=0000000000091845&sum=150041 [09:54:41]StoreToDocumentArchive [09:54:41]shift 359 fd 67793 [09:54:41]save to /storage/0359/doc_00067793 [09:54:41]save last doc name /storage/0359/doc_00067793 to /storage/kkm_last_doc_name [09:54:41]save OK [09:54:41]Clear old archive folders... [09:54:41]ProcessDocumentItem done err = 0, tmpTLVsize=252 [09:54:41]tlvbuf is 01B45380 [09:54:41]SAM_PROTO_ClearQueue [09:54:41]wFMCommunicate request_size=4 [09:54:41]MH_SAM_APDU [09:54:41]CAPDU: 80 09 00 00 [09:54:41]Write to MH i2c: E2 08 00 37 28 80 09 00 00 00 00 00 00 D1 [09:54:41]Write i2c OK [09:54:41]MH_I2C_Read... [09:54:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:54:41]Read from MH i2c: E2 [09:54:41]MH_I2C_Read... [09:54:41]Read from MH i2c: E2 03 00 [09:54:41]MH_I2C_Read... [09:54:41]Read from MH i2c: E2 03 00 37 28 00 90 00 D3 [09:54:41]RAPDU: 90 00 [09:54:41]wFMCommunicate OK [09:54:41]SAM_PROTO_ClearQueue done [09:54:41]KKMCreateOFDPacket [09:54:41]OFDProtocolAddRootSTLVToBuf [09:54:41]FM_MakeSignedData [09:54:41]FM_MakeSignedData [09:54:41]SAM_PROTO_SignData [09:54:41]wFMCommunicate request_size=4 [09:54:41]MH_SAM_APDU [09:54:41]CAPDU: 80 0D 01 02 [09:54:41]Write to MH i2c: E2 08 00 38 28 80 0D 01 02 00 00 00 00 D9 [09:54:41]Write i2c OK [09:54:41]MH_I2C_Read... [09:54:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:54:42]Read from MH i2c: E2 [09:54:42]MH_I2C_Read... [09:54:42]Read from MH i2c: E2 03 00 [09:54:42]MH_I2C_Read... [09:54:42]Read from MH i2c: E2 03 00 38 28 00 90 00 D4 [09:54:42]RAPDU: 90 00 [09:54:42]wFMCommunicate OK [09:54:42]wFMCommunicate request_size=255 [09:54:42]MH_SAM_APDU [09:54:42]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 19 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 19 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 E5 7A 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 D1 08 01 00 35 04 06 00 [09:54:42]Write to MH i2c: E2 02 01 39 28 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 19 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 19 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 E5 7A 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 D1 08 01 00 35 04 06 00 00 00 BF [09:54:42]Write i2c OK [09:54:42]MH_I2C_Read... [09:54:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:54:42]Read from MH i2c: E2 [09:54:42]MH_I2C_Read... [09:54:42]Read from MH i2c: E2 03 00 [09:54:42]MH_I2C_Read... [09:54:42]Read from MH i2c: E2 03 00 39 28 00 90 00 D5 [09:54:42]RAPDU: 90 00 [09:54:42]wFMCommunicate OK [09:54:42]wFMCommunicate request_size=11 [09:54:42]MH_SAM_APDU [09:54:42]CAPDU: 80 0D 02 02 06 D6 F9 E4 61 92 22 [09:54:42]Write to MH i2c: E2 0E 00 3A 28 80 0D 02 02 06 00 D6 F9 E4 61 92 22 00 00 B0 [09:54:42]Write i2c OK [09:54:42]MH_I2C_Read... [09:54:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:54:42]Read from MH i2c: E2 [09:54:42]MH_I2C_Read... [09:54:42]Read from MH i2c: E2 03 00 [09:54:42]MH_I2C_Read... [09:54:42]Read from MH i2c: E2 03 00 3A 28 00 90 00 D6 [09:54:42]RAPDU: 90 00 [09:54:42]wFMCommunicate OK [09:54:42]wFMCommunicate request_size=4 [09:54:42]MH_SAM_APDU [09:54:42]CAPDU: 80 0D 03 02 [09:54:42]Write to MH i2c: E2 08 00 3B 28 80 0D 03 02 00 00 00 00 DE [09:54:42]Write i2c OK [09:54:42]MH_I2C_Read... [09:54:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:54:42]Read from MH i2c: E2 [09:54:42]MH_I2C_Read... [09:54:42]Read from MH i2c: E2 0B 00 [09:54:42]MH_I2C_Read... [09:54:42]Read from MH i2c: E2 0B 00 3B 28 00 A4 BF 4A B5 BC 19 EA F0 90 00 F0 [09:54:42]RAPDU: A4 BF 4A B5 BC 19 EA F0 90 00 [09:54:42]wFMCommunicate OK [09:54:42]SAM_PROTO_SignData done [09:54:42]FM_MakeSignedData done [09:54:42]CreateOFDProtocolMessage [09:54:42]wFMCommunicate request_size=4 [09:54:42]MH_SAM_APDU [09:54:42]CAPDU: 80 11 00 00 [09:54:42]Write to MH i2c: E2 08 00 3C 28 80 11 00 00 00 00 00 00 DE [09:54:42]Write i2c OK [09:54:42]MH_I2C_Read... [09:54:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:54:42]Read from MH i2c: E2 [09:54:42]MH_I2C_Read... [09:54:42]Read from MH i2c: E2 17 00 [09:54:42]MH_I2C_Read... [09:54:42]Read from MH i2c: E2 17 00 3C 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 34 [09:54:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [09:54:42]wFMCommunicate OK [09:54:42]CreateOFDProtocolMessage done [09:54:42]OFDSenderStorePacket 67793 [09:54:42]StoreOFDPacket docnum=67793 [09:54:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 01 00 00 61 D0 08 01 43 E0 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 19 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 19 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 E5 7A 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 D1 08 01 00 35 04 06 00 D6 F9 E4 61 92 22 A4 BF 4A B5 BC 19 EA F0 [09:54:42]CheckFolder [09:54:42]dirname=/storage/ofd_packets [09:54:42]CheckFolder done [09:54:42]ProducePacketName [09:54:42]name=ofd_packets/00067793 [09:54:42]NVStorageSaveData ofd_packets/00067793 [09:54:42]File name is /storage/ofd_packets/00067793 [09:54:42]Write 302 bytes [09:54:42]NVStorageSaveData done [09:54:42]OFDSenderStorePacket done [09:54:42]KKMCreateOFDPacket done [09:54:42]NVStorageSaveData kkm_last_timestamp [09:54:42]File name is /storage/kkm_last_timestamp [09:54:42]Write 4 bytes [09:54:42]NVStorageSaveData done [09:54:42]ExternCall_PrintAddStr [09:54:42]wPrintStart [09:54:42]Write to MH i2c: 01 00 00 3D 28 65 [09:54:42]Write i2c OK [09:54:42]MH_I2C_Read... [09:54:42]Read from MH i2c: 01 [09:54:42]MH_I2C_Read... [09:54:42]Read from MH i2c: 01 07 00 [09:54:42]MH_I2C_Read... [09:54:42]Read from MH i2c: 01 07 00 3D 28 00 00 00 00 00 FF 0F 7A [09:54:42]RasterBufferAndPrint [09:54:42]line Счет N : (1)507987 [09:54:42]line ИНН: 02508201610067 [09:54:42]line Контрольно-Кассовый Чек [09:54:42]line ПРОДАЖА [09:54:42]line ТРК (МРК, ГНК) : 42 [09:54:42]line Товар: 2710124130 [09:54:42]line Super-92-К-5 [09:54:42]line 22.130 * 67.80 [09:54:42]line = 1500.41 [09:54:42]line НДС 12% НСП 1% [09:54:42]line > о реализуемом товаре [09:54:42]line ИТОГО: 1500.41 [09:54:42]line НСП 1% : 13.28 [09:54:42]line НДС 12% : 159.34 [09:54:42]line Наличными: 0.00 [09:54:42]line Безнал.: 1500.41 [09:54:42]line Место: АЗС № 91 "Партнер Нефть" [09:54:42]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [09:54:42]line СНО: Общий режим [09:54:42]line Чек 32 18.05.2024 09:54 [09:54:42]line Смена: 359 ФФД: 1.0 [09:54:42]line ЗНМ: 0300000119 [09:54:42]line РНМ: 0000000000091845 [09:54:42]line Версия ККМ: 001 [09:54:42]line Платежная система: O! деньги [09:54:42]line ФМ: 0000000000871829 [09:54:42]line ФД: 67793 [09:54:42]line ФПД: 236368766800418 [09:54:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T095445&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67793&fm=236368766800418&tin=02508201610067®Number=0000000000091845&sum=150041 [09:54:42]OFD Sender: Processing packet 67793 [packets to send 35, broken 34] [09:54:42]ProducePacketName [09:54:42]name=ofd_packets/00067793 [09:54:42]OFD Sender: To server: pG, [09:54:42]CommunicateWithHost lk.salyk.kg:30040 [09:54:42]ConnectInit lk.salyk.kg [09:54:42]written 0, free lines is 4095 [09:54:42]Connected sock=10 [09:54:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 01 00 00 61 D0 08 01 43 E0 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 19 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 19 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 E5 7A 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 D1 08 01 00 35 04 06 00 D6 F9 E4 61 92 22 A4 BF 4A B5 BC 19 EA F0 [09:54:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 DC 74 47 00 D8 87 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 D1 08 01 00 F4 03 04 00 BB 22 48 66 B6 04 01 00 00 51 EB EA 91 08 BF 3A 65 [09:54:43]CommunicateWithHost err = 0 [09:54:43]CheckOFDResponse [09:54:43]1017 (14) - 77093643461234 [09:54:43]1041 (16) - 0000000000871829 [09:54:43]1040 (4) - 67793 [09:54:43]1012 (4) - 18.05.2024 03:38 [09:54:43]1206 (1) - 0 [09:54:43]OFD Sender: Remove packet 67793 [09:54:43]ProducePacketName [09:54:43]name=ofd_packets/00067793 [09:54:43]NVStorageDeleteData [09:54:43]Write to MH i2c: 01 00 00 66 28 8E [09:54:43]Write i2c OK [09:54:43]MH_I2C_Read... [09:54:43]Read from MH i2c: 01 [09:54:43]MH_I2C_Read... [09:54:43]Read from MH i2c: 01 07 00 [09:54:43]MH_I2C_Read... [09:54:43]Read from MH i2c: 01 07 00 66 28 00 00 00 00 00 D9 0C 7A [09:54:43]RasterBufferAndPrint [09:54:43]line [09:54:43]line [09:54:43]line [09:54:43]line [09:54:43]line [09:54:43]written 0, free lines is 3296 [09:54:43]MH_Cut [09:54:43]Write to MH i2c: D1 01 00 6D 28 01 67 [09:54:43]Write i2c OK [09:54:43]MH_I2C_Read... [09:54:43]Read from MH i2c: D1 [09:54:43]MH_I2C_Read... [09:54:43]Read from MH i2c: D1 01 00 [09:54:43]MH_I2C_Read... [09:54:43]Read from MH i2c: D1 01 00 6D 28 00 66 [09:54:43]Write to MH i2c: 01 00 00 6E 28 96 [09:54:43]Write i2c OK [09:54:43]MH_I2C_Read... [09:54:43]OFD Sender: No OFD packet to send [09:54:44]*** Cut start [09:54:44]*** Purtial cut [09:54:44]*** CUTSNS_PIN = 0 [09:54:44]*** Stage 1: CUTSNS_PIN = 1 [09:54:46]Read from MH i2c: 01 [09:54:46]MH_I2C_Read... [09:54:46]*** Stop cut motor [09:54:46]*** Cut end [09:54:46]Read from MH i2c: 01 07 00 [09:54:46]MH_I2C_Read... [09:54:46]Read from MH i2c: 01 07 00 6E 28 00 00 00 00 00 FF 0F AB [09:54:46]process_action close_receipt done [09:54:46]requested_data is exist [09:54:46]produce_requested_data [09:54:46]requested_item fm.sn is exist - process it [09:54:46]wFMCommunicate request_size=4 [09:54:46]MH_SAM_APDU [09:54:46]CAPDU: 80 11 00 00 [09:54:46]Write to MH i2c: E2 08 00 6F 28 80 11 00 00 00 00 00 00 11 [09:54:46]Write i2c OK [09:54:46]MH_I2C_Read... [09:54:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:54:46]Read from MH i2c: E2 [09:54:46]MH_I2C_Read... [09:54:46]Read from MH i2c: E2 17 00 [09:54:46]MH_I2C_Read... [09:54:46]Read from MH i2c: E2 17 00 6F 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 67 [09:54:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [09:54:46]wFMCommunicate OK [09:54:46]requested_item fd.num is exist - process it [09:54:46]SAM_PROTO_GetFieldsCounters [09:54:46]wFMCommunicate request_size=4 [09:54:46]MH_SAM_APDU [09:54:46]CAPDU: 80 13 00 00 [09:54:46]Write to MH i2c: E2 08 00 70 28 80 13 00 00 00 00 00 00 14 [09:54:46]Write i2c OK [09:54:46]MH_I2C_Read... [09:54:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:54:46]Read from MH i2c: E2 [09:54:46]MH_I2C_Read... [09:54:46]Read from MH i2c: E2 62 00 [09:54:46]MH_I2C_Read... [09:54:46]Read from MH i2c: E2 62 00 70 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 D1 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 20 00 00 00 5E 04 04 00 20 00 00 00 57 04 04 00 21 00 00 00 19 04 04 00 00 00 00 00 90 00 DC [09:54:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 D1 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 20 00 00 00 5E 04 04 00 20 00 00 00 57 04 04 00 21 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:54:46]wFMCommunicate OK [09:54:46]SAM_PROTO_GetFieldsCounters done [09:54:46]requested_item shift.num is exist - process it [09:54:46]requested_item shift.opened is exist - process it [09:54:46]req_shift_opened [09:54:46]FM_GetShiftState [09:54:46]SAM_PROTO_GetShiftState [09:54:46]wFMCommunicate request_size=4 [09:54:46]MH_SAM_APDU [09:54:46]CAPDU: 80 13 01 00 [09:54:46]Write to MH i2c: E2 08 00 71 28 80 13 01 00 00 00 00 00 16 [09:54:46]Write i2c OK [09:54:46]MH_I2C_Read... [09:54:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:54:46]Read from MH i2c: E2 [09:54:46]MH_I2C_Read... [09:54:46]Read from MH i2c: E2 0E 00 [09:54:46]MH_I2C_Read... [09:54:46]Read from MH i2c: E2 0E 00 71 28 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 7D [09:54:46]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [09:54:46]wFMCommunicate OK [09:54:46]SAM_PROTO_GetShiftState done [09:54:46]FM_GetShiftState done [09:54:46]req_shift_opened done [09:54:46]requested_item shift.open_date is exist - process it [09:54:46]req_shift_open_date [09:54:46]req_shift_open_date done [09:54:46]produce_requested_data done [09:54:46]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67793,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [09:54:46]process_action_free close_receipt [09:54:46]json_value_free [09:54:46]json_value_free done [09:54:46]process_json_proto returns [09:54:46]Send response to host [09:54:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67793,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [09:54:46]free response buf [09:54:46]execute_script done [09:54:46]execute_script returns [09:54:46]free content buf [09:54:46]Sock 9.Close socket [09:54:46]Sock 9.Thread stoped [09:54:48]OFD Sender: No OFD packet to send [09:54:53]OFD Sender: No OFD packet to send [09:54:58]OFD Sender: No OFD packet to send [09:55:03]OFD Sender: No OFD packet to send [09:55:08]OFD Sender: No OFD packet to send [09:55:13]OFD Sender: No OFD packet to send [09:55:18]OFD Sender: No OFD packet to send [09:55:23]OFD Sender: No OFD packet to send [09:55:28]OFD Sender: No OFD packet to send [09:55:33]OFD Sender: No OFD packet to send [09:55:38]OFD Sender: No OFD packet to send [09:55:43]OFD Sender: No OFD packet to send [09:55:48]OFD Sender: No OFD packet to send [09:55:53]OFD Sender: No OFD packet to send [09:55:58]OFD Sender: No OFD packet to send [09:56:03]OFD Sender: No OFD packet to send [09:56:08]OFD Sender: No OFD packet to send [09:56:13]OFD Sender: No OFD packet to send [09:56:18]OFD Sender: No OFD packet to send [09:56:23]OFD Sender: No OFD packet to send [09:56:28]OFD Sender: No OFD packet to send [09:56:33]OFD Sender: No OFD packet to send [09:56:38]OFD Sender: No OFD packet to send [09:56:43]OFD Sender: No OFD packet to send [09:56:48]OFD Sender: No OFD packet to send [09:56:53]OFD Sender: No OFD packet to send [09:56:58]OFD Sender: No OFD packet to send [09:57:03]OFD Sender: No OFD packet to send [09:57:08]OFD Sender: No OFD packet to send [09:57:13]OFD Sender: No OFD packet to send [09:57:18]OFD Sender: No OFD packet to send [09:57:23]OFD Sender: No OFD packet to send [09:57:28]OFD Sender: No OFD packet to send [09:57:33]OFD Sender: No OFD packet to send [09:57:38]OFD Sender: No OFD packet to send [09:57:43]OFD Sender: No OFD packet to send [09:57:48]OFD Sender: No OFD packet to send [09:57:53]OFD Sender: No OFD packet to send [09:57:58]OFD Sender: No OFD packet to send [09:58:03]OFD Sender: No OFD packet to send [09:58:08]OFD Sender: No OFD packet to send [09:58:13]OFD Sender: No OFD packet to send [09:58:14]accept exits with 7 [09:58:14]New connection [09:58:14]New thread 3066608996 created [09:58:14]Thread 3066752356 joined [09:58:14]Waiting for new connection... [09:58:14] Sock 7.Parse request [09:58:14]Sock 7.Check first char [09:58:14]Sock 7.First char is OK [09:58:14]request: POST /json_proto HTTP/1.0 [09:58:14]Method: POST [09:58:14]URL: /json_proto [09:58:14]Method is POST - this is cgi request [09:58:14]url: /json_proto [09:58:14]query_string will be loaded in cgi processing [09:58:14]execute_cgi json_proto POST (null) [09:58:14]execute_cgi path=json_proto method=POST [09:58:14]POST find Content-Length [09:58:14]Host: 172.17.41.195:8080 [09:58:14]Content-Length: 1208 [09:58:14]Content-Type: application/json [09:58:14] [09:58:14]POST finish read [09:58:14]Found Content-Length = 1208 [09:58:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0440\u0441\u0442\u0430\u043D\u0431\u0435\u043A\u043E\u0432 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)507988\u000A18.05.2024 09:40\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 10.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 747.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:58:14]execute_script... [09:58:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0440\u0441\u0442\u0430\u043D\u0431\u0435\u043A\u043E\u0432 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)507988\u000A18.05.2024 09:40\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 10.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 747.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:58:14]POST & json_proto [09:58:14]process_json_proto [09:58:14]json parsed OK: [09:58:14]protocol is kg_v1.0 [09:58:14]action value=print_text [09:58:14]process_action print_text [09:58:14]cmd_print_text [09:58:14]ExternCall_PrintAddStr [09:58:14]wPrintStart [09:58:14]Write to MH i2c: 01 00 00 72 28 9A [09:58:14]Write i2c OK [09:58:14]MH_I2C_Read... [09:58:14]Read from MH i2c: 01 [09:58:14]MH_I2C_Read... [09:58:14]Read from MH i2c: 01 07 00 [09:58:14]MH_I2C_Read... [09:58:14]Read from MH i2c: 01 07 00 72 28 00 00 00 00 00 FF 0F AF [09:58:14]RasterBufferAndPrint [09:58:14]line *****ТОВАРНЫЙ ЧЕК***** [09:58:14]line АЗС-91 [09:58:14]line Партнер нефть [09:58:14]line 02508201610067 [09:58:14]line Кассир : Арстанбеков Н. [09:58:14]line Счет N : (1)507988 [09:58:14]line 18.05.2024 09:40 [09:58:14]line ПРОДАЖА [09:58:14]line ТРК (МРК, ГНК): 11 [09:58:14]line Вид ГСМ : 2710194210 [09:58:14]line ДТ-К-5 [09:58:14]line 10.000 x 74.70 [09:58:14]line ИТОГ: 747.00 [09:58:14]line Тип оплаты: Талоны: Топливная Карта [09:58:14]line 02750 [09:58:14]line ______________________ [09:58:14]line (подпись) [09:58:14]written 0, free lines is 4095 [09:58:14]Write to MH i2c: 01 00 00 86 28 AE [09:58:14]Write i2c OK [09:58:14]MH_I2C_Read... [09:58:14]Read from MH i2c: 01 [09:58:14]MH_I2C_Read... [09:58:14]Read from MH i2c: 01 07 00 [09:58:14]MH_I2C_Read... [09:58:14]Read from MH i2c: 01 07 00 86 28 00 00 00 00 00 0E 0E D1 [09:58:14]RasterBufferAndPrint [09:58:14]line [09:58:14]line [09:58:14]line [09:58:14]line [09:58:14]line [09:58:14]written 0, free lines is 3600 [09:58:14]MH_Cut [09:58:14]Write to MH i2c: D1 01 00 8D 28 01 87 [09:58:14]Write i2c OK [09:58:14]MH_I2C_Read... [09:58:14]Read from MH i2c: D1 [09:58:14]MH_I2C_Read... [09:58:14]Read from MH i2c: D1 01 00 [09:58:14]MH_I2C_Read... [09:58:14]Read from MH i2c: D1 01 00 8D 28 00 86 [09:58:14]Write to MH i2c: 01 00 00 8E 28 B6 [09:58:14]Write i2c OK [09:58:14]MH_I2C_Read... [09:58:14]*** Cut start [09:58:14]*** Purtial cut [09:58:14]*** Stage 1: CUTSNS_PIN = 1 [09:58:15]Read from MH i2c: 01 [09:58:15]MH_I2C_Read... [09:58:15]Read from MH i2c: 01 07 00 [09:58:15]MH_I2C_Read... [09:58:15]*** Stop cut motor [09:58:15]*** Cut end [09:58:15]Read from MH i2c: 01 07 00 8E 28 00 00 00 00 00 FF 0F CB [09:58:15]process_action print_text done [09:58:15]requested_data is exist [09:58:15]produce_requested_data [09:58:15]requested_item fm.sn is exist - process it [09:58:15]wFMCommunicate request_size=4 [09:58:15]MH_SAM_APDU [09:58:15]CAPDU: 80 11 00 00 [09:58:15]Write to MH i2c: E2 08 00 8F 28 80 11 00 00 00 00 00 00 31 [09:58:15]Write i2c OK [09:58:15]MH_I2C_Read... [09:58:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:58:15]Read from MH i2c: E2 [09:58:15]MH_I2C_Read... [09:58:15]Read from MH i2c: E2 17 00 [09:58:15]MH_I2C_Read... [09:58:15]Read from MH i2c: E2 17 00 8F 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 87 [09:58:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [09:58:15]wFMCommunicate OK [09:58:15]requested_item fd.num is exist - process it [09:58:15]SAM_PROTO_GetFieldsCounters [09:58:15]wFMCommunicate request_size=4 [09:58:15]MH_SAM_APDU [09:58:15]CAPDU: 80 13 00 00 [09:58:15]Write to MH i2c: E2 08 00 90 28 80 13 00 00 00 00 00 00 34 [09:58:15]Write i2c OK [09:58:15]MH_I2C_Read... [09:58:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:58:15]Read from MH i2c: E2 [09:58:15]MH_I2C_Read... [09:58:15]Read from MH i2c: E2 62 00 [09:58:15]MH_I2C_Read... [09:58:15]Read from MH i2c: E2 62 00 90 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 D1 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 20 00 00 00 5E 04 04 00 20 00 00 00 57 04 04 00 21 00 00 00 19 04 04 00 00 00 00 00 90 00 FC [09:58:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 D1 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 20 00 00 00 5E 04 04 00 20 00 00 00 57 04 04 00 21 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:58:15]wFMCommunicate OK [09:58:15]SAM_PROTO_GetFieldsCounters done [09:58:15]requested_item shift.num is exist - process it [09:58:15]requested_item shift.opened is exist - process it [09:58:15]req_shift_opened [09:58:15]FM_GetShiftState [09:58:15]SAM_PROTO_GetShiftState [09:58:15]wFMCommunicate request_size=4 [09:58:15]MH_SAM_APDU [09:58:15]CAPDU: 80 13 01 00 [09:58:15]Write to MH i2c: E2 08 00 91 28 80 13 01 00 00 00 00 00 36 [09:58:15]Write i2c OK [09:58:15]MH_I2C_Read... [09:58:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:58:15]Read from MH i2c: E2 [09:58:15]MH_I2C_Read... [09:58:15]Read from MH i2c: E2 0E 00 [09:58:15]MH_I2C_Read... [09:58:15]Read from MH i2c: E2 0E 00 91 28 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 9D [09:58:15]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [09:58:15]wFMCommunicate OK [09:58:15]SAM_PROTO_GetShiftState done [09:58:15]FM_GetShiftState done [09:58:15]req_shift_opened done [09:58:15]requested_item shift.open_date is exist - process it [09:58:15]req_shift_open_date [09:58:15]req_shift_open_date done [09:58:15]produce_requested_data done [09:58:15]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67793,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [09:58:15]process_action_free print_text [09:58:15]json_value_free [09:58:15]json_value_free done [09:58:15]process_json_proto returns [09:58:15]Send response to host [09:58:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67793,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [09:58:15]free response buf [09:58:15]execute_script done [09:58:15]execute_script returns [09:58:15]free content buf [09:58:15]Sock 7.Close socket [09:58:15]Sock 7.Thread stoped [09:58:18]OFD Sender: No OFD packet to send [09:58:23]OFD Sender: No OFD packet to send [09:58:28]OFD Sender: No OFD packet to send [09:58:33]OFD Sender: No OFD packet to send [09:58:38]OFD Sender: No OFD packet to send [09:58:43]OFD Sender: No OFD packet to send [09:58:48]OFD Sender: No OFD packet to send [09:58:53]OFD Sender: No OFD packet to send [09:58:58]OFD Sender: No OFD packet to send [09:59:03]OFD Sender: No OFD packet to send [09:59:08]OFD Sender: No OFD packet to send [09:59:13]OFD Sender: No OFD packet to send [09:59:18]OFD Sender: No OFD packet to send [09:59:23]OFD Sender: No OFD packet to send [09:59:28]OFD Sender: No OFD packet to send [09:59:33]OFD Sender: No OFD packet to send [09:59:38]OFD Sender: No OFD packet to send [09:59:43]OFD Sender: No OFD packet to send [09:59:48]OFD Sender: No OFD packet to send [09:59:53]OFD Sender: No OFD packet to send [09:59:58]OFD Sender: No OFD packet to send [10:00:03]OFD Sender: No OFD packet to send [10:00:08]OFD Sender: No OFD packet to send [10:00:13]OFD Sender: No OFD packet to send [10:00:15]accept exits with 9 [10:00:15]New connection [10:00:15]New thread 3066752356 created [10:00:15]Thread 3066608996 joined [10:00:15]Waiting for new connection... [10:00:15] Sock 9.Parse request [10:00:15]Sock 9.Check first char [10:00:15]Sock 9.First char is OK [10:00:15]request: POST /json_proto HTTP/1.0 [10:00:15]Method: POST [10:00:15]URL: /json_proto [10:00:15]Method is POST - this is cgi request [10:00:15]url: /json_proto [10:00:15]query_string will be loaded in cgi processing [10:00:15]execute_cgi json_proto POST (null) [10:00:15]execute_cgi path=json_proto method=POST [10:00:15]POST find Content-Length [10:00:15]Host: 172.17.41.195:8080 [10:00:15]Content-Length: 800 [10:00:15]Content-Type: application/json [10:00:15] [10:00:15]POST finish read [10:00:15]Found Content-Length = 800 [10:00:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507989", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 26.780, "sum" : 2000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.47 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:00:15]execute_script... [10:00:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507989", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 26.780, "sum" : 2000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.47 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:00:15]POST & json_proto [10:00:15]process_json_proto [10:00:15]json parsed OK: [10:00:15]protocol is kg_v1.0 [10:00:15]action value=close_receipt [10:00:15]process_action close_receipt [10:00:15]cmd_close_receipt [10:00:15]MH_GetDate [10:00:15]Write to MH i2c: F0 00 00 92 28 A9 [10:00:15]Write i2c OK [10:00:15]MH_I2C_Read... [10:00:15]Read from MH i2c: F0 [10:00:15]MH_I2C_Read... [10:00:15]Read from MH i2c: F0 09 00 [10:00:15]MH_I2C_Read... [10:00:15]Read from MH i2c: F0 09 00 92 28 00 34 7C 48 66 FC 21 6F 64 00 [10:00:15]GetLastDocTimeStamp 1716026085 [10:00:15]current date 1716026420 [10:00:15]FM_GetShiftState [10:00:15]SAM_PROTO_GetShiftState [10:00:15]wFMCommunicate request_size=4 [10:00:15]MH_SAM_APDU [10:00:15]CAPDU: 80 13 01 00 [10:00:15]Write to MH i2c: E2 08 00 93 28 80 13 01 00 00 00 00 00 38 [10:00:15]Write i2c OK [10:00:15]MH_I2C_Read... [10:00:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:00:15]Read from MH i2c: E2 [10:00:15]MH_I2C_Read... [10:00:15]Read from MH i2c: E2 0E 00 [10:00:15]MH_I2C_Read... [10:00:15]Read from MH i2c: E2 0E 00 93 28 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 9F [10:00:15]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [10:00:15]wFMCommunicate OK [10:00:15]SAM_PROTO_GetShiftState done [10:00:15]FM_GetShiftState done [10:00:15]opened in 1715991483 [10:00:15]opened+sec_in_day 1716077883 [10:00:15]quantity*price = 200046 [10:00:15]sum+1 = 200048 [10:00:15]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.47 НСП 1% : 17.70 НДС 12% : 212.44 Наличными: 0.00 Безнал.: 2000.47 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 33 18.05.2024 10:00 Смена: 359 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67794 ФПД: 75388614944955 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T100020&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67794&fm=75388614944955&tin=02508201610067®Number=0000000000091845&sum=200047 [10:00:16]StoreToDocumentArchive [10:00:16]shift 359 fd 67794 [10:00:16]save to /storage/0359/doc_00067794 [10:00:16]save last doc name /storage/0359/doc_00067794 to /storage/kkm_last_doc_name [10:00:16]save OK [10:00:16]Clear old archive folders... [10:00:16]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:00:16]tlvbuf is 01B18E00 [10:00:16]SAM_PROTO_ClearQueue [10:00:16]wFMCommunicate request_size=4 [10:00:16]MH_SAM_APDU [10:00:16]CAPDU: 80 09 00 00 [10:00:16]Write to MH i2c: E2 08 00 A0 28 80 09 00 00 00 00 00 00 3A [10:00:16]Write i2c OK [10:00:16]MH_I2C_Read... [10:00:16]Read from MH i2c: E2 [10:00:16]MH_I2C_Read... [10:00:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:00:16]Read from MH i2c: E2 03 00 [10:00:16]MH_I2C_Read... [10:00:16]Read from MH i2c: E2 03 00 A0 28 00 90 00 3C [10:00:16]RAPDU: 90 00 [10:00:16]wFMCommunicate OK [10:00:16]SAM_PROTO_ClearQueue done [10:00:16]KKMCreateOFDPacket [10:00:16]OFDProtocolAddRootSTLVToBuf [10:00:16]FM_MakeSignedData [10:00:16]FM_MakeSignedData [10:00:16]SAM_PROTO_SignData [10:00:16]wFMCommunicate request_size=4 [10:00:16]MH_SAM_APDU [10:00:16]CAPDU: 80 0D 01 02 [10:00:16]Write to MH i2c: E2 08 00 A1 28 80 0D 01 02 00 00 00 00 42 [10:00:16]Write i2c OK [10:00:16]MH_I2C_Read... [10:00:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:00:16]Read from MH i2c: E2 [10:00:16]MH_I2C_Read... [10:00:16]Read from MH i2c: E2 03 00 [10:00:16]MH_I2C_Read... [10:00:16]Read from MH i2c: E2 03 00 A1 28 00 90 00 3D [10:00:16]RAPDU: 90 00 [10:00:16]wFMCommunicate OK [10:00:16]wFMCommunicate request_size=255 [10:00:16]MH_SAM_APDU [10:00:16]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9C 68 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 6F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6F 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FC 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 34 7C 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 D2 08 01 00 35 04 06 00 44 90 C7 9D [10:00:16]Write to MH i2c: E2 02 01 A2 28 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9C 68 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 6F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6F 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FC 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 34 7C 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 D2 08 01 00 35 04 06 00 44 90 C7 9D 00 00 A8 [10:00:16]Write i2c OK [10:00:16]MH_I2C_Read... [10:00:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:00:16]Read from MH i2c: E2 [10:00:16]MH_I2C_Read... [10:00:16]Read from MH i2c: E2 03 00 [10:00:16]MH_I2C_Read... [10:00:16]Read from MH i2c: E2 03 00 A2 28 00 90 00 3E [10:00:16]RAPDU: 90 00 [10:00:16]wFMCommunicate OK [10:00:16]wFMCommunicate request_size=7 [10:00:16]MH_SAM_APDU [10:00:16]CAPDU: 80 0D 02 02 02 28 BB [10:00:16]Write to MH i2c: E2 0A 00 A3 28 80 0D 02 02 02 00 28 BB 00 00 2C [10:00:16]Write i2c OK [10:00:16]MH_I2C_Read... [10:00:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:00:16]Read from MH i2c: E2 [10:00:16]MH_I2C_Read... [10:00:16]Read from MH i2c: E2 03 00 [10:00:16]MH_I2C_Read... [10:00:16]Read from MH i2c: E2 03 00 A3 28 00 90 00 3F [10:00:16]RAPDU: 90 00 [10:00:16]wFMCommunicate OK [10:00:16]wFMCommunicate request_size=4 [10:00:16]MH_SAM_APDU [10:00:16]CAPDU: 80 0D 03 02 [10:00:16]Write to MH i2c: E2 08 00 A4 28 80 0D 03 02 00 00 00 00 47 [10:00:16]Write i2c OK [10:00:16]MH_I2C_Read... [10:00:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:00:16]Read from MH i2c: E2 [10:00:16]MH_I2C_Read... [10:00:16]Read from MH i2c: E2 0B 00 [10:00:16]MH_I2C_Read... [10:00:16]Read from MH i2c: E2 0B 00 A4 28 00 ED 8E B6 AD F1 1B 68 87 90 00 21 [10:00:16]RAPDU: ED 8E B6 AD F1 1B 68 87 90 00 [10:00:16]wFMCommunicate OK [10:00:16]SAM_PROTO_SignData done [10:00:16]FM_MakeSignedData done [10:00:16]CreateOFDProtocolMessage [10:00:16]wFMCommunicate request_size=4 [10:00:16]MH_SAM_APDU [10:00:16]CAPDU: 80 11 00 00 [10:00:16]Write to MH i2c: E2 08 00 A5 28 80 11 00 00 00 00 00 00 47 [10:00:16]Write i2c OK [10:00:16]MH_I2C_Read... [10:00:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:00:16]Read from MH i2c: E2 [10:00:16]MH_I2C_Read... [10:00:16]Read from MH i2c: E2 17 00 [10:00:16]MH_I2C_Read... [10:00:16]Read from MH i2c: E2 17 00 A5 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 9D [10:00:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [10:00:16]wFMCommunicate OK [10:00:16]CreateOFDProtocolMessage done [10:00:16]OFDSenderStorePacket 67794 [10:00:16]StoreOFDPacket docnum=67794 [10:00:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 1F FC 04 01 5A FC 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9C 68 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 6F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6F 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FC 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 34 7C 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 D2 08 01 00 35 04 06 00 44 90 C7 9D 28 BB ED 8E B6 AD F1 1B 68 87 [10:00:16]CheckFolder [10:00:16]dirname=/storage/ofd_packets [10:00:16]CheckFolder done [10:00:16]ProducePacketName [10:00:16]name=ofd_packets/00067794 [10:00:16]NVStorageSaveData ofd_packets/00067794 [10:00:16]File name is /storage/ofd_packets/00067794 [10:00:16]Write 298 bytes [10:00:16]NVStorageSaveData done [10:00:16]OFDSenderStorePacket done [10:00:16]KKMCreateOFDPacket done [10:00:16]NVStorageSaveData kkm_last_timestamp [10:00:16]File name is /storage/kkm_last_timestamp [10:00:16]Write 4 bytes [10:00:16]NVStorageSaveData done [10:00:16]ExternCall_PrintAddStr [10:00:16]wPrintStart [10:00:16]Write to MH i2c: 01 00 00 A6 28 CE [10:00:16]Write i2c OK [10:00:16]MH_I2C_Read... [10:00:16]Read from MH i2c: 01 [10:00:16]MH_I2C_Read... [10:00:16]Read from MH i2c: 01 07 00 [10:00:16]MH_I2C_Read... [10:00:16]Read from MH i2c: 01 07 00 A6 28 00 00 00 00 00 FF 0F E3 [10:00:16]RasterBufferAndPrint [10:00:16]line Счет N : (1)507989 [10:00:16]line ИНН: 02508201610067 [10:00:16]line Контрольно-Кассовый Чек [10:00:16]line ПРОДАЖА [10:00:16]line ТРК (МРК, ГНК) : 31 [10:00:16]line Товар: 2710194210 [10:00:16]line ДТ-К-5 [10:00:16]line 26.780 * 74.70 [10:00:16]line = 2000.47 [10:00:16]line НДС 12% НСП 1% [10:00:16]line > о реализуемом товаре [10:00:16]line ИТОГО: 2000.47 [10:00:16]line НСП 1% : 17.70 [10:00:16]line НДС 12% : 212.44 [10:00:16]line Наличными: 0.00 [10:00:16]line Безнал.: 2000.47 [10:00:16]line Место: АЗС № 91 "Партнер Нефть" [10:00:16]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [10:00:16]line СНО: Общий режим [10:00:16]line Чек 33 18.05.2024 10:00 [10:00:16]line Смена: 359 ФФД: 1.0 [10:00:16]line ЗНМ: 0300000119 [10:00:16]line РНМ: 0000000000091845 [10:00:16]line Версия ККМ: 001 [10:00:16]line Платежная система: O! деньги [10:00:16]line ФМ: 0000000000871829 [10:00:16]line ФД: 67794 [10:00:16]line ФПД: 75388614944955 [10:00:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T100020&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67794&fm=75388614944955&tin=02508201610067®Number=0000000000091845&sum=200047 [10:00:17]OFD Sender: Processing packet 67794 [packets to send 35, broken 34] [10:00:17]ProducePacketName [10:00:17]name=ofd_packets/00067794 [10:00:17]OFD Sender: To server: pG, [10:00:17]CommunicateWithHost lk.salyk.kg:30040 [10:00:17]ConnectInit lk.salyk.kg [10:00:17]written 0, free lines is 4095 [10:00:17]Connected sock=10 [10:00:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 1F FC 04 01 5A FC 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9C 68 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 6F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6F 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FC 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 34 7C 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 D2 08 01 00 35 04 06 00 44 90 C7 9D 28 BB ED 8E B6 AD F1 1B 68 87 [10:00:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 5B CC 47 00 A7 75 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 D2 08 01 00 F4 03 04 00 09 24 48 66 B6 04 01 00 00 9A F7 4D 23 62 30 3B 6B [10:00:17]CommunicateWithHost err = 0 [10:00:17]CheckOFDResponse [10:00:17]1017 (14) - 77093643461234 [10:00:17]1041 (16) - 0000000000871829 [10:00:17]1040 (4) - 67794 [10:00:17]1012 (4) - 18.05.2024 03:44 [10:00:17]1206 (1) - 0 [10:00:17]OFD Sender: Remove packet 67794 [10:00:17]ProducePacketName [10:00:17]name=ofd_packets/00067794 [10:00:17]NVStorageDeleteData [10:00:17]Write to MH i2c: 01 00 00 CF 28 F7 [10:00:17]Write i2c OK [10:00:17]MH_I2C_Read... [10:00:17]Read from MH i2c: 01 [10:00:17]MH_I2C_Read... [10:00:17]Read from MH i2c: 01 07 00 [10:00:17]MH_I2C_Read... [10:00:17]Read from MH i2c: 01 07 00 CF 28 00 00 00 00 00 DD 0C E7 [10:00:17]RasterBufferAndPrint [10:00:17]line [10:00:17]line [10:00:17]line [10:00:17]line [10:00:17]line [10:00:17]written 0, free lines is 3300 [10:00:17]MH_Cut [10:00:17]Write to MH i2c: D1 01 00 D6 28 01 D0 [10:00:17]Write i2c OK [10:00:17]MH_I2C_Read... [10:00:17]Read from MH i2c: D1 [10:00:17]MH_I2C_Read... [10:00:17]Read from MH i2c: D1 01 00 [10:00:17]MH_I2C_Read... [10:00:17]Read from MH i2c: D1 01 00 D6 28 00 CF [10:00:17]Write to MH i2c: 01 00 00 D7 28 FF [10:00:17]Write i2c OK [10:00:17]MH_I2C_Read... [10:00:18]OFD Sender: No OFD packet to send [10:00:18]*** Cut start [10:00:18]*** Purtial cut [10:00:18]*** CUTSNS_PIN = 0 [10:00:18]*** Stage 1: CUTSNS_PIN = 1 [10:00:20]Read from MH i2c: 01 [10:00:20]MH_I2C_Read... [10:00:20]*** Stop cut motor [10:00:20]*** Cut end [10:00:20]Read from MH i2c: 01 07 00 [10:00:20]MH_I2C_Read... [10:00:20]Read from MH i2c: 01 07 00 D7 28 00 00 00 00 00 FF 0F 14 [10:00:20]process_action close_receipt done [10:00:20]requested_data is exist [10:00:20]produce_requested_data [10:00:20]requested_item fm.sn is exist - process it [10:00:20]wFMCommunicate request_size=4 [10:00:20]MH_SAM_APDU [10:00:20]CAPDU: 80 11 00 00 [10:00:20]Write to MH i2c: E2 08 00 D8 28 80 11 00 00 00 00 00 00 7A [10:00:20]Write i2c OK [10:00:20]MH_I2C_Read... [10:00:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:00:20]Read from MH i2c: E2 [10:00:20]MH_I2C_Read... [10:00:20]Read from MH i2c: E2 17 00 [10:00:20]MH_I2C_Read... [10:00:20]Read from MH i2c: E2 17 00 D8 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 D0 [10:00:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [10:00:20]wFMCommunicate OK [10:00:20]requested_item fd.num is exist - process it [10:00:20]SAM_PROTO_GetFieldsCounters [10:00:20]wFMCommunicate request_size=4 [10:00:20]MH_SAM_APDU [10:00:20]CAPDU: 80 13 00 00 [10:00:20]Write to MH i2c: E2 08 00 D9 28 80 13 00 00 00 00 00 00 7D [10:00:20]Write i2c OK [10:00:20]MH_I2C_Read... [10:00:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:00:20]Read from MH i2c: E2 [10:00:20]MH_I2C_Read... [10:00:20]Read from MH i2c: E2 62 00 [10:00:20]MH_I2C_Read... [10:00:20]Read from MH i2c: E2 62 00 D9 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 D2 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 49 [10:00:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 D2 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:00:20]wFMCommunicate OK [10:00:20]SAM_PROTO_GetFieldsCounters done [10:00:20]requested_item shift.num is exist - process it [10:00:20]requested_item shift.opened is exist - process it [10:00:20]req_shift_opened [10:00:20]FM_GetShiftState [10:00:20]SAM_PROTO_GetShiftState [10:00:20]wFMCommunicate request_size=4 [10:00:20]MH_SAM_APDU [10:00:20]CAPDU: 80 13 01 00 [10:00:20]Write to MH i2c: E2 08 00 DA 28 80 13 01 00 00 00 00 00 7F [10:00:20]Write i2c OK [10:00:20]MH_I2C_Read... [10:00:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:00:20]Read from MH i2c: E2 [10:00:20]MH_I2C_Read... [10:00:20]Read from MH i2c: E2 0E 00 [10:00:20]MH_I2C_Read... [10:00:20]Read from MH i2c: E2 0E 00 DA 28 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 E6 [10:00:20]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [10:00:20]wFMCommunicate OK [10:00:20]SAM_PROTO_GetShiftState done [10:00:20]FM_GetShiftState done [10:00:20]req_shift_opened done [10:00:20]requested_item shift.open_date is exist - process it [10:00:20]req_shift_open_date [10:00:20]req_shift_open_date done [10:00:20]produce_requested_data done [10:00:20]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67794,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [10:00:20]process_action_free close_receipt [10:00:20]json_value_free [10:00:20]json_value_free done [10:00:20]process_json_proto returns [10:00:20]Send response to host [10:00:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67794,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [10:00:20]free response buf [10:00:20]execute_script done [10:00:20]execute_script returns [10:00:20]free content buf [10:00:20]Sock 9.Close socket [10:00:20]Sock 9.Thread stoped [10:00:23]OFD Sender: No OFD packet to send [10:00:28]OFD Sender: No OFD packet to send [10:00:33]OFD Sender: No OFD packet to send [10:00:38]OFD Sender: No OFD packet to send [10:00:43]OFD Sender: No OFD packet to send [10:00:48]OFD Sender: No OFD packet to send [10:00:53]OFD Sender: No OFD packet to send [10:00:58]OFD Sender: No OFD packet to send [10:01:03]OFD Sender: No OFD packet to send [10:01:08]OFD Sender: No OFD packet to send [10:01:13]OFD Sender: No OFD packet to send [10:01:18]OFD Sender: No OFD packet to send [10:01:23]OFD Sender: No OFD packet to send [10:01:28]OFD Sender: No OFD packet to send [10:01:33]OFD Sender: No OFD packet to send [10:01:38]OFD Sender: No OFD packet to send [10:01:43]OFD Sender: No OFD packet to send [10:01:48]OFD Sender: No OFD packet to send [10:01:53]OFD Sender: No OFD packet to send [10:01:58]OFD Sender: No OFD packet to send [10:02:03]OFD Sender: No OFD packet to send [10:02:08]OFD Sender: No OFD packet to send [10:02:13]OFD Sender: No OFD packet to send [10:02:18]OFD Sender: No OFD packet to send [10:02:23]OFD Sender: No OFD packet to send [10:02:26]accept exits with 7 [10:02:26]New connection [10:02:26]New thread 3066608996 created [10:02:26]Thread 3066752356 joined [10:02:26]Waiting for new connection... [10:02:26] Sock 7.Parse request [10:02:26]Sock 7.Check first char [10:02:26]Sock 7.First char is OK [10:02:26]request: POST /json_proto HTTP/1.0 [10:02:26]Method: POST [10:02:26]URL: /json_proto [10:02:26]Method is POST - this is cgi request [10:02:26]url: /json_proto [10:02:26]query_string will be loaded in cgi processing [10:02:26]execute_cgi json_proto POST (null) [10:02:26]execute_cgi path=json_proto method=POST [10:02:26]POST find Content-Length [10:02:26]Host: 172.17.41.195:8080 [10:02:26]Content-Length: 1217 [10:02:26]Content-Type: application/json [10:02:26] [10:02:26]POST finish read [10:02:26]Found Content-Length = 1217 [10:02:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0440\u0441\u0442\u0430\u043D\u0431\u0435\u043A\u043E\u0432 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)507990\u000A18.05.2024 09:44\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 41\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 20.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 1494.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3797740\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:02:26]execute_script... [10:02:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0440\u0441\u0442\u0430\u043D\u0431\u0435\u043A\u043E\u0432 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)507990\u000A18.05.2024 09:44\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 41\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 20.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 1494.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3797740\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:02:26]POST & json_proto [10:02:26]process_json_proto [10:02:26]json parsed OK: [10:02:26]protocol is kg_v1.0 [10:02:26]action value=print_text [10:02:26]process_action print_text [10:02:26]cmd_print_text [10:02:26]ExternCall_PrintAddStr [10:02:26]wPrintStart [10:02:26]Write to MH i2c: 01 00 00 DB 28 03 [10:02:26]Write i2c OK [10:02:26]MH_I2C_Read... [10:02:26]Read from MH i2c: 01 [10:02:26]MH_I2C_Read... [10:02:26]Read from MH i2c: 01 07 00 [10:02:26]MH_I2C_Read... [10:02:26]Read from MH i2c: 01 07 00 DB 28 00 00 00 00 00 FF 0F 18 [10:02:26]RasterBufferAndPrint [10:02:26]line *****ТОВАРНЫЙ ЧЕК***** [10:02:26]line АЗС-91 [10:02:26]line Партнер нефть [10:02:26]line 02508201610067 [10:02:26]line Кассир : Арстанбеков Н. [10:02:26]line Счет N : (1)507990 [10:02:26]line 18.05.2024 09:44 [10:02:26]line ПРОДАЖА [10:02:26]line ТРК (МРК, ГНК): 41 [10:02:26]line Вид ГСМ : 2710194210 [10:02:26]line ДТ-К-5 [10:02:26]line 20.000 x 74.70 [10:02:26]line ИТОГ: 1494.00 [10:02:26]line Тип оплаты: Талоны: Топливные Талоны [10:02:26]line 3797740 [10:02:26]line ______________________ [10:02:26]line (подпись) [10:02:26]written 0, free lines is 4095 [10:02:26]Write to MH i2c: 01 00 00 EF 28 17 [10:02:26]Write i2c OK [10:02:26]MH_I2C_Read... [10:02:26]Read from MH i2c: 01 [10:02:26]MH_I2C_Read... [10:02:26]Read from MH i2c: 01 07 00 [10:02:26]MH_I2C_Read... [10:02:26]Read from MH i2c: 01 07 00 EF 28 00 00 00 00 00 0F 0E 3B [10:02:26]RasterBufferAndPrint [10:02:26]line [10:02:26]line [10:02:26]line [10:02:26]line [10:02:26]line [10:02:26]written 0, free lines is 3600 [10:02:26]MH_Cut [10:02:26]Write to MH i2c: D1 01 00 F6 28 01 F0 [10:02:26]Write i2c OK [10:02:26]MH_I2C_Read... [10:02:26]Read from MH i2c: D1 [10:02:26]MH_I2C_Read... [10:02:26]Read from MH i2c: D1 01 00 [10:02:26]MH_I2C_Read... [10:02:26]Read from MH i2c: D1 01 00 F6 28 00 EF [10:02:26]Write to MH i2c: 01 00 00 F7 28 1F [10:02:26]Write i2c OK [10:02:26]MH_I2C_Read... [10:02:27]*** Cut start [10:02:27]*** Purtial cut [10:02:27]*** Stage 1: CUTSNS_PIN = 1 [10:02:27]Read from MH i2c: 01 [10:02:27]MH_I2C_Read... [10:02:27]*** Stop cut motor [10:02:27]*** Cut end [10:02:27]Read from MH i2c: 01 07 00 [10:02:27]MH_I2C_Read... [10:02:27]Read from MH i2c: 01 07 00 F7 28 00 00 00 00 00 FF 0F 34 [10:02:27]process_action print_text done [10:02:27]requested_data is exist [10:02:27]produce_requested_data [10:02:27]requested_item fm.sn is exist - process it [10:02:27]wFMCommunicate request_size=4 [10:02:27]MH_SAM_APDU [10:02:27]CAPDU: 80 11 00 00 [10:02:27]Write to MH i2c: E2 08 00 F8 28 80 11 00 00 00 00 00 00 9A [10:02:27]Write i2c OK [10:02:27]MH_I2C_Read... [10:02:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:02:27]Read from MH i2c: E2 [10:02:27]MH_I2C_Read... [10:02:27]Read from MH i2c: E2 17 00 [10:02:27]MH_I2C_Read... [10:02:27]Read from MH i2c: E2 17 00 F8 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 F0 [10:02:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [10:02:27]wFMCommunicate OK [10:02:27]requested_item fd.num is exist - process it [10:02:27]SAM_PROTO_GetFieldsCounters [10:02:27]wFMCommunicate request_size=4 [10:02:27]MH_SAM_APDU [10:02:27]CAPDU: 80 13 00 00 [10:02:27]Write to MH i2c: E2 08 00 F9 28 80 13 00 00 00 00 00 00 9D [10:02:27]Write i2c OK [10:02:27]MH_I2C_Read... [10:02:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:02:27]Read from MH i2c: E2 [10:02:27]MH_I2C_Read... [10:02:27]Read from MH i2c: E2 62 00 [10:02:27]MH_I2C_Read... [10:02:27]Read from MH i2c: E2 62 00 F9 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 D2 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 69 [10:02:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 D2 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:02:27]wFMCommunicate OK [10:02:27]SAM_PROTO_GetFieldsCounters done [10:02:27]requested_item shift.num is exist - process it [10:02:27]requested_item shift.opened is exist - process it [10:02:27]req_shift_opened [10:02:27]FM_GetShiftState [10:02:27]SAM_PROTO_GetShiftState [10:02:27]wFMCommunicate request_size=4 [10:02:27]MH_SAM_APDU [10:02:27]CAPDU: 80 13 01 00 [10:02:27]Write to MH i2c: E2 08 00 FA 28 80 13 01 00 00 00 00 00 9F [10:02:27]Write i2c OK [10:02:27]MH_I2C_Read... [10:02:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:02:27]Read from MH i2c: E2 [10:02:27]MH_I2C_Read... [10:02:27]Read from MH i2c: E2 0E 00 [10:02:27]MH_I2C_Read... [10:02:27]Read from MH i2c: E2 0E 00 FA 28 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 06 [10:02:27]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [10:02:27]wFMCommunicate OK [10:02:27]SAM_PROTO_GetShiftState done [10:02:27]FM_GetShiftState done [10:02:27]req_shift_opened done [10:02:27]requested_item shift.open_date is exist - process it [10:02:27]req_shift_open_date [10:02:27]req_shift_open_date done [10:02:27]produce_requested_data done [10:02:27]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67794,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [10:02:27]process_action_free print_text [10:02:27]json_value_free [10:02:27]json_value_free done [10:02:27]process_json_proto returns [10:02:27]Send response to host [10:02:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67794,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [10:02:27]free response buf [10:02:27]execute_script done [10:02:27]execute_script returns [10:02:27]free content buf [10:02:27]Sock 7.Close socket [10:02:27]Sock 7.Thread stoped [10:02:28]OFD Sender: No OFD packet to send [10:02:33]OFD Sender: No OFD packet to send [10:02:38]OFD Sender: No OFD packet to send [10:02:43]OFD Sender: No OFD packet to send [10:02:48]OFD Sender: No OFD packet to send [10:02:53]OFD Sender: No OFD packet to send [10:02:58]OFD Sender: No OFD packet to send [10:03:03]OFD Sender: No OFD packet to send [10:03:08]OFD Sender: No OFD packet to send [10:03:13]OFD Sender: No OFD packet to send [10:03:18]OFD Sender: No OFD packet to send [10:03:23]OFD Sender: No OFD packet to send [10:03:28]OFD Sender: No OFD packet to send [10:03:33]OFD Sender: No OFD packet to send [10:03:38]OFD Sender: No OFD packet to send [10:03:43]OFD Sender: No OFD packet to send [10:03:48]OFD Sender: No OFD packet to send [10:03:53]OFD Sender: No OFD packet to send [10:03:58]OFD Sender: No OFD packet to send [10:04:03]OFD Sender: No OFD packet to send [10:04:08]OFD Sender: No OFD packet to send [10:04:13]OFD Sender: No OFD packet to send [10:04:18]OFD Sender: No OFD packet to send [10:04:23]OFD Sender: No OFD packet to send [10:04:28]OFD Sender: No OFD packet to send [10:04:33]OFD Sender: No OFD packet to send [10:04:38]OFD Sender: No OFD packet to send [10:04:43]OFD Sender: No OFD packet to send [10:04:48]OFD Sender: No OFD packet to send [10:04:53]OFD Sender: No OFD packet to send [10:04:58]OFD Sender: No OFD packet to send [10:05:03]OFD Sender: No OFD packet to send [10:05:08]OFD Sender: No OFD packet to send [10:05:13]OFD Sender: No OFD packet to send [10:05:18]OFD Sender: No OFD packet to send [10:05:23]OFD Sender: No OFD packet to send [10:05:28]OFD Sender: No OFD packet to send [10:05:33]OFD Sender: No OFD packet to send [10:05:38]OFD Sender: No OFD packet to send [10:05:43]OFD Sender: No OFD packet to send [10:05:48]OFD Sender: No OFD packet to send [10:05:53]OFD Sender: No OFD packet to send [10:05:58]OFD Sender: No OFD packet to send [10:06:03]OFD Sender: No OFD packet to send [10:06:08]OFD Sender: No OFD packet to send [10:06:13]OFD Sender: No OFD packet to send [10:06:18]OFD Sender: No OFD packet to send [10:06:23]OFD Sender: No OFD packet to send [10:06:28]OFD Sender: No OFD packet to send [10:06:33]OFD Sender: No OFD packet to send [10:06:38]OFD Sender: No OFD packet to send [10:06:43]OFD Sender: No OFD packet to send [10:06:48]OFD Sender: No OFD packet to send [10:06:53]OFD Sender: No OFD packet to send [10:06:58]OFD Sender: No OFD packet to send [10:07:03]OFD Sender: No OFD packet to send [10:07:08]OFD Sender: No OFD packet to send [10:07:13]OFD Sender: No OFD packet to send [10:07:18]OFD Sender: No OFD packet to send [10:07:23]OFD Sender: No OFD packet to send [10:07:28]OFD Sender: No OFD packet to send [10:07:33]OFD Sender: No OFD packet to send [10:07:38]OFD Sender: No OFD packet to send [10:07:43]OFD Sender: No OFD packet to send [10:07:48]OFD Sender: No OFD packet to send [10:07:53]OFD Sender: No OFD packet to send [10:07:58]OFD Sender: No OFD packet to send [10:08:03]OFD Sender: No OFD packet to send [10:08:08]OFD Sender: No OFD packet to send [10:08:13]OFD Sender: No OFD packet to send [10:08:16]accept exits with 9 [10:08:16]New connection [10:08:16]New thread 3066752356 created [10:08:16]Thread 3066608996 joined [10:08:16]Waiting for new connection... [10:08:16] Sock 9.Parse request [10:08:16]Sock 9.Check first char [10:08:16]Sock 9.First char is OK [10:08:16]request: POST /json_proto HTTP/1.0 [10:08:16]Method: POST [10:08:16]URL: /json_proto [10:08:16]Method is POST - this is cgi request [10:08:16]url: /json_proto [10:08:16]query_string will be loaded in cgi processing [10:08:16]execute_cgi json_proto POST (null) [10:08:16]execute_cgi path=json_proto method=POST [10:08:16]POST find Content-Length [10:08:16]Host: 172.17.41.195:8080 [10:08:16]Content-Length: 1209 [10:08:16]Content-Type: application/json [10:08:16] [10:08:16]POST finish read [10:08:16]Found Content-Length = 1209 [10:08:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0440\u0441\u0442\u0430\u043D\u0431\u0435\u043A\u043E\u0432 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)507991\u000A18.05.2024 09:50\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 15.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 1120.50\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:08:16]execute_script... [10:08:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0440\u0441\u0442\u0430\u043D\u0431\u0435\u043A\u043E\u0432 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)507991\u000A18.05.2024 09:50\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 15.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 1120.50\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:08:16]POST & json_proto [10:08:16]process_json_proto [10:08:16]json parsed OK: [10:08:16]protocol is kg_v1.0 [10:08:16]action value=print_text [10:08:16]process_action print_text [10:08:16]cmd_print_text [10:08:16]ExternCall_PrintAddStr [10:08:16]wPrintStart [10:08:16]Write to MH i2c: 01 00 00 FB 28 23 [10:08:16]Write i2c OK [10:08:16]MH_I2C_Read... [10:08:16]Read from MH i2c: 01 [10:08:16]MH_I2C_Read... [10:08:16]Read from MH i2c: 01 07 00 [10:08:16]MH_I2C_Read... [10:08:16]Read from MH i2c: 01 07 00 FB 28 00 00 00 00 00 FF 0F 38 [10:08:16]RasterBufferAndPrint [10:08:16]line *****ТОВАРНЫЙ ЧЕК***** [10:08:16]line АЗС-91 [10:08:16]line Партнер нефть [10:08:16]line 02508201610067 [10:08:16]line Кассир : Арстанбеков Н. [10:08:16]line Счет N : (1)507991 [10:08:16]line 18.05.2024 09:50 [10:08:16]line ПРОДАЖА [10:08:16]line ТРК (МРК, ГНК): 11 [10:08:16]line Вид ГСМ : 2710194210 [10:08:16]line ДТ-К-5 [10:08:16]line 15.000 x 74.70 [10:08:16]line ИТОГ: 1120.50 [10:08:16]line Тип оплаты: Талоны: Топливная Карта [10:08:16]line 02750 [10:08:16]line ______________________ [10:08:16]line (подпись) [10:08:16]written 0, free lines is 4095 [10:08:16]Write to MH i2c: 01 00 00 0F 29 38 [10:08:16]Write i2c OK [10:08:16]MH_I2C_Read... [10:08:16]Read from MH i2c: 01 [10:08:16]MH_I2C_Read... [10:08:16]Read from MH i2c: 01 07 00 [10:08:16]MH_I2C_Read... [10:08:16]Read from MH i2c: 01 07 00 0F 29 00 00 00 00 00 0E 0E 5B [10:08:16]RasterBufferAndPrint [10:08:16]line [10:08:16]line [10:08:16]line [10:08:16]line [10:08:16]line [10:08:16]written 0, free lines is 3600 [10:08:16]MH_Cut [10:08:16]Write to MH i2c: D1 01 00 16 29 01 11 [10:08:16]Write i2c OK [10:08:16]MH_I2C_Read... [10:08:16]Read from MH i2c: D1 [10:08:16]MH_I2C_Read... [10:08:16]Read from MH i2c: D1 01 00 [10:08:16]MH_I2C_Read... [10:08:16]Read from MH i2c: D1 01 00 16 29 00 10 [10:08:16]Write to MH i2c: 01 00 00 17 29 40 [10:08:16]Write i2c OK [10:08:16]MH_I2C_Read... [10:08:16]*** Cut start [10:08:16]*** Purtial cut [10:08:16]*** CUTSNS_PIN = 0 [10:08:17]*** Stage 1: CUTSNS_PIN = 1 [10:08:18]OFD Sender: No OFD packet to send [10:08:18]Read from MH i2c: 01 [10:08:18]MH_I2C_Read... [10:08:18]Read from MH i2c: 01 07 00 [10:08:18]MH_I2C_Read... [10:08:18]*** Stop cut motor [10:08:18]*** Cut end [10:08:18]Read from MH i2c: 01 07 00 17 29 00 00 00 00 00 FF 0F 55 [10:08:18]process_action print_text done [10:08:18]requested_data is exist [10:08:18]produce_requested_data [10:08:18]requested_item fm.sn is exist - process it [10:08:18]wFMCommunicate request_size=4 [10:08:18]MH_SAM_APDU [10:08:18]CAPDU: 80 11 00 00 [10:08:18]Write to MH i2c: E2 08 00 18 29 80 11 00 00 00 00 00 00 BB [10:08:18]Write i2c OK [10:08:18]MH_I2C_Read... [10:08:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:08:18]Read from MH i2c: E2 [10:08:18]MH_I2C_Read... [10:08:18]Read from MH i2c: E2 17 00 [10:08:18]MH_I2C_Read... [10:08:18]Read from MH i2c: E2 17 00 18 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 11 [10:08:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [10:08:18]wFMCommunicate OK [10:08:18]requested_item fd.num is exist - process it [10:08:18]SAM_PROTO_GetFieldsCounters [10:08:18]wFMCommunicate request_size=4 [10:08:18]MH_SAM_APDU [10:08:18]CAPDU: 80 13 00 00 [10:08:18]Write to MH i2c: E2 08 00 19 29 80 13 00 00 00 00 00 00 BE [10:08:18]Write i2c OK [10:08:18]MH_I2C_Read... [10:08:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:08:19]Read from MH i2c: E2 [10:08:19]MH_I2C_Read... [10:08:19]Read from MH i2c: E2 62 00 [10:08:19]MH_I2C_Read... [10:08:19]Read from MH i2c: E2 62 00 19 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 D2 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 8A [10:08:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 D2 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:08:19]wFMCommunicate OK [10:08:19]SAM_PROTO_GetFieldsCounters done [10:08:19]requested_item shift.num is exist - process it [10:08:19]requested_item shift.opened is exist - process it [10:08:19]req_shift_opened [10:08:19]FM_GetShiftState [10:08:19]SAM_PROTO_GetShiftState [10:08:19]wFMCommunicate request_size=4 [10:08:19]MH_SAM_APDU [10:08:19]CAPDU: 80 13 01 00 [10:08:19]Write to MH i2c: E2 08 00 1A 29 80 13 01 00 00 00 00 00 C0 [10:08:19]Write i2c OK [10:08:19]MH_I2C_Read... [10:08:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:08:19]Read from MH i2c: E2 [10:08:19]MH_I2C_Read... [10:08:19]Read from MH i2c: E2 0E 00 [10:08:19]MH_I2C_Read... [10:08:19]Read from MH i2c: E2 0E 00 1A 29 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 27 [10:08:19]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [10:08:19]wFMCommunicate OK [10:08:19]SAM_PROTO_GetShiftState done [10:08:19]FM_GetShiftState done [10:08:19]req_shift_opened done [10:08:19]requested_item shift.open_date is exist - process it [10:08:19]req_shift_open_date [10:08:19]req_shift_open_date done [10:08:19]produce_requested_data done [10:08:19]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67794,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [10:08:19]process_action_free print_text [10:08:19]json_value_free [10:08:19]json_value_free done [10:08:19]process_json_proto returns [10:08:19]Send response to host [10:08:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67794,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [10:08:19]free response buf [10:08:19]execute_script done [10:08:19]execute_script returns [10:08:19]free content buf [10:08:19]Sock 9.Close socket [10:08:19]Sock 9.Thread stoped [10:08:23]OFD Sender: No OFD packet to send [10:08:28]OFD Sender: No OFD packet to send [10:08:33]OFD Sender: No OFD packet to send [10:08:38]OFD Sender: No OFD packet to send [10:08:43]OFD Sender: No OFD packet to send [10:08:48]OFD Sender: No OFD packet to send [10:08:53]OFD Sender: No OFD packet to send [10:08:58]OFD Sender: No OFD packet to send [10:09:03]OFD Sender: No OFD packet to send [10:09:08]OFD Sender: No OFD packet to send [10:09:13]OFD Sender: No OFD packet to send [10:09:18]OFD Sender: No OFD packet to send [10:09:23]OFD Sender: No OFD packet to send [10:09:28]OFD Sender: No OFD packet to send [10:09:33]OFD Sender: No OFD packet to send [10:09:38]OFD Sender: No OFD packet to send [10:09:43]OFD Sender: No OFD packet to send [10:09:48]OFD Sender: No OFD packet to send [10:09:53]OFD Sender: No OFD packet to send [10:09:55]accept exits with 7 [10:09:55]New connection [10:09:55]New thread 3066608996 created [10:09:55]Thread 3066752356 joined [10:09:55]Waiting for new connection... [10:09:55] Sock 7.Parse request [10:09:55]Sock 7.Check first char [10:09:55]Sock 7.First char is OK [10:09:55]request: POST /json_proto HTTP/1.0 [10:09:55]Method: POST [10:09:55]URL: /json_proto [10:09:55]Method is POST - this is cgi request [10:09:55]url: /json_proto [10:09:55]query_string will be loaded in cgi processing [10:09:55]execute_cgi json_proto POST (null) [10:09:55]execute_cgi path=json_proto method=POST [10:09:55]POST find Content-Length [10:09:55]Host: 172.17.41.195:8080 [10:09:55]Content-Length: 1208 [10:09:55]Content-Type: application/json [10:09:55] [10:09:55]POST finish read [10:09:55]Found Content-Length = 1208 [10:09:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0440\u0441\u0442\u0430\u043D\u0431\u0435\u043A\u043E\u0432 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)507992\u000A18.05.2024 09:52\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 10.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 747.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:09:55]execute_script... [10:09:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0440\u0441\u0442\u0430\u043D\u0431\u0435\u043A\u043E\u0432 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)507992\u000A18.05.2024 09:52\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 10.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 747.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:09:55]POST & json_proto [10:09:55]process_json_proto [10:09:55]json parsed OK: [10:09:55]protocol is kg_v1.0 [10:09:55]action value=print_text [10:09:55]process_action print_text [10:09:55]cmd_print_text [10:09:55]ExternCall_PrintAddStr [10:09:55]wPrintStart [10:09:55]Write to MH i2c: 01 00 00 1B 29 44 [10:09:55]Write i2c OK [10:09:55]MH_I2C_Read... [10:09:55]Read from MH i2c: 01 [10:09:55]MH_I2C_Read... [10:09:55]Read from MH i2c: 01 07 00 [10:09:55]MH_I2C_Read... [10:09:55]Read from MH i2c: 01 07 00 1B 29 00 00 00 00 00 FF 0F 59 [10:09:55]RasterBufferAndPrint [10:09:55]line *****ТОВАРНЫЙ ЧЕК***** [10:09:55]line АЗС-91 [10:09:55]line Партнер нефть [10:09:55]line 02508201610067 [10:09:55]line Кассир : Арстанбеков Н. [10:09:55]line Счет N : (1)507992 [10:09:55]line 18.05.2024 09:52 [10:09:55]line ПРОДАЖА [10:09:55]line ТРК (МРК, ГНК): 21 [10:09:55]line Вид ГСМ : 2710194210 [10:09:55]line ДТ-К-5 [10:09:55]line 10.000 x 74.70 [10:09:55]line ИТОГ: 747.00 [10:09:55]line Тип оплаты: Талоны: Топливная Карта [10:09:55]line 02750 [10:09:55]line ______________________ [10:09:55]line (подпись) [10:09:55]written 0, free lines is 4095 [10:09:55]Write to MH i2c: 01 00 00 2F 29 58 [10:09:55]Write i2c OK [10:09:55]MH_I2C_Read... [10:09:55]Read from MH i2c: 01 [10:09:55]MH_I2C_Read... [10:09:55]Read from MH i2c: 01 07 00 [10:09:55]MH_I2C_Read... [10:09:55]Read from MH i2c: 01 07 00 2F 29 00 00 00 00 00 0E 0E 7B [10:09:55]RasterBufferAndPrint [10:09:55]line [10:09:55]line [10:09:55]line [10:09:55]line [10:09:55]line [10:09:55]written 0, free lines is 3600 [10:09:55]MH_Cut [10:09:55]Write to MH i2c: D1 01 00 36 29 01 31 [10:09:55]Write i2c OK [10:09:55]MH_I2C_Read... [10:09:55]Read from MH i2c: D1 [10:09:55]MH_I2C_Read... [10:09:55]Read from MH i2c: D1 01 00 [10:09:55]MH_I2C_Read... [10:09:55]Read from MH i2c: D1 01 00 36 29 00 30 [10:09:55]Write to MH i2c: 01 00 00 37 29 60 [10:09:55]Write i2c OK [10:09:55]MH_I2C_Read... [10:09:56]*** Cut start [10:09:56]*** Purtial cut [10:09:56]*** Stage 1: CUTSNS_PIN = 1 [10:09:56]Read from MH i2c: 01 [10:09:56]MH_I2C_Read... [10:09:56]Read from MH i2c: 01 07 00 [10:09:56]MH_I2C_Read... [10:09:56]*** Stop cut motor [10:09:56]*** Cut end [10:09:56]Read from MH i2c: 01 07 00 37 29 00 00 00 00 00 FF 0F 75 [10:09:56]process_action print_text done [10:09:56]requested_data is exist [10:09:56]produce_requested_data [10:09:56]requested_item fm.sn is exist - process it [10:09:56]wFMCommunicate request_size=4 [10:09:56]MH_SAM_APDU [10:09:56]CAPDU: 80 11 00 00 [10:09:56]Write to MH i2c: E2 08 00 38 29 80 11 00 00 00 00 00 00 DB [10:09:56]Write i2c OK [10:09:56]MH_I2C_Read... [10:09:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:09:56]Read from MH i2c: E2 [10:09:56]MH_I2C_Read... [10:09:56]Read from MH i2c: E2 17 00 [10:09:56]MH_I2C_Read... [10:09:56]Read from MH i2c: E2 17 00 38 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 31 [10:09:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [10:09:56]wFMCommunicate OK [10:09:56]requested_item fd.num is exist - process it [10:09:56]SAM_PROTO_GetFieldsCounters [10:09:56]wFMCommunicate request_size=4 [10:09:56]MH_SAM_APDU [10:09:56]CAPDU: 80 13 00 00 [10:09:56]Write to MH i2c: E2 08 00 39 29 80 13 00 00 00 00 00 00 DE [10:09:56]Write i2c OK [10:09:56]MH_I2C_Read... [10:09:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:09:56]Read from MH i2c: E2 [10:09:56]MH_I2C_Read... [10:09:56]Read from MH i2c: E2 62 00 [10:09:56]MH_I2C_Read... [10:09:56]Read from MH i2c: E2 62 00 39 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 D2 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 AA [10:09:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 D2 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:09:56]wFMCommunicate OK [10:09:56]SAM_PROTO_GetFieldsCounters done [10:09:56]requested_item shift.num is exist - process it [10:09:56]requested_item shift.opened is exist - process it [10:09:56]req_shift_opened [10:09:56]FM_GetShiftState [10:09:56]SAM_PROTO_GetShiftState [10:09:56]wFMCommunicate request_size=4 [10:09:56]MH_SAM_APDU [10:09:56]CAPDU: 80 13 01 00 [10:09:56]Write to MH i2c: E2 08 00 3A 29 80 13 01 00 00 00 00 00 E0 [10:09:56]Write i2c OK [10:09:56]MH_I2C_Read... [10:09:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:09:56]Read from MH i2c: E2 [10:09:56]MH_I2C_Read... [10:09:56]Read from MH i2c: E2 0E 00 [10:09:56]MH_I2C_Read... [10:09:56]Read from MH i2c: E2 0E 00 3A 29 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 47 [10:09:56]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [10:09:56]wFMCommunicate OK [10:09:56]SAM_PROTO_GetShiftState done [10:09:56]FM_GetShiftState done [10:09:56]req_shift_opened done [10:09:56]requested_item shift.open_date is exist - process it [10:09:56]req_shift_open_date [10:09:56]req_shift_open_date done [10:09:56]produce_requested_data done [10:09:56]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67794,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [10:09:56]process_action_free print_text [10:09:56]json_value_free [10:09:56]json_value_free done [10:09:56]process_json_proto returns [10:09:56]Send response to host [10:09:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67794,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [10:09:56]free response buf [10:09:56]execute_script done [10:09:56]execute_script returns [10:09:56]free content buf [10:09:56]Sock 7.Close socket [10:09:56]Sock 7.Thread stoped [10:09:58]OFD Sender: No OFD packet to send [10:10:03]OFD Sender: No OFD packet to send [10:10:08]OFD Sender: No OFD packet to send [10:10:13]OFD Sender: No OFD packet to send [10:10:18]OFD Sender: No OFD packet to send [10:10:23]OFD Sender: No OFD packet to send [10:10:28]OFD Sender: No OFD packet to send [10:10:33]OFD Sender: No OFD packet to send [10:10:38]OFD Sender: No OFD packet to send [10:10:43]OFD Sender: No OFD packet to send [10:10:48]OFD Sender: No OFD packet to send [10:10:53]OFD Sender: No OFD packet to send [10:10:58]OFD Sender: No OFD packet to send [10:11:03]OFD Sender: No OFD packet to send [10:11:08]OFD Sender: No OFD packet to send [10:11:13]OFD Sender: No OFD packet to send [10:11:18]OFD Sender: No OFD packet to send [10:11:23]OFD Sender: No OFD packet to send [10:11:28]OFD Sender: No OFD packet to send [10:11:33]OFD Sender: No OFD packet to send [10:11:38]OFD Sender: No OFD packet to send [10:11:43]OFD Sender: No OFD packet to send [10:11:48]OFD Sender: No OFD packet to send [10:11:53]OFD Sender: No OFD packet to send [10:11:53]accept exits with 9 [10:11:53]New connection [10:11:53]New thread 3066752356 created [10:11:53]Thread 3066608996 joined [10:11:53]Waiting for new connection... [10:11:53] Sock 9.Parse request [10:11:53]Sock 9.Check first char [10:11:53]Sock 9.First char is OK [10:11:53]request: POST /json_proto HTTP/1.0 [10:11:53]Method: POST [10:11:53]URL: /json_proto [10:11:53]Method is POST - this is cgi request [10:11:53]url: /json_proto [10:11:53]query_string will be loaded in cgi processing [10:11:53]execute_cgi json_proto POST (null) [10:11:53]execute_cgi path=json_proto method=POST [10:11:53]POST find Content-Length [10:11:53]Host: 172.17.41.195:8080 [10:11:53]Content-Length: 1209 [10:11:53]Content-Type: application/json [10:11:53] [10:11:53]POST finish read [10:11:53]Found Content-Length = 1209 [10:11:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0440\u0441\u0442\u0430\u043D\u0431\u0435\u043A\u043E\u0432 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)507993\u000A18.05.2024 09:54\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 25.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 1867.50\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:11:53]execute_script... [10:11:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0440\u0441\u0442\u0430\u043D\u0431\u0435\u043A\u043E\u0432 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)507993\u000A18.05.2024 09:54\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 25.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 1867.50\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:11:53]POST & json_proto [10:11:53]process_json_proto [10:11:53]json parsed OK: [10:11:53]protocol is kg_v1.0 [10:11:53]action value=print_text [10:11:53]process_action print_text [10:11:53]cmd_print_text [10:11:53]ExternCall_PrintAddStr [10:11:53]wPrintStart [10:11:53]Write to MH i2c: 01 00 00 3B 29 64 [10:11:53]Write i2c OK [10:11:53]MH_I2C_Read... [10:11:53]Read from MH i2c: 01 [10:11:53]MH_I2C_Read... [10:11:53]Read from MH i2c: 01 07 00 [10:11:53]MH_I2C_Read... [10:11:53]Read from MH i2c: 01 07 00 3B 29 00 00 00 00 00 FF 0F 79 [10:11:53]RasterBufferAndPrint [10:11:53]line *****ТОВАРНЫЙ ЧЕК***** [10:11:53]line АЗС-91 [10:11:53]line Партнер нефть [10:11:53]line 02508201610067 [10:11:53]line Кассир : Арстанбеков Н. [10:11:53]line Счет N : (1)507993 [10:11:53]line 18.05.2024 09:54 [10:11:53]line ПРОДАЖА [10:11:53]line ТРК (МРК, ГНК): 11 [10:11:53]line Вид ГСМ : 2710194210 [10:11:53]line ДТ-К-5 [10:11:53]line 25.000 x 74.70 [10:11:53]line ИТОГ: 1867.50 [10:11:53]line Тип оплаты: Талоны: Топливная Карта [10:11:53]line 02750 [10:11:53]line ______________________ [10:11:53]line (подпись) [10:11:53]written 0, free lines is 4095 [10:11:54]Write to MH i2c: 01 00 00 4F 29 78 [10:11:54]Write i2c OK [10:11:54]MH_I2C_Read... [10:11:54]Read from MH i2c: 01 [10:11:54]MH_I2C_Read... [10:11:54]Read from MH i2c: 01 07 00 [10:11:54]MH_I2C_Read... [10:11:54]Read from MH i2c: 01 07 00 4F 29 00 00 00 00 00 0F 0E 9C [10:11:54]RasterBufferAndPrint [10:11:54]line [10:11:54]line [10:11:54]line [10:11:54]line [10:11:54]line [10:11:54]written 0, free lines is 3601 [10:11:54]MH_Cut [10:11:54]Write to MH i2c: D1 01 00 56 29 01 51 [10:11:54]Write i2c OK [10:11:54]MH_I2C_Read... [10:11:54]Read from MH i2c: D1 [10:11:54]MH_I2C_Read... [10:11:54]Read from MH i2c: D1 01 00 [10:11:54]MH_I2C_Read... [10:11:54]Read from MH i2c: D1 01 00 56 29 00 50 [10:11:54]Write to MH i2c: 01 00 00 57 29 80 [10:11:54]Write i2c OK [10:11:54]MH_I2C_Read... [10:11:54]*** Cut start [10:11:54]*** Purtial cut [10:11:54]*** CUTSNS_PIN = 0 [10:11:54]*** Stage 1: CUTSNS_PIN = 1 [10:11:56]Read from MH i2c: 01 [10:11:56]MH_I2C_Read... [10:11:56]Read from MH i2c: 01 07 00 [10:11:56]MH_I2C_Read... [10:11:56]*** Stop cut motor [10:11:56]*** Cut end [10:11:56]Read from MH i2c: 01 07 00 57 29 00 00 00 00 00 FF 0F 95 [10:11:56]process_action print_text done [10:11:56]requested_data is exist [10:11:56]produce_requested_data [10:11:56]requested_item fm.sn is exist - process it [10:11:56]wFMCommunicate request_size=4 [10:11:56]MH_SAM_APDU [10:11:56]CAPDU: 80 11 00 00 [10:11:56]Write to MH i2c: E2 08 00 58 29 80 11 00 00 00 00 00 00 FB [10:11:56]Write i2c OK [10:11:56]MH_I2C_Read... [10:11:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:11:56]Read from MH i2c: E2 [10:11:56]MH_I2C_Read... [10:11:56]Read from MH i2c: E2 17 00 [10:11:56]MH_I2C_Read... [10:11:56]Read from MH i2c: E2 17 00 58 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 51 [10:11:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [10:11:56]wFMCommunicate OK [10:11:56]requested_item fd.num is exist - process it [10:11:56]SAM_PROTO_GetFieldsCounters [10:11:56]wFMCommunicate request_size=4 [10:11:56]MH_SAM_APDU [10:11:56]CAPDU: 80 13 00 00 [10:11:56]Write to MH i2c: E2 08 00 59 29 80 13 00 00 00 00 00 00 FE [10:11:56]Write i2c OK [10:11:56]MH_I2C_Read... [10:11:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:11:56]Read from MH i2c: E2 [10:11:56]MH_I2C_Read... [10:11:56]Read from MH i2c: E2 62 00 [10:11:56]MH_I2C_Read... [10:11:56]Read from MH i2c: E2 62 00 59 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 D2 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 CA [10:11:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 D2 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:11:56]wFMCommunicate OK [10:11:56]SAM_PROTO_GetFieldsCounters done [10:11:56]requested_item shift.num is exist - process it [10:11:56]requested_item shift.opened is exist - process it [10:11:56]req_shift_opened [10:11:56]FM_GetShiftState [10:11:56]SAM_PROTO_GetShiftState [10:11:56]wFMCommunicate request_size=4 [10:11:56]MH_SAM_APDU [10:11:56]CAPDU: 80 13 01 00 [10:11:56]Write to MH i2c: E2 08 00 5A 29 80 13 01 00 00 00 00 00 00 [10:11:56]Write i2c OK [10:11:56]MH_I2C_Read... [10:11:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:11:56]Read from MH i2c: E2 [10:11:56]MH_I2C_Read... [10:11:56]Read from MH i2c: E2 0E 00 [10:11:56]MH_I2C_Read... [10:11:56]Read from MH i2c: E2 0E 00 5A 29 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 67 [10:11:56]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [10:11:56]wFMCommunicate OK [10:11:56]SAM_PROTO_GetShiftState done [10:11:56]FM_GetShiftState done [10:11:56]req_shift_opened done [10:11:56]requested_item shift.open_date is exist - process it [10:11:56]req_shift_open_date [10:11:56]req_shift_open_date done [10:11:56]produce_requested_data done [10:11:56]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67794,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [10:11:56]process_action_free print_text [10:11:56]json_value_free [10:11:56]json_value_free done [10:11:56]process_json_proto returns [10:11:56]Send response to host [10:11:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67794,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [10:11:56]free response buf [10:11:56]execute_script done [10:11:56]execute_script returns [10:11:56]free content buf [10:11:56]Sock 9.Close socket [10:11:56]Sock 9.Thread stoped [10:11:58]OFD Sender: No OFD packet to send [10:12:03]OFD Sender: No OFD packet to send [10:12:08]OFD Sender: No OFD packet to send [10:12:13]OFD Sender: No OFD packet to send [10:12:18]OFD Sender: No OFD packet to send [10:12:23]OFD Sender: No OFD packet to send [10:12:28]OFD Sender: No OFD packet to send [10:12:33]OFD Sender: No OFD packet to send [10:12:38]OFD Sender: No OFD packet to send [10:12:43]OFD Sender: No OFD packet to send [10:12:48]OFD Sender: No OFD packet to send [10:12:53]OFD Sender: No OFD packet to send [10:12:58]OFD Sender: No OFD packet to send [10:13:03]OFD Sender: No OFD packet to send [10:13:08]OFD Sender: No OFD packet to send [10:13:13]OFD Sender: No OFD packet to send [10:13:18]OFD Sender: No OFD packet to send [10:13:23]OFD Sender: No OFD packet to send [10:13:28]OFD Sender: No OFD packet to send [10:13:33]OFD Sender: No OFD packet to send [10:13:38]OFD Sender: No OFD packet to send [10:13:43]OFD Sender: No OFD packet to send [10:13:48]OFD Sender: No OFD packet to send [10:13:53]OFD Sender: No OFD packet to send [10:13:58]OFD Sender: No OFD packet to send [10:14:03]OFD Sender: No OFD packet to send [10:14:08]OFD Sender: No OFD packet to send [10:14:13]OFD Sender: No OFD packet to send [10:14:18]OFD Sender: No OFD packet to send [10:14:23]OFD Sender: No OFD packet to send [10:14:28]OFD Sender: No OFD packet to send [10:14:33]OFD Sender: No OFD packet to send [10:14:38]OFD Sender: No OFD packet to send [10:14:43]OFD Sender: No OFD packet to send [10:14:48]OFD Sender: No OFD packet to send [10:14:53]OFD Sender: No OFD packet to send [10:14:58]OFD Sender: No OFD packet to send [10:15:03]OFD Sender: No OFD packet to send [10:15:08]OFD Sender: No OFD packet to send [10:15:13]OFD Sender: No OFD packet to send [10:15:18]OFD Sender: No OFD packet to send [10:15:23]OFD Sender: No OFD packet to send [10:15:28]OFD Sender: No OFD packet to send [10:15:33]OFD Sender: No OFD packet to send [10:15:38]OFD Sender: No OFD packet to send [10:15:43]OFD Sender: No OFD packet to send [10:15:48]OFD Sender: No OFD packet to send [10:15:53]OFD Sender: No OFD packet to send [10:15:58]OFD Sender: No OFD packet to send [10:16:03]OFD Sender: No OFD packet to send [10:16:08]OFD Sender: No OFD packet to send [10:16:13]OFD Sender: No OFD packet to send [10:16:18]OFD Sender: No OFD packet to send [10:16:23]OFD Sender: No OFD packet to send [10:16:28]OFD Sender: No OFD packet to send [10:16:33]OFD Sender: No OFD packet to send [10:16:38]OFD Sender: No OFD packet to send [10:16:43]OFD Sender: No OFD packet to send [10:16:48]OFD Sender: No OFD packet to send [10:16:53]OFD Sender: No OFD packet to send [10:16:58]OFD Sender: No OFD packet to send [10:17:03]OFD Sender: No OFD packet to send [10:17:08]OFD Sender: No OFD packet to send [10:17:13]OFD Sender: No OFD packet to send [10:17:19]OFD Sender: No OFD packet to send [10:17:24]OFD Sender: No OFD packet to send [10:17:29]OFD Sender: No OFD packet to send [10:17:34]OFD Sender: No OFD packet to send [10:17:39]OFD Sender: No OFD packet to send [10:17:44]OFD Sender: No OFD packet to send [10:17:49]OFD Sender: No OFD packet to send [10:17:54]OFD Sender: No OFD packet to send [10:17:59]OFD Sender: No OFD packet to send [10:18:04]OFD Sender: No OFD packet to send [10:18:09]OFD Sender: No OFD packet to send [10:18:14]OFD Sender: No OFD packet to send [10:18:19]OFD Sender: No OFD packet to send [10:18:24]OFD Sender: No OFD packet to send [10:18:29]OFD Sender: No OFD packet to send [10:18:34]OFD Sender: No OFD packet to send [10:18:39]OFD Sender: No OFD packet to send [10:18:44]OFD Sender: No OFD packet to send [10:18:49]OFD Sender: No OFD packet to send [10:18:54]OFD Sender: No OFD packet to send [10:18:59]OFD Sender: No OFD packet to send [10:19:04]OFD Sender: No OFD packet to send [10:19:09]OFD Sender: No OFD packet to send [10:19:14]OFD Sender: No OFD packet to send [10:19:19]OFD Sender: No OFD packet to send [10:19:24]OFD Sender: No OFD packet to send [10:19:29]OFD Sender: No OFD packet to send [10:19:34]OFD Sender: No OFD packet to send [10:19:36]accept exits with 7 [10:19:36]New connection [10:19:36]New thread 3066608996 created [10:19:36]Thread 3066752356 joined [10:19:36]Waiting for new connection... [10:19:36] Sock 7.Parse request [10:19:36]Sock 7.Check first char [10:19:36]Sock 7.First char is OK [10:19:36]request: POST /json_proto HTTP/1.0 [10:19:36]Method: POST [10:19:36]URL: /json_proto [10:19:36]Method is POST - this is cgi request [10:19:36]url: /json_proto [10:19:36]query_string will be loaded in cgi processing [10:19:36]execute_cgi json_proto POST (null) [10:19:36]execute_cgi path=json_proto method=POST [10:19:36]POST find Content-Length [10:19:36]Host: 172.17.41.195:8080 [10:19:36]Content-Length: 800 [10:19:36]Content-Type: application/json [10:19:36] [10:19:36]POST finish read [10:19:36]Found Content-Length = 800 [10:19:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507994", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.80, "quantity" : 7.490, "sum" : 500.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.33 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:19:36]execute_script... [10:19:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507994", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.80, "quantity" : 7.490, "sum" : 500.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.33 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:19:36]POST & json_proto [10:19:36]process_json_proto [10:19:36]json parsed OK: [10:19:36]protocol is kg_v1.0 [10:19:36]action value=close_receipt [10:19:36]process_action close_receipt [10:19:36]cmd_close_receipt [10:19:36]MH_GetDate [10:19:36]Write to MH i2c: F0 00 00 5B 29 73 [10:19:36]Write i2c OK [10:19:36]MH_I2C_Read... [10:19:36]Read from MH i2c: F0 [10:19:36]MH_I2C_Read... [10:19:36]Read from MH i2c: F0 09 00 [10:19:36]MH_I2C_Read... [10:19:36]Read from MH i2c: F0 09 00 5B 29 00 BD 80 48 66 FC 21 6F 64 57 [10:19:36]GetLastDocTimeStamp 1716026420 [10:19:36]current date 1716027581 [10:19:36]FM_GetShiftState [10:19:36]SAM_PROTO_GetShiftState [10:19:36]wFMCommunicate request_size=4 [10:19:36]MH_SAM_APDU [10:19:36]CAPDU: 80 13 01 00 [10:19:36]Write to MH i2c: E2 08 00 5C 29 80 13 01 00 00 00 00 00 02 [10:19:36]Write i2c OK [10:19:36]MH_I2C_Read... [10:19:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:19:36]Read from MH i2c: E2 [10:19:36]MH_I2C_Read... [10:19:36]Read from MH i2c: E2 0E 00 [10:19:36]MH_I2C_Read... [10:19:36]Read from MH i2c: E2 0E 00 5C 29 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 69 [10:19:36]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [10:19:36]wFMCommunicate OK [10:19:36]SAM_PROTO_GetShiftState done [10:19:36]FM_GetShiftState done [10:19:36]opened in 1715991483 [10:19:36]opened+sec_in_day 1716077883 [10:19:36]quantity*price = 50033 [10:19:36]sum+1 = 50034 [10:19:36]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.33 НСП 1% : 4.43 НДС 12% : 53.13 Наличными: 0.00 Безнал.: 500.33 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 34 18.05.2024 10:19 Смена: 359 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67795 ФПД: 111939766898254 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T101941&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67795&fm=111939766898254&tin=02508201610067®Number=0000000000091845&sum=50033 [10:19:37]StoreToDocumentArchive [10:19:37]shift 359 fd 67795 [10:19:37]save to /storage/0359/doc_00067795 [10:19:37]save last doc name /storage/0359/doc_00067795 to /storage/kkm_last_doc_name [10:19:37]save OK [10:19:37]Clear old archive folders... [10:19:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:19:37]tlvbuf is B6EA9DC0 [10:19:37]SAM_PROTO_ClearQueue [10:19:37]wFMCommunicate request_size=4 [10:19:37]MH_SAM_APDU [10:19:37]CAPDU: 80 09 00 00 [10:19:37]Write to MH i2c: E2 08 00 69 29 80 09 00 00 00 00 00 00 04 [10:19:37]Write i2c OK [10:19:37]MH_I2C_Read... [10:19:37]Read from MH i2c: E2 [10:19:37]MH_I2C_Read... [10:19:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:19:37]Read from MH i2c: E2 03 00 [10:19:37]MH_I2C_Read... [10:19:37]Read from MH i2c: E2 03 00 69 29 00 90 00 06 [10:19:37]RAPDU: 90 00 [10:19:37]wFMCommunicate OK [10:19:37]SAM_PROTO_ClearQueue done [10:19:37]KKMCreateOFDPacket [10:19:37]OFDProtocolAddRootSTLVToBuf [10:19:37]FM_MakeSignedData [10:19:37]FM_MakeSignedData [10:19:37]SAM_PROTO_SignData [10:19:37]wFMCommunicate request_size=4 [10:19:37]MH_SAM_APDU [10:19:37]CAPDU: 80 0D 01 02 [10:19:37]Write to MH i2c: E2 08 00 6A 29 80 0D 01 02 00 00 00 00 0C [10:19:37]Write i2c OK [10:19:37]MH_I2C_Read... [10:19:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:19:37]Read from MH i2c: E2 [10:19:37]MH_I2C_Read... [10:19:37]Read from MH i2c: E2 03 00 [10:19:37]MH_I2C_Read... [10:19:37]Read from MH i2c: E2 03 00 6A 29 00 90 00 07 [10:19:37]RAPDU: 90 00 [10:19:37]wFMCommunicate OK [10:19:37]wFMCommunicate request_size=255 [10:19:37]MH_SAM_APDU [10:19:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 42 1D 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 71 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 71 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 BD 80 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 D3 08 01 00 35 04 06 00 65 [10:19:37]Write to MH i2c: E2 02 01 6B 29 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 42 1D 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 71 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 71 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 BD 80 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 D3 08 01 00 35 04 06 00 65 00 00 8F [10:19:37]Write i2c OK [10:19:37]MH_I2C_Read... [10:19:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:19:38]Read from MH i2c: E2 [10:19:38]MH_I2C_Read... [10:19:38]Read from MH i2c: E2 03 00 [10:19:38]MH_I2C_Read... [10:19:38]Read from MH i2c: E2 03 00 6B 29 00 90 00 08 [10:19:38]RAPDU: 90 00 [10:19:38]wFMCommunicate OK [10:19:38]wFMCommunicate request_size=10 [10:19:38]MH_SAM_APDU [10:19:38]CAPDU: 80 0D 02 02 05 CF 02 0A CE 4E [10:19:38]Write to MH i2c: E2 0D 00 6C 29 80 0D 02 02 05 00 CF 02 0A CE 4E 00 00 10 [10:19:38]Write i2c OK [10:19:38]MH_I2C_Read... [10:19:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:19:38]Read from MH i2c: E2 [10:19:38]MH_I2C_Read... [10:19:38]Read from MH i2c: E2 03 00 [10:19:38]MH_I2C_Read... [10:19:38]Read from MH i2c: E2 03 00 6C 29 00 90 00 09 [10:19:38]RAPDU: 90 00 [10:19:38]wFMCommunicate OK [10:19:38]wFMCommunicate request_size=4 [10:19:38]MH_SAM_APDU [10:19:38]CAPDU: 80 0D 03 02 [10:19:38]Write to MH i2c: E2 08 00 6D 29 80 0D 03 02 00 00 00 00 11 [10:19:38]Write i2c OK [10:19:38]MH_I2C_Read... [10:19:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:19:38]Read from MH i2c: E2 [10:19:38]MH_I2C_Read... [10:19:38]Read from MH i2c: E2 0B 00 [10:19:38]MH_I2C_Read... [10:19:38]Read from MH i2c: E2 0B 00 6D 29 00 9A 0F 7E 5E 64 8A 14 C6 90 00 5F [10:19:38]RAPDU: 9A 0F 7E 5E 64 8A 14 C6 90 00 [10:19:38]wFMCommunicate OK [10:19:38]SAM_PROTO_SignData done [10:19:38]FM_MakeSignedData done [10:19:38]CreateOFDProtocolMessage [10:19:38]wFMCommunicate request_size=4 [10:19:38]MH_SAM_APDU [10:19:38]CAPDU: 80 11 00 00 [10:19:38]Write to MH i2c: E2 08 00 6E 29 80 11 00 00 00 00 00 00 11 [10:19:38]Write i2c OK [10:19:38]MH_I2C_Read... [10:19:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:19:38]Read from MH i2c: E2 [10:19:38]MH_I2C_Read... [10:19:38]Read from MH i2c: E2 17 00 [10:19:38]MH_I2C_Read... [10:19:38]Read from MH i2c: E2 17 00 6E 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 67 [10:19:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [10:19:38]wFMCommunicate OK [10:19:38]CreateOFDProtocolMessage done [10:19:38]OFDSenderStorePacket 67795 [10:19:38]StoreOFDPacket docnum=67795 [10:19:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 94 00 07 01 1E 11 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 42 1D 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 71 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 71 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 BD 80 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 D3 08 01 00 35 04 06 00 65 CF 02 0A CE 4E 9A 0F 7E 5E 64 8A 14 C6 [10:19:38]CheckFolder [10:19:38]dirname=/storage/ofd_packets [10:19:38]CheckFolder done [10:19:38]ProducePacketName [10:19:38]name=ofd_packets/00067795 [10:19:38]NVStorageSaveData ofd_packets/00067795 [10:19:38]File name is /storage/ofd_packets/00067795 [10:19:38]Write 301 bytes [10:19:38]NVStorageSaveData done [10:19:38]OFDSenderStorePacket done [10:19:38]KKMCreateOFDPacket done [10:19:38]NVStorageSaveData kkm_last_timestamp [10:19:38]File name is /storage/kkm_last_timestamp [10:19:38]Write 4 bytes [10:19:38]NVStorageSaveData done [10:19:38]ExternCall_PrintAddStr [10:19:38]wPrintStart [10:19:38]Write to MH i2c: 01 00 00 6F 29 98 [10:19:38]Write i2c OK [10:19:38]MH_I2C_Read... [10:19:38]Read from MH i2c: 01 [10:19:38]MH_I2C_Read... [10:19:38]Read from MH i2c: 01 07 00 [10:19:38]MH_I2C_Read... [10:19:38]Read from MH i2c: 01 07 00 6F 29 00 00 00 00 00 FF 0F AD [10:19:38]RasterBufferAndPrint [10:19:38]line Счет N : (1)507994 [10:19:38]line ИНН: 02508201610067 [10:19:38]line Контрольно-Кассовый Чек [10:19:38]line ПРОДАЖА [10:19:38]line ТРК (МРК, ГНК) : 33 [10:19:38]line Товар: 2710124130 [10:19:38]line Аи-92-К-5 [10:19:38]line 7.490 * 66.80 [10:19:38]line = 500.33 [10:19:38]line НДС 12% НСП 1% [10:19:38]line > о реализуемом товаре [10:19:38]line ИТОГО: 500.33 [10:19:38]line НСП 1% : 4.43 [10:19:38]line НДС 12% : 53.13 [10:19:38]line Наличными: 0.00 [10:19:38]line Безнал.: 500.33 [10:19:38]line Место: АЗС № 91 "Партнер Нефть" [10:19:38]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [10:19:38]line СНО: Общий режим [10:19:38]line Чек 34 18.05.2024 10:19 [10:19:38]line Смена: 359 ФФД: 1.0 [10:19:38]line ЗНМ: 0300000119 [10:19:38]line РНМ: 0000000000091845 [10:19:38]line Версия ККМ: 001 [10:19:38]line Платежная система: O! деньги [10:19:38]line ФМ: 0000000000871829 [10:19:38]line ФД: 67795 [10:19:38]line ФПД: 111939766898254 [10:19:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T101941&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67795&fm=111939766898254&tin=02508201610067®Number=0000000000091845&sum=50033 [10:19:38]OFD Sender: Processing packet 67795 [packets to send 35, broken 34] [10:19:38]ProducePacketName [10:19:38]name=ofd_packets/00067795 [10:19:38]OFD Sender: To server: pG, [10:19:38]CommunicateWithHost lk.salyk.kg:30040 [10:19:38]ConnectInit lk.salyk.kg [10:19:38]written 0, free lines is 4095 [10:19:39]Write to MH i2c: 01 00 00 98 29 C1 [10:19:39]Write i2c OK [10:19:39]MH_I2C_Read... [10:19:39]Read from MH i2c: 01 [10:19:39]MH_I2C_Read... [10:19:39]Read from MH i2c: 01 07 00 [10:19:39]MH_I2C_Read... [10:19:39]Read from MH i2c: 01 07 00 98 29 00 00 00 00 00 D4 0C A8 [10:19:39]RasterBufferAndPrint [10:19:39]line [10:19:39]line [10:19:39]line [10:19:39]line [10:19:39]line [10:19:39]written 0, free lines is 3288 [10:19:39]MH_Cut [10:19:39]Write to MH i2c: D1 01 00 9F 29 01 9A [10:19:39]Write i2c OK [10:19:39]MH_I2C_Read... [10:19:39]Read from MH i2c: D1 [10:19:39]MH_I2C_Read... [10:19:39]Read from MH i2c: D1 01 00 [10:19:39]MH_I2C_Read... [10:19:39]Read from MH i2c: D1 01 00 9F 29 00 99 [10:19:39]Write to MH i2c: 01 00 00 A0 29 C9 [10:19:39]Write i2c OK [10:19:39]MH_I2C_Read... [10:19:39]*** Cut start [10:19:39]*** Purtial cut [10:19:39]*** Stage 1: CUTSNS_PIN = 1 [10:19:40]Read from MH i2c: 01 [10:19:40]MH_I2C_Read... [10:19:40]*** Stop cut motor [10:19:40]*** Cut end [10:19:40]Read from MH i2c: 01 07 00 [10:19:40]MH_I2C_Read... [10:19:40]Read from MH i2c: 01 07 00 A0 29 00 00 00 00 00 FF 0F DE [10:19:40]process_action close_receipt done [10:19:40]requested_data is exist [10:19:40]produce_requested_data [10:19:40]requested_item fm.sn is exist - process it [10:19:40]wFMCommunicate request_size=4 [10:19:40]MH_SAM_APDU [10:19:40]CAPDU: 80 11 00 00 [10:19:40]Write to MH i2c: E2 08 00 A1 29 80 11 00 00 00 00 00 00 44 [10:19:40]Write i2c OK [10:19:40]MH_I2C_Read... [10:19:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:19:40]Read from MH i2c: E2 [10:19:40]MH_I2C_Read... [10:19:40]Read from MH i2c: E2 17 00 [10:19:40]MH_I2C_Read... [10:19:40]Read from MH i2c: E2 17 00 A1 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 9A [10:19:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [10:19:40]wFMCommunicate OK [10:19:40]requested_item fd.num is exist - process it [10:19:40]SAM_PROTO_GetFieldsCounters [10:19:40]wFMCommunicate request_size=4 [10:19:40]MH_SAM_APDU [10:19:40]CAPDU: 80 13 00 00 [10:19:40]Write to MH i2c: E2 08 00 A2 29 80 13 00 00 00 00 00 00 47 [10:19:40]Write i2c OK [10:19:40]MH_I2C_Read... [10:19:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:19:40]Read from MH i2c: E2 [10:19:40]MH_I2C_Read... [10:19:40]Read from MH i2c: E2 62 00 [10:19:40]MH_I2C_Read... [10:19:40]Read from MH i2c: E2 62 00 A2 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 D3 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 17 [10:19:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 D3 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:19:40]wFMCommunicate OK [10:19:40]SAM_PROTO_GetFieldsCounters done [10:19:40]requested_item shift.num is exist - process it [10:19:40]requested_item shift.opened is exist - process it [10:19:40]req_shift_opened [10:19:40]FM_GetShiftState [10:19:40]SAM_PROTO_GetShiftState [10:19:40]wFMCommunicate request_size=4 [10:19:40]MH_SAM_APDU [10:19:40]CAPDU: 80 13 01 00 [10:19:40]Write to MH i2c: E2 08 00 A3 29 80 13 01 00 00 00 00 00 49 [10:19:40]Write i2c OK [10:19:40]MH_I2C_Read... [10:19:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:19:40]Read from MH i2c: E2 [10:19:40]MH_I2C_Read... [10:19:40]Read from MH i2c: E2 0E 00 [10:19:40]MH_I2C_Read... [10:19:40]Read from MH i2c: E2 0E 00 A3 29 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 B0 [10:19:40]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [10:19:40]wFMCommunicate OK [10:19:40]SAM_PROTO_GetShiftState done [10:19:40]FM_GetShiftState done [10:19:40]req_shift_opened done [10:19:40]requested_item shift.open_date is exist - process it [10:19:40]req_shift_open_date [10:19:40]req_shift_open_date done [10:19:40]produce_requested_data done [10:19:40]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67795,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [10:19:40]process_action_free close_receipt [10:19:40]json_value_free [10:19:40]json_value_free done [10:19:40]process_json_proto returns [10:19:40]Send response to host [10:19:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67795,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [10:19:40]free response buf [10:19:40]execute_script done [10:19:40]execute_script returns [10:19:40]free content buf [10:19:40]Sock 7.Close socket [10:19:40]Sock 7.Thread stoped [10:20:51]accept exits with 9 [10:20:51]New connection [10:20:51]New thread 3066752356 created [10:20:51]Thread 3066608996 joined [10:20:51]Waiting for new connection... [10:20:51] Sock 9.Parse request [10:20:51]Sock 9.Check first char [10:20:51]Sock 9.First char is OK [10:20:51]request: POST /json_proto HTTP/1.0 [10:20:51]Method: POST [10:20:51]URL: /json_proto [10:20:51]Method is POST - this is cgi request [10:20:51]url: /json_proto [10:20:51]query_string will be loaded in cgi processing [10:20:51]execute_cgi json_proto POST (null) [10:20:51]execute_cgi path=json_proto method=POST [10:20:51]POST find Content-Length [10:20:51]Host: 172.17.41.195:8080 [10:20:51]Content-Length: 1217 [10:20:51]Content-Type: application/json [10:20:51] [10:20:51]POST finish read [10:20:51]Found Content-Length = 1217 [10:20:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0440\u0441\u0442\u0430\u043D\u0431\u0435\u043A\u043E\u0432 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)507995\u000A18.05.2024 10:03\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 41\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 20.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 1494.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4051018\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:20:51]execute_script... [10:20:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0440\u0441\u0442\u0430\u043D\u0431\u0435\u043A\u043E\u0432 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)507995\u000A18.05.2024 10:03\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 41\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 20.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 1494.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4051018\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:20:51]POST & json_proto [10:20:51]process_json_proto [10:20:51]json parsed OK: [10:20:51]protocol is kg_v1.0 [10:20:51]action value=print_text [10:20:51]process_action print_text [10:20:51]cmd_print_text [10:20:51]ExternCall_PrintAddStr [10:20:51]wPrintStart [10:20:51]Write to MH i2c: 01 00 00 A4 29 CD [10:20:51]Write i2c OK [10:20:51]MH_I2C_Read... [10:20:51]Read from MH i2c: 01 [10:20:51]MH_I2C_Read... [10:20:51]Read from MH i2c: 01 07 00 [10:20:51]MH_I2C_Read... [10:20:51]Read from MH i2c: 01 07 00 A4 29 00 00 00 00 00 FF 0F E2 [10:20:51]RasterBufferAndPrint [10:20:51]line *****ТОВАРНЫЙ ЧЕК***** [10:20:51]line АЗС-91 [10:20:51]line Партнер нефть [10:20:51]line 02508201610067 [10:20:51]line Кассир : Арстанбеков Н. [10:20:51]line Счет N : (1)507995 [10:20:51]line 18.05.2024 10:03 [10:20:51]line ПРОДАЖА [10:20:51]line ТРК (МРК, ГНК): 41 [10:20:51]line Вид ГСМ : 2710194210 [10:20:51]line ДТ-К-5 [10:20:51]line 20.000 x 74.70 [10:20:51]line ИТОГ: 1494.00 [10:20:51]line Тип оплаты: Талоны: Топливные Талоны [10:20:51]line 4051018 [10:20:51]line ______________________ [10:20:51]line (подпись) [10:20:51]written 0, free lines is 4095 [10:20:51]Write to MH i2c: 01 00 00 B8 29 E1 [10:20:51]Write i2c OK [10:20:51]MH_I2C_Read... [10:20:51]Read from MH i2c: 01 [10:20:51]MH_I2C_Read... [10:20:51]Read from MH i2c: 01 07 00 [10:20:51]MH_I2C_Read... [10:20:51]Read from MH i2c: 01 07 00 B8 29 00 00 00 00 00 0E 0E 04 [10:20:51]RasterBufferAndPrint [10:20:51]line [10:20:51]line [10:20:51]line [10:20:51]line [10:20:51]line [10:20:51]written 0, free lines is 3600 [10:20:51]MH_Cut [10:20:51]Write to MH i2c: D1 01 00 BF 29 01 BA [10:20:51]Write i2c OK [10:20:51]MH_I2C_Read... [10:20:51]Read from MH i2c: D1 [10:20:51]MH_I2C_Read... [10:20:51]Read from MH i2c: D1 01 00 [10:20:51]MH_I2C_Read... [10:20:51]Read from MH i2c: D1 01 00 BF 29 00 B9 [10:20:51]Write to MH i2c: 01 00 00 C0 29 E9 [10:20:51]Write i2c OK [10:20:51]MH_I2C_Read... [10:20:51]*** Cut start [10:20:51]*** Purtial cut [10:20:51]*** CUTSNS_PIN = 0 [10:20:52]*** Stage 1: CUTSNS_PIN = 1 [10:20:53]Read from MH i2c: 01 [10:20:53]MH_I2C_Read... [10:20:53]Read from MH i2c: 01 07 00 [10:20:53]MH_I2C_Read... [10:20:53]*** Stop cut motor [10:20:53]*** Cut end [10:20:53]Read from MH i2c: 01 07 00 C0 29 00 00 00 00 00 FF 0F FE [10:20:53]process_action print_text done [10:20:53]requested_data is exist [10:20:53]produce_requested_data [10:20:53]requested_item fm.sn is exist - process it [10:20:53]wFMCommunicate request_size=4 [10:20:53]MH_SAM_APDU [10:20:53]CAPDU: 80 11 00 00 [10:20:53]Write to MH i2c: E2 08 00 C1 29 80 11 00 00 00 00 00 00 64 [10:20:53]Write i2c OK [10:20:53]MH_I2C_Read... [10:20:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:20:53]Read from MH i2c: E2 [10:20:53]MH_I2C_Read... [10:20:53]Read from MH i2c: E2 17 00 [10:20:53]MH_I2C_Read... [10:20:53]Read from MH i2c: E2 17 00 C1 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 BA [10:20:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [10:20:53]wFMCommunicate OK [10:20:53]requested_item fd.num is exist - process it [10:20:53]SAM_PROTO_GetFieldsCounters [10:20:53]wFMCommunicate request_size=4 [10:20:53]MH_SAM_APDU [10:20:53]CAPDU: 80 13 00 00 [10:20:53]Write to MH i2c: E2 08 00 C2 29 80 13 00 00 00 00 00 00 67 [10:20:53]Write i2c OK [10:20:53]MH_I2C_Read... [10:20:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:20:53]Read from MH i2c: E2 [10:20:53]MH_I2C_Read... [10:20:53]Read from MH i2c: E2 62 00 [10:20:53]MH_I2C_Read... [10:20:53]Read from MH i2c: E2 62 00 C2 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 D3 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 37 [10:20:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 D3 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:20:53]wFMCommunicate OK [10:20:53]SAM_PROTO_GetFieldsCounters done [10:20:53]requested_item shift.num is exist - process it [10:20:53]requested_item shift.opened is exist - process it [10:20:53]req_shift_opened [10:20:53]FM_GetShiftState [10:20:53]SAM_PROTO_GetShiftState [10:20:53]wFMCommunicate request_size=4 [10:20:53]MH_SAM_APDU [10:20:53]CAPDU: 80 13 01 00 [10:20:53]Write to MH i2c: E2 08 00 C3 29 80 13 01 00 00 00 00 00 69 [10:20:53]Write i2c OK [10:20:53]MH_I2C_Read... [10:20:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:20:54]Read from MH i2c: E2 [10:20:54]MH_I2C_Read... [10:20:54]Read from MH i2c: E2 0E 00 [10:20:54]MH_I2C_Read... [10:20:54]Read from MH i2c: E2 0E 00 C3 29 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 D0 [10:20:54]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [10:20:54]wFMCommunicate OK [10:20:54]SAM_PROTO_GetShiftState done [10:20:54]FM_GetShiftState done [10:20:54]req_shift_opened done [10:20:54]requested_item shift.open_date is exist - process it [10:20:54]req_shift_open_date [10:20:54]req_shift_open_date done [10:20:54]produce_requested_data done [10:20:54]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67795,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [10:20:54]process_action_free print_text [10:20:54]json_value_free [10:20:54]json_value_free done [10:20:54]process_json_proto returns [10:20:54]Send response to host [10:20:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67795,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [10:20:54]free response buf [10:20:54]execute_script done [10:20:54]execute_script returns [10:20:54]free content buf [10:20:54]Sock 9.Close socket [10:20:54]Sock 9.Thread stoped [10:21:51]ConnectInit Can't connect to host [10:21:51]CommunicateWithHost connect error [10:21:51]CommunicateWithHost err = -1 [10:21:51]OFD Sender: Server communicate error [10:21:56]OFD Sender: Processing packet 67795 [packets to send 35, broken 34] [10:21:56]ProducePacketName [10:21:56]name=ofd_packets/00067795 [10:21:56]OFD Sender: To server: pG, [10:21:56]CommunicateWithHost lk.salyk.kg:30040 [10:21:56]ConnectInit lk.salyk.kg [10:21:56]Connected sock=9 [10:21:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 94 00 07 01 1E 11 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 42 1D 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 71 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 71 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 BD 80 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 D3 08 01 00 35 04 06 00 65 CF 02 0A CE 4E 9A 0F 7E 5E 64 8A 14 C6 [10:21:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 E8 CB 47 00 AA 45 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 D3 08 01 00 F4 03 04 00 1D 29 48 66 B6 04 01 00 00 D6 4E 02 AC 99 3E D2 57 [10:21:56]CommunicateWithHost err = 0 [10:21:56]CheckOFDResponse [10:21:56]1017 (14) - 77093643461234 [10:21:56]1041 (16) - 0000000000871829 [10:21:56]1040 (4) - 67795 [10:21:56]1012 (4) - 18.05.2024 04:05 [10:21:56]1206 (1) - 0 [10:21:56]OFD Sender: Remove packet 67795 [10:21:56]ProducePacketName [10:21:56]name=ofd_packets/00067795 [10:21:56]NVStorageDeleteData [10:21:57]OFD Sender: No OFD packet to send [10:22:02]OFD Sender: No OFD packet to send [10:22:07]OFD Sender: No OFD packet to send [10:22:12]OFD Sender: No OFD packet to send [10:22:17]OFD Sender: No OFD packet to send [10:22:22]OFD Sender: No OFD packet to send [10:22:27]OFD Sender: No OFD packet to send [10:22:32]OFD Sender: No OFD packet to send [10:22:37]OFD Sender: No OFD packet to send [10:22:42]OFD Sender: No OFD packet to send [10:22:47]OFD Sender: No OFD packet to send [10:22:52]OFD Sender: No OFD packet to send [10:22:57]OFD Sender: No OFD packet to send [10:23:02]OFD Sender: No OFD packet to send [10:23:07]OFD Sender: No OFD packet to send [10:23:12]OFD Sender: No OFD packet to send [10:23:17]OFD Sender: No OFD packet to send [10:23:22]OFD Sender: No OFD packet to send [10:23:27]OFD Sender: No OFD packet to send [10:23:32]OFD Sender: No OFD packet to send [10:23:37]OFD Sender: No OFD packet to send [10:23:42]OFD Sender: No OFD packet to send [10:23:45]accept exits with 7 [10:23:45]New connection [10:23:45]New thread 3066608996 created [10:23:45]Thread 3066752356 joined [10:23:45]Waiting for new connection... [10:23:45] Sock 7.Parse request [10:23:45]Sock 7.Check first char [10:23:45]Sock 7.First char is OK [10:23:45]request: POST /json_proto HTTP/1.0 [10:23:45]Method: POST [10:23:45]URL: /json_proto [10:23:45]Method is POST - this is cgi request [10:23:45]url: /json_proto [10:23:45]query_string will be loaded in cgi processing [10:23:45]execute_cgi json_proto POST (null) [10:23:45]execute_cgi path=json_proto method=POST [10:23:45]POST find Content-Length [10:23:45]Host: 172.17.41.195:8080 [10:23:45]Content-Length: 1209 [10:23:45]Content-Type: application/json [10:23:45] [10:23:45]POST finish read [10:23:45]Found Content-Length = 1209 [10:23:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0440\u0441\u0442\u0430\u043D\u0431\u0435\u043A\u043E\u0432 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)507997\u000A18.05.2024 10:06\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 25.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 1867.50\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:23:45]execute_script... [10:23:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0440\u0441\u0442\u0430\u043D\u0431\u0435\u043A\u043E\u0432 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)507997\u000A18.05.2024 10:06\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 25.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 1867.50\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:23:45]POST & json_proto [10:23:45]process_json_proto [10:23:45]json parsed OK: [10:23:45]protocol is kg_v1.0 [10:23:45]action value=print_text [10:23:45]process_action print_text [10:23:45]cmd_print_text [10:23:45]ExternCall_PrintAddStr [10:23:45]wPrintStart [10:23:45]Write to MH i2c: 01 00 00 C4 29 ED [10:23:45]Write i2c OK [10:23:45]MH_I2C_Read... [10:23:45]Read from MH i2c: 01 [10:23:45]MH_I2C_Read... [10:23:45]Read from MH i2c: 01 07 00 [10:23:45]MH_I2C_Read... [10:23:45]Read from MH i2c: 01 07 00 C4 29 00 00 00 00 00 FF 0F 02 [10:23:45]RasterBufferAndPrint [10:23:45]line *****ТОВАРНЫЙ ЧЕК***** [10:23:45]line АЗС-91 [10:23:45]line Партнер нефть [10:23:45]line 02508201610067 [10:23:45]line Кассир : Арстанбеков Н. [10:23:45]line Счет N : (1)507997 [10:23:45]line 18.05.2024 10:06 [10:23:45]line ПРОДАЖА [10:23:45]line ТРК (МРК, ГНК): 11 [10:23:45]line Вид ГСМ : 2710194210 [10:23:45]line ДТ-К-5 [10:23:45]line 25.000 x 74.70 [10:23:45]line ИТОГ: 1867.50 [10:23:45]line Тип оплаты: Талоны: Топливная Карта [10:23:45]line 02750 [10:23:45]line ______________________ [10:23:45]line (подпись) [10:23:45]written 0, free lines is 4095 [10:23:46]Write to MH i2c: 01 00 00 D8 29 01 [10:23:46]Write i2c OK [10:23:46]MH_I2C_Read... [10:23:46]Read from MH i2c: 01 [10:23:46]MH_I2C_Read... [10:23:46]Read from MH i2c: 01 07 00 [10:23:46]MH_I2C_Read... [10:23:46]Read from MH i2c: 01 07 00 D8 29 00 00 00 00 00 0F 0E 25 [10:23:46]RasterBufferAndPrint [10:23:46]line [10:23:46]line [10:23:46]line [10:23:46]line [10:23:46]line [10:23:46]written 0, free lines is 3600 [10:23:46]MH_Cut [10:23:46]Write to MH i2c: D1 01 00 DF 29 01 DA [10:23:46]Write i2c OK [10:23:46]MH_I2C_Read... [10:23:46]Read from MH i2c: D1 [10:23:46]MH_I2C_Read... [10:23:46]Read from MH i2c: D1 01 00 [10:23:46]MH_I2C_Read... [10:23:46]Read from MH i2c: D1 01 00 DF 29 00 D9 [10:23:46]Write to MH i2c: 01 00 00 E0 29 09 [10:23:46]Write i2c OK [10:23:46]MH_I2C_Read... [10:23:46]*** Cut start [10:23:46]*** Purtial cut [10:23:46]*** Stage 1: CUTSNS_PIN = 1 [10:23:47]Read from MH i2c: 01 [10:23:47]MH_I2C_Read... [10:23:47]Read from MH i2c: 01 07 00 [10:23:47]MH_I2C_Read... [10:23:47]*** Stop cut motor [10:23:47]*** Cut end [10:23:47]Read from MH i2c: 01 07 00 E0 29 00 00 00 00 00 FF 0F 1E [10:23:47]process_action print_text done [10:23:47]requested_data is exist [10:23:47]produce_requested_data [10:23:47]requested_item fm.sn is exist - process it [10:23:47]wFMCommunicate request_size=4 [10:23:47]MH_SAM_APDU [10:23:47]CAPDU: 80 11 00 00 [10:23:47]Write to MH i2c: E2 08 00 E1 29 80 11 00 00 00 00 00 00 84 [10:23:47]Write i2c OK [10:23:47]MH_I2C_Read... [10:23:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:23:47]Read from MH i2c: E2 [10:23:47]MH_I2C_Read... [10:23:47]Read from MH i2c: E2 17 00 [10:23:47]MH_I2C_Read... [10:23:47]Read from MH i2c: E2 17 00 E1 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 DA [10:23:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [10:23:47]wFMCommunicate OK [10:23:47]requested_item fd.num is exist - process it [10:23:47]SAM_PROTO_GetFieldsCounters [10:23:47]wFMCommunicate request_size=4 [10:23:47]MH_SAM_APDU [10:23:47]CAPDU: 80 13 00 00 [10:23:47]Write to MH i2c: E2 08 00 E2 29 80 13 00 00 00 00 00 00 87 [10:23:47]Write i2c OK [10:23:47]MH_I2C_Read... [10:23:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:23:47]Read from MH i2c: E2 [10:23:47]MH_I2C_Read... [10:23:47]Read from MH i2c: E2 62 00 [10:23:47]MH_I2C_Read... [10:23:47]Read from MH i2c: E2 62 00 E2 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 D3 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 57 [10:23:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 D3 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:23:47]wFMCommunicate OK [10:23:47]SAM_PROTO_GetFieldsCounters done [10:23:47]requested_item shift.num is exist - process it [10:23:47]requested_item shift.opened is exist - process it [10:23:47]req_shift_opened [10:23:47]FM_GetShiftState [10:23:47]SAM_PROTO_GetShiftState [10:23:47]wFMCommunicate request_size=4 [10:23:47]MH_SAM_APDU [10:23:47]CAPDU: 80 13 01 00 [10:23:47]Write to MH i2c: E2 08 00 E3 29 80 13 01 00 00 00 00 00 89 [10:23:47]Write i2c OK [10:23:47]MH_I2C_Read... [10:23:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:23:47]Read from MH i2c: E2 [10:23:47]MH_I2C_Read... [10:23:47]Read from MH i2c: E2 0E 00 [10:23:47]MH_I2C_Read... [10:23:47]Read from MH i2c: E2 0E 00 E3 29 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 F0 [10:23:47]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [10:23:47]wFMCommunicate OK [10:23:47]SAM_PROTO_GetShiftState done [10:23:47]FM_GetShiftState done [10:23:47]req_shift_opened done [10:23:47]requested_item shift.open_date is exist - process it [10:23:47]req_shift_open_date [10:23:47]req_shift_open_date done [10:23:47]produce_requested_data done [10:23:47]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67795,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [10:23:47]process_action_free print_text [10:23:47]json_value_free [10:23:47]json_value_free done [10:23:47]process_json_proto returns [10:23:47]Send response to host [10:23:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67795,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [10:23:47]free response buf [10:23:47]execute_script done [10:23:47]execute_script returns [10:23:47]free content buf [10:23:47]Sock 7.Close socket [10:23:47]Sock 7.Thread stoped [10:23:47]OFD Sender: No OFD packet to send [10:23:49]accept exits with 9 [10:23:49]New connection [10:23:49]New thread 3066752356 created [10:23:49]Thread 3066608996 joined [10:23:49]Waiting for new connection... [10:23:49] Sock 9.Parse request [10:23:49]Sock 9.Check first char [10:23:49]Sock 9.First char is OK [10:23:49]request: POST /json_proto HTTP/1.0 [10:23:49]Method: POST [10:23:49]URL: /json_proto [10:23:49]Method is POST - this is cgi request [10:23:49]url: /json_proto [10:23:49]query_string will be loaded in cgi processing [10:23:49]execute_cgi json_proto POST (null) [10:23:49]execute_cgi path=json_proto method=POST [10:23:49]POST find Content-Length [10:23:49]Host: 172.17.41.195:8080 [10:23:49]Content-Length: 800 [10:23:49]Content-Type: application/json [10:23:49] [10:23:49]POST finish read [10:23:49]Found Content-Length = 800 [10:23:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507996", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 26.780, "sum" : 2000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.47 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:23:49]execute_script... [10:23:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507996", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 26.780, "sum" : 2000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.47 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:23:49]POST & json_proto [10:23:49]process_json_proto [10:23:49]json parsed OK: [10:23:49]protocol is kg_v1.0 [10:23:49]action value=close_receipt [10:23:49]process_action close_receipt [10:23:49]cmd_close_receipt [10:23:49]MH_GetDate [10:23:49]Write to MH i2c: F0 00 00 E4 29 FC [10:23:49]Write i2c OK [10:23:49]MH_I2C_Read... [10:23:49]Read from MH i2c: F0 [10:23:49]MH_I2C_Read... [10:23:49]Read from MH i2c: F0 09 00 [10:23:49]MH_I2C_Read... [10:23:49]Read from MH i2c: F0 09 00 E4 29 00 BA 81 48 66 FC 21 6F 64 DE [10:23:49]GetLastDocTimeStamp 1716027581 [10:23:49]current date 1716027834 [10:23:49]FM_GetShiftState [10:23:49]SAM_PROTO_GetShiftState [10:23:49]wFMCommunicate request_size=4 [10:23:49]MH_SAM_APDU [10:23:49]CAPDU: 80 13 01 00 [10:23:49]Write to MH i2c: E2 08 00 E5 29 80 13 01 00 00 00 00 00 8B [10:23:49]Write i2c OK [10:23:49]MH_I2C_Read... [10:23:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:23:49]Read from MH i2c: E2 [10:23:49]MH_I2C_Read... [10:23:49]Read from MH i2c: E2 0E 00 [10:23:49]MH_I2C_Read... [10:23:49]Read from MH i2c: E2 0E 00 E5 29 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 F2 [10:23:49]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [10:23:49]wFMCommunicate OK [10:23:49]SAM_PROTO_GetShiftState done [10:23:49]FM_GetShiftState done [10:23:49]opened in 1715991483 [10:23:49]opened+sec_in_day 1716077883 [10:23:49]quantity*price = 200046 [10:23:49]sum+1 = 200048 [10:23:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.47 НСП 1% : 17.70 НДС 12% : 212.44 Наличными: 0.00 Безнал.: 2000.47 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 35 18.05.2024 10:23 Смена: 359 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67796 ФПД: 88131484916905 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T102354&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67796&fm=88131484916905&tin=02508201610067®Number=0000000000091845&sum=200047 [10:23:50]StoreToDocumentArchive [10:23:50]shift 359 fd 67796 [10:23:50]save to /storage/0359/doc_00067796 [10:23:50]save last doc name /storage/0359/doc_00067796 to /storage/kkm_last_doc_name [10:23:50]save OK [10:23:50]Clear old archive folders... [10:23:50]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:23:50]tlvbuf is 01B4C7C0 [10:23:50]SAM_PROTO_ClearQueue [10:23:50]wFMCommunicate request_size=4 [10:23:50]MH_SAM_APDU [10:23:50]CAPDU: 80 09 00 00 [10:23:50]Write to MH i2c: E2 08 00 F2 29 80 09 00 00 00 00 00 00 8D [10:23:50]Write i2c OK [10:23:50]MH_I2C_Read... [10:23:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:23:50]Read from MH i2c: E2 [10:23:50]MH_I2C_Read... [10:23:50]Read from MH i2c: E2 03 00 [10:23:50]MH_I2C_Read... [10:23:50]Read from MH i2c: E2 03 00 F2 29 00 90 00 8F [10:23:50]RAPDU: 90 00 [10:23:50]wFMCommunicate OK [10:23:50]SAM_PROTO_ClearQueue done [10:23:50]KKMCreateOFDPacket [10:23:50]OFDProtocolAddRootSTLVToBuf [10:23:50]FM_MakeSignedData [10:23:50]FM_MakeSignedData [10:23:50]SAM_PROTO_SignData [10:23:50]wFMCommunicate request_size=4 [10:23:50]MH_SAM_APDU [10:23:50]CAPDU: 80 0D 01 02 [10:23:50]Write to MH i2c: E2 08 00 F3 29 80 0D 01 02 00 00 00 00 95 [10:23:50]Write i2c OK [10:23:50]MH_I2C_Read... [10:23:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:23:50]Read from MH i2c: E2 [10:23:50]MH_I2C_Read... [10:23:50]Read from MH i2c: E2 03 00 [10:23:50]MH_I2C_Read... [10:23:50]Read from MH i2c: E2 03 00 F3 29 00 90 00 90 [10:23:50]RAPDU: 90 00 [10:23:50]wFMCommunicate OK [10:23:50]wFMCommunicate request_size=255 [10:23:50]MH_SAM_APDU [10:23:50]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9C 68 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 6F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6F 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FC 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 BA 81 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 D4 08 01 00 35 04 06 00 50 27 B5 DA [10:23:50]Write to MH i2c: E2 02 01 F4 29 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9C 68 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 6F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6F 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FC 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 BA 81 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 D4 08 01 00 35 04 06 00 50 27 B5 DA 00 00 58 [10:23:50]Write i2c OK [10:23:50]MH_I2C_Read... [10:23:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:23:50]Read from MH i2c: E2 [10:23:50]MH_I2C_Read... [10:23:50]Read from MH i2c: E2 03 00 [10:23:50]MH_I2C_Read... [10:23:50]Read from MH i2c: E2 03 00 F4 29 00 90 00 91 [10:23:50]RAPDU: 90 00 [10:23:50]wFMCommunicate OK [10:23:50]wFMCommunicate request_size=7 [10:23:50]MH_SAM_APDU [10:23:50]CAPDU: 80 0D 02 02 02 1C A9 [10:23:50]Write to MH i2c: E2 0A 00 F5 29 80 0D 02 02 02 00 1C A9 00 00 61 [10:23:50]Write i2c OK [10:23:50]MH_I2C_Read... [10:23:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:23:50]Read from MH i2c: E2 [10:23:50]MH_I2C_Read... [10:23:50]Read from MH i2c: E2 03 00 [10:23:50]MH_I2C_Read... [10:23:50]Read from MH i2c: E2 03 00 F5 29 00 90 00 92 [10:23:50]RAPDU: 90 00 [10:23:50]wFMCommunicate OK [10:23:50]wFMCommunicate request_size=4 [10:23:50]MH_SAM_APDU [10:23:50]CAPDU: 80 0D 03 02 [10:23:50]Write to MH i2c: E2 08 00 F6 29 80 0D 03 02 00 00 00 00 9A [10:23:50]Write i2c OK [10:23:50]MH_I2C_Read... [10:23:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:23:50]Read from MH i2c: E2 [10:23:50]MH_I2C_Read... [10:23:50]Read from MH i2c: E2 0B 00 [10:23:50]MH_I2C_Read... [10:23:50]Read from MH i2c: E2 0B 00 F6 29 00 EC 9E 98 01 43 75 8A 05 90 00 05 [10:23:50]RAPDU: EC 9E 98 01 43 75 8A 05 90 00 [10:23:50]wFMCommunicate OK [10:23:50]SAM_PROTO_SignData done [10:23:50]FM_MakeSignedData done [10:23:50]CreateOFDProtocolMessage [10:23:50]wFMCommunicate request_size=4 [10:23:50]MH_SAM_APDU [10:23:50]CAPDU: 80 11 00 00 [10:23:50]Write to MH i2c: E2 08 00 F7 29 80 11 00 00 00 00 00 00 9A [10:23:50]Write i2c OK [10:23:50]MH_I2C_Read... [10:23:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:23:50]Read from MH i2c: E2 [10:23:50]MH_I2C_Read... [10:23:50]Read from MH i2c: E2 17 00 [10:23:50]MH_I2C_Read... [10:23:50]Read from MH i2c: E2 17 00 F7 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 F0 [10:23:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [10:23:50]wFMCommunicate OK [10:23:50]CreateOFDProtocolMessage done [10:23:50]OFDSenderStorePacket 67796 [10:23:50]StoreOFDPacket docnum=67796 [10:23:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 33 8F 04 01 07 F1 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9C 68 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 6F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6F 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FC 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 BA 81 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 D4 08 01 00 35 04 06 00 50 27 B5 DA 1C A9 EC 9E 98 01 43 75 8A 05 [10:23:50]CheckFolder [10:23:50]dirname=/storage/ofd_packets [10:23:50]CheckFolder done [10:23:50]ProducePacketName [10:23:50]name=ofd_packets/00067796 [10:23:50]NVStorageSaveData ofd_packets/00067796 [10:23:50]File name is /storage/ofd_packets/00067796 [10:23:50]Write 298 bytes [10:23:50]NVStorageSaveData done [10:23:50]OFDSenderStorePacket done [10:23:50]KKMCreateOFDPacket done [10:23:50]NVStorageSaveData kkm_last_timestamp [10:23:50]File name is /storage/kkm_last_timestamp [10:23:50]Write 4 bytes [10:23:50]NVStorageSaveData done [10:23:50]ExternCall_PrintAddStr [10:23:50]wPrintStart [10:23:50]Write to MH i2c: 01 00 00 F8 29 21 [10:23:50]Write i2c OK [10:23:50]MH_I2C_Read... [10:23:50]Read from MH i2c: 01 [10:23:50]MH_I2C_Read... [10:23:50]Read from MH i2c: 01 07 00 [10:23:50]MH_I2C_Read... [10:23:50]Read from MH i2c: 01 07 00 F8 29 00 00 00 00 00 FF 0F 36 [10:23:50]RasterBufferAndPrint [10:23:50]line Счет N : (1)507996 [10:23:50]line ИНН: 02508201610067 [10:23:50]line Контрольно-Кассовый Чек [10:23:50]line ПРОДАЖА [10:23:50]line ТРК (МРК, ГНК) : 21 [10:23:50]line Товар: 2710194210 [10:23:50]line ДТ-К-5 [10:23:50]line 26.780 * 74.70 [10:23:50]line = 2000.47 [10:23:50]line НДС 12% НСП 1% [10:23:50]line > о реализуемом товаре [10:23:50]line ИТОГО: 2000.47 [10:23:50]line НСП 1% : 17.70 [10:23:50]line НДС 12% : 212.44 [10:23:50]line Наличными: 0.00 [10:23:50]line Безнал.: 2000.47 [10:23:50]line Место: АЗС № 91 "Партнер Нефть" [10:23:50]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [10:23:50]line СНО: Общий режим [10:23:50]line Чек 35 18.05.2024 10:23 [10:23:50]line Смена: 359 ФФД: 1.0 [10:23:50]line ЗНМ: 0300000119 [10:23:50]line РНМ: 0000000000091845 [10:23:50]line Версия ККМ: 001 [10:23:50]line Платежная система: O! деньги [10:23:50]line ФМ: 0000000000871829 [10:23:50]line ФД: 67796 [10:23:50]line ФПД: 88131484916905 [10:23:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T102354&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67796&fm=88131484916905&tin=02508201610067®Number=0000000000091845&sum=200047 [10:23:51]OFD Sender: Processing packet 67796 [packets to send 35, broken 34] [10:23:51]ProducePacketName [10:23:51]name=ofd_packets/00067796 [10:23:51]OFD Sender: To server: pG, [10:23:51]CommunicateWithHost lk.salyk.kg:30040 [10:23:51]ConnectInit lk.salyk.kg [10:23:51]written 0, free lines is 4095 [10:23:51]Connected sock=10 [10:23:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 33 8F 04 01 07 F1 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9C 68 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 6F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6F 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FC 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 BA 81 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 D4 08 01 00 35 04 06 00 50 27 B5 DA 1C A9 EC 9E 98 01 43 75 8A 05 [10:23:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 CD 9A 47 00 2B EB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 D4 08 01 00 F4 03 04 00 8F 29 48 66 B6 04 01 00 00 BE 62 BF 7C 30 BB 50 DD [10:23:51]CommunicateWithHost err = 0 [10:23:51]CheckOFDResponse [10:23:51]1017 (14) - 77093643461234 [10:23:51]1041 (16) - 0000000000871829 [10:23:51]1040 (4) - 67796 [10:23:51]1012 (4) - 18.05.2024 04:07 [10:23:51]1206 (1) - 0 [10:23:51]OFD Sender: Remove packet 67796 [10:23:51]ProducePacketName [10:23:51]name=ofd_packets/00067796 [10:23:51]NVStorageDeleteData [10:23:51]Write to MH i2c: 01 00 00 21 2A 4B [10:23:51]Write i2c OK [10:23:51]MH_I2C_Read... [10:23:51]Read from MH i2c: 01 [10:23:51]MH_I2C_Read... [10:23:51]Read from MH i2c: 01 07 00 [10:23:51]MH_I2C_Read... [10:23:51]Read from MH i2c: 01 07 00 21 2A 00 00 00 00 00 D1 0C 2F [10:23:51]RasterBufferAndPrint [10:23:51]line [10:23:51]line [10:23:51]line [10:23:51]line [10:23:51]line [10:23:51]written 0, free lines is 3287 [10:23:51]MH_Cut [10:23:51]Write to MH i2c: D1 01 00 28 2A 01 24 [10:23:51]Write i2c OK [10:23:51]MH_I2C_Read... [10:23:51]Read from MH i2c: D1 [10:23:51]MH_I2C_Read... [10:23:51]Read from MH i2c: D1 01 00 [10:23:51]MH_I2C_Read... [10:23:51]Read from MH i2c: D1 01 00 28 2A 00 23 [10:23:51]Write to MH i2c: 01 00 00 29 2A 53 [10:23:51]Write i2c OK [10:23:51]MH_I2C_Read... [10:23:52]OFD Sender: No OFD packet to send [10:23:52]*** Cut start [10:23:52]*** Purtial cut [10:23:52]*** CUTSNS_PIN = 0 [10:23:52]*** Stage 1: CUTSNS_PIN = 1 [10:23:54]Read from MH i2c: 01 [10:23:54]MH_I2C_Read... [10:23:54]*** Stop cut motor [10:23:54]*** Cut end [10:23:54]Read from MH i2c: 01 07 00 [10:23:54]MH_I2C_Read... [10:23:54]Read from MH i2c: 01 07 00 29 2A 00 00 00 00 00 FF 0F 68 [10:23:54]process_action close_receipt done [10:23:54]requested_data is exist [10:23:54]produce_requested_data [10:23:54]requested_item fm.sn is exist - process it [10:23:54]wFMCommunicate request_size=4 [10:23:54]MH_SAM_APDU [10:23:54]CAPDU: 80 11 00 00 [10:23:54]Write to MH i2c: E2 08 00 2A 2A 80 11 00 00 00 00 00 00 CE [10:23:54]Write i2c OK [10:23:54]MH_I2C_Read... [10:23:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:23:54]Read from MH i2c: E2 [10:23:54]MH_I2C_Read... [10:23:54]Read from MH i2c: E2 17 00 [10:23:54]MH_I2C_Read... [10:23:54]Read from MH i2c: E2 17 00 2A 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 24 [10:23:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [10:23:54]wFMCommunicate OK [10:23:54]requested_item fd.num is exist - process it [10:23:54]SAM_PROTO_GetFieldsCounters [10:23:54]wFMCommunicate request_size=4 [10:23:54]MH_SAM_APDU [10:23:54]CAPDU: 80 13 00 00 [10:23:54]Write to MH i2c: E2 08 00 2B 2A 80 13 00 00 00 00 00 00 D1 [10:23:54]Write i2c OK [10:23:54]MH_I2C_Read... [10:23:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:23:54]Read from MH i2c: E2 [10:23:54]MH_I2C_Read... [10:23:54]Read from MH i2c: E2 62 00 [10:23:54]MH_I2C_Read... [10:23:54]Read from MH i2c: E2 62 00 2B 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 D4 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 A5 [10:23:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 D4 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:23:54]wFMCommunicate OK [10:23:54]SAM_PROTO_GetFieldsCounters done [10:23:54]requested_item shift.num is exist - process it [10:23:54]requested_item shift.opened is exist - process it [10:23:54]req_shift_opened [10:23:54]FM_GetShiftState [10:23:54]SAM_PROTO_GetShiftState [10:23:54]wFMCommunicate request_size=4 [10:23:54]MH_SAM_APDU [10:23:54]CAPDU: 80 13 01 00 [10:23:54]Write to MH i2c: E2 08 00 2C 2A 80 13 01 00 00 00 00 00 D3 [10:23:54]Write i2c OK [10:23:54]MH_I2C_Read... [10:23:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:23:54]Read from MH i2c: E2 [10:23:54]MH_I2C_Read... [10:23:54]Read from MH i2c: E2 0E 00 [10:23:54]MH_I2C_Read... [10:23:54]Read from MH i2c: E2 0E 00 2C 2A 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 3A [10:23:54]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [10:23:54]wFMCommunicate OK [10:23:54]SAM_PROTO_GetShiftState done [10:23:54]FM_GetShiftState done [10:23:54]req_shift_opened done [10:23:54]requested_item shift.open_date is exist - process it [10:23:54]req_shift_open_date [10:23:54]req_shift_open_date done [10:23:54]produce_requested_data done [10:23:54]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67796,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [10:23:54]process_action_free close_receipt [10:23:54]json_value_free [10:23:54]json_value_free done [10:23:54]process_json_proto returns [10:23:54]Send response to host [10:23:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67796,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [10:23:54]free response buf [10:23:54]execute_script done [10:23:54]execute_script returns [10:23:54]free content buf [10:23:54]Sock 9.Close socket [10:23:54]Sock 9.Thread stoped [10:23:57]OFD Sender: No OFD packet to send [10:24:02]OFD Sender: No OFD packet to send [10:24:07]OFD Sender: No OFD packet to send [10:24:12]OFD Sender: No OFD packet to send [10:24:17]OFD Sender: No OFD packet to send [10:24:22]OFD Sender: No OFD packet to send [10:24:27]OFD Sender: No OFD packet to send [10:24:32]OFD Sender: No OFD packet to send [10:24:37]OFD Sender: No OFD packet to send [10:24:42]OFD Sender: No OFD packet to send [10:24:47]OFD Sender: No OFD packet to send [10:24:52]OFD Sender: No OFD packet to send [10:24:57]OFD Sender: No OFD packet to send [10:25:02]OFD Sender: No OFD packet to send [10:25:07]OFD Sender: No OFD packet to send [10:25:12]OFD Sender: No OFD packet to send [10:25:17]OFD Sender: No OFD packet to send [10:25:22]OFD Sender: No OFD packet to send [10:25:27]OFD Sender: No OFD packet to send [10:25:32]OFD Sender: No OFD packet to send [10:25:37]OFD Sender: No OFD packet to send [10:25:42]OFD Sender: No OFD packet to send [10:25:47]OFD Sender: No OFD packet to send [10:25:52]OFD Sender: No OFD packet to send [10:25:57]OFD Sender: No OFD packet to send [10:26:02]OFD Sender: No OFD packet to send [10:26:07]OFD Sender: No OFD packet to send [10:26:12]OFD Sender: No OFD packet to send [10:26:17]OFD Sender: No OFD packet to send [10:26:22]OFD Sender: No OFD packet to send [10:26:27]OFD Sender: No OFD packet to send [10:26:32]OFD Sender: No OFD packet to send [10:26:37]OFD Sender: No OFD packet to send [10:26:42]OFD Sender: No OFD packet to send [10:26:47]OFD Sender: No OFD packet to send [10:26:52]OFD Sender: No OFD packet to send [10:26:57]OFD Sender: No OFD packet to send [10:27:02]OFD Sender: No OFD packet to send [10:27:07]OFD Sender: No OFD packet to send [10:27:12]OFD Sender: No OFD packet to send [10:27:17]OFD Sender: No OFD packet to send [10:27:22]OFD Sender: No OFD packet to send [10:27:22]accept exits with 7 [10:27:22]New connection [10:27:22]New thread 3066608996 created [10:27:22]Thread 3066752356 joined [10:27:22]Waiting for new connection... [10:27:22] Sock 7.Parse request [10:27:22]Sock 7.Check first char [10:27:22]Sock 7.First char is OK [10:27:22]request: POST /json_proto HTTP/1.0 [10:27:22]Method: POST [10:27:22]URL: /json_proto [10:27:22]Method is POST - this is cgi request [10:27:22]url: /json_proto [10:27:22]query_string will be loaded in cgi processing [10:27:22]execute_cgi json_proto POST (null) [10:27:22]execute_cgi path=json_proto method=POST [10:27:22]POST find Content-Length [10:27:22]Host: 172.17.41.195:8080 [10:27:22]Content-Length: 1174 [10:27:22]Content-Type: application/json [10:27:22] [10:27:22]POST finish read [10:27:22]Found Content-Length = 1174 [10:27:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0440\u0441\u0442\u0430\u043D\u0431\u0435\u043A\u043E\u0432 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)507998\u000A18.05.2024 10:09\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 43\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 27.320 x 66.80\u000A\u0418\u0422\u041E\u0413: 1824.98\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30128260\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:27:22]execute_script... [10:27:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0440\u0441\u0442\u0430\u043D\u0431\u0435\u043A\u043E\u0432 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)507998\u000A18.05.2024 10:09\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 43\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 27.320 x 66.80\u000A\u0418\u0422\u041E\u0413: 1824.98\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30128260\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:27:22]POST & json_proto [10:27:22]process_json_proto [10:27:22]json parsed OK: [10:27:22]protocol is kg_v1.0 [10:27:22]action value=print_text [10:27:22]process_action print_text [10:27:22]cmd_print_text [10:27:22]ExternCall_PrintAddStr [10:27:22]wPrintStart [10:27:22]Write to MH i2c: 01 00 00 2D 2A 57 [10:27:22]Write i2c OK [10:27:22]MH_I2C_Read... [10:27:22]Read from MH i2c: 01 [10:27:22]MH_I2C_Read... [10:27:22]Read from MH i2c: 01 07 00 [10:27:22]MH_I2C_Read... [10:27:22]Read from MH i2c: 01 07 00 2D 2A 00 00 00 00 00 FF 0F 6C [10:27:22]RasterBufferAndPrint [10:27:22]line *****ТОВАРНЫЙ ЧЕК***** [10:27:22]line АЗС-91 [10:27:22]line Партнер нефть [10:27:22]line 02508201610067 [10:27:22]line Кассир : Арстанбеков Н. [10:27:22]line Счет N : (1)507998 [10:27:22]line 18.05.2024 10:09 [10:27:22]line ПРОДАЖА [10:27:22]line ТРК (МРК, ГНК): 43 [10:27:22]line Вид ГСМ : 2710124130 [10:27:22]line Аи-92-К-5 [10:27:22]line 27.320 x 66.80 [10:27:22]line ИТОГ: 1824.98 [10:27:22]line Тип оплаты: Талоны: ТК ГПНА Online [10:27:22]line 30128260 [10:27:22]line ______________________ [10:27:22]line (подпись) [10:27:22]written 0, free lines is 4095 [10:27:22]Write to MH i2c: 01 00 00 41 2A 6B [10:27:22]Write i2c OK [10:27:22]MH_I2C_Read... [10:27:22]Read from MH i2c: 01 [10:27:22]MH_I2C_Read... [10:27:22]Read from MH i2c: 01 07 00 [10:27:22]MH_I2C_Read... [10:27:22]Read from MH i2c: 01 07 00 41 2A 00 00 00 00 00 12 0E 92 [10:27:22]RasterBufferAndPrint [10:27:22]line [10:27:22]line [10:27:22]line [10:27:22]line [10:27:22]line [10:27:22]written 0, free lines is 3604 [10:27:22]MH_Cut [10:27:22]Write to MH i2c: D1 01 00 48 2A 01 44 [10:27:22]Write i2c OK [10:27:22]MH_I2C_Read... [10:27:22]Read from MH i2c: D1 [10:27:22]MH_I2C_Read... [10:27:22]Read from MH i2c: D1 01 00 [10:27:22]MH_I2C_Read... [10:27:22]Read from MH i2c: D1 01 00 48 2A 00 43 [10:27:22]Write to MH i2c: 01 00 00 49 2A 73 [10:27:22]Write i2c OK [10:27:22]MH_I2C_Read... [10:27:23]*** Cut start [10:27:23]*** Purtial cut [10:27:23]*** Stage 1: CUTSNS_PIN = 1 [10:27:23]Read from MH i2c: 01 [10:27:23]MH_I2C_Read... [10:27:23]Read from MH i2c: 01 07 00 [10:27:23]MH_I2C_Read... [10:27:23]*** Stop cut motor [10:27:23]*** Cut end [10:27:23]Read from MH i2c: 01 07 00 49 2A 00 00 00 00 00 FF 0F 88 [10:27:23]process_action print_text done [10:27:23]requested_data is exist [10:27:23]produce_requested_data [10:27:23]requested_item fm.sn is exist - process it [10:27:23]wFMCommunicate request_size=4 [10:27:23]MH_SAM_APDU [10:27:23]CAPDU: 80 11 00 00 [10:27:23]Write to MH i2c: E2 08 00 4A 2A 80 11 00 00 00 00 00 00 EE [10:27:23]Write i2c OK [10:27:23]MH_I2C_Read... [10:27:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:27:23]Read from MH i2c: E2 [10:27:23]MH_I2C_Read... [10:27:23]Read from MH i2c: E2 17 00 [10:27:23]MH_I2C_Read... [10:27:23]Read from MH i2c: E2 17 00 4A 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 44 [10:27:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [10:27:23]wFMCommunicate OK [10:27:23]requested_item fd.num is exist - process it [10:27:23]SAM_PROTO_GetFieldsCounters [10:27:23]wFMCommunicate request_size=4 [10:27:23]MH_SAM_APDU [10:27:23]CAPDU: 80 13 00 00 [10:27:23]Write to MH i2c: E2 08 00 4B 2A 80 13 00 00 00 00 00 00 F1 [10:27:23]Write i2c OK [10:27:23]MH_I2C_Read... [10:27:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:27:23]Read from MH i2c: E2 [10:27:23]MH_I2C_Read... [10:27:23]Read from MH i2c: E2 62 00 [10:27:23]MH_I2C_Read... [10:27:23]Read from MH i2c: E2 62 00 4B 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 D4 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 C5 [10:27:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 D4 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:27:23]wFMCommunicate OK [10:27:23]SAM_PROTO_GetFieldsCounters done [10:27:23]requested_item shift.num is exist - process it [10:27:23]requested_item shift.opened is exist - process it [10:27:23]req_shift_opened [10:27:23]FM_GetShiftState [10:27:23]SAM_PROTO_GetShiftState [10:27:23]wFMCommunicate request_size=4 [10:27:23]MH_SAM_APDU [10:27:23]CAPDU: 80 13 01 00 [10:27:23]Write to MH i2c: E2 08 00 4C 2A 80 13 01 00 00 00 00 00 F3 [10:27:23]Write i2c OK [10:27:23]MH_I2C_Read... [10:27:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:27:23]Read from MH i2c: E2 [10:27:23]MH_I2C_Read... [10:27:23]Read from MH i2c: E2 0E 00 [10:27:23]MH_I2C_Read... [10:27:23]Read from MH i2c: E2 0E 00 4C 2A 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 5A [10:27:23]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [10:27:23]wFMCommunicate OK [10:27:23]SAM_PROTO_GetShiftState done [10:27:23]FM_GetShiftState done [10:27:23]req_shift_opened done [10:27:23]requested_item shift.open_date is exist - process it [10:27:23]req_shift_open_date [10:27:23]req_shift_open_date done [10:27:23]produce_requested_data done [10:27:23]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67796,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [10:27:23]process_action_free print_text [10:27:23]json_value_free [10:27:23]json_value_free done [10:27:23]process_json_proto returns [10:27:23]Send response to host [10:27:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67796,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [10:27:23]free response buf [10:27:23]execute_script done [10:27:23]execute_script returns [10:27:23]free content buf [10:27:23]Sock 7.Close socket [10:27:23]Sock 7.Thread stoped [10:27:27]OFD Sender: No OFD packet to send [10:27:32]OFD Sender: No OFD packet to send [10:27:37]OFD Sender: No OFD packet to send [10:27:42]OFD Sender: No OFD packet to send [10:27:47]OFD Sender: No OFD packet to send [10:27:52]OFD Sender: No OFD packet to send [10:27:57]OFD Sender: No OFD packet to send [10:28:02]OFD Sender: No OFD packet to send [10:28:07]OFD Sender: No OFD packet to send [10:28:12]OFD Sender: No OFD packet to send [10:28:17]OFD Sender: No OFD packet to send [10:28:22]OFD Sender: No OFD packet to send [10:28:27]OFD Sender: No OFD packet to send [10:28:32]OFD Sender: No OFD packet to send [10:28:37]OFD Sender: No OFD packet to send [10:28:42]OFD Sender: No OFD packet to send [10:28:47]OFD Sender: No OFD packet to send [10:28:52]OFD Sender: No OFD packet to send [10:28:57]OFD Sender: No OFD packet to send [10:29:02]OFD Sender: No OFD packet to send [10:29:07]OFD Sender: No OFD packet to send [10:29:12]OFD Sender: No OFD packet to send [10:29:17]OFD Sender: No OFD packet to send [10:29:22]OFD Sender: No OFD packet to send [10:29:27]OFD Sender: No OFD packet to send [10:29:32]OFD Sender: No OFD packet to send [10:29:37]OFD Sender: No OFD packet to send [10:29:40]accept exits with 9 [10:29:40]New connection [10:29:40]New thread 3066752356 created [10:29:40]Thread 3066608996 joined [10:29:40]Waiting for new connection... [10:29:40] Sock 9.Parse request [10:29:40]Sock 9.Check first char [10:29:40]Sock 9.First char is OK [10:29:40]request: POST /json_proto HTTP/1.0 [10:29:40]Method: POST [10:29:40]URL: /json_proto [10:29:40]Method is POST - this is cgi request [10:29:40]url: /json_proto [10:29:40]query_string will be loaded in cgi processing [10:29:40]execute_cgi json_proto POST (null) [10:29:40]execute_cgi path=json_proto method=POST [10:29:40]POST find Content-Length [10:29:40]Host: 172.17.41.195:8080 [10:29:40]Content-Length: 800 [10:29:40]Content-Type: application/json [10:29:40] [10:29:40]POST finish read [10:29:40]Found Content-Length = 800 [10:29:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507999", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 13.390, "sum" : 1000.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.23 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:29:40]execute_script... [10:29:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507999", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 13.390, "sum" : 1000.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.23 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:29:40]POST & json_proto [10:29:40]process_json_proto [10:29:40]json parsed OK: [10:29:40]protocol is kg_v1.0 [10:29:40]action value=close_receipt [10:29:40]process_action close_receipt [10:29:40]cmd_close_receipt [10:29:40]MH_GetDate [10:29:40]Write to MH i2c: F0 00 00 4D 2A 66 [10:29:40]Write i2c OK [10:29:40]MH_I2C_Read... [10:29:40]Read from MH i2c: F0 [10:29:40]MH_I2C_Read... [10:29:40]Read from MH i2c: F0 09 00 [10:29:40]MH_I2C_Read... [10:29:40]Read from MH i2c: F0 09 00 4D 2A 00 19 83 48 66 FC 21 6F 64 A9 [10:29:40]GetLastDocTimeStamp 1716027834 [10:29:40]current date 1716028185 [10:29:40]FM_GetShiftState [10:29:40]SAM_PROTO_GetShiftState [10:29:40]wFMCommunicate request_size=4 [10:29:40]MH_SAM_APDU [10:29:40]CAPDU: 80 13 01 00 [10:29:40]Write to MH i2c: E2 08 00 4E 2A 80 13 01 00 00 00 00 00 F5 [10:29:40]Write i2c OK [10:29:40]MH_I2C_Read... [10:29:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:29:40]Read from MH i2c: E2 [10:29:40]MH_I2C_Read... [10:29:40]Read from MH i2c: E2 0E 00 [10:29:40]MH_I2C_Read... [10:29:40]Read from MH i2c: E2 0E 00 4E 2A 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 5C [10:29:40]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [10:29:40]wFMCommunicate OK [10:29:40]SAM_PROTO_GetShiftState done [10:29:40]FM_GetShiftState done [10:29:40]opened in 1715991483 [10:29:40]opened+sec_in_day 1716077883 [10:29:40]quantity*price = 100023 [10:29:40]sum+1 = 100024 [10:29:40]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.23 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.23 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 36 18.05.2024 10:29 Смена: 359 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67797 ФПД: 12503213762296 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T102945&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67797&fm=12503213762296&tin=02508201610067®Number=0000000000091845&sum=100023 [10:29:41]StoreToDocumentArchive [10:29:41]shift 359 fd 67797 [10:29:41]save to /storage/0359/doc_00067797 [10:29:41]save last doc name /storage/0359/doc_00067797 to /storage/kkm_last_doc_name [10:29:41]save OK [10:29:41]Clear old archive folders... [10:29:41]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:29:41]tlvbuf is 01B4A2B0 [10:29:41]SAM_PROTO_ClearQueue [10:29:41]wFMCommunicate request_size=4 [10:29:41]MH_SAM_APDU [10:29:41]CAPDU: 80 09 00 00 [10:29:41]Write to MH i2c: E2 08 00 5B 2A 80 09 00 00 00 00 00 00 F7 [10:29:41]Write i2c OK [10:29:41]MH_I2C_Read... [10:29:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:29:41]Read from MH i2c: E2 [10:29:41]MH_I2C_Read... [10:29:41]Read from MH i2c: E2 03 00 [10:29:41]MH_I2C_Read... [10:29:41]Read from MH i2c: E2 03 00 5B 2A 00 90 00 F9 [10:29:41]RAPDU: 90 00 [10:29:41]wFMCommunicate OK [10:29:41]SAM_PROTO_ClearQueue done [10:29:41]KKMCreateOFDPacket [10:29:41]OFDProtocolAddRootSTLVToBuf [10:29:41]FM_MakeSignedData [10:29:41]FM_MakeSignedData [10:29:41]SAM_PROTO_SignData [10:29:41]wFMCommunicate request_size=4 [10:29:41]MH_SAM_APDU [10:29:41]CAPDU: 80 0D 01 02 [10:29:41]Write to MH i2c: E2 08 00 5C 2A 80 0D 01 02 00 00 00 00 FF [10:29:41]Write i2c OK [10:29:41]MH_I2C_Read... [10:29:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:29:41]Read from MH i2c: E2 [10:29:41]MH_I2C_Read... [10:29:41]Read from MH i2c: E2 03 00 [10:29:41]MH_I2C_Read... [10:29:41]Read from MH i2c: E2 03 00 5C 2A 00 90 00 FA [10:29:41]RAPDU: 90 00 [10:29:41]wFMCommunicate OK [10:29:41]wFMCommunicate request_size=255 [10:29:41]MH_SAM_APDU [10:29:41]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4E 34 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 B7 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B7 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B7 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 19 83 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 D5 08 01 00 35 04 06 00 0B 5F 21 9D [10:29:41]Write to MH i2c: E2 02 01 5D 2A 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4E 34 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 B7 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B7 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B7 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 19 83 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 D5 08 01 00 35 04 06 00 0B 5F 21 9D 00 00 E3 [10:29:41]Write i2c OK [10:29:41]MH_I2C_Read... [10:29:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:29:41]Read from MH i2c: E2 [10:29:41]MH_I2C_Read... [10:29:41]Read from MH i2c: E2 03 00 [10:29:41]MH_I2C_Read... [10:29:41]Read from MH i2c: E2 03 00 5D 2A 00 90 00 FB [10:29:41]RAPDU: 90 00 [10:29:41]wFMCommunicate OK [10:29:41]wFMCommunicate request_size=7 [10:29:41]MH_SAM_APDU [10:29:41]CAPDU: 80 0D 02 02 02 66 F8 [10:29:41]Write to MH i2c: E2 0A 00 5E 2A 80 0D 02 02 02 00 66 F8 00 00 64 [10:29:41]Write i2c OK [10:29:41]MH_I2C_Read... [10:29:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:29:41]Read from MH i2c: E2 [10:29:41]MH_I2C_Read... [10:29:41]Read from MH i2c: E2 03 00 [10:29:41]MH_I2C_Read... [10:29:41]Read from MH i2c: E2 03 00 5E 2A 00 90 00 FC [10:29:41]RAPDU: 90 00 [10:29:41]wFMCommunicate OK [10:29:41]wFMCommunicate request_size=4 [10:29:41]MH_SAM_APDU [10:29:41]CAPDU: 80 0D 03 02 [10:29:41]Write to MH i2c: E2 08 00 5F 2A 80 0D 03 02 00 00 00 00 04 [10:29:41]Write i2c OK [10:29:41]MH_I2C_Read... [10:29:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:29:42]Read from MH i2c: E2 [10:29:42]MH_I2C_Read... [10:29:42]Read from MH i2c: E2 0B 00 [10:29:42]MH_I2C_Read... [10:29:42]Read from MH i2c: E2 0B 00 5F 2A 00 78 A7 44 90 F3 9E E6 26 90 00 95 [10:29:42]RAPDU: 78 A7 44 90 F3 9E E6 26 90 00 [10:29:42]wFMCommunicate OK [10:29:42]SAM_PROTO_SignData done [10:29:42]FM_MakeSignedData done [10:29:42]CreateOFDProtocolMessage [10:29:42]wFMCommunicate request_size=4 [10:29:42]MH_SAM_APDU [10:29:42]CAPDU: 80 11 00 00 [10:29:42]Write to MH i2c: E2 08 00 60 2A 80 11 00 00 00 00 00 00 04 [10:29:42]Write i2c OK [10:29:42]MH_I2C_Read... [10:29:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:29:42]Read from MH i2c: E2 [10:29:42]MH_I2C_Read... [10:29:42]Read from MH i2c: E2 17 00 [10:29:42]MH_I2C_Read... [10:29:42]Read from MH i2c: E2 17 00 60 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 5A [10:29:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [10:29:42]wFMCommunicate OK [10:29:42]CreateOFDProtocolMessage done [10:29:42]OFDSenderStorePacket 67797 [10:29:42]StoreOFDPacket docnum=67797 [10:29:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 1E E9 04 01 0D 03 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4E 34 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 B7 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B7 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B7 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 19 83 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 D5 08 01 00 35 04 06 00 0B 5F 21 9D 66 F8 78 A7 44 90 F3 9E E6 26 [10:29:42]CheckFolder [10:29:42]dirname=/storage/ofd_packets [10:29:42]CheckFolder done [10:29:42]ProducePacketName [10:29:42]name=ofd_packets/00067797 [10:29:42]NVStorageSaveData ofd_packets/00067797 [10:29:42]File name is /storage/ofd_packets/00067797 [10:29:42]Write 298 bytes [10:29:42]NVStorageSaveData done [10:29:42]OFDSenderStorePacket done [10:29:42]KKMCreateOFDPacket done [10:29:42]NVStorageSaveData kkm_last_timestamp [10:29:42]File name is /storage/kkm_last_timestamp [10:29:42]Write 4 bytes [10:29:42]NVStorageSaveData done [10:29:42]ExternCall_PrintAddStr [10:29:42]wPrintStart [10:29:42]Write to MH i2c: 01 00 00 61 2A 8B [10:29:42]Write i2c OK [10:29:42]MH_I2C_Read... [10:29:42]Read from MH i2c: 01 [10:29:42]MH_I2C_Read... [10:29:42]Read from MH i2c: 01 07 00 [10:29:42]MH_I2C_Read... [10:29:42]Read from MH i2c: 01 07 00 61 2A 00 00 00 00 00 FF 0F A0 [10:29:42]RasterBufferAndPrint [10:29:42]line Счет N : (1)507999 [10:29:42]line ИНН: 02508201610067 [10:29:42]line Контрольно-Кассовый Чек [10:29:42]line ПРОДАЖА [10:29:42]line ТРК (МРК, ГНК) : 41 [10:29:42]line Товар: 2710194210 [10:29:42]line ДТ-К-5 [10:29:42]line 13.390 * 74.70 [10:29:42]line = 1000.23 [10:29:42]line НДС 12% НСП 1% [10:29:42]line > о реализуемом товаре [10:29:42]line ИТОГО: 1000.23 [10:29:42]line НСП 1% : 8.85 [10:29:42]line НДС 12% : 106.22 [10:29:42]line Наличными: 0.00 [10:29:42]line Безнал.: 1000.23 [10:29:42]line Место: АЗС № 91 "Партнер Нефть" [10:29:42]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [10:29:42]line СНО: Общий режим [10:29:42]line Чек 36 18.05.2024 10:29 [10:29:42]line Смена: 359 ФФД: 1.0 [10:29:42]line ЗНМ: 0300000119 [10:29:42]line РНМ: 0000000000091845 [10:29:42]line Версия ККМ: 001 [10:29:42]line Платежная система: O! деньги [10:29:42]line ФМ: 0000000000871829 [10:29:42]line ФД: 67797 [10:29:42]line ФПД: 12503213762296 [10:29:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T102945&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67797&fm=12503213762296&tin=02508201610067®Number=0000000000091845&sum=100023 [10:29:42]OFD Sender: Processing packet 67797 [packets to send 35, broken 34] [10:29:42]ProducePacketName [10:29:42]name=ofd_packets/00067797 [10:29:42]OFD Sender: To server: pG, [10:29:42]CommunicateWithHost lk.salyk.kg:30040 [10:29:42]ConnectInit lk.salyk.kg [10:29:42]written 0, free lines is 4095 [10:29:42]Connected sock=10 [10:29:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 1E E9 04 01 0D 03 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4E 34 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 B7 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B7 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B7 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 19 83 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 D5 08 01 00 35 04 06 00 0B 5F 21 9D 66 F8 78 A7 44 90 F3 9E E6 26 [10:29:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 71 25 47 00 4D B2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 D5 08 01 00 F4 03 04 00 EE 2A 48 66 B6 04 01 00 00 B6 3D 40 1F 21 30 C0 49 [10:29:42]CommunicateWithHost err = 0 [10:29:42]CheckOFDResponse [10:29:42]1017 (14) - 77093643461234 [10:29:42]1041 (16) - 0000000000871829 [10:29:42]1040 (4) - 67797 [10:29:42]1012 (4) - 18.05.2024 04:13 [10:29:42]1206 (1) - 0 [10:29:42]OFD Sender: Remove packet 67797 [10:29:42]ProducePacketName [10:29:42]name=ofd_packets/00067797 [10:29:42]NVStorageDeleteData [10:29:42]Write to MH i2c: 01 00 00 8A 2A B4 [10:29:42]Write i2c OK [10:29:42]MH_I2C_Read... [10:29:42]Read from MH i2c: 01 [10:29:42]MH_I2C_Read... [10:29:42]Read from MH i2c: 01 07 00 [10:29:42]MH_I2C_Read... [10:29:42]Read from MH i2c: 01 07 00 8A 2A 00 00 00 00 00 D8 0C 9F [10:29:42]RasterBufferAndPrint [10:29:42]line [10:29:42]line [10:29:42]line [10:29:42]line [10:29:42]line [10:29:42]written 0, free lines is 3296 [10:29:42]MH_Cut [10:29:42]Write to MH i2c: D1 01 00 91 2A 01 8D [10:29:42]Write i2c OK [10:29:42]MH_I2C_Read... [10:29:42]Read from MH i2c: D1 [10:29:42]MH_I2C_Read... [10:29:42]Read from MH i2c: D1 01 00 [10:29:42]MH_I2C_Read... [10:29:42]Read from MH i2c: D1 01 00 91 2A 00 8C [10:29:42]Write to MH i2c: 01 00 00 92 2A BC [10:29:42]Write i2c OK [10:29:42]MH_I2C_Read... [10:29:43]OFD Sender: No OFD packet to send [10:29:43]*** Cut start [10:29:43]*** Purtial cut [10:29:43]*** CUTSNS_PIN = 0 [10:29:43]*** Stage 1: CUTSNS_PIN = 1 [10:29:45]Read from MH i2c: 01 [10:29:45]MH_I2C_Read... [10:29:45]*** Stop cut motor [10:29:45]*** Cut end [10:29:45]Read from MH i2c: 01 07 00 [10:29:45]MH_I2C_Read... [10:29:45]Read from MH i2c: 01 07 00 92 2A 00 00 00 00 00 FF 0F D1 [10:29:45]process_action close_receipt done [10:29:45]requested_data is exist [10:29:45]produce_requested_data [10:29:45]requested_item fm.sn is exist - process it [10:29:45]wFMCommunicate request_size=4 [10:29:45]MH_SAM_APDU [10:29:45]CAPDU: 80 11 00 00 [10:29:45]Write to MH i2c: E2 08 00 93 2A 80 11 00 00 00 00 00 00 37 [10:29:45]Write i2c OK [10:29:45]MH_I2C_Read... [10:29:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:29:45]Read from MH i2c: E2 [10:29:45]MH_I2C_Read... [10:29:45]Read from MH i2c: E2 17 00 [10:29:45]MH_I2C_Read... [10:29:45]Read from MH i2c: E2 17 00 93 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 8D [10:29:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [10:29:45]wFMCommunicate OK [10:29:45]requested_item fd.num is exist - process it [10:29:45]SAM_PROTO_GetFieldsCounters [10:29:45]wFMCommunicate request_size=4 [10:29:45]MH_SAM_APDU [10:29:45]CAPDU: 80 13 00 00 [10:29:45]Write to MH i2c: E2 08 00 94 2A 80 13 00 00 00 00 00 00 3A [10:29:45]Write i2c OK [10:29:45]MH_I2C_Read... [10:29:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:29:45]Read from MH i2c: E2 [10:29:45]MH_I2C_Read... [10:29:45]Read from MH i2c: E2 62 00 [10:29:45]MH_I2C_Read... [10:29:45]Read from MH i2c: E2 62 00 94 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 D5 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 12 [10:29:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 D5 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:29:45]wFMCommunicate OK [10:29:45]SAM_PROTO_GetFieldsCounters done [10:29:45]requested_item shift.num is exist - process it [10:29:45]requested_item shift.opened is exist - process it [10:29:45]req_shift_opened [10:29:45]FM_GetShiftState [10:29:45]SAM_PROTO_GetShiftState [10:29:45]wFMCommunicate request_size=4 [10:29:45]MH_SAM_APDU [10:29:45]CAPDU: 80 13 01 00 [10:29:45]Write to MH i2c: E2 08 00 95 2A 80 13 01 00 00 00 00 00 3C [10:29:45]Write i2c OK [10:29:45]MH_I2C_Read... [10:29:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:29:45]Read from MH i2c: E2 [10:29:45]MH_I2C_Read... [10:29:45]Read from MH i2c: E2 0E 00 [10:29:45]MH_I2C_Read... [10:29:45]Read from MH i2c: E2 0E 00 95 2A 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 A3 [10:29:45]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [10:29:45]wFMCommunicate OK [10:29:45]SAM_PROTO_GetShiftState done [10:29:45]FM_GetShiftState done [10:29:45]req_shift_opened done [10:29:45]requested_item shift.open_date is exist - process it [10:29:45]req_shift_open_date [10:29:45]req_shift_open_date done [10:29:45]produce_requested_data done [10:29:45]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67797,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [10:29:45]process_action_free close_receipt [10:29:45]json_value_free [10:29:45]json_value_free done [10:29:45]process_json_proto returns [10:29:45]Send response to host [10:29:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67797,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [10:29:45]free response buf [10:29:45]execute_script done [10:29:45]execute_script returns [10:29:45]free content buf [10:29:45]Sock 9.Close socket [10:29:45]Sock 9.Thread stoped [10:29:46]accept exits with 7 [10:29:46]New connection [10:29:46]New thread 3066608996 created [10:29:46]Thread 3066752356 joined [10:29:46]Waiting for new connection... [10:29:46] Sock 7.Parse request [10:29:46]Sock 7.Check first char [10:29:46]Sock 7.First char is OK [10:29:46]request: POST /json_proto HTTP/1.0 [10:29:46]Method: POST [10:29:46]URL: /json_proto [10:29:46]Method is POST - this is cgi request [10:29:46]url: /json_proto [10:29:46]query_string will be loaded in cgi processing [10:29:46]execute_cgi json_proto POST (null) [10:29:46]execute_cgi path=json_proto method=POST [10:29:46]POST find Content-Length [10:29:46]Host: 172.17.41.195:8080 [10:29:46]Content-Length: 1208 [10:29:46]Content-Type: application/json [10:29:46] [10:29:46]POST finish read [10:29:46]Found Content-Length = 1208 [10:29:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0440\u0441\u0442\u0430\u043D\u0431\u0435\u043A\u043E\u0432 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)508000\u000A18.05.2024 10:12\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 11.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 821.70\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:29:46]execute_script... [10:29:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0440\u0441\u0442\u0430\u043D\u0431\u0435\u043A\u043E\u0432 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)508000\u000A18.05.2024 10:12\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 11.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 821.70\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:29:46]POST & json_proto [10:29:46]process_json_proto [10:29:46]json parsed OK: [10:29:46]protocol is kg_v1.0 [10:29:46]action value=print_text [10:29:46]process_action print_text [10:29:46]cmd_print_text [10:29:46]ExternCall_PrintAddStr [10:29:46]wPrintStart [10:29:46]Write to MH i2c: 01 00 00 96 2A C0 [10:29:46]Write i2c OK [10:29:46]MH_I2C_Read... [10:29:46]Read from MH i2c: 01 [10:29:46]MH_I2C_Read... [10:29:46]Read from MH i2c: 01 07 00 [10:29:46]MH_I2C_Read... [10:29:46]Read from MH i2c: 01 07 00 96 2A 00 00 00 00 00 FF 0F D5 [10:29:46]RasterBufferAndPrint [10:29:46]line *****ТОВАРНЫЙ ЧЕК***** [10:29:46]line АЗС-91 [10:29:46]line Партнер нефть [10:29:46]line 02508201610067 [10:29:46]line Кассир : Арстанбеков Н. [10:29:46]line Счет N : (1)508000 [10:29:46]line 18.05.2024 10:12 [10:29:46]line ПРОДАЖА [10:29:46]line ТРК (МРК, ГНК): 21 [10:29:46]line Вид ГСМ : 2710194210 [10:29:46]line ДТ-К-5 [10:29:46]line 11.000 x 74.70 [10:29:46]line ИТОГ: 821.70 [10:29:46]line Тип оплаты: Талоны: Топливная Карта [10:29:46]line 02750 [10:29:46]line ______________________ [10:29:46]line (подпись) [10:29:46]written 0, free lines is 4095 [10:29:46]Write to MH i2c: 01 00 00 AA 2A D4 [10:29:46]Write i2c OK [10:29:46]MH_I2C_Read... [10:29:46]Read from MH i2c: 01 [10:29:46]MH_I2C_Read... [10:29:46]Read from MH i2c: 01 07 00 [10:29:46]MH_I2C_Read... [10:29:46]Read from MH i2c: 01 07 00 AA 2A 00 00 00 00 00 0E 0E F7 [10:29:46]RasterBufferAndPrint [10:29:46]line [10:29:46]line [10:29:46]line [10:29:46]line [10:29:46]line [10:29:46]written 0, free lines is 3601 [10:29:46]MH_Cut [10:29:46]Write to MH i2c: D1 01 00 B1 2A 01 AD [10:29:46]Write i2c OK [10:29:46]MH_I2C_Read... [10:29:46]Read from MH i2c: D1 [10:29:46]MH_I2C_Read... [10:29:46]Read from MH i2c: D1 01 00 [10:29:46]MH_I2C_Read... [10:29:46]Read from MH i2c: D1 01 00 B1 2A 00 AC [10:29:46]Write to MH i2c: 01 00 00 B2 2A DC [10:29:46]Write i2c OK [10:29:46]MH_I2C_Read... [10:29:47]*** Cut start [10:29:47]*** Purtial cut [10:29:47]*** Stage 1: CUTSNS_PIN = 1 [10:29:47]Read from MH i2c: 01 [10:29:47]MH_I2C_Read... [10:29:47]*** Stop cut motor [10:29:47]*** Cut end [10:29:47]Read from MH i2c: 01 07 00 [10:29:47]MH_I2C_Read... [10:29:47]Read from MH i2c: 01 07 00 B2 2A 00 00 00 00 00 FF 0F F1 [10:29:47]process_action print_text done [10:29:47]requested_data is exist [10:29:47]produce_requested_data [10:29:47]requested_item fm.sn is exist - process it [10:29:47]wFMCommunicate request_size=4 [10:29:47]MH_SAM_APDU [10:29:47]CAPDU: 80 11 00 00 [10:29:47]Write to MH i2c: E2 08 00 B3 2A 80 11 00 00 00 00 00 00 57 [10:29:47]Write i2c OK [10:29:47]MH_I2C_Read... [10:29:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:29:47]Read from MH i2c: E2 [10:29:47]MH_I2C_Read... [10:29:47]Read from MH i2c: E2 17 00 [10:29:47]MH_I2C_Read... [10:29:47]Read from MH i2c: E2 17 00 B3 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 AD [10:29:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [10:29:47]wFMCommunicate OK [10:29:47]requested_item fd.num is exist - process it [10:29:47]SAM_PROTO_GetFieldsCounters [10:29:47]wFMCommunicate request_size=4 [10:29:47]MH_SAM_APDU [10:29:47]CAPDU: 80 13 00 00 [10:29:47]Write to MH i2c: E2 08 00 B4 2A 80 13 00 00 00 00 00 00 5A [10:29:47]Write i2c OK [10:29:47]MH_I2C_Read... [10:29:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:29:47]Read from MH i2c: E2 [10:29:47]MH_I2C_Read... [10:29:47]Read from MH i2c: E2 62 00 [10:29:47]MH_I2C_Read... [10:29:47]Read from MH i2c: E2 62 00 B4 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 D5 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 32 [10:29:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 D5 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:29:47]wFMCommunicate OK [10:29:47]SAM_PROTO_GetFieldsCounters done [10:29:47]requested_item shift.num is exist - process it [10:29:47]requested_item shift.opened is exist - process it [10:29:47]req_shift_opened [10:29:47]FM_GetShiftState [10:29:47]SAM_PROTO_GetShiftState [10:29:47]wFMCommunicate request_size=4 [10:29:47]MH_SAM_APDU [10:29:47]CAPDU: 80 13 01 00 [10:29:47]Write to MH i2c: E2 08 00 B5 2A 80 13 01 00 00 00 00 00 5C [10:29:47]Write i2c OK [10:29:47]MH_I2C_Read... [10:29:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:29:47]Read from MH i2c: E2 [10:29:47]MH_I2C_Read... [10:29:47]Read from MH i2c: E2 0E 00 [10:29:47]MH_I2C_Read... [10:29:47]Read from MH i2c: E2 0E 00 B5 2A 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 C3 [10:29:47]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [10:29:47]wFMCommunicate OK [10:29:47]SAM_PROTO_GetShiftState done [10:29:47]FM_GetShiftState done [10:29:47]req_shift_opened done [10:29:47]requested_item shift.open_date is exist - process it [10:29:47]req_shift_open_date [10:29:47]req_shift_open_date done [10:29:47]produce_requested_data done [10:29:47]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67797,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [10:29:47]process_action_free print_text [10:29:47]json_value_free [10:29:47]json_value_free done [10:29:47]process_json_proto returns [10:29:47]Send response to host [10:29:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67797,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [10:29:47]free response buf [10:29:47]execute_script done [10:29:47]execute_script returns [10:29:47]free content buf [10:29:47]Sock 7.Close socket [10:29:47]Sock 7.Thread stoped [10:29:48]OFD Sender: No OFD packet to send [10:29:53]OFD Sender: No OFD packet to send [10:29:58]OFD Sender: No OFD packet to send [10:30:03]OFD Sender: No OFD packet to send [10:30:08]OFD Sender: No OFD packet to send [10:30:13]OFD Sender: No OFD packet to send [10:30:18]OFD Sender: No OFD packet to send [10:30:23]OFD Sender: No OFD packet to send [10:30:28]OFD Sender: No OFD packet to send [10:30:33]OFD Sender: No OFD packet to send [10:30:38]OFD Sender: No OFD packet to send [10:30:43]OFD Sender: No OFD packet to send [10:30:48]OFD Sender: No OFD packet to send [10:30:53]OFD Sender: No OFD packet to send [10:30:58]OFD Sender: No OFD packet to send [10:31:03]OFD Sender: No OFD packet to send [10:31:08]OFD Sender: No OFD packet to send [10:31:13]OFD Sender: No OFD packet to send [10:31:18]OFD Sender: No OFD packet to send [10:31:23]OFD Sender: No OFD packet to send [10:31:28]OFD Sender: No OFD packet to send [10:31:33]OFD Sender: No OFD packet to send [10:31:38]OFD Sender: No OFD packet to send [10:31:43]OFD Sender: No OFD packet to send [10:31:48]OFD Sender: No OFD packet to send [10:31:53]OFD Sender: No OFD packet to send [10:31:58]OFD Sender: No OFD packet to send [10:32:03]OFD Sender: No OFD packet to send [10:32:08]OFD Sender: No OFD packet to send [10:32:13]OFD Sender: No OFD packet to send [10:32:18]OFD Sender: No OFD packet to send [10:32:23]OFD Sender: No OFD packet to send [10:32:28]OFD Sender: No OFD packet to send [10:32:33]OFD Sender: No OFD packet to send [10:32:38]OFD Sender: No OFD packet to send [10:32:43]OFD Sender: No OFD packet to send [10:32:48]OFD Sender: No OFD packet to send [10:32:53]OFD Sender: No OFD packet to send [10:32:58]OFD Sender: No OFD packet to send [10:33:03]OFD Sender: No OFD packet to send [10:33:08]OFD Sender: No OFD packet to send [10:33:13]OFD Sender: No OFD packet to send [10:33:18]OFD Sender: No OFD packet to send [10:33:23]OFD Sender: No OFD packet to send [10:33:28]OFD Sender: No OFD packet to send [10:33:33]OFD Sender: No OFD packet to send [10:33:38]OFD Sender: No OFD packet to send [10:33:43]OFD Sender: No OFD packet to send [10:33:48]OFD Sender: No OFD packet to send [10:33:53]OFD Sender: No OFD packet to send [10:33:58]OFD Sender: No OFD packet to send [10:34:03]OFD Sender: No OFD packet to send [10:34:08]OFD Sender: No OFD packet to send [10:34:13]OFD Sender: No OFD packet to send [10:34:18]OFD Sender: No OFD packet to send [10:34:23]OFD Sender: No OFD packet to send [10:34:28]OFD Sender: No OFD packet to send [10:34:33]OFD Sender: No OFD packet to send [10:34:38]OFD Sender: No OFD packet to send [10:34:43]OFD Sender: No OFD packet to send [10:34:48]OFD Sender: No OFD packet to send [10:34:53]OFD Sender: No OFD packet to send [10:34:58]OFD Sender: No OFD packet to send [10:35:03]OFD Sender: No OFD packet to send [10:35:08]OFD Sender: No OFD packet to send [10:35:13]OFD Sender: No OFD packet to send [10:35:18]OFD Sender: No OFD packet to send [10:35:23]OFD Sender: No OFD packet to send [10:35:28]OFD Sender: No OFD packet to send [10:35:32]accept exits with 9 [10:35:32]New connection [10:35:32]New thread 3066752356 created [10:35:32]Thread 3066608996 joined [10:35:32]Waiting for new connection... [10:35:32] Sock 9.Parse request [10:35:32]Sock 9.Check first char [10:35:32]Sock 9.First char is OK [10:35:32]request: POST /json_proto HTTP/1.0 [10:35:32]Method: POST [10:35:32]URL: /json_proto [10:35:32]Method is POST - this is cgi request [10:35:32]url: /json_proto [10:35:32]query_string will be loaded in cgi processing [10:35:32]execute_cgi json_proto POST (null) [10:35:32]execute_cgi path=json_proto method=POST [10:35:32]POST find Content-Length [10:35:32]Host: 172.17.41.195:8080 [10:35:32]Content-Length: 1208 [10:35:32]Content-Type: application/json [10:35:32] [10:35:32]POST finish read [10:35:32]Found Content-Length = 1208 [10:35:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0440\u0441\u0442\u0430\u043D\u0431\u0435\u043A\u043E\u0432 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)508001\u000A18.05.2024 10:18\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 12.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 896.40\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:35:32]execute_script... [10:35:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0440\u0441\u0442\u0430\u043D\u0431\u0435\u043A\u043E\u0432 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)508001\u000A18.05.2024 10:18\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 12.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 896.40\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:35:32]POST & json_proto [10:35:32]process_json_proto [10:35:32]json parsed OK: [10:35:32]protocol is kg_v1.0 [10:35:32]action value=print_text [10:35:32]process_action print_text [10:35:32]cmd_print_text [10:35:32]ExternCall_PrintAddStr [10:35:32]wPrintStart [10:35:32]Write to MH i2c: 01 00 00 B6 2A E0 [10:35:32]Write i2c OK [10:35:32]MH_I2C_Read... [10:35:32]Read from MH i2c: 01 [10:35:32]MH_I2C_Read... [10:35:32]Read from MH i2c: 01 07 00 [10:35:32]MH_I2C_Read... [10:35:32]Read from MH i2c: 01 07 00 B6 2A 00 00 00 00 00 FF 0F F5 [10:35:32]RasterBufferAndPrint [10:35:32]line *****ТОВАРНЫЙ ЧЕК***** [10:35:32]line АЗС-91 [10:35:32]line Партнер нефть [10:35:32]line 02508201610067 [10:35:32]line Кассир : Арстанбеков Н. [10:35:32]line Счет N : (1)508001 [10:35:32]line 18.05.2024 10:18 [10:35:32]line ПРОДАЖА [10:35:32]line ТРК (МРК, ГНК): 21 [10:35:32]line Вид ГСМ : 2710194210 [10:35:32]line ДТ-К-5 [10:35:32]line 12.000 x 74.70 [10:35:32]line ИТОГ: 896.40 [10:35:32]line Тип оплаты: Талоны: Топливная Карта [10:35:32]line 02750 [10:35:32]line ______________________ [10:35:32]line (подпись) [10:35:32]written 0, free lines is 4095 [10:35:33]Write to MH i2c: 01 00 00 CA 2A F4 [10:35:33]Write i2c OK [10:35:33]MH_I2C_Read... [10:35:33]Read from MH i2c: 01 [10:35:33]MH_I2C_Read... [10:35:33]Read from MH i2c: 01 07 00 [10:35:33]MH_I2C_Read... [10:35:33]Read from MH i2c: 01 07 00 CA 2A 00 00 00 00 00 0E 0E 17 [10:35:33]RasterBufferAndPrint [10:35:33]line [10:35:33]line [10:35:33]line [10:35:33]line [10:35:33]line [10:35:33]written 0, free lines is 3600 [10:35:33]MH_Cut [10:35:33]Write to MH i2c: D1 01 00 D1 2A 01 CD [10:35:33]Write i2c OK [10:35:33]MH_I2C_Read... [10:35:33]Read from MH i2c: D1 [10:35:33]MH_I2C_Read... [10:35:33]Read from MH i2c: D1 01 00 [10:35:33]MH_I2C_Read... [10:35:33]Read from MH i2c: D1 01 00 D1 2A 00 CC [10:35:33]Write to MH i2c: 01 00 00 D2 2A FC [10:35:33]Write i2c OK [10:35:33]MH_I2C_Read... [10:35:33]OFD Sender: No OFD packet to send [10:35:33]*** Cut start [10:35:33]*** Purtial cut [10:35:33]*** CUTSNS_PIN = 0 [10:35:33]*** Stage 1: CUTSNS_PIN = 1 [10:35:35]Read from MH i2c: 01 [10:35:35]MH_I2C_Read... [10:35:35]Read from MH i2c: 01 07 00 [10:35:35]MH_I2C_Read... [10:35:35]*** Stop cut motor [10:35:35]*** Cut end [10:35:35]Read from MH i2c: 01 07 00 D2 2A 00 00 00 00 00 FF 0F 11 [10:35:35]process_action print_text done [10:35:35]requested_data is exist [10:35:35]produce_requested_data [10:35:35]requested_item fm.sn is exist - process it [10:35:35]wFMCommunicate request_size=4 [10:35:35]MH_SAM_APDU [10:35:35]CAPDU: 80 11 00 00 [10:35:35]Write to MH i2c: E2 08 00 D3 2A 80 11 00 00 00 00 00 00 77 [10:35:35]Write i2c OK [10:35:35]MH_I2C_Read... [10:35:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:35:35]Read from MH i2c: E2 [10:35:35]MH_I2C_Read... [10:35:35]Read from MH i2c: E2 17 00 [10:35:35]MH_I2C_Read... [10:35:35]Read from MH i2c: E2 17 00 D3 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 CD [10:35:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [10:35:35]wFMCommunicate OK [10:35:35]requested_item fd.num is exist - process it [10:35:35]SAM_PROTO_GetFieldsCounters [10:35:35]wFMCommunicate request_size=4 [10:35:35]MH_SAM_APDU [10:35:35]CAPDU: 80 13 00 00 [10:35:35]Write to MH i2c: E2 08 00 D4 2A 80 13 00 00 00 00 00 00 7A [10:35:35]Write i2c OK [10:35:35]MH_I2C_Read... [10:35:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:35:35]Read from MH i2c: E2 [10:35:35]MH_I2C_Read... [10:35:35]Read from MH i2c: E2 62 00 [10:35:35]MH_I2C_Read... [10:35:35]Read from MH i2c: E2 62 00 D4 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 D5 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 52 [10:35:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 D5 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:35:35]wFMCommunicate OK [10:35:35]SAM_PROTO_GetFieldsCounters done [10:35:35]requested_item shift.num is exist - process it [10:35:35]requested_item shift.opened is exist - process it [10:35:35]req_shift_opened [10:35:35]FM_GetShiftState [10:35:35]SAM_PROTO_GetShiftState [10:35:35]wFMCommunicate request_size=4 [10:35:35]MH_SAM_APDU [10:35:35]CAPDU: 80 13 01 00 [10:35:35]Write to MH i2c: E2 08 00 D5 2A 80 13 01 00 00 00 00 00 7C [10:35:35]Write i2c OK [10:35:35]MH_I2C_Read... [10:35:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:35:35]Read from MH i2c: E2 [10:35:35]MH_I2C_Read... [10:35:35]Read from MH i2c: E2 0E 00 [10:35:35]MH_I2C_Read... [10:35:35]Read from MH i2c: E2 0E 00 D5 2A 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 E3 [10:35:35]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [10:35:35]wFMCommunicate OK [10:35:35]SAM_PROTO_GetShiftState done [10:35:35]FM_GetShiftState done [10:35:35]req_shift_opened done [10:35:35]requested_item shift.open_date is exist - process it [10:35:35]req_shift_open_date [10:35:35]req_shift_open_date done [10:35:35]produce_requested_data done [10:35:35]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67797,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [10:35:35]process_action_free print_text [10:35:35]json_value_free [10:35:35]json_value_free done [10:35:35]process_json_proto returns [10:35:35]Send response to host [10:35:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67797,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [10:35:35]free response buf [10:35:35]execute_script done [10:35:35]execute_script returns [10:35:35]free content buf [10:35:35]Sock 9.Close socket [10:35:35]Sock 9.Thread stoped [10:35:38]OFD Sender: No OFD packet to send [10:35:43]OFD Sender: No OFD packet to send [10:35:48]OFD Sender: No OFD packet to send [10:35:53]OFD Sender: No OFD packet to send [10:35:58]OFD Sender: No OFD packet to send [10:36:03]OFD Sender: No OFD packet to send [10:36:08]OFD Sender: No OFD packet to send [10:36:13]OFD Sender: No OFD packet to send [10:36:18]OFD Sender: No OFD packet to send [10:36:23]OFD Sender: No OFD packet to send [10:36:28]OFD Sender: No OFD packet to send [10:36:33]OFD Sender: No OFD packet to send [10:36:38]OFD Sender: No OFD packet to send [10:36:43]OFD Sender: No OFD packet to send [10:36:48]OFD Sender: No OFD packet to send [10:36:53]OFD Sender: No OFD packet to send [10:36:58]OFD Sender: No OFD packet to send [10:37:03]OFD Sender: No OFD packet to send [10:37:08]OFD Sender: No OFD packet to send [10:37:13]OFD Sender: No OFD packet to send [10:37:18]OFD Sender: No OFD packet to send [10:37:23]OFD Sender: No OFD packet to send [10:37:28]OFD Sender: No OFD packet to send [10:37:33]OFD Sender: No OFD packet to send [10:37:38]OFD Sender: No OFD packet to send [10:37:43]accept exits with 7 [10:37:43]New connection [10:37:43]New thread 3066608996 created [10:37:43]Thread 3066752356 joined [10:37:43]Waiting for new connection... [10:37:43] Sock 7.Parse request [10:37:43]Sock 7.Check first char [10:37:43]Sock 7.First char is OK [10:37:43]request: POST /json_proto HTTP/1.0 [10:37:43]Method: POST [10:37:43]URL: /json_proto [10:37:43]Method is POST - this is cgi request [10:37:43]url: /json_proto [10:37:43]query_string will be loaded in cgi processing [10:37:43]execute_cgi json_proto POST (null) [10:37:43]execute_cgi path=json_proto method=POST [10:37:43]POST find Content-Length [10:37:43]Host: 172.17.41.195:8080 [10:37:43]Content-Length: 801 [10:37:43]Content-Type: application/json [10:37:43] [10:37:43]POST finish read [10:37:43]Found Content-Length = 801 [10:37:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)508002", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.80, "quantity" : 11.980, "sum" : 800.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 800.26 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:37:43]execute_script... [10:37:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)508002", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.80, "quantity" : 11.980, "sum" : 800.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 800.26 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:37:43]POST & json_proto [10:37:43]process_json_proto [10:37:43]json parsed OK: [10:37:43]protocol is kg_v1.0 [10:37:43]action value=close_receipt [10:37:43]process_action close_receipt [10:37:43]cmd_close_receipt [10:37:43]MH_GetDate [10:37:43]Write to MH i2c: F0 00 00 D6 2A EF [10:37:43]Write i2c OK [10:37:43]MH_I2C_Read... [10:37:43]Read from MH i2c: F0 [10:37:43]MH_I2C_Read... [10:37:43]Read from MH i2c: F0 09 00 [10:37:43]MH_I2C_Read... [10:37:43]Read from MH i2c: F0 09 00 D6 2A 00 FC 84 48 66 FC 21 6F 64 16 [10:37:43]GetLastDocTimeStamp 1716028185 [10:37:43]current date 1716028668 [10:37:43]FM_GetShiftState [10:37:43]SAM_PROTO_GetShiftState [10:37:43]wFMCommunicate request_size=4 [10:37:43]MH_SAM_APDU [10:37:43]CAPDU: 80 13 01 00 [10:37:43]Write to MH i2c: E2 08 00 D7 2A 80 13 01 00 00 00 00 00 7E [10:37:43]Write i2c OK [10:37:43]MH_I2C_Read... [10:37:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:37:43]Read from MH i2c: E2 [10:37:43]MH_I2C_Read... [10:37:43]Read from MH i2c: E2 0E 00 [10:37:43]MH_I2C_Read... [10:37:43]Read from MH i2c: E2 0E 00 D7 2A 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 E5 [10:37:43]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [10:37:43]wFMCommunicate OK [10:37:43]SAM_PROTO_GetShiftState done [10:37:43]FM_GetShiftState done [10:37:43]opened in 1715991483 [10:37:43]opened+sec_in_day 1716077883 [10:37:43]quantity*price = 80026 [10:37:43]sum+1 = 80027 [10:37:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 800.26 НСП 1% : 7.08 НДС 12% : 84.98 Наличными: 0.00 Безнал.: 800.26 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 37 18.05.2024 10:37 Смена: 359 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67798 ФПД: 122181934888275 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T103748&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67798&fm=122181934888275&tin=02508201610067®Number=0000000000091845&sum=80026 [10:37:44]StoreToDocumentArchive [10:37:44]shift 359 fd 67798 [10:37:44]save to /storage/0359/doc_00067798 [10:37:44]save last doc name /storage/0359/doc_00067798 to /storage/kkm_last_doc_name [10:37:44]save OK [10:37:44]Clear old archive folders... [10:37:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:37:44]tlvbuf is 01B79DC0 [10:37:44]SAM_PROTO_ClearQueue [10:37:44]wFMCommunicate request_size=4 [10:37:44]MH_SAM_APDU [10:37:44]CAPDU: 80 09 00 00 [10:37:44]Write to MH i2c: E2 08 00 E4 2A 80 09 00 00 00 00 00 00 80 [10:37:44]Write i2c OK [10:37:44]MH_I2C_Read... [10:37:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:37:44]Read from MH i2c: E2 [10:37:44]MH_I2C_Read... [10:37:44]Read from MH i2c: E2 03 00 [10:37:44]MH_I2C_Read... [10:37:44]Read from MH i2c: E2 03 00 E4 2A 00 90 00 82 [10:37:44]RAPDU: 90 00 [10:37:44]wFMCommunicate OK [10:37:44]SAM_PROTO_ClearQueue done [10:37:44]KKMCreateOFDPacket [10:37:44]OFDProtocolAddRootSTLVToBuf [10:37:44]FM_MakeSignedData [10:37:44]FM_MakeSignedData [10:37:44]SAM_PROTO_SignData [10:37:44]wFMCommunicate request_size=4 [10:37:44]MH_SAM_APDU [10:37:44]CAPDU: 80 0D 01 02 [10:37:44]Write to MH i2c: E2 08 00 E5 2A 80 0D 01 02 00 00 00 00 88 [10:37:44]Write i2c OK [10:37:44]MH_I2C_Read... [10:37:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:37:44]Read from MH i2c: E2 [10:37:44]MH_I2C_Read... [10:37:44]Read from MH i2c: E2 03 00 [10:37:44]MH_I2C_Read... [10:37:44]Read from MH i2c: E2 03 00 E5 2A 00 90 00 83 [10:37:44]RAPDU: 90 00 [10:37:44]wFMCommunicate OK [10:37:44]wFMCommunicate request_size=255 [10:37:44]MH_SAM_APDU [10:37:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 2E 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 9A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9A 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9A 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 FC 84 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 D6 08 01 00 35 04 06 00 6F [10:37:44]Write to MH i2c: E2 02 01 E6 2A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 2E 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 9A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9A 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9A 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 FC 84 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 D6 08 01 00 35 04 06 00 6F 00 00 5E [10:37:44]Write i2c OK [10:37:44]MH_I2C_Read... [10:37:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:37:44]Read from MH i2c: E2 [10:37:44]MH_I2C_Read... [10:37:44]Read from MH i2c: E2 03 00 [10:37:44]MH_I2C_Read... [10:37:44]Read from MH i2c: E2 03 00 E6 2A 00 90 00 84 [10:37:44]RAPDU: 90 00 [10:37:44]wFMCommunicate OK [10:37:44]wFMCommunicate request_size=10 [10:37:44]MH_SAM_APDU [10:37:44]CAPDU: 80 0D 02 02 05 1F B2 D3 B5 53 [10:37:44]Write to MH i2c: E2 0D 00 E7 2A 80 0D 02 02 05 00 1F B2 D3 B5 53 00 00 41 [10:37:44]Write i2c OK [10:37:44]MH_I2C_Read... [10:37:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:37:44]Read from MH i2c: E2 [10:37:44]MH_I2C_Read... [10:37:44]Read from MH i2c: E2 03 00 [10:37:44]MH_I2C_Read... [10:37:44]Read from MH i2c: E2 03 00 E7 2A 00 90 00 85 [10:37:44]RAPDU: 90 00 [10:37:44]wFMCommunicate OK [10:37:44]wFMCommunicate request_size=4 [10:37:44]MH_SAM_APDU [10:37:44]CAPDU: 80 0D 03 02 [10:37:44]Write to MH i2c: E2 08 00 E8 2A 80 0D 03 02 00 00 00 00 8D [10:37:44]Write i2c OK [10:37:44]MH_I2C_Read... [10:37:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:37:44]Read from MH i2c: E2 [10:37:44]MH_I2C_Read... [10:37:44]Read from MH i2c: E2 0B 00 [10:37:44]MH_I2C_Read... [10:37:44]Read from MH i2c: E2 0B 00 E8 2A 00 7E 6E 2B 7C FC D1 39 D1 90 00 F8 [10:37:44]RAPDU: 7E 6E 2B 7C FC D1 39 D1 90 00 [10:37:44]wFMCommunicate OK [10:37:44]SAM_PROTO_SignData done [10:37:44]FM_MakeSignedData done [10:37:44]CreateOFDProtocolMessage [10:37:44]wFMCommunicate request_size=4 [10:37:44]MH_SAM_APDU [10:37:44]CAPDU: 80 11 00 00 [10:37:44]Write to MH i2c: E2 08 00 E9 2A 80 11 00 00 00 00 00 00 8D [10:37:44]Write i2c OK [10:37:44]MH_I2C_Read... [10:37:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:37:44]Read from MH i2c: E2 [10:37:44]MH_I2C_Read... [10:37:44]Read from MH i2c: E2 17 00 [10:37:44]MH_I2C_Read... [10:37:44]Read from MH i2c: E2 17 00 E9 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 E3 [10:37:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [10:37:44]wFMCommunicate OK [10:37:44]CreateOFDProtocolMessage done [10:37:44]OFDSenderStorePacket 67798 [10:37:44]StoreOFDPacket docnum=67798 [10:37:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 9D D4 07 01 2A 3A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 2E 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 9A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9A 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9A 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 FC 84 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 D6 08 01 00 35 04 06 00 6F 1F B2 D3 B5 53 7E 6E 2B 7C FC D1 39 D1 [10:37:44]CheckFolder [10:37:44]dirname=/storage/ofd_packets [10:37:44]CheckFolder done [10:37:44]ProducePacketName [10:37:44]name=ofd_packets/00067798 [10:37:44]NVStorageSaveData ofd_packets/00067798 [10:37:44]File name is /storage/ofd_packets/00067798 [10:37:44]Write 301 bytes [10:37:44]NVStorageSaveData done [10:37:44]OFDSenderStorePacket done [10:37:44]KKMCreateOFDPacket done [10:37:44]NVStorageSaveData kkm_last_timestamp [10:37:44]File name is /storage/kkm_last_timestamp [10:37:44]Write 4 bytes [10:37:44]NVStorageSaveData done [10:37:44]ExternCall_PrintAddStr [10:37:44]wPrintStart [10:37:44]Write to MH i2c: 01 00 00 EA 2A 14 [10:37:44]Write i2c OK [10:37:44]MH_I2C_Read... [10:37:44]Read from MH i2c: 01 [10:37:44]MH_I2C_Read... [10:37:44]Read from MH i2c: 01 07 00 [10:37:44]MH_I2C_Read... [10:37:44]Read from MH i2c: 01 07 00 EA 2A 00 00 00 00 00 FF 0F 29 [10:37:44]RasterBufferAndPrint [10:37:44]line Счет N : (1)508002 [10:37:44]line ИНН: 02508201610067 [10:37:44]line Контрольно-Кассовый Чек [10:37:44]line ПРОДАЖА [10:37:44]line ТРК (МРК, ГНК) : 43 [10:37:44]line Товар: 2710124130 [10:37:44]line Аи-92-К-5 [10:37:44]line 11.980 * 66.80 [10:37:44]line = 800.26 [10:37:44]line НДС 12% НСП 1% [10:37:44]line > о реализуемом товаре [10:37:44]line ИТОГО: 800.26 [10:37:44]line НСП 1% : 7.08 [10:37:44]line НДС 12% : 84.98 [10:37:44]line Наличными: 0.00 [10:37:44]line Безнал.: 800.26 [10:37:44]line Место: АЗС № 91 "Партнер Нефть" [10:37:44]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [10:37:44]line СНО: Общий режим [10:37:44]line Чек 37 18.05.2024 10:37 [10:37:44]line Смена: 359 ФФД: 1.0 [10:37:44]line ЗНМ: 0300000119 [10:37:44]line РНМ: 0000000000091845 [10:37:44]line Версия ККМ: 001 [10:37:44]line Платежная система: O! деньги [10:37:44]line ФМ: 0000000000871829 [10:37:44]line ФД: 67798 [10:37:44]line ФПД: 122181934888275 [10:37:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T103748&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67798&fm=122181934888275&tin=02508201610067®Number=0000000000091845&sum=80026 [10:37:45]OFD Sender: Processing packet 67798 [packets to send 35, broken 34] [10:37:45]ProducePacketName [10:37:45]name=ofd_packets/00067798 [10:37:45]OFD Sender: To server: pG, [10:37:45]CommunicateWithHost lk.salyk.kg:30040 [10:37:45]ConnectInit lk.salyk.kg [10:37:45]written 0, free lines is 4095 [10:37:45]Connected sock=10 [10:37:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 9D D4 07 01 2A 3A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 2E 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 9A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9A 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9A 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 FC 84 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 D6 08 01 00 35 04 06 00 6F 1F B2 D3 B5 53 7E 6E 2B 7C FC D1 39 D1 [10:37:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 72 EF 47 00 AA 59 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 D6 08 01 00 F4 03 04 00 D1 2C 48 66 B6 04 01 00 00 8B 21 87 41 1F 8E 35 A0 [10:37:45]CommunicateWithHost err = 0 [10:37:45]CheckOFDResponse [10:37:45]1017 (14) - 77093643461234 [10:37:45]1041 (16) - 0000000000871829 [10:37:45]1040 (4) - 67798 [10:37:45]1012 (4) - 18.05.2024 04:21 [10:37:45]1206 (1) - 0 [10:37:45]OFD Sender: Remove packet 67798 [10:37:45]ProducePacketName [10:37:45]name=ofd_packets/00067798 [10:37:45]NVStorageDeleteData [10:37:45]Write to MH i2c: 01 00 00 13 2B 3E [10:37:45]Write i2c OK [10:37:45]MH_I2C_Read... [10:37:45]Read from MH i2c: 01 [10:37:45]MH_I2C_Read... [10:37:45]Read from MH i2c: 01 07 00 [10:37:45]MH_I2C_Read... [10:37:45]Read from MH i2c: 01 07 00 13 2B 00 00 00 00 00 DD 0C 2E [10:37:45]RasterBufferAndPrint [10:37:45]line [10:37:45]line [10:37:45]line [10:37:45]line [10:37:45]line [10:37:45]written 0, free lines is 3299 [10:37:45]MH_Cut [10:37:45]Write to MH i2c: D1 01 00 1A 2B 01 17 [10:37:45]Write i2c OK [10:37:45]MH_I2C_Read... [10:37:45]Read from MH i2c: D1 [10:37:45]MH_I2C_Read... [10:37:45]Read from MH i2c: D1 01 00 [10:37:45]MH_I2C_Read... [10:37:45]Read from MH i2c: D1 01 00 1A 2B 00 16 [10:37:45]Write to MH i2c: 01 00 00 1B 2B 46 [10:37:45]Write i2c OK [10:37:45]MH_I2C_Read... [10:37:45]OFD Sender: No OFD packet to send [10:37:46]*** Cut start [10:37:46]*** Purtial cut [10:37:46]*** Stage 1: CUTSNS_PIN = 1 [10:37:46]Read from MH i2c: 01 [10:37:46]MH_I2C_Read... [10:37:46]*** Stop cut motor [10:37:46]*** Cut end [10:37:46]Read from MH i2c: 01 07 00 [10:37:46]MH_I2C_Read... [10:37:46]Read from MH i2c: 01 07 00 1B 2B 00 00 00 00 00 FF 0F 5B [10:37:46]process_action close_receipt done [10:37:46]requested_data is exist [10:37:46]produce_requested_data [10:37:46]requested_item fm.sn is exist - process it [10:37:46]wFMCommunicate request_size=4 [10:37:46]MH_SAM_APDU [10:37:46]CAPDU: 80 11 00 00 [10:37:46]Write to MH i2c: E2 08 00 1C 2B 80 11 00 00 00 00 00 00 C1 [10:37:46]Write i2c OK [10:37:46]MH_I2C_Read... [10:37:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:37:46]Read from MH i2c: E2 [10:37:46]MH_I2C_Read... [10:37:46]Read from MH i2c: E2 17 00 [10:37:46]MH_I2C_Read... [10:37:46]Read from MH i2c: E2 17 00 1C 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 17 [10:37:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [10:37:46]wFMCommunicate OK [10:37:46]requested_item fd.num is exist - process it [10:37:46]SAM_PROTO_GetFieldsCounters [10:37:46]wFMCommunicate request_size=4 [10:37:46]MH_SAM_APDU [10:37:46]CAPDU: 80 13 00 00 [10:37:46]Write to MH i2c: E2 08 00 1D 2B 80 13 00 00 00 00 00 00 C4 [10:37:46]Write i2c OK [10:37:46]MH_I2C_Read... [10:37:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:37:46]Read from MH i2c: E2 [10:37:46]MH_I2C_Read... [10:37:46]Read from MH i2c: E2 62 00 [10:37:46]MH_I2C_Read... [10:37:46]Read from MH i2c: E2 62 00 1D 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 D6 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 25 00 00 00 5E 04 04 00 25 00 00 00 57 04 04 00 26 00 00 00 19 04 04 00 00 00 00 00 90 00 A0 [10:37:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 D6 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 25 00 00 00 5E 04 04 00 25 00 00 00 57 04 04 00 26 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:37:46]wFMCommunicate OK [10:37:46]SAM_PROTO_GetFieldsCounters done [10:37:46]requested_item shift.num is exist - process it [10:37:46]requested_item shift.opened is exist - process it [10:37:46]req_shift_opened [10:37:46]FM_GetShiftState [10:37:46]SAM_PROTO_GetShiftState [10:37:46]wFMCommunicate request_size=4 [10:37:46]MH_SAM_APDU [10:37:46]CAPDU: 80 13 01 00 [10:37:46]Write to MH i2c: E2 08 00 1E 2B 80 13 01 00 00 00 00 00 C6 [10:37:46]Write i2c OK [10:37:46]MH_I2C_Read... [10:37:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:37:46]Read from MH i2c: E2 [10:37:46]MH_I2C_Read... [10:37:46]Read from MH i2c: E2 0E 00 [10:37:46]MH_I2C_Read... [10:37:46]Read from MH i2c: E2 0E 00 1E 2B 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 2D [10:37:46]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [10:37:46]wFMCommunicate OK [10:37:46]SAM_PROTO_GetShiftState done [10:37:46]FM_GetShiftState done [10:37:46]req_shift_opened done [10:37:46]requested_item shift.open_date is exist - process it [10:37:46]req_shift_open_date [10:37:46]req_shift_open_date done [10:37:46]produce_requested_data done [10:37:46]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67798,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [10:37:46]process_action_free close_receipt [10:37:46]json_value_free [10:37:46]json_value_free done [10:37:46]process_json_proto returns [10:37:46]Send response to host [10:37:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67798,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [10:37:46]free response buf [10:37:46]execute_script done [10:37:46]execute_script returns [10:37:46]free content buf [10:37:47]Sock 7.Close socket [10:37:47]Sock 7.Thread stoped [10:37:50]OFD Sender: No OFD packet to send [10:37:55]OFD Sender: No OFD packet to send [10:38:00]OFD Sender: No OFD packet to send [10:38:05]OFD Sender: No OFD packet to send [10:38:10]OFD Sender: No OFD packet to send [10:38:15]OFD Sender: No OFD packet to send [10:38:20]OFD Sender: No OFD packet to send [10:38:25]OFD Sender: No OFD packet to send [10:38:31]OFD Sender: No OFD packet to send [10:38:36]OFD Sender: No OFD packet to send [10:38:41]OFD Sender: No OFD packet to send [10:38:46]OFD Sender: No OFD packet to send [10:38:51]OFD Sender: No OFD packet to send [10:38:56]OFD Sender: No OFD packet to send [10:39:01]OFD Sender: No OFD packet to send [10:39:06]OFD Sender: No OFD packet to send [10:39:11]OFD Sender: No OFD packet to send [10:39:16]OFD Sender: No OFD packet to send [10:39:21]OFD Sender: No OFD packet to send [10:39:26]OFD Sender: No OFD packet to send [10:39:31]OFD Sender: No OFD packet to send [10:39:36]OFD Sender: No OFD packet to send [10:39:41]OFD Sender: No OFD packet to send [10:39:46]OFD Sender: No OFD packet to send [10:39:51]OFD Sender: No OFD packet to send [10:39:56]OFD Sender: No OFD packet to send [10:40:01]OFD Sender: No OFD packet to send [10:40:06]OFD Sender: No OFD packet to send [10:40:11]OFD Sender: No OFD packet to send [10:40:16]OFD Sender: No OFD packet to send [10:40:21]OFD Sender: No OFD packet to send [10:40:26]OFD Sender: No OFD packet to send [10:40:31]OFD Sender: No OFD packet to send [10:40:36]OFD Sender: No OFD packet to send [10:40:41]OFD Sender: No OFD packet to send [10:40:46]OFD Sender: No OFD packet to send [10:40:51]OFD Sender: No OFD packet to send [10:40:56]OFD Sender: No OFD packet to send [10:41:01]OFD Sender: No OFD packet to send [10:41:06]OFD Sender: No OFD packet to send [10:41:11]OFD Sender: No OFD packet to send [10:41:16]OFD Sender: No OFD packet to send [10:41:21]OFD Sender: No OFD packet to send [10:41:26]OFD Sender: No OFD packet to send [10:41:31]OFD Sender: No OFD packet to send [10:41:36]OFD Sender: No OFD packet to send [10:41:41]OFD Sender: No OFD packet to send [10:41:46]OFD Sender: No OFD packet to send [10:41:51]OFD Sender: No OFD packet to send [10:41:56]OFD Sender: No OFD packet to send [10:42:01]OFD Sender: No OFD packet to send [10:42:06]OFD Sender: No OFD packet to send [10:42:11]OFD Sender: No OFD packet to send [10:42:16]OFD Sender: No OFD packet to send [10:42:21]OFD Sender: No OFD packet to send [10:42:24]accept exits with 9 [10:42:24]New connection [10:42:24]New thread 3066752356 created [10:42:24]Thread 3066608996 joined [10:42:24]Waiting for new connection... [10:42:24] Sock 9.Parse request [10:42:24]Sock 9.Check first char [10:42:24]Sock 9.First char is OK [10:42:24]request: POST /json_proto HTTP/1.0 [10:42:24]Method: POST [10:42:24]URL: /json_proto [10:42:24]Method is POST - this is cgi request [10:42:24]url: /json_proto [10:42:24]query_string will be loaded in cgi processing [10:42:24]execute_cgi json_proto POST (null) [10:42:24]execute_cgi path=json_proto method=POST [10:42:24]POST find Content-Length [10:42:24]Host: 172.17.41.195:8080 [10:42:24]Content-Length: 800 [10:42:24]Content-Type: application/json [10:42:24] [10:42:24]POST finish read [10:42:24]Found Content-Length = 800 [10:42:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)508003", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 13.390, "sum" : 1000.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.23 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:42:24]execute_script... [10:42:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)508003", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 13.390, "sum" : 1000.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.23 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:42:24]POST & json_proto [10:42:24]process_json_proto [10:42:24]json parsed OK: [10:42:24]protocol is kg_v1.0 [10:42:24]action value=close_receipt [10:42:24]process_action close_receipt [10:42:24]cmd_close_receipt [10:42:24]MH_GetDate [10:42:24]Write to MH i2c: F0 00 00 1F 2B 39 [10:42:24]Write i2c OK [10:42:24]MH_I2C_Read... [10:42:24]Read from MH i2c: F0 [10:42:24]MH_I2C_Read... [10:42:24]Read from MH i2c: F0 09 00 [10:42:24]MH_I2C_Read... [10:42:24]Read from MH i2c: F0 09 00 1F 2B 00 15 86 48 66 FC 21 6F 64 7B [10:42:24]GetLastDocTimeStamp 1716028668 [10:42:24]current date 1716028949 [10:42:24]FM_GetShiftState [10:42:24]SAM_PROTO_GetShiftState [10:42:24]wFMCommunicate request_size=4 [10:42:24]MH_SAM_APDU [10:42:24]CAPDU: 80 13 01 00 [10:42:24]Write to MH i2c: E2 08 00 20 2B 80 13 01 00 00 00 00 00 C8 [10:42:24]Write i2c OK [10:42:24]MH_I2C_Read... [10:42:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:42:24]Read from MH i2c: E2 [10:42:24]MH_I2C_Read... [10:42:24]Read from MH i2c: E2 0E 00 [10:42:24]MH_I2C_Read... [10:42:24]Read from MH i2c: E2 0E 00 20 2B 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 2F [10:42:24]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [10:42:24]wFMCommunicate OK [10:42:24]SAM_PROTO_GetShiftState done [10:42:24]FM_GetShiftState done [10:42:24]opened in 1715991483 [10:42:24]opened+sec_in_day 1716077883 [10:42:24]quantity*price = 100023 [10:42:24]sum+1 = 100024 [10:42:24]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.23 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.23 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 38 18.05.2024 10:42 Смена: 359 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67799 ФПД: 25361639522295 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T104229&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67799&fm=25361639522295&tin=02508201610067®Number=0000000000091845&sum=100023 [10:42:26]StoreToDocumentArchive [10:42:26]shift 359 fd 67799 [10:42:26]save to /storage/0359/doc_00067799 [10:42:26]save last doc name /storage/0359/doc_00067799 to /storage/kkm_last_doc_name [10:42:26]save OK [10:42:26]Clear old archive folders... [10:42:26]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:42:26]tlvbuf is 01B57620 [10:42:26]SAM_PROTO_ClearQueue [10:42:26]wFMCommunicate request_size=4 [10:42:26]MH_SAM_APDU [10:42:26]CAPDU: 80 09 00 00 [10:42:26]Write to MH i2c: E2 08 00 2D 2B 80 09 00 00 00 00 00 00 CA [10:42:26]Write i2c OK [10:42:26]MH_I2C_Read... [10:42:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:42:26]Read from MH i2c: E2 [10:42:26]MH_I2C_Read... [10:42:26]Read from MH i2c: E2 03 00 [10:42:26]MH_I2C_Read... [10:42:26]Read from MH i2c: E2 03 00 2D 2B 00 90 00 CC [10:42:26]RAPDU: 90 00 [10:42:26]wFMCommunicate OK [10:42:26]SAM_PROTO_ClearQueue done [10:42:26]KKMCreateOFDPacket [10:42:26]OFDProtocolAddRootSTLVToBuf [10:42:26]FM_MakeSignedData [10:42:26]FM_MakeSignedData [10:42:26]SAM_PROTO_SignData [10:42:26]wFMCommunicate request_size=4 [10:42:26]MH_SAM_APDU [10:42:26]CAPDU: 80 0D 01 02 [10:42:26]Write to MH i2c: E2 08 00 2E 2B 80 0D 01 02 00 00 00 00 D2 [10:42:26]Write i2c OK [10:42:26]MH_I2C_Read... [10:42:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:42:26]Read from MH i2c: E2 [10:42:26]MH_I2C_Read... [10:42:26]Read from MH i2c: E2 03 00 [10:42:26]MH_I2C_Read... [10:42:26]Read from MH i2c: E2 03 00 2E 2B 00 90 00 CD [10:42:26]RAPDU: 90 00 [10:42:26]wFMCommunicate OK [10:42:26]wFMCommunicate request_size=255 [10:42:26]MH_SAM_APDU [10:42:26]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4E 34 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 B7 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B7 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B7 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 15 86 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 D7 08 01 00 35 04 06 00 17 10 F7 83 [10:42:26]Write to MH i2c: E2 02 01 2F 2B 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4E 34 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 B7 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B7 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B7 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 15 86 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 D7 08 01 00 35 04 06 00 17 10 F7 83 00 00 32 [10:42:26]Write i2c OK [10:42:26]MH_I2C_Read... [10:42:26]OFD Sender: No OFD packet to send [10:42:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:42:26]Read from MH i2c: E2 [10:42:26]MH_I2C_Read... [10:42:26]Read from MH i2c: E2 03 00 [10:42:26]MH_I2C_Read... [10:42:26]Read from MH i2c: E2 03 00 2F 2B 00 90 00 CE [10:42:26]RAPDU: 90 00 [10:42:26]wFMCommunicate OK [10:42:26]wFMCommunicate request_size=7 [10:42:26]MH_SAM_APDU [10:42:26]CAPDU: 80 0D 02 02 02 BF F7 [10:42:26]Write to MH i2c: E2 0A 00 30 2B 80 0D 02 02 02 00 BF F7 00 00 8F [10:42:26]Write i2c OK [10:42:26]MH_I2C_Read... [10:42:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:42:26]Read from MH i2c: E2 [10:42:26]MH_I2C_Read... [10:42:26]Read from MH i2c: E2 03 00 [10:42:26]MH_I2C_Read... [10:42:26]Read from MH i2c: E2 03 00 30 2B 00 90 00 CF [10:42:26]RAPDU: 90 00 [10:42:26]wFMCommunicate OK [10:42:26]wFMCommunicate request_size=4 [10:42:26]MH_SAM_APDU [10:42:26]CAPDU: 80 0D 03 02 [10:42:26]Write to MH i2c: E2 08 00 31 2B 80 0D 03 02 00 00 00 00 D7 [10:42:26]Write i2c OK [10:42:26]MH_I2C_Read... [10:42:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:42:26]Read from MH i2c: E2 [10:42:26]MH_I2C_Read... [10:42:26]Read from MH i2c: E2 0B 00 [10:42:26]MH_I2C_Read... [10:42:26]Read from MH i2c: E2 0B 00 31 2B 00 A9 94 C9 A9 02 37 9A 60 90 00 BA [10:42:26]RAPDU: A9 94 C9 A9 02 37 9A 60 90 00 [10:42:26]wFMCommunicate OK [10:42:26]SAM_PROTO_SignData done [10:42:26]FM_MakeSignedData done [10:42:26]CreateOFDProtocolMessage [10:42:26]wFMCommunicate request_size=4 [10:42:26]MH_SAM_APDU [10:42:26]CAPDU: 80 11 00 00 [10:42:26]Write to MH i2c: E2 08 00 32 2B 80 11 00 00 00 00 00 00 D7 [10:42:26]Write i2c OK [10:42:26]MH_I2C_Read... [10:42:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:42:26]Read from MH i2c: E2 [10:42:26]MH_I2C_Read... [10:42:26]Read from MH i2c: E2 17 00 [10:42:26]MH_I2C_Read... [10:42:26]Read from MH i2c: E2 17 00 32 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 2D [10:42:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [10:42:26]wFMCommunicate OK [10:42:26]CreateOFDProtocolMessage done [10:42:26]OFDSenderStorePacket 67799 [10:42:26]StoreOFDPacket docnum=67799 [10:42:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 8D 58 04 01 0A F3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4E 34 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 B7 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B7 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B7 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 15 86 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 D7 08 01 00 35 04 06 00 17 10 F7 83 BF F7 A9 94 C9 A9 02 37 9A 60 [10:42:26]CheckFolder [10:42:26]dirname=/storage/ofd_packets [10:42:26]CheckFolder done [10:42:26]ProducePacketName [10:42:26]name=ofd_packets/00067799 [10:42:26]NVStorageSaveData ofd_packets/00067799 [10:42:26]File name is /storage/ofd_packets/00067799 [10:42:26]Write 298 bytes [10:42:26]NVStorageSaveData done [10:42:26]OFDSenderStorePacket done [10:42:26]KKMCreateOFDPacket done [10:42:26]NVStorageSaveData kkm_last_timestamp [10:42:26]File name is /storage/kkm_last_timestamp [10:42:26]Write 4 bytes [10:42:26]NVStorageSaveData done [10:42:26]ExternCall_PrintAddStr [10:42:26]wPrintStart [10:42:26]Write to MH i2c: 01 00 00 33 2B 5E [10:42:26]Write i2c OK [10:42:26]MH_I2C_Read... [10:42:26]Read from MH i2c: 01 [10:42:26]MH_I2C_Read... [10:42:26]Read from MH i2c: 01 07 00 [10:42:26]MH_I2C_Read... [10:42:26]Read from MH i2c: 01 07 00 33 2B 00 00 00 00 00 FF 0F 73 [10:42:26]RasterBufferAndPrint [10:42:26]line Счет N : (1)508003 [10:42:26]line ИНН: 02508201610067 [10:42:26]line Контрольно-Кассовый Чек [10:42:26]line ПРОДАЖА [10:42:26]line ТРК (МРК, ГНК) : 31 [10:42:26]line Товар: 2710194210 [10:42:26]line ДТ-К-5 [10:42:26]line 13.390 * 74.70 [10:42:26]line = 1000.23 [10:42:26]line НДС 12% НСП 1% [10:42:26]line > о реализуемом товаре [10:42:26]line ИТОГО: 1000.23 [10:42:26]line НСП 1% : 8.85 [10:42:26]line НДС 12% : 106.22 [10:42:26]line Наличными: 0.00 [10:42:26]line Безнал.: 1000.23 [10:42:26]line Место: АЗС № 91 "Партнер Нефть" [10:42:26]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [10:42:26]line СНО: Общий режим [10:42:26]line Чек 38 18.05.2024 10:42 [10:42:26]line Смена: 359 ФФД: 1.0 [10:42:26]line ЗНМ: 0300000119 [10:42:26]line РНМ: 0000000000091845 [10:42:26]line Версия ККМ: 001 [10:42:26]line Платежная система: O! деньги [10:42:26]line ФМ: 0000000000871829 [10:42:26]line ФД: 67799 [10:42:26]line ФПД: 25361639522295 [10:42:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T104229&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67799&fm=25361639522295&tin=02508201610067®Number=0000000000091845&sum=100023 [10:42:26]OFD Sender: Processing packet 67799 [packets to send 35, broken 34] [10:42:26]ProducePacketName [10:42:26]name=ofd_packets/00067799 [10:42:26]OFD Sender: To server: pG, [10:42:26]CommunicateWithHost lk.salyk.kg:30040 [10:42:26]ConnectInit lk.salyk.kg [10:42:26]written 0, free lines is 4095 [10:42:27]Connected sock=10 [10:42:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 8D 58 04 01 0A F3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4E 34 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 B7 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B7 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B7 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 15 86 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 D7 08 01 00 35 04 06 00 17 10 F7 83 BF F7 A9 94 C9 A9 02 37 9A 60 [10:42:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 CA 8A 47 00 07 C3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 D7 08 01 00 F4 03 04 00 EB 2D 48 66 B6 04 01 00 00 A1 69 19 B0 7B 21 28 73 [10:42:27]CommunicateWithHost err = 0 [10:42:27]CheckOFDResponse [10:42:27]1017 (14) - 77093643461234 [10:42:27]1041 (16) - 0000000000871829 [10:42:27]1040 (4) - 67799 [10:42:27]1012 (4) - 18.05.2024 04:26 [10:42:27]1206 (1) - 0 [10:42:27]OFD Sender: Remove packet 67799 [10:42:27]ProducePacketName [10:42:27]name=ofd_packets/00067799 [10:42:27]NVStorageDeleteData [10:42:27]Write to MH i2c: 01 00 00 5C 2B 87 [10:42:27]Write i2c OK [10:42:27]MH_I2C_Read... [10:42:27]Read from MH i2c: 01 [10:42:27]MH_I2C_Read... [10:42:27]Read from MH i2c: 01 07 00 [10:42:27]MH_I2C_Read... [10:42:27]Read from MH i2c: 01 07 00 5C 2B 00 00 00 00 00 D1 0C 6B [10:42:27]RasterBufferAndPrint [10:42:27]line [10:42:27]line [10:42:27]line [10:42:27]line [10:42:27]line [10:42:27]written 0, free lines is 3288 [10:42:27]MH_Cut [10:42:27]Write to MH i2c: D1 01 00 63 2B 01 60 [10:42:27]Write i2c OK [10:42:27]MH_I2C_Read... [10:42:27]Read from MH i2c: D1 [10:42:27]MH_I2C_Read... [10:42:27]Read from MH i2c: D1 01 00 [10:42:27]MH_I2C_Read... [10:42:27]Read from MH i2c: D1 01 00 63 2B 00 5F [10:42:27]Write to MH i2c: 01 00 00 64 2B 8F [10:42:27]Write i2c OK [10:42:27]MH_I2C_Read... [10:42:27]OFD Sender: No OFD packet to send [10:42:28]*** Cut start [10:42:28]*** Purtial cut [10:42:28]*** CUTSNS_PIN = 0 [10:42:28]*** Stage 1: CUTSNS_PIN = 1 [10:42:30]Read from MH i2c: 01 [10:42:30]MH_I2C_Read... [10:42:30]*** Stop cut motor [10:42:30]*** Cut end [10:42:30]Read from MH i2c: 01 07 00 [10:42:30]MH_I2C_Read... [10:42:30]Read from MH i2c: 01 07 00 64 2B 00 00 00 00 00 FF 0F A4 [10:42:30]process_action close_receipt done [10:42:30]requested_data is exist [10:42:30]produce_requested_data [10:42:30]requested_item fm.sn is exist - process it [10:42:30]wFMCommunicate request_size=4 [10:42:30]MH_SAM_APDU [10:42:30]CAPDU: 80 11 00 00 [10:42:30]Write to MH i2c: E2 08 00 65 2B 80 11 00 00 00 00 00 00 0A [10:42:30]Write i2c OK [10:42:30]MH_I2C_Read... [10:42:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:42:30]Read from MH i2c: E2 [10:42:30]MH_I2C_Read... [10:42:30]Read from MH i2c: E2 17 00 [10:42:30]MH_I2C_Read... [10:42:30]Read from MH i2c: E2 17 00 65 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 60 [10:42:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [10:42:30]wFMCommunicate OK [10:42:30]requested_item fd.num is exist - process it [10:42:30]SAM_PROTO_GetFieldsCounters [10:42:30]wFMCommunicate request_size=4 [10:42:30]MH_SAM_APDU [10:42:30]CAPDU: 80 13 00 00 [10:42:30]Write to MH i2c: E2 08 00 66 2B 80 13 00 00 00 00 00 00 0D [10:42:30]Write i2c OK [10:42:30]MH_I2C_Read... [10:42:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:42:30]Read from MH i2c: E2 [10:42:30]MH_I2C_Read... [10:42:30]Read from MH i2c: E2 62 00 [10:42:30]MH_I2C_Read... [10:42:30]Read from MH i2c: E2 62 00 66 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 D7 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 26 00 00 00 5E 04 04 00 26 00 00 00 57 04 04 00 27 00 00 00 19 04 04 00 00 00 00 00 90 00 ED [10:42:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 D7 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 26 00 00 00 5E 04 04 00 26 00 00 00 57 04 04 00 27 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:42:30]wFMCommunicate OK [10:42:30]SAM_PROTO_GetFieldsCounters done [10:42:30]requested_item shift.num is exist - process it [10:42:30]requested_item shift.opened is exist - process it [10:42:30]req_shift_opened [10:42:30]FM_GetShiftState [10:42:30]SAM_PROTO_GetShiftState [10:42:30]wFMCommunicate request_size=4 [10:42:30]MH_SAM_APDU [10:42:30]CAPDU: 80 13 01 00 [10:42:30]Write to MH i2c: E2 08 00 67 2B 80 13 01 00 00 00 00 00 0F [10:42:30]Write i2c OK [10:42:30]MH_I2C_Read... [10:42:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:42:30]Read from MH i2c: E2 [10:42:30]MH_I2C_Read... [10:42:30]Read from MH i2c: E2 0E 00 [10:42:30]MH_I2C_Read... [10:42:30]Read from MH i2c: E2 0E 00 67 2B 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 76 [10:42:30]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [10:42:30]wFMCommunicate OK [10:42:30]SAM_PROTO_GetShiftState done [10:42:30]FM_GetShiftState done [10:42:30]req_shift_opened done [10:42:30]requested_item shift.open_date is exist - process it [10:42:30]req_shift_open_date [10:42:30]req_shift_open_date done [10:42:30]produce_requested_data done [10:42:30]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67799,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [10:42:30]process_action_free close_receipt [10:42:30]json_value_free [10:42:30]json_value_free done [10:42:30]process_json_proto returns [10:42:30]Send response to host [10:42:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67799,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [10:42:30]free response buf [10:42:30]execute_script done [10:42:30]execute_script returns [10:42:30]free content buf [10:42:30]Sock 9.Close socket [10:42:30]Sock 9.Thread stoped [10:42:32]OFD Sender: No OFD packet to send [10:42:37]OFD Sender: No OFD packet to send [10:42:42]OFD Sender: No OFD packet to send [10:42:47]OFD Sender: No OFD packet to send [10:42:52]OFD Sender: No OFD packet to send [10:42:57]OFD Sender: No OFD packet to send [10:43:02]OFD Sender: No OFD packet to send [10:43:07]OFD Sender: No OFD packet to send [10:43:12]OFD Sender: No OFD packet to send [10:43:13]accept exits with 7 [10:43:13]New connection [10:43:13]New thread 3066608996 created [10:43:13]Thread 3066752356 joined [10:43:13]Waiting for new connection... [10:43:13] Sock 7.Parse request [10:43:13]Sock 7.Check first char [10:43:13]Sock 7.First char is OK [10:43:13]request: POST /json_proto HTTP/1.0 [10:43:13]Method: POST [10:43:13]URL: /json_proto [10:43:13]Method is POST - this is cgi request [10:43:13]url: /json_proto [10:43:13]query_string will be loaded in cgi processing [10:43:13]execute_cgi json_proto POST (null) [10:43:13]execute_cgi path=json_proto method=POST [10:43:13]POST find Content-Length [10:43:13]Host: 172.17.41.195:8080 [10:43:13]Content-Length: 800 [10:43:13]Content-Type: application/json [10:43:13] [10:43:13]POST finish read [10:43:13]Found Content-Length = 800 [10:43:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)508004", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.80, "quantity" : 7.490, "sum" : 500.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.33 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:43:13]execute_script... [10:43:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)508004", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.80, "quantity" : 7.490, "sum" : 500.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.33 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:43:13]POST & json_proto [10:43:13]process_json_proto [10:43:13]json parsed OK: [10:43:13]protocol is kg_v1.0 [10:43:13]action value=close_receipt [10:43:13]process_action close_receipt [10:43:13]cmd_close_receipt [10:43:13]MH_GetDate [10:43:13]Write to MH i2c: F0 00 00 68 2B 82 [10:43:13]Write i2c OK [10:43:13]MH_I2C_Read... [10:43:13]Read from MH i2c: F0 [10:43:13]MH_I2C_Read... [10:43:13]Read from MH i2c: F0 09 00 [10:43:13]MH_I2C_Read... [10:43:13]Read from MH i2c: F0 09 00 68 2B 00 46 86 48 66 FC 21 6F 64 F5 [10:43:13]GetLastDocTimeStamp 1716028949 [10:43:13]current date 1716028998 [10:43:13]FM_GetShiftState [10:43:13]SAM_PROTO_GetShiftState [10:43:13]wFMCommunicate request_size=4 [10:43:13]MH_SAM_APDU [10:43:13]CAPDU: 80 13 01 00 [10:43:13]Write to MH i2c: E2 08 00 69 2B 80 13 01 00 00 00 00 00 11 [10:43:13]Write i2c OK [10:43:13]MH_I2C_Read... [10:43:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:43:13]Read from MH i2c: E2 [10:43:13]MH_I2C_Read... [10:43:13]Read from MH i2c: E2 0E 00 [10:43:13]MH_I2C_Read... [10:43:13]Read from MH i2c: E2 0E 00 69 2B 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 78 [10:43:13]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [10:43:13]wFMCommunicate OK [10:43:13]SAM_PROTO_GetShiftState done [10:43:13]FM_GetShiftState done [10:43:13]opened in 1715991483 [10:43:13]opened+sec_in_day 1716077883 [10:43:13]quantity*price = 50033 [10:43:13]sum+1 = 50034 [10:43:13]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.33 НСП 1% : 4.43 НДС 12% : 53.13 Наличными: 0.00 Безнал.: 500.33 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 39 18.05.2024 10:43 Смена: 359 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67800 ФПД: 181533614693225 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T104318&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67800&fm=181533614693225&tin=02508201610067®Number=0000000000091845&sum=50033 [10:43:14]StoreToDocumentArchive [10:43:14]shift 359 fd 67800 [10:43:14]save to /storage/0359/doc_00067800 [10:43:14]save last doc name /storage/0359/doc_00067800 to /storage/kkm_last_doc_name [10:43:14]save OK [10:43:14]Clear old archive folders... [10:43:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:43:14]tlvbuf is 01BC0A70 [10:43:14]SAM_PROTO_ClearQueue [10:43:14]wFMCommunicate request_size=4 [10:43:14]MH_SAM_APDU [10:43:14]CAPDU: 80 09 00 00 [10:43:14]Write to MH i2c: E2 08 00 76 2B 80 09 00 00 00 00 00 00 13 [10:43:14]Write i2c OK [10:43:14]MH_I2C_Read... [10:43:14]Read from MH i2c: E2 [10:43:14]MH_I2C_Read... [10:43:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:43:14]Read from MH i2c: E2 03 00 [10:43:14]MH_I2C_Read... [10:43:14]Read from MH i2c: E2 03 00 76 2B 00 90 00 15 [10:43:14]RAPDU: 90 00 [10:43:14]wFMCommunicate OK [10:43:14]SAM_PROTO_ClearQueue done [10:43:14]KKMCreateOFDPacket [10:43:14]OFDProtocolAddRootSTLVToBuf [10:43:14]FM_MakeSignedData [10:43:14]FM_MakeSignedData [10:43:14]SAM_PROTO_SignData [10:43:14]wFMCommunicate request_size=4 [10:43:14]MH_SAM_APDU [10:43:14]CAPDU: 80 0D 01 02 [10:43:14]Write to MH i2c: E2 08 00 77 2B 80 0D 01 02 00 00 00 00 1B [10:43:14]Write i2c OK [10:43:14]MH_I2C_Read... [10:43:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:43:14]Read from MH i2c: E2 [10:43:14]MH_I2C_Read... [10:43:14]Read from MH i2c: E2 03 00 [10:43:14]MH_I2C_Read... [10:43:14]Read from MH i2c: E2 03 00 77 2B 00 90 00 16 [10:43:14]RAPDU: 90 00 [10:43:14]wFMCommunicate OK [10:43:14]wFMCommunicate request_size=255 [10:43:14]MH_SAM_APDU [10:43:14]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 42 1D 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 71 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 71 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 46 86 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 D8 08 01 00 35 04 06 00 A5 [10:43:14]Write to MH i2c: E2 02 01 78 2B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 42 1D 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 71 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 71 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 46 86 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 D8 08 01 00 35 04 06 00 A5 00 00 77 [10:43:14]Write i2c OK [10:43:14]MH_I2C_Read... [10:43:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:43:14]Read from MH i2c: E2 [10:43:14]MH_I2C_Read... [10:43:14]Read from MH i2c: E2 03 00 [10:43:14]MH_I2C_Read... [10:43:14]Read from MH i2c: E2 03 00 78 2B 00 90 00 17 [10:43:14]RAPDU: 90 00 [10:43:14]wFMCommunicate OK [10:43:14]wFMCommunicate request_size=10 [10:43:14]MH_SAM_APDU [10:43:14]CAPDU: 80 0D 02 02 05 1A 96 9E 5B 69 [10:43:14]Write to MH i2c: E2 0D 00 79 2B 80 0D 02 02 05 00 1A 96 9E 5B 69 00 00 3A [10:43:14]Write i2c OK [10:43:14]MH_I2C_Read... [10:43:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:43:15]Read from MH i2c: E2 [10:43:15]MH_I2C_Read... [10:43:15]Read from MH i2c: E2 03 00 [10:43:15]MH_I2C_Read... [10:43:15]Read from MH i2c: E2 03 00 79 2B 00 90 00 18 [10:43:15]RAPDU: 90 00 [10:43:15]wFMCommunicate OK [10:43:15]wFMCommunicate request_size=4 [10:43:15]MH_SAM_APDU [10:43:15]CAPDU: 80 0D 03 02 [10:43:15]Write to MH i2c: E2 08 00 7A 2B 80 0D 03 02 00 00 00 00 20 [10:43:15]Write i2c OK [10:43:15]MH_I2C_Read... [10:43:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:43:15]Read from MH i2c: E2 [10:43:15]MH_I2C_Read... [10:43:15]Read from MH i2c: E2 0B 00 [10:43:15]MH_I2C_Read... [10:43:15]Read from MH i2c: E2 0B 00 7A 2B 00 84 F7 FB 8F 5C 86 D0 8D 90 00 65 [10:43:15]RAPDU: 84 F7 FB 8F 5C 86 D0 8D 90 00 [10:43:15]wFMCommunicate OK [10:43:15]SAM_PROTO_SignData done [10:43:15]FM_MakeSignedData done [10:43:15]CreateOFDProtocolMessage [10:43:15]wFMCommunicate request_size=4 [10:43:15]MH_SAM_APDU [10:43:15]CAPDU: 80 11 00 00 [10:43:15]Write to MH i2c: E2 08 00 7B 2B 80 11 00 00 00 00 00 00 20 [10:43:15]Write i2c OK [10:43:15]MH_I2C_Read... [10:43:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:43:15]Read from MH i2c: E2 [10:43:15]MH_I2C_Read... [10:43:15]Read from MH i2c: E2 17 00 [10:43:15]MH_I2C_Read... [10:43:15]Read from MH i2c: E2 17 00 7B 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 76 [10:43:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [10:43:15]wFMCommunicate OK [10:43:15]CreateOFDProtocolMessage done [10:43:15]OFDSenderStorePacket 67800 [10:43:15]StoreOFDPacket docnum=67800 [10:43:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 D8 D0 07 01 56 54 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 42 1D 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 71 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 71 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 46 86 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 D8 08 01 00 35 04 06 00 A5 1A 96 9E 5B 69 84 F7 FB 8F 5C 86 D0 8D [10:43:15]CheckFolder [10:43:15]dirname=/storage/ofd_packets [10:43:15]CheckFolder done [10:43:15]ProducePacketName [10:43:15]name=ofd_packets/00067800 [10:43:15]NVStorageSaveData ofd_packets/00067800 [10:43:15]File name is /storage/ofd_packets/00067800 [10:43:15]Write 301 bytes [10:43:15]NVStorageSaveData done [10:43:15]OFDSenderStorePacket done [10:43:15]KKMCreateOFDPacket done [10:43:15]NVStorageSaveData kkm_last_timestamp [10:43:15]File name is /storage/kkm_last_timestamp [10:43:15]Write 4 bytes [10:43:15]NVStorageSaveData done [10:43:15]ExternCall_PrintAddStr [10:43:15]wPrintStart [10:43:15]Write to MH i2c: 01 00 00 7C 2B A7 [10:43:15]Write i2c OK [10:43:15]MH_I2C_Read... [10:43:15]Read from MH i2c: 01 [10:43:15]MH_I2C_Read... [10:43:15]Read from MH i2c: 01 07 00 [10:43:15]MH_I2C_Read... [10:43:15]Read from MH i2c: 01 07 00 7C 2B 00 00 00 00 00 FF 0F BC [10:43:15]RasterBufferAndPrint [10:43:15]line Счет N : (1)508004 [10:43:15]line ИНН: 02508201610067 [10:43:15]line Контрольно-Кассовый Чек [10:43:15]line ПРОДАЖА [10:43:15]line ТРК (МРК, ГНК) : 13 [10:43:15]line Товар: 2710124130 [10:43:15]line Аи-92-К-5 [10:43:15]line 7.490 * 66.80 [10:43:15]line = 500.33 [10:43:15]line НДС 12% НСП 1% [10:43:15]line > о реализуемом товаре [10:43:15]line ИТОГО: 500.33 [10:43:15]line НСП 1% : 4.43 [10:43:15]line НДС 12% : 53.13 [10:43:15]line Наличными: 0.00 [10:43:15]line Безнал.: 500.33 [10:43:15]line Место: АЗС № 91 "Партнер Нефть" [10:43:15]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [10:43:15]line СНО: Общий режим [10:43:15]line Чек 39 18.05.2024 10:43 [10:43:15]line Смена: 359 ФФД: 1.0 [10:43:15]line ЗНМ: 0300000119 [10:43:15]line РНМ: 0000000000091845 [10:43:15]line Версия ККМ: 001 [10:43:15]line Платежная система: O! деньги [10:43:15]line ФМ: 0000000000871829 [10:43:15]line ФД: 67800 [10:43:15]line ФПД: 181533614693225 [10:43:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T104318&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67800&fm=181533614693225&tin=02508201610067®Number=0000000000091845&sum=50033 [10:43:15]OFD Sender: Processing packet 67800 [packets to send 35, broken 34] [10:43:15]ProducePacketName [10:43:15]name=ofd_packets/00067800 [10:43:15]OFD Sender: To server: pG, [10:43:15]CommunicateWithHost lk.salyk.kg:30040 [10:43:15]ConnectInit lk.salyk.kg [10:43:15]written 0, free lines is 4095 [10:43:15]Connected sock=10 [10:43:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 D8 D0 07 01 56 54 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 42 1D 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 71 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 71 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 46 86 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 D8 08 01 00 35 04 06 00 A5 1A 96 9E 5B 69 84 F7 FB 8F 5C 86 D0 8D [10:43:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 B4 E6 47 00 D8 F7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 D8 08 01 00 F4 03 04 00 1C 2E 48 66 B6 04 01 00 00 7E EA E5 86 A8 86 65 47 [10:43:15]CommunicateWithHost err = 0 [10:43:15]CheckOFDResponse [10:43:15]1017 (14) - 77093643461234 [10:43:15]1041 (16) - 0000000000871829 [10:43:15]1040 (4) - 67800 [10:43:15]1012 (4) - 18.05.2024 04:27 [10:43:15]1206 (1) - 0 [10:43:15]OFD Sender: Remove packet 67800 [10:43:15]ProducePacketName [10:43:15]name=ofd_packets/00067800 [10:43:15]NVStorageDeleteData [10:43:15]Write to MH i2c: 01 00 00 A5 2B D0 [10:43:15]Write i2c OK [10:43:15]MH_I2C_Read... [10:43:15]Read from MH i2c: 01 [10:43:15]MH_I2C_Read... [10:43:15]Read from MH i2c: 01 07 00 [10:43:15]MH_I2C_Read... [10:43:15]Read from MH i2c: 01 07 00 A5 2B 00 00 00 00 00 D6 0C B9 [10:43:15]RasterBufferAndPrint [10:43:15]line [10:43:15]line [10:43:15]line [10:43:15]line [10:43:15]line [10:43:15]written 0, free lines is 3290 [10:43:15]MH_Cut [10:43:15]Write to MH i2c: D1 01 00 AC 2B 01 A9 [10:43:15]Write i2c OK [10:43:15]MH_I2C_Read... [10:43:15]Read from MH i2c: D1 [10:43:15]MH_I2C_Read... [10:43:15]Read from MH i2c: D1 01 00 [10:43:15]MH_I2C_Read... [10:43:15]Read from MH i2c: D1 01 00 AC 2B 00 A8 [10:43:15]Write to MH i2c: 01 00 00 AD 2B D8 [10:43:15]Write i2c OK [10:43:15]MH_I2C_Read... [10:43:16]OFD Sender: No OFD packet to send [10:43:16]*** Cut start [10:43:16]*** Purtial cut [10:43:16]*** Stage 1: CUTSNS_PIN = 1 [10:43:17]Read from MH i2c: 01 [10:43:17]MH_I2C_Read... [10:43:17]*** Stop cut motor [10:43:17]*** Cut end [10:43:17]Read from MH i2c: 01 07 00 [10:43:17]MH_I2C_Read... [10:43:17]Read from MH i2c: 01 07 00 AD 2B 00 00 00 00 00 FF 0F ED [10:43:17]process_action close_receipt done [10:43:17]requested_data is exist [10:43:17]produce_requested_data [10:43:17]requested_item fm.sn is exist - process it [10:43:17]wFMCommunicate request_size=4 [10:43:17]MH_SAM_APDU [10:43:17]CAPDU: 80 11 00 00 [10:43:17]Write to MH i2c: E2 08 00 AE 2B 80 11 00 00 00 00 00 00 53 [10:43:17]Write i2c OK [10:43:17]MH_I2C_Read... [10:43:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:43:17]Read from MH i2c: E2 [10:43:17]MH_I2C_Read... [10:43:17]Read from MH i2c: E2 17 00 [10:43:17]MH_I2C_Read... [10:43:17]Read from MH i2c: E2 17 00 AE 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 A9 [10:43:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [10:43:17]wFMCommunicate OK [10:43:17]requested_item fd.num is exist - process it [10:43:17]SAM_PROTO_GetFieldsCounters [10:43:17]wFMCommunicate request_size=4 [10:43:17]MH_SAM_APDU [10:43:17]CAPDU: 80 13 00 00 [10:43:17]Write to MH i2c: E2 08 00 AF 2B 80 13 00 00 00 00 00 00 56 [10:43:17]Write i2c OK [10:43:17]MH_I2C_Read... [10:43:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:43:17]Read from MH i2c: E2 [10:43:17]MH_I2C_Read... [10:43:17]Read from MH i2c: E2 62 00 [10:43:17]MH_I2C_Read... [10:43:17]Read from MH i2c: E2 62 00 AF 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 D8 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 27 00 00 00 5E 04 04 00 27 00 00 00 57 04 04 00 28 00 00 00 19 04 04 00 00 00 00 00 90 00 3A [10:43:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 D8 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 27 00 00 00 5E 04 04 00 27 00 00 00 57 04 04 00 28 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:43:17]wFMCommunicate OK [10:43:17]SAM_PROTO_GetFieldsCounters done [10:43:17]requested_item shift.num is exist - process it [10:43:17]requested_item shift.opened is exist - process it [10:43:17]req_shift_opened [10:43:17]FM_GetShiftState [10:43:17]SAM_PROTO_GetShiftState [10:43:17]wFMCommunicate request_size=4 [10:43:17]MH_SAM_APDU [10:43:17]CAPDU: 80 13 01 00 [10:43:17]Write to MH i2c: E2 08 00 B0 2B 80 13 01 00 00 00 00 00 58 [10:43:17]Write i2c OK [10:43:17]MH_I2C_Read... [10:43:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:43:17]Read from MH i2c: E2 [10:43:17]MH_I2C_Read... [10:43:17]Read from MH i2c: E2 0E 00 [10:43:17]MH_I2C_Read... [10:43:17]Read from MH i2c: E2 0E 00 B0 2B 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 BF [10:43:17]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [10:43:17]wFMCommunicate OK [10:43:17]SAM_PROTO_GetShiftState done [10:43:17]FM_GetShiftState done [10:43:17]req_shift_opened done [10:43:17]requested_item shift.open_date is exist - process it [10:43:17]req_shift_open_date [10:43:17]req_shift_open_date done [10:43:17]produce_requested_data done [10:43:17]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67800,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [10:43:17]process_action_free close_receipt [10:43:17]json_value_free [10:43:17]json_value_free done [10:43:17]process_json_proto returns [10:43:17]Send response to host [10:43:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67800,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [10:43:17]free response buf [10:43:17]execute_script done [10:43:17]execute_script returns [10:43:17]free content buf [10:43:17]Sock 7.Close socket [10:43:17]Sock 7.Thread stoped [10:43:21]OFD Sender: No OFD packet to send [10:43:26]OFD Sender: No OFD packet to send [10:43:31]OFD Sender: No OFD packet to send [10:43:36]OFD Sender: No OFD packet to send [10:43:41]OFD Sender: No OFD packet to send [10:43:46]OFD Sender: No OFD packet to send [10:43:51]OFD Sender: No OFD packet to send [10:43:56]OFD Sender: No OFD packet to send [10:44:01]OFD Sender: No OFD packet to send [10:44:06]OFD Sender: No OFD packet to send [10:44:11]OFD Sender: No OFD packet to send [10:44:16]OFD Sender: No OFD packet to send [10:44:21]OFD Sender: No OFD packet to send [10:44:26]OFD Sender: No OFD packet to send [10:44:31]OFD Sender: No OFD packet to send [10:44:36]OFD Sender: No OFD packet to send [10:44:41]OFD Sender: No OFD packet to send [10:44:46]OFD Sender: No OFD packet to send [10:44:51]OFD Sender: No OFD packet to send [10:44:56]OFD Sender: No OFD packet to send [10:45:01]OFD Sender: No OFD packet to send [10:45:06]OFD Sender: No OFD packet to send [10:45:11]OFD Sender: No OFD packet to send [10:45:16]OFD Sender: No OFD packet to send [10:45:21]OFD Sender: No OFD packet to send [10:45:26]OFD Sender: No OFD packet to send [10:45:31]OFD Sender: No OFD packet to send [10:45:36]OFD Sender: No OFD packet to send [10:45:41]OFD Sender: No OFD packet to send [10:45:46]OFD Sender: No OFD packet to send [10:45:51]OFD Sender: No OFD packet to send [10:45:56]OFD Sender: No OFD packet to send [10:46:01]OFD Sender: No OFD packet to send [10:46:06]OFD Sender: No OFD packet to send [10:46:11]OFD Sender: No OFD packet to send [10:46:16]OFD Sender: No OFD packet to send [10:46:21]OFD Sender: No OFD packet to send [10:46:26]OFD Sender: No OFD packet to send [10:46:31]OFD Sender: No OFD packet to send [10:46:36]OFD Sender: No OFD packet to send [10:46:41]OFD Sender: No OFD packet to send [10:46:46]OFD Sender: No OFD packet to send [10:46:51]OFD Sender: No OFD packet to send [10:46:56]OFD Sender: No OFD packet to send [10:47:01]OFD Sender: No OFD packet to send [10:47:06]OFD Sender: No OFD packet to send [10:47:11]OFD Sender: No OFD packet to send [10:47:16]OFD Sender: No OFD packet to send [10:47:21]OFD Sender: No OFD packet to send [10:47:26]OFD Sender: No OFD packet to send [10:47:31]OFD Sender: No OFD packet to send [10:47:36]OFD Sender: No OFD packet to send [10:47:41]OFD Sender: No OFD packet to send [10:47:46]OFD Sender: No OFD packet to send [10:47:51]OFD Sender: No OFD packet to send [10:47:56]OFD Sender: No OFD packet to send [10:48:01]OFD Sender: No OFD packet to send [10:48:06]OFD Sender: No OFD packet to send [10:48:11]OFD Sender: No OFD packet to send [10:48:16]OFD Sender: No OFD packet to send [10:48:21]OFD Sender: No OFD packet to send [10:48:26]OFD Sender: No OFD packet to send [10:48:31]OFD Sender: No OFD packet to send [10:48:36]OFD Sender: No OFD packet to send [10:48:41]OFD Sender: No OFD packet to send [10:48:46]OFD Sender: No OFD packet to send [10:48:51]OFD Sender: No OFD packet to send [10:48:56]OFD Sender: No OFD packet to send [10:49:01]OFD Sender: No OFD packet to send [10:49:06]OFD Sender: No OFD packet to send [10:49:11]OFD Sender: No OFD packet to send [10:49:16]OFD Sender: No OFD packet to send [10:49:21]OFD Sender: No OFD packet to send [10:49:26]OFD Sender: No OFD packet to send [10:49:31]OFD Sender: No OFD packet to send [10:49:36]OFD Sender: No OFD packet to send [10:49:41]OFD Sender: No OFD packet to send [10:49:46]OFD Sender: No OFD packet to send [10:49:51]OFD Sender: No OFD packet to send [10:49:56]OFD Sender: No OFD packet to send [10:50:01]OFD Sender: No OFD packet to send [10:50:06]OFD Sender: No OFD packet to send [10:50:11]OFD Sender: No OFD packet to send [10:50:13]accept exits with 9 [10:50:13]New connection [10:50:13]New thread 3066752356 created [10:50:13]Thread 3066608996 joined [10:50:13]Waiting for new connection... [10:50:13] Sock 9.Parse request [10:50:13]Sock 9.Check first char [10:50:13]Sock 9.First char is OK [10:50:13]request: POST /json_proto HTTP/1.0 [10:50:13]Method: POST [10:50:13]URL: /json_proto [10:50:13]Method is POST - this is cgi request [10:50:13]url: /json_proto [10:50:13]query_string will be loaded in cgi processing [10:50:13]execute_cgi json_proto POST (null) [10:50:13]execute_cgi path=json_proto method=POST [10:50:13]POST find Content-Length [10:50:13]Host: 172.17.41.195:8080 [10:50:13]Content-Length: 797 [10:50:13]Content-Type: application/json [10:50:13] [10:50:13]POST finish read [10:50:13]Found Content-Length = 797 [10:50:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)508006", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 9.380, "sum" : 700.69, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 700.69 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:50:13]execute_script... [10:50:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)508006", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 9.380, "sum" : 700.69, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 700.69 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:50:13]POST & json_proto [10:50:13]process_json_proto [10:50:13]json parsed OK: [10:50:13]protocol is kg_v1.0 [10:50:13]action value=close_receipt [10:50:13]process_action close_receipt [10:50:13]cmd_close_receipt [10:50:13]MH_GetDate [10:50:13]Write to MH i2c: F0 00 00 B1 2B CB [10:50:13]Write i2c OK [10:50:13]MH_I2C_Read... [10:50:13]Read from MH i2c: F0 [10:50:13]MH_I2C_Read... [10:50:13]Read from MH i2c: F0 09 00 [10:50:13]MH_I2C_Read... [10:50:13]Read from MH i2c: F0 09 00 B1 2B 00 EA 87 48 66 FC 21 6F 64 E3 [10:50:13]GetLastDocTimeStamp 1716028998 [10:50:13]current date 1716029418 [10:50:13]FM_GetShiftState [10:50:13]SAM_PROTO_GetShiftState [10:50:13]wFMCommunicate request_size=4 [10:50:13]MH_SAM_APDU [10:50:13]CAPDU: 80 13 01 00 [10:50:13]Write to MH i2c: E2 08 00 B2 2B 80 13 01 00 00 00 00 00 5A [10:50:13]Write i2c OK [10:50:13]MH_I2C_Read... [10:50:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:50:13]Read from MH i2c: E2 [10:50:13]MH_I2C_Read... [10:50:13]Read from MH i2c: E2 0E 00 [10:50:13]MH_I2C_Read... [10:50:13]Read from MH i2c: E2 0E 00 B2 2B 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 C1 [10:50:13]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [10:50:13]wFMCommunicate OK [10:50:13]SAM_PROTO_GetShiftState done [10:50:13]FM_GetShiftState done [10:50:13]opened in 1715991483 [10:50:13]opened+sec_in_day 1716077883 [10:50:13]quantity*price = 70068 [10:50:13]sum+1 = 70070 [10:50:13]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 700.69 НСП 1% : 6.20 НДС 12% : 74.41 Наличными: 0.00 Безнал.: 700.69 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 40 18.05.2024 10:50 Смена: 359 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67801 ФПД: 39252002340683 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T105018&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67801&fm=39252002340683&tin=02508201610067®Number=0000000000091845&sum=70069 [10:50:14]StoreToDocumentArchive [10:50:14]shift 359 fd 67801 [10:50:14]save to /storage/0359/doc_00067801 [10:50:14]save last doc name /storage/0359/doc_00067801 to /storage/kkm_last_doc_name [10:50:14]save OK [10:50:14]Clear old archive folders... [10:50:14]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:50:14]tlvbuf is 01B5B540 [10:50:14]SAM_PROTO_ClearQueue [10:50:14]wFMCommunicate request_size=4 [10:50:14]MH_SAM_APDU [10:50:14]CAPDU: 80 09 00 00 [10:50:14]Write to MH i2c: E2 08 00 BF 2B 80 09 00 00 00 00 00 00 5C [10:50:14]Write i2c OK [10:50:14]MH_I2C_Read... [10:50:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:50:14]Read from MH i2c: E2 [10:50:14]MH_I2C_Read... [10:50:14]Read from MH i2c: E2 03 00 [10:50:14]MH_I2C_Read... [10:50:14]Read from MH i2c: E2 03 00 BF 2B 00 90 00 5E [10:50:14]RAPDU: 90 00 [10:50:14]wFMCommunicate OK [10:50:14]SAM_PROTO_ClearQueue done [10:50:14]KKMCreateOFDPacket [10:50:14]OFDProtocolAddRootSTLVToBuf [10:50:14]FM_MakeSignedData [10:50:14]FM_MakeSignedData [10:50:14]SAM_PROTO_SignData [10:50:14]wFMCommunicate request_size=4 [10:50:14]MH_SAM_APDU [10:50:14]CAPDU: 80 0D 01 02 [10:50:14]Write to MH i2c: E2 08 00 C0 2B 80 0D 01 02 00 00 00 00 64 [10:50:14]Write i2c OK [10:50:14]MH_I2C_Read... [10:50:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:50:14]Read from MH i2c: E2 [10:50:14]MH_I2C_Read... [10:50:14]Read from MH i2c: E2 03 00 [10:50:14]MH_I2C_Read... [10:50:14]Read from MH i2c: E2 03 00 C0 2B 00 90 00 5F [10:50:14]RAPDU: 90 00 [10:50:14]wFMCommunicate OK [10:50:14]wFMCommunicate request_size=255 [10:50:14]MH_SAM_APDU [10:50:14]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A4 24 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 B5 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B5 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 11 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B5 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 EA 87 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 D9 08 01 00 35 04 06 00 23 B3 11 A7 [10:50:14]Write to MH i2c: E2 02 01 C1 2B 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A4 24 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 B5 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B5 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 11 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B5 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 EA 87 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 D9 08 01 00 35 04 06 00 23 B3 11 A7 00 00 E9 [10:50:14]Write i2c OK [10:50:14]MH_I2C_Read... [10:50:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:50:15]Read from MH i2c: E2 [10:50:15]MH_I2C_Read... [10:50:15]Read from MH i2c: E2 03 00 [10:50:15]MH_I2C_Read... [10:50:15]Read from MH i2c: E2 03 00 C1 2B 00 90 00 60 [10:50:15]RAPDU: 90 00 [10:50:15]wFMCommunicate OK [10:50:15]wFMCommunicate request_size=7 [10:50:15]MH_SAM_APDU [10:50:15]CAPDU: 80 0D 02 02 02 FF 4B [10:50:15]Write to MH i2c: E2 0A 00 C2 2B 80 0D 02 02 02 00 FF 4B 00 00 B5 [10:50:15]Write i2c OK [10:50:15]MH_I2C_Read... [10:50:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:50:15]Read from MH i2c: E2 [10:50:15]MH_I2C_Read... [10:50:15]Read from MH i2c: E2 03 00 [10:50:15]MH_I2C_Read... [10:50:15]Read from MH i2c: E2 03 00 C2 2B 00 90 00 61 [10:50:15]RAPDU: 90 00 [10:50:15]wFMCommunicate OK [10:50:15]wFMCommunicate request_size=4 [10:50:15]MH_SAM_APDU [10:50:15]CAPDU: 80 0D 03 02 [10:50:15]Write to MH i2c: E2 08 00 C3 2B 80 0D 03 02 00 00 00 00 69 [10:50:15]Write i2c OK [10:50:15]MH_I2C_Read... [10:50:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:50:15]Read from MH i2c: E2 [10:50:15]MH_I2C_Read... [10:50:15]Read from MH i2c: E2 0B 00 [10:50:15]MH_I2C_Read... [10:50:15]Read from MH i2c: E2 0B 00 C3 2B 00 15 A0 35 E3 4F 7F B9 23 90 00 E1 [10:50:15]RAPDU: 15 A0 35 E3 4F 7F B9 23 90 00 [10:50:15]wFMCommunicate OK [10:50:15]SAM_PROTO_SignData done [10:50:15]FM_MakeSignedData done [10:50:15]CreateOFDProtocolMessage [10:50:15]wFMCommunicate request_size=4 [10:50:15]MH_SAM_APDU [10:50:15]CAPDU: 80 11 00 00 [10:50:15]Write to MH i2c: E2 08 00 C4 2B 80 11 00 00 00 00 00 00 69 [10:50:15]Write i2c OK [10:50:15]MH_I2C_Read... [10:50:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:50:15]Read from MH i2c: E2 [10:50:15]MH_I2C_Read... [10:50:15]Read from MH i2c: E2 17 00 [10:50:15]MH_I2C_Read... [10:50:15]Read from MH i2c: E2 17 00 C4 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 BF [10:50:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [10:50:15]wFMCommunicate OK [10:50:15]CreateOFDProtocolMessage done [10:50:15]OFDSenderStorePacket 67801 [10:50:15]StoreOFDPacket docnum=67801 [10:50:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 28 F2 04 01 55 38 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A4 24 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 B5 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B5 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 11 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B5 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 EA 87 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 D9 08 01 00 35 04 06 00 23 B3 11 A7 FF 4B 15 A0 35 E3 4F 7F B9 23 [10:50:15]CheckFolder [10:50:15]dirname=/storage/ofd_packets [10:50:15]CheckFolder done [10:50:15]ProducePacketName [10:50:15]name=ofd_packets/00067801 [10:50:15]NVStorageSaveData ofd_packets/00067801 [10:50:15]File name is /storage/ofd_packets/00067801 [10:50:15]Write 298 bytes [10:50:15]NVStorageSaveData done [10:50:15]OFDSenderStorePacket done [10:50:15]KKMCreateOFDPacket done [10:50:15]NVStorageSaveData kkm_last_timestamp [10:50:15]File name is /storage/kkm_last_timestamp [10:50:15]Write 4 bytes [10:50:15]NVStorageSaveData done [10:50:15]ExternCall_PrintAddStr [10:50:15]wPrintStart [10:50:15]Write to MH i2c: 01 00 00 C5 2B F0 [10:50:15]Write i2c OK [10:50:15]MH_I2C_Read... [10:50:15]Read from MH i2c: 01 [10:50:15]MH_I2C_Read... [10:50:15]Read from MH i2c: 01 07 00 [10:50:15]MH_I2C_Read... [10:50:15]Read from MH i2c: 01 07 00 C5 2B 00 00 00 00 00 FF 0F 05 [10:50:15]RasterBufferAndPrint [10:50:15]line Счет N : (1)508006 [10:50:15]line ИНН: 02508201610067 [10:50:15]line Контрольно-Кассовый Чек [10:50:15]line ПРОДАЖА [10:50:15]line ТРК (МРК, ГНК) : 31 [10:50:15]line Товар: 2710194210 [10:50:15]line ДТ-К-5 [10:50:15]line 9.380 * 74.70 [10:50:15]line = 700.69 [10:50:15]line НДС 12% НСП 1% [10:50:15]line > о реализуемом товаре [10:50:15]line ИТОГО: 700.69 [10:50:15]line НСП 1% : 6.20 [10:50:15]line НДС 12% : 74.41 [10:50:15]line Наличными: 0.00 [10:50:15]line Безнал.: 700.69 [10:50:15]line Место: АЗС № 91 "Партнер Нефть" [10:50:15]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [10:50:15]line СНО: Общий режим [10:50:15]line Чек 40 18.05.2024 10:50 [10:50:15]line Смена: 359 ФФД: 1.0 [10:50:15]line ЗНМ: 0300000119 [10:50:15]line РНМ: 0000000000091845 [10:50:15]line Версия ККМ: 001 [10:50:15]line Платежная система: O! деньги [10:50:15]line ФМ: 0000000000871829 [10:50:15]line ФД: 67801 [10:50:15]line ФПД: 39252002340683 [10:50:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T105018&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67801&fm=39252002340683&tin=02508201610067®Number=0000000000091845&sum=70069 [10:50:15]OFD Sender: Processing packet 67801 [packets to send 35, broken 34] [10:50:15]ProducePacketName [10:50:15]name=ofd_packets/00067801 [10:50:15]OFD Sender: To server: pG, [10:50:15]CommunicateWithHost lk.salyk.kg:30040 [10:50:15]ConnectInit lk.salyk.kg [10:50:15]written 0, free lines is 4095 [10:50:15]Connected sock=7 [10:50:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 28 F2 04 01 55 38 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A4 24 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 B5 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B5 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 11 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B5 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 EA 87 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 D9 08 01 00 35 04 06 00 23 B3 11 A7 FF 4B 15 A0 35 E3 4F 7F B9 23 [10:50:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 1C F6 47 00 24 1F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 D9 08 01 00 F4 03 04 00 C0 2F 48 66 B6 04 01 00 00 D8 4B 51 2A F6 07 8F 60 [10:50:15]CommunicateWithHost err = 0 [10:50:15]CheckOFDResponse [10:50:15]1017 (14) - 77093643461234 [10:50:15]1041 (16) - 0000000000871829 [10:50:15]1040 (4) - 67801 [10:50:15]1012 (4) - 18.05.2024 04:34 [10:50:15]1206 (1) - 0 [10:50:15]OFD Sender: Remove packet 67801 [10:50:15]ProducePacketName [10:50:15]name=ofd_packets/00067801 [10:50:15]NVStorageDeleteData [10:50:16]Write to MH i2c: 01 00 00 EE 2B 19 [10:50:16]Write i2c OK [10:50:16]MH_I2C_Read... [10:50:16]Read from MH i2c: 01 [10:50:16]MH_I2C_Read... [10:50:16]Read from MH i2c: 01 07 00 [10:50:16]MH_I2C_Read... [10:50:16]Read from MH i2c: 01 07 00 EE 2B 00 00 00 00 00 D6 0C 02 [10:50:16]RasterBufferAndPrint [10:50:16]line [10:50:16]line [10:50:16]line [10:50:16]line [10:50:16]line [10:50:16]written 0, free lines is 3291 [10:50:16]MH_Cut [10:50:16]Write to MH i2c: D1 01 00 F5 2B 01 F2 [10:50:16]Write i2c OK [10:50:16]MH_I2C_Read... [10:50:16]Read from MH i2c: D1 [10:50:16]MH_I2C_Read... [10:50:16]Read from MH i2c: D1 01 00 [10:50:16]MH_I2C_Read... [10:50:16]Read from MH i2c: D1 01 00 F5 2B 00 F1 [10:50:16]Write to MH i2c: 01 00 00 F6 2B 21 [10:50:16]Write i2c OK [10:50:16]MH_I2C_Read... [10:50:16]OFD Sender: No OFD packet to send [10:50:16]*** Cut start [10:50:16]*** Purtial cut [10:50:16]*** CUTSNS_PIN = 0 [10:50:17]*** Stage 1: CUTSNS_PIN = 1 [10:50:18]Read from MH i2c: 01 [10:50:18]MH_I2C_Read... [10:50:18]*** Stop cut motor [10:50:18]*** Cut end [10:50:18]Read from MH i2c: 01 07 00 [10:50:18]MH_I2C_Read... [10:50:18]Read from MH i2c: 01 07 00 F6 2B 00 00 00 00 00 FF 0F 36 [10:50:18]process_action close_receipt done [10:50:18]requested_data is exist [10:50:18]produce_requested_data [10:50:18]requested_item fm.sn is exist - process it [10:50:18]wFMCommunicate request_size=4 [10:50:18]MH_SAM_APDU [10:50:18]CAPDU: 80 11 00 00 [10:50:18]Write to MH i2c: E2 08 00 F7 2B 80 11 00 00 00 00 00 00 9C [10:50:18]Write i2c OK [10:50:18]MH_I2C_Read... [10:50:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:50:18]Read from MH i2c: E2 [10:50:18]MH_I2C_Read... [10:50:18]Read from MH i2c: E2 17 00 [10:50:18]MH_I2C_Read... [10:50:18]Read from MH i2c: E2 17 00 F7 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 F2 [10:50:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [10:50:18]wFMCommunicate OK [10:50:18]requested_item fd.num is exist - process it [10:50:18]SAM_PROTO_GetFieldsCounters [10:50:18]wFMCommunicate request_size=4 [10:50:18]MH_SAM_APDU [10:50:18]CAPDU: 80 13 00 00 [10:50:18]Write to MH i2c: E2 08 00 F8 2B 80 13 00 00 00 00 00 00 9F [10:50:18]Write i2c OK [10:50:18]MH_I2C_Read... [10:50:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:50:19]Read from MH i2c: E2 [10:50:19]MH_I2C_Read... [10:50:19]Read from MH i2c: E2 62 00 [10:50:19]MH_I2C_Read... [10:50:19]Read from MH i2c: E2 62 00 F8 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 D9 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 87 [10:50:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 D9 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:50:19]wFMCommunicate OK [10:50:19]SAM_PROTO_GetFieldsCounters done [10:50:19]requested_item shift.num is exist - process it [10:50:19]requested_item shift.opened is exist - process it [10:50:19]req_shift_opened [10:50:19]FM_GetShiftState [10:50:19]SAM_PROTO_GetShiftState [10:50:19]wFMCommunicate request_size=4 [10:50:19]MH_SAM_APDU [10:50:19]CAPDU: 80 13 01 00 [10:50:19]Write to MH i2c: E2 08 00 F9 2B 80 13 01 00 00 00 00 00 A1 [10:50:19]Write i2c OK [10:50:19]MH_I2C_Read... [10:50:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:50:19]Read from MH i2c: E2 [10:50:19]MH_I2C_Read... [10:50:19]Read from MH i2c: E2 0E 00 [10:50:19]MH_I2C_Read... [10:50:19]Read from MH i2c: E2 0E 00 F9 2B 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 08 [10:50:19]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [10:50:19]wFMCommunicate OK [10:50:19]SAM_PROTO_GetShiftState done [10:50:19]FM_GetShiftState done [10:50:19]req_shift_opened done [10:50:19]requested_item shift.open_date is exist - process it [10:50:19]req_shift_open_date [10:50:19]req_shift_open_date done [10:50:19]produce_requested_data done [10:50:19]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67801,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [10:50:19]process_action_free close_receipt [10:50:19]json_value_free [10:50:19]json_value_free done [10:50:19]process_json_proto returns [10:50:19]Send response to host [10:50:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67801,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [10:50:19]free response buf [10:50:19]execute_script done [10:50:19]execute_script returns [10:50:19]free content buf [10:50:19]Sock 9.Close socket [10:50:19]Sock 9.Thread stoped [10:50:21]OFD Sender: No OFD packet to send [10:50:26]OFD Sender: No OFD packet to send [10:50:31]OFD Sender: No OFD packet to send [10:50:36]OFD Sender: No OFD packet to send [10:50:41]OFD Sender: No OFD packet to send [10:50:46]OFD Sender: No OFD packet to send [10:50:49]accept exits with 10 [10:50:49]New connection [10:50:49]New thread 3066608996 created [10:50:49]Thread 3066752356 joined [10:50:49]Waiting for new connection... [10:50:49] Sock 10.Parse request [10:50:49]Sock 10.Check first char [10:50:49]Sock 10.First char is OK [10:50:49]request: POST /json_proto HTTP/1.0 [10:50:49]Method: POST [10:50:49]URL: /json_proto [10:50:49]Method is POST - this is cgi request [10:50:49]url: /json_proto [10:50:49]query_string will be loaded in cgi processing [10:50:49]execute_cgi json_proto POST (null) [10:50:49]execute_cgi path=json_proto method=POST [10:50:49]POST find Content-Length [10:50:49]Host: 172.17.41.195:8080 [10:50:49]Content-Length: 800 [10:50:49]Content-Type: application/json [10:50:49] [10:50:49]POST finish read [10:50:49]Found Content-Length = 800 [10:50:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)508007", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 13.390, "sum" : 1000.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.23 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:50:49]execute_script... [10:50:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)508007", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 13.390, "sum" : 1000.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.23 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:50:49]POST & json_proto [10:50:49]process_json_proto [10:50:49]json parsed OK: [10:50:49]protocol is kg_v1.0 [10:50:49]action value=close_receipt [10:50:49]process_action close_receipt [10:50:49]cmd_close_receipt [10:50:49]MH_GetDate [10:50:49]Write to MH i2c: F0 00 00 FA 2B 14 [10:50:49]Write i2c OK [10:50:49]MH_I2C_Read... [10:50:49]Read from MH i2c: F0 [10:50:49]MH_I2C_Read... [10:50:49]Read from MH i2c: F0 09 00 [10:50:49]MH_I2C_Read... [10:50:49]Read from MH i2c: F0 09 00 FA 2B 00 0E 88 48 66 FC 21 6F 64 51 [10:50:49]GetLastDocTimeStamp 1716029418 [10:50:49]current date 1716029454 [10:50:49]FM_GetShiftState [10:50:49]SAM_PROTO_GetShiftState [10:50:49]wFMCommunicate request_size=4 [10:50:49]MH_SAM_APDU [10:50:49]CAPDU: 80 13 01 00 [10:50:49]Write to MH i2c: E2 08 00 FB 2B 80 13 01 00 00 00 00 00 A3 [10:50:49]Write i2c OK [10:50:49]MH_I2C_Read... [10:50:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:50:49]Read from MH i2c: E2 [10:50:49]MH_I2C_Read... [10:50:49]Read from MH i2c: E2 0E 00 [10:50:49]MH_I2C_Read... [10:50:49]Read from MH i2c: E2 0E 00 FB 2B 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 0A [10:50:49]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [10:50:49]wFMCommunicate OK [10:50:49]SAM_PROTO_GetShiftState done [10:50:49]FM_GetShiftState done [10:50:49]opened in 1715991483 [10:50:49]opened+sec_in_day 1716077883 [10:50:49]quantity*price = 100023 [10:50:49]sum+1 = 100024 [10:50:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.23 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.23 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 41 18.05.2024 10:50 Смена: 359 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67802 ФПД: 209961051329665 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T105054&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67802&fm=209961051329665&tin=02508201610067®Number=0000000000091845&sum=100023 [10:50:51]StoreToDocumentArchive [10:50:51]shift 359 fd 67802 [10:50:51]save to /storage/0359/doc_00067802 [10:50:51]save last doc name /storage/0359/doc_00067802 to /storage/kkm_last_doc_name [10:50:51]save OK [10:50:51]Clear old archive folders... [10:50:51]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:50:51]tlvbuf is 01B45B30 [10:50:51]SAM_PROTO_ClearQueue [10:50:51]wFMCommunicate request_size=4 [10:50:51]MH_SAM_APDU [10:50:51]CAPDU: 80 09 00 00 [10:50:51]Write to MH i2c: E2 08 00 08 2C 80 09 00 00 00 00 00 00 A6 [10:50:51]Write i2c OK [10:50:51]MH_I2C_Read... [10:50:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:50:51]Read from MH i2c: E2 [10:50:51]MH_I2C_Read... [10:50:51]Read from MH i2c: E2 03 00 [10:50:51]MH_I2C_Read... [10:50:51]Read from MH i2c: E2 03 00 08 2C 00 90 00 A8 [10:50:51]RAPDU: 90 00 [10:50:51]wFMCommunicate OK [10:50:51]SAM_PROTO_ClearQueue done [10:50:51]KKMCreateOFDPacket [10:50:51]OFDProtocolAddRootSTLVToBuf [10:50:51]FM_MakeSignedData [10:50:51]FM_MakeSignedData [10:50:51]SAM_PROTO_SignData [10:50:51]wFMCommunicate request_size=4 [10:50:51]MH_SAM_APDU [10:50:51]CAPDU: 80 0D 01 02 [10:50:51]Write to MH i2c: E2 08 00 09 2C 80 0D 01 02 00 00 00 00 AE [10:50:51]Write i2c OK [10:50:51]MH_I2C_Read... [10:50:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:50:51]Read from MH i2c: E2 [10:50:51]MH_I2C_Read... [10:50:51]Read from MH i2c: E2 03 00 [10:50:51]MH_I2C_Read... [10:50:51]Read from MH i2c: E2 03 00 09 2C 00 90 00 A9 [10:50:51]RAPDU: 90 00 [10:50:51]wFMCommunicate OK [10:50:51]wFMCommunicate request_size=255 [10:50:51]MH_SAM_APDU [10:50:51]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4E 34 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 B7 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B7 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B7 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 0E 88 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 DA 08 01 00 35 04 06 00 BE F5 5D E1 [10:50:51]Write to MH i2c: E2 02 01 0A 2C 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4E 34 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 B7 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B7 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B7 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 0E 88 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 DA 08 01 00 35 04 06 00 BE F5 5D E1 00 00 5F [10:50:51]Write i2c OK [10:50:51]MH_I2C_Read... [10:50:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:50:51]Read from MH i2c: E2 [10:50:51]MH_I2C_Read... [10:50:51]Read from MH i2c: E2 03 00 [10:50:51]MH_I2C_Read... [10:50:51]Read from MH i2c: E2 03 00 0A 2C 00 90 00 AA [10:50:51]RAPDU: 90 00 [10:50:51]wFMCommunicate OK [10:50:51]wFMCommunicate request_size=7 [10:50:51]MH_SAM_APDU [10:50:51]CAPDU: 80 0D 02 02 02 94 81 [10:50:51]Write to MH i2c: E2 0A 00 0B 2C 80 0D 02 02 02 00 94 81 00 00 CA [10:50:51]Write i2c OK [10:50:51]MH_I2C_Read... [10:50:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:50:51]Read from MH i2c: E2 [10:50:51]MH_I2C_Read... [10:50:51]Read from MH i2c: E2 03 00 [10:50:51]MH_I2C_Read... [10:50:51]Read from MH i2c: E2 03 00 0B 2C 00 90 00 AB [10:50:51]RAPDU: 90 00 [10:50:51]wFMCommunicate OK [10:50:51]wFMCommunicate request_size=4 [10:50:51]MH_SAM_APDU [10:50:51]CAPDU: 80 0D 03 02 [10:50:51]Write to MH i2c: E2 08 00 0C 2C 80 0D 03 02 00 00 00 00 B3 [10:50:51]Write i2c OK [10:50:51]MH_I2C_Read... [10:50:51]OFD Sender: No OFD packet to send [10:50:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:50:51]Read from MH i2c: E2 [10:50:51]MH_I2C_Read... [10:50:51]Read from MH i2c: E2 0B 00 [10:50:51]MH_I2C_Read... [10:50:51]Read from MH i2c: E2 0B 00 0C 2C 00 B6 8C 8D B2 88 7C 80 00 90 00 B9 [10:50:51]RAPDU: B6 8C 8D B2 88 7C 80 00 90 00 [10:50:51]wFMCommunicate OK [10:50:51]SAM_PROTO_SignData done [10:50:51]FM_MakeSignedData done [10:50:51]CreateOFDProtocolMessage [10:50:51]wFMCommunicate request_size=4 [10:50:51]MH_SAM_APDU [10:50:51]CAPDU: 80 11 00 00 [10:50:51]Write to MH i2c: E2 08 00 0D 2C 80 11 00 00 00 00 00 00 B3 [10:50:51]Write i2c OK [10:50:51]MH_I2C_Read... [10:50:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:50:51]Read from MH i2c: E2 [10:50:51]MH_I2C_Read... [10:50:51]Read from MH i2c: E2 17 00 [10:50:51]MH_I2C_Read... [10:50:51]Read from MH i2c: E2 17 00 0D 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 09 [10:50:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [10:50:51]wFMCommunicate OK [10:50:51]CreateOFDProtocolMessage done [10:50:51]OFDSenderStorePacket 67802 [10:50:51]StoreOFDPacket docnum=67802 [10:50:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 83 7B 04 01 28 93 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4E 34 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 B7 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B7 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B7 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 0E 88 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 DA 08 01 00 35 04 06 00 BE F5 5D E1 94 81 B6 8C 8D B2 88 7C 80 00 [10:50:51]CheckFolder [10:50:51]dirname=/storage/ofd_packets [10:50:51]CheckFolder done [10:50:51]ProducePacketName [10:50:51]name=ofd_packets/00067802 [10:50:51]NVStorageSaveData ofd_packets/00067802 [10:50:51]File name is /storage/ofd_packets/00067802 [10:50:51]Write 298 bytes [10:50:51]NVStorageSaveData done [10:50:51]OFDSenderStorePacket done [10:50:51]KKMCreateOFDPacket done [10:50:51]NVStorageSaveData kkm_last_timestamp [10:50:51]File name is /storage/kkm_last_timestamp [10:50:51]Write 4 bytes [10:50:51]NVStorageSaveData done [10:50:51]ExternCall_PrintAddStr [10:50:51]wPrintStart [10:50:51]Write to MH i2c: 01 00 00 0E 2C 3A [10:50:51]Write i2c OK [10:50:51]MH_I2C_Read... [10:50:51]Read from MH i2c: 01 [10:50:51]MH_I2C_Read... [10:50:51]Read from MH i2c: 01 07 00 [10:50:51]MH_I2C_Read... [10:50:51]Read from MH i2c: 01 07 00 0E 2C 00 00 00 00 00 FF 0F 4F [10:50:51]RasterBufferAndPrint [10:50:51]line Счет N : (1)508007 [10:50:51]line ИНН: 02508201610067 [10:50:51]line Контрольно-Кассовый Чек [10:50:51]line ПРОДАЖА [10:50:51]line ТРК (МРК, ГНК) : 11 [10:50:51]line Товар: 2710194210 [10:50:51]line ДТ-К-5 [10:50:51]line 13.390 * 74.70 [10:50:51]line = 1000.23 [10:50:51]line НДС 12% НСП 1% [10:50:51]line > о реализуемом товаре [10:50:51]line ИТОГО: 1000.23 [10:50:51]line НСП 1% : 8.85 [10:50:51]line НДС 12% : 106.22 [10:50:51]line Наличными: 0.00 [10:50:51]line Безнал.: 1000.23 [10:50:51]line Место: АЗС № 91 "Партнер Нефть" [10:50:51]OFD Sender: Processing packet 67802 [packets to send 35, broken 34] [10:50:51]ProducePacketName [10:50:51]name=ofd_packets/00067802 [10:50:51]OFD Sender: To server: pG, [10:50:51]CommunicateWithHost lk.salyk.kg:30040 [10:50:51]ConnectInit lk.salyk.kg [10:50:51]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [10:50:51]line СНО: Общий режим [10:50:51]line Чек 41 18.05.2024 10:50 [10:50:51]line Смена: 359 ФФД: 1.0 [10:50:51]line ЗНМ: 0300000119 [10:50:51]line РНМ: 0000000000091845 [10:50:51]line Версия ККМ: 001 [10:50:51]line Платежная система: O! деньги [10:50:51]line ФМ: 0000000000871829 [10:50:51]line ФД: 67802 [10:50:51]line ФПД: 209961051329665 [10:50:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T105054&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67802&fm=209961051329665&tin=02508201610067®Number=0000000000091845&sum=100023 [10:50:51]Connected sock=9 [10:50:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 83 7B 04 01 28 93 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4E 34 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 B7 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B7 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B7 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 0E 88 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 DA 08 01 00 35 04 06 00 BE F5 5D E1 94 81 B6 8C 8D B2 88 7C 80 00 [10:50:51]written 0, free lines is 4095 [10:50:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 BA 2B 47 00 13 A0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 DA 08 01 00 F4 03 04 00 E4 2F 48 66 B6 04 01 00 00 D8 F9 A9 08 72 31 4D 03 [10:50:52]CommunicateWithHost err = 0 [10:50:52]CheckOFDResponse [10:50:52]1017 (14) - 77093643461234 [10:50:52]1041 (16) - 0000000000871829 [10:50:52]1040 (4) - 67802 [10:50:52]1012 (4) - 18.05.2024 04:34 [10:50:52]1206 (1) - 0 [10:50:52]OFD Sender: Remove packet 67802 [10:50:52]ProducePacketName [10:50:52]name=ofd_packets/00067802 [10:50:52]NVStorageDeleteData [10:50:52]Write to MH i2c: 01 00 00 37 2C 63 [10:50:52]Write i2c OK [10:50:52]MH_I2C_Read... [10:50:52]Read from MH i2c: 01 [10:50:52]MH_I2C_Read... [10:50:52]Read from MH i2c: 01 07 00 [10:50:52]MH_I2C_Read... [10:50:52]Read from MH i2c: 01 07 00 37 2C 00 00 00 00 00 D6 0C 4C [10:50:52]RasterBufferAndPrint [10:50:52]line [10:50:52]line [10:50:52]line [10:50:52]line [10:50:52]line [10:50:52]written 0, free lines is 3293 [10:50:52]MH_Cut [10:50:52]Write to MH i2c: D1 01 00 3E 2C 01 3C [10:50:52]Write i2c OK [10:50:52]MH_I2C_Read... [10:50:52]Read from MH i2c: D1 [10:50:52]MH_I2C_Read... [10:50:52]Read from MH i2c: D1 01 00 [10:50:52]MH_I2C_Read... [10:50:52]Read from MH i2c: D1 01 00 3E 2C 00 3B [10:50:52]Write to MH i2c: 01 00 00 3F 2C 6B [10:50:52]Write i2c OK [10:50:52]MH_I2C_Read... [10:50:52]OFD Sender: No OFD packet to send [10:50:53]*** Cut start [10:50:53]*** Purtial cut [10:50:53]*** Stage 1: CUTSNS_PIN = 1 [10:50:53]Read from MH i2c: 01 [10:50:53]MH_I2C_Read... [10:50:53]*** Stop cut motor [10:50:53]*** Cut end [10:50:53]Read from MH i2c: 01 07 00 [10:50:53]MH_I2C_Read... [10:50:53]Read from MH i2c: 01 07 00 3F 2C 00 00 00 00 00 FF 0F 80 [10:50:53]process_action close_receipt done [10:50:53]requested_data is exist [10:50:53]produce_requested_data [10:50:53]requested_item fm.sn is exist - process it [10:50:53]wFMCommunicate request_size=4 [10:50:53]MH_SAM_APDU [10:50:53]CAPDU: 80 11 00 00 [10:50:53]Write to MH i2c: E2 08 00 40 2C 80 11 00 00 00 00 00 00 E6 [10:50:53]Write i2c OK [10:50:53]MH_I2C_Read... [10:50:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:50:53]Read from MH i2c: E2 [10:50:53]MH_I2C_Read... [10:50:53]Read from MH i2c: E2 17 00 [10:50:53]MH_I2C_Read... [10:50:53]Read from MH i2c: E2 17 00 40 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 3C [10:50:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [10:50:53]wFMCommunicate OK [10:50:53]requested_item fd.num is exist - process it [10:50:53]SAM_PROTO_GetFieldsCounters [10:50:53]wFMCommunicate request_size=4 [10:50:53]MH_SAM_APDU [10:50:53]CAPDU: 80 13 00 00 [10:50:53]Write to MH i2c: E2 08 00 41 2C 80 13 00 00 00 00 00 00 E9 [10:50:53]Write i2c OK [10:50:53]MH_I2C_Read... [10:50:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:50:53]Read from MH i2c: E2 [10:50:53]MH_I2C_Read... [10:50:53]Read from MH i2c: E2 62 00 [10:50:53]MH_I2C_Read... [10:50:53]Read from MH i2c: E2 62 00 41 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 DA 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 D5 [10:50:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 DA 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:50:53]wFMCommunicate OK [10:50:53]SAM_PROTO_GetFieldsCounters done [10:50:53]requested_item shift.num is exist - process it [10:50:53]requested_item shift.opened is exist - process it [10:50:53]req_shift_opened [10:50:53]FM_GetShiftState [10:50:53]SAM_PROTO_GetShiftState [10:50:53]wFMCommunicate request_size=4 [10:50:53]MH_SAM_APDU [10:50:53]CAPDU: 80 13 01 00 [10:50:53]Write to MH i2c: E2 08 00 42 2C 80 13 01 00 00 00 00 00 EB [10:50:53]Write i2c OK [10:50:53]MH_I2C_Read... [10:50:53]Read from MH i2c: E2 [10:50:53]MH_I2C_Read... [10:50:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:50:53]Read from MH i2c: E2 0E 00 [10:50:53]MH_I2C_Read... [10:50:53]Read from MH i2c: E2 0E 00 42 2C 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 52 [10:50:53]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [10:50:53]wFMCommunicate OK [10:50:53]SAM_PROTO_GetShiftState done [10:50:53]FM_GetShiftState done [10:50:53]req_shift_opened done [10:50:53]requested_item shift.open_date is exist - process it [10:50:53]req_shift_open_date [10:50:53]req_shift_open_date done [10:50:53]produce_requested_data done [10:50:53]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67802,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [10:50:53]process_action_free close_receipt [10:50:53]json_value_free [10:50:53]json_value_free done [10:50:53]process_json_proto returns [10:50:53]Send response to host [10:50:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67802,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [10:50:53]free response buf [10:50:53]execute_script done [10:50:53]execute_script returns [10:50:53]free content buf [10:50:53]Sock 10.Close socket [10:50:53]Sock 10.Thread stoped [10:50:57]OFD Sender: No OFD packet to send [10:51:02]OFD Sender: No OFD packet to send [10:51:07]OFD Sender: No OFD packet to send [10:51:12]OFD Sender: No OFD packet to send [10:51:17]OFD Sender: No OFD packet to send [10:51:22]OFD Sender: No OFD packet to send [10:51:27]OFD Sender: No OFD packet to send [10:51:32]OFD Sender: No OFD packet to send [10:51:37]OFD Sender: No OFD packet to send [10:51:42]OFD Sender: No OFD packet to send [10:51:47]OFD Sender: No OFD packet to send [10:51:52]OFD Sender: No OFD packet to send [10:51:57]OFD Sender: No OFD packet to send [10:52:02]OFD Sender: No OFD packet to send [10:52:07]OFD Sender: No OFD packet to send [10:52:12]OFD Sender: No OFD packet to send [10:52:17]OFD Sender: No OFD packet to send [10:52:22]OFD Sender: No OFD packet to send [10:52:27]OFD Sender: No OFD packet to send [10:52:32]OFD Sender: No OFD packet to send [10:52:37]OFD Sender: No OFD packet to send [10:52:42]OFD Sender: No OFD packet to send [10:52:44]accept exits with 7 [10:52:44]New connection [10:52:44]New thread 3066752356 created [10:52:44]Thread 3066608996 joined [10:52:44]Waiting for new connection... [10:52:44] Sock 7.Parse request [10:52:44]Sock 7.Check first char [10:52:44]Sock 7.First char is OK [10:52:44]request: POST /json_proto HTTP/1.0 [10:52:44]Method: POST [10:52:44]URL: /json_proto [10:52:44]Method is POST - this is cgi request [10:52:44]url: /json_proto [10:52:44]query_string will be loaded in cgi processing [10:52:44]execute_cgi json_proto POST (null) [10:52:44]execute_cgi path=json_proto method=POST [10:52:44]POST find Content-Length [10:52:44]Host: 172.17.41.195:8080 [10:52:44]Content-Length: 800 [10:52:44]Content-Type: application/json [10:52:44] [10:52:44]POST finish read [10:52:44]Found Content-Length = 800 [10:52:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)508008", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 13.390, "sum" : 1000.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.23 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:52:44]execute_script... [10:52:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)508008", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 13.390, "sum" : 1000.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.23 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:52:44]POST & json_proto [10:52:44]process_json_proto [10:52:44]json parsed OK: [10:52:44]protocol is kg_v1.0 [10:52:44]action value=close_receipt [10:52:44]process_action close_receipt [10:52:44]cmd_close_receipt [10:52:44]MH_GetDate [10:52:44]Write to MH i2c: F0 00 00 43 2C 5E [10:52:44]Write i2c OK [10:52:44]MH_I2C_Read... [10:52:44]Read from MH i2c: F0 [10:52:44]MH_I2C_Read... [10:52:44]Read from MH i2c: F0 09 00 [10:52:44]MH_I2C_Read... [10:52:44]Read from MH i2c: F0 09 00 43 2C 00 81 88 48 66 FC 21 6F 64 0E [10:52:44]GetLastDocTimeStamp 1716029454 [10:52:44]current date 1716029569 [10:52:44]FM_GetShiftState [10:52:44]SAM_PROTO_GetShiftState [10:52:44]wFMCommunicate request_size=4 [10:52:44]MH_SAM_APDU [10:52:44]CAPDU: 80 13 01 00 [10:52:44]Write to MH i2c: E2 08 00 44 2C 80 13 01 00 00 00 00 00 ED [10:52:44]Write i2c OK [10:52:44]MH_I2C_Read... [10:52:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:52:44]Read from MH i2c: E2 [10:52:44]MH_I2C_Read... [10:52:44]Read from MH i2c: E2 0E 00 [10:52:44]MH_I2C_Read... [10:52:44]Read from MH i2c: E2 0E 00 44 2C 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 54 [10:52:44]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [10:52:44]wFMCommunicate OK [10:52:44]SAM_PROTO_GetShiftState done [10:52:44]FM_GetShiftState done [10:52:44]opened in 1715991483 [10:52:44]opened+sec_in_day 1716077883 [10:52:44]quantity*price = 100023 [10:52:44]sum+1 = 100024 [10:52:44]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.23 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.23 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 42 18.05.2024 10:52 Смена: 359 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67803 ФПД: 30711698315350 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T105249&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67803&fm=30711698315350&tin=02508201610067®Number=0000000000091845&sum=100023 [10:52:45]StoreToDocumentArchive [10:52:45]shift 359 fd 67803 [10:52:45]save to /storage/0359/doc_00067803 [10:52:45]save last doc name /storage/0359/doc_00067803 to /storage/kkm_last_doc_name [10:52:45]save OK [10:52:45]Clear old archive folders... [10:52:45]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:52:45]tlvbuf is B6F24C20 [10:52:45]SAM_PROTO_ClearQueue [10:52:45]wFMCommunicate request_size=4 [10:52:45]MH_SAM_APDU [10:52:45]CAPDU: 80 09 00 00 [10:52:45]Write to MH i2c: E2 08 00 51 2C 80 09 00 00 00 00 00 00 EF [10:52:46]Write i2c OK [10:52:46]MH_I2C_Read... [10:52:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:52:46]Read from MH i2c: E2 [10:52:46]MH_I2C_Read... [10:52:46]Read from MH i2c: E2 03 00 [10:52:46]MH_I2C_Read... [10:52:46]Read from MH i2c: E2 03 00 51 2C 00 90 00 F1 [10:52:46]RAPDU: 90 00 [10:52:46]wFMCommunicate OK [10:52:46]SAM_PROTO_ClearQueue done [10:52:46]KKMCreateOFDPacket [10:52:46]OFDProtocolAddRootSTLVToBuf [10:52:46]FM_MakeSignedData [10:52:46]FM_MakeSignedData [10:52:46]SAM_PROTO_SignData [10:52:46]wFMCommunicate request_size=4 [10:52:46]MH_SAM_APDU [10:52:46]CAPDU: 80 0D 01 02 [10:52:46]Write to MH i2c: E2 08 00 52 2C 80 0D 01 02 00 00 00 00 F7 [10:52:46]Write i2c OK [10:52:46]MH_I2C_Read... [10:52:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:52:46]Read from MH i2c: E2 [10:52:46]MH_I2C_Read... [10:52:46]Read from MH i2c: E2 03 00 [10:52:46]MH_I2C_Read... [10:52:46]Read from MH i2c: E2 03 00 52 2C 00 90 00 F2 [10:52:46]RAPDU: 90 00 [10:52:46]wFMCommunicate OK [10:52:46]wFMCommunicate request_size=255 [10:52:46]MH_SAM_APDU [10:52:46]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4E 34 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 B7 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B7 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B7 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 81 88 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 DB 08 01 00 35 04 06 00 1B EE 9F DE [10:52:46]Write to MH i2c: E2 02 01 53 2C 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4E 34 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 B7 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B7 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B7 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 81 88 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 DB 08 01 00 35 04 06 00 1B EE 9F DE 00 00 B2 [10:52:46]Write i2c OK [10:52:46]MH_I2C_Read... [10:52:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:52:46]Read from MH i2c: E2 [10:52:46]MH_I2C_Read... [10:52:46]Read from MH i2c: E2 03 00 [10:52:46]MH_I2C_Read... [10:52:46]Read from MH i2c: E2 03 00 53 2C 00 90 00 F3 [10:52:46]RAPDU: 90 00 [10:52:46]wFMCommunicate OK [10:52:46]wFMCommunicate request_size=7 [10:52:46]MH_SAM_APDU [10:52:46]CAPDU: 80 0D 02 02 02 58 56 [10:52:46]Write to MH i2c: E2 0A 00 54 2C 80 0D 02 02 02 00 58 56 00 00 AC [10:52:46]Write i2c OK [10:52:46]MH_I2C_Read... [10:52:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:52:46]Read from MH i2c: E2 [10:52:46]MH_I2C_Read... [10:52:46]Read from MH i2c: E2 03 00 [10:52:46]MH_I2C_Read... [10:52:46]Read from MH i2c: E2 03 00 54 2C 00 90 00 F4 [10:52:46]RAPDU: 90 00 [10:52:46]wFMCommunicate OK [10:52:46]wFMCommunicate request_size=4 [10:52:46]MH_SAM_APDU [10:52:46]CAPDU: 80 0D 03 02 [10:52:46]Write to MH i2c: E2 08 00 55 2C 80 0D 03 02 00 00 00 00 FC [10:52:46]Write i2c OK [10:52:46]MH_I2C_Read... [10:52:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:52:46]Read from MH i2c: E2 [10:52:46]MH_I2C_Read... [10:52:46]Read from MH i2c: E2 0B 00 [10:52:46]MH_I2C_Read... [10:52:46]Read from MH i2c: E2 0B 00 55 2C 00 AB 47 C8 43 A9 62 58 0C 90 00 69 [10:52:46]RAPDU: AB 47 C8 43 A9 62 58 0C 90 00 [10:52:46]wFMCommunicate OK [10:52:46]SAM_PROTO_SignData done [10:52:46]FM_MakeSignedData done [10:52:46]CreateOFDProtocolMessage [10:52:46]wFMCommunicate request_size=4 [10:52:46]MH_SAM_APDU [10:52:46]CAPDU: 80 11 00 00 [10:52:46]Write to MH i2c: E2 08 00 56 2C 80 11 00 00 00 00 00 00 FC [10:52:46]Write i2c OK [10:52:46]MH_I2C_Read... [10:52:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:52:46]Read from MH i2c: E2 [10:52:46]MH_I2C_Read... [10:52:46]Read from MH i2c: E2 17 00 [10:52:46]MH_I2C_Read... [10:52:46]Read from MH i2c: E2 17 00 56 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 52 [10:52:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [10:52:46]wFMCommunicate OK [10:52:46]CreateOFDProtocolMessage done [10:52:46]OFDSenderStorePacket 67803 [10:52:46]StoreOFDPacket docnum=67803 [10:52:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 7E DC 04 01 39 1B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4E 34 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 B7 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B7 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B7 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 81 88 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 DB 08 01 00 35 04 06 00 1B EE 9F DE 58 56 AB 47 C8 43 A9 62 58 0C [10:52:46]CheckFolder [10:52:46]dirname=/storage/ofd_packets [10:52:46]CheckFolder done [10:52:46]ProducePacketName [10:52:46]name=ofd_packets/00067803 [10:52:46]NVStorageSaveData ofd_packets/00067803 [10:52:46]File name is /storage/ofd_packets/00067803 [10:52:46]Write 298 bytes [10:52:46]NVStorageSaveData done [10:52:46]OFDSenderStorePacket done [10:52:46]KKMCreateOFDPacket done [10:52:46]NVStorageSaveData kkm_last_timestamp [10:52:46]File name is /storage/kkm_last_timestamp [10:52:46]Write 4 bytes [10:52:46]NVStorageSaveData done [10:52:46]ExternCall_PrintAddStr [10:52:46]wPrintStart [10:52:46]Write to MH i2c: 01 00 00 57 2C 83 [10:52:46]Write i2c OK [10:52:46]MH_I2C_Read... [10:52:46]Read from MH i2c: 01 [10:52:46]MH_I2C_Read... [10:52:46]Read from MH i2c: 01 07 00 [10:52:46]MH_I2C_Read... [10:52:46]Read from MH i2c: 01 07 00 57 2C 00 00 00 00 00 FF 0F 98 [10:52:46]RasterBufferAndPrint [10:52:46]line Счет N : (1)508008 [10:52:46]line ИНН: 02508201610067 [10:52:46]line Контрольно-Кассовый Чек [10:52:46]line ПРОДАЖА [10:52:46]line ТРК (МРК, ГНК) : 21 [10:52:46]line Товар: 2710194210 [10:52:46]line ДТ-К-5 [10:52:46]line 13.390 * 74.70 [10:52:46]line = 1000.23 [10:52:46]line НДС 12% НСП 1% [10:52:46]line > о реализуемом товаре [10:52:46]line ИТОГО: 1000.23 [10:52:46]line НСП 1% : 8.85 [10:52:46]line НДС 12% : 106.22 [10:52:46]line Наличными: 0.00 [10:52:46]line Безнал.: 1000.23 [10:52:46]line Место: АЗС № 91 "Партнер Нефть" [10:52:46]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [10:52:46]line СНО: Общий режим [10:52:46]line Чек 42 18.05.2024 10:52 [10:52:46]line Смена: 359 ФФД: 1.0 [10:52:46]line ЗНМ: 0300000119 [10:52:46]line РНМ: 0000000000091845 [10:52:46]line Версия ККМ: 001 [10:52:46]line Платежная система: O! деньги [10:52:46]line ФМ: 0000000000871829 [10:52:46]line ФД: 67803 [10:52:46]line ФПД: 30711698315350 [10:52:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T105249&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67803&fm=30711698315350&tin=02508201610067®Number=0000000000091845&sum=100023 [10:52:46]written 0, free lines is 4095 [10:52:46]OFD Sender: Processing packet 67803 [packets to send 35, broken 34] [10:52:46]ProducePacketName [10:52:46]name=ofd_packets/00067803 [10:52:46]OFD Sender: To server: pG, [10:52:46]CommunicateWithHost lk.salyk.kg:30040 [10:52:46]ConnectInit lk.salyk.kg [10:52:46]Connected sock=10 [10:52:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 7E DC 04 01 39 1B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4E 34 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 B7 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B7 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B7 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 81 88 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 DB 08 01 00 35 04 06 00 1B EE 9F DE 58 56 AB 47 C8 43 A9 62 58 0C [10:52:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 70 33 47 00 A4 2B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 DB 08 01 00 F4 03 04 00 57 30 48 66 B6 04 01 00 00 78 DC 4E EF 5F A4 54 68 [10:52:46]CommunicateWithHost err = 0 [10:52:46]CheckOFDResponse [10:52:46]1017 (14) - 77093643461234 [10:52:46]1041 (16) - 0000000000871829 [10:52:46]1040 (4) - 67803 [10:52:46]1012 (4) - 18.05.2024 04:36 [10:52:46]1206 (1) - 0 [10:52:46]OFD Sender: Remove packet 67803 [10:52:46]ProducePacketName [10:52:46]name=ofd_packets/00067803 [10:52:46]NVStorageDeleteData [10:52:46]Write to MH i2c: 01 00 00 80 2C AC [10:52:46]Write i2c OK [10:52:46]MH_I2C_Read... [10:52:46]Read from MH i2c: 01 [10:52:46]MH_I2C_Read... [10:52:46]Read from MH i2c: 01 07 00 [10:52:46]MH_I2C_Read... [10:52:46]Read from MH i2c: 01 07 00 80 2C 00 00 00 00 00 D8 0C 97 [10:52:46]RasterBufferAndPrint [10:52:46]line [10:52:46]line [10:52:46]line [10:52:46]line [10:52:46]line [10:52:46]written 0, free lines is 3294 [10:52:46]MH_Cut [10:52:46]Write to MH i2c: D1 01 00 87 2C 01 85 [10:52:46]Write i2c OK [10:52:46]MH_I2C_Read... [10:52:46]Read from MH i2c: D1 [10:52:46]MH_I2C_Read... [10:52:46]Read from MH i2c: D1 01 00 [10:52:46]MH_I2C_Read... [10:52:46]Read from MH i2c: D1 01 00 87 2C 00 84 [10:52:46]Write to MH i2c: 01 00 00 88 2C B4 [10:52:46]Write i2c OK [10:52:46]MH_I2C_Read... [10:52:47]OFD Sender: No OFD packet to send [10:52:47]*** Cut start [10:52:47]*** Purtial cut [10:52:47]*** CUTSNS_PIN = 0 [10:52:48]*** Stage 1: CUTSNS_PIN = 1 [10:52:49]Read from MH i2c: 01 [10:52:49]MH_I2C_Read... [10:52:49]*** Stop cut motor [10:52:49]*** Cut end [10:52:49]Read from MH i2c: 01 07 00 [10:52:49]MH_I2C_Read... [10:52:49]Read from MH i2c: 01 07 00 88 2C 00 00 00 00 00 FF 0F C9 [10:52:49]process_action close_receipt done [10:52:49]requested_data is exist [10:52:49]produce_requested_data [10:52:49]requested_item fm.sn is exist - process it [10:52:49]wFMCommunicate request_size=4 [10:52:49]MH_SAM_APDU [10:52:49]CAPDU: 80 11 00 00 [10:52:49]Write to MH i2c: E2 08 00 89 2C 80 11 00 00 00 00 00 00 2F [10:52:49]Write i2c OK [10:52:49]MH_I2C_Read... [10:52:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:52:49]Read from MH i2c: E2 [10:52:49]MH_I2C_Read... [10:52:49]Read from MH i2c: E2 17 00 [10:52:49]MH_I2C_Read... [10:52:49]Read from MH i2c: E2 17 00 89 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 85 [10:52:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [10:52:49]wFMCommunicate OK [10:52:49]requested_item fd.num is exist - process it [10:52:49]SAM_PROTO_GetFieldsCounters [10:52:49]wFMCommunicate request_size=4 [10:52:49]MH_SAM_APDU [10:52:49]CAPDU: 80 13 00 00 [10:52:49]Write to MH i2c: E2 08 00 8A 2C 80 13 00 00 00 00 00 00 32 [10:52:49]Write i2c OK [10:52:49]MH_I2C_Read... [10:52:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:52:49]Read from MH i2c: E2 [10:52:49]MH_I2C_Read... [10:52:49]Read from MH i2c: E2 62 00 [10:52:49]MH_I2C_Read... [10:52:49]Read from MH i2c: E2 62 00 8A 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 DB 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 22 [10:52:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 DB 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:52:49]wFMCommunicate OK [10:52:49]SAM_PROTO_GetFieldsCounters done [10:52:49]requested_item shift.num is exist - process it [10:52:49]requested_item shift.opened is exist - process it [10:52:49]req_shift_opened [10:52:49]FM_GetShiftState [10:52:49]SAM_PROTO_GetShiftState [10:52:49]wFMCommunicate request_size=4 [10:52:49]MH_SAM_APDU [10:52:49]CAPDU: 80 13 01 00 [10:52:49]Write to MH i2c: E2 08 00 8B 2C 80 13 01 00 00 00 00 00 34 [10:52:49]Write i2c OK [10:52:49]MH_I2C_Read... [10:52:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:52:50]Read from MH i2c: E2 [10:52:50]MH_I2C_Read... [10:52:50]Read from MH i2c: E2 0E 00 [10:52:50]MH_I2C_Read... [10:52:50]Read from MH i2c: E2 0E 00 8B 2C 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 9B [10:52:50]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [10:52:50]wFMCommunicate OK [10:52:50]SAM_PROTO_GetShiftState done [10:52:50]FM_GetShiftState done [10:52:50]req_shift_opened done [10:52:50]requested_item shift.open_date is exist - process it [10:52:50]req_shift_open_date [10:52:50]req_shift_open_date done [10:52:50]produce_requested_data done [10:52:50]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67803,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [10:52:50]process_action_free close_receipt [10:52:50]json_value_free [10:52:50]json_value_free done [10:52:50]process_json_proto returns [10:52:50]Send response to host [10:52:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67803,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [10:52:50]free response buf [10:52:50]execute_script done [10:52:50]execute_script returns [10:52:50]free content buf [10:52:50]Sock 7.Close socket [10:52:50]Sock 7.Thread stoped [10:52:52]OFD Sender: No OFD packet to send [10:52:57]OFD Sender: No OFD packet to send [10:53:02]OFD Sender: No OFD packet to send [10:53:07]OFD Sender: No OFD packet to send [10:53:12]OFD Sender: No OFD packet to send [10:53:17]OFD Sender: No OFD packet to send [10:53:22]OFD Sender: No OFD packet to send [10:53:27]OFD Sender: No OFD packet to send [10:53:32]OFD Sender: No OFD packet to send [10:53:37]OFD Sender: No OFD packet to send [10:53:42]OFD Sender: No OFD packet to send [10:53:47]OFD Sender: No OFD packet to send [10:53:52]OFD Sender: No OFD packet to send [10:53:57]OFD Sender: No OFD packet to send [10:54:02]OFD Sender: No OFD packet to send [10:54:07]OFD Sender: No OFD packet to send [10:54:12]OFD Sender: No OFD packet to send [10:54:17]OFD Sender: No OFD packet to send [10:54:22]OFD Sender: No OFD packet to send [10:54:27]OFD Sender: No OFD packet to send [10:54:32]OFD Sender: No OFD packet to send [10:54:37]OFD Sender: No OFD packet to send [10:54:42]OFD Sender: No OFD packet to send [10:54:47]OFD Sender: No OFD packet to send [10:54:52]OFD Sender: No OFD packet to send [10:54:57]OFD Sender: No OFD packet to send [10:55:02]OFD Sender: No OFD packet to send [10:55:07]OFD Sender: No OFD packet to send [10:55:12]OFD Sender: No OFD packet to send [10:55:17]OFD Sender: No OFD packet to send [10:55:22]OFD Sender: No OFD packet to send [10:55:27]OFD Sender: No OFD packet to send [10:55:32]OFD Sender: No OFD packet to send [10:55:37]OFD Sender: No OFD packet to send [10:55:42]OFD Sender: No OFD packet to send [10:55:47]OFD Sender: No OFD packet to send [10:55:52]OFD Sender: No OFD packet to send [10:55:57]OFD Sender: No OFD packet to send [10:56:02]OFD Sender: No OFD packet to send [10:56:07]OFD Sender: No OFD packet to send [10:56:12]OFD Sender: No OFD packet to send [10:56:17]OFD Sender: No OFD packet to send [10:56:22]OFD Sender: No OFD packet to send [10:56:27]OFD Sender: No OFD packet to send [10:56:32]OFD Sender: No OFD packet to send [10:56:37]OFD Sender: No OFD packet to send [10:56:42]OFD Sender: No OFD packet to send [10:56:47]OFD Sender: No OFD packet to send [10:56:52]OFD Sender: No OFD packet to send [10:56:57]OFD Sender: No OFD packet to send [10:57:02]OFD Sender: No OFD packet to send [10:57:07]OFD Sender: No OFD packet to send [10:57:12]OFD Sender: No OFD packet to send [10:57:17]OFD Sender: No OFD packet to send [10:57:22]OFD Sender: No OFD packet to send [10:57:27]OFD Sender: No OFD packet to send [10:57:32]OFD Sender: No OFD packet to send [10:57:37]OFD Sender: No OFD packet to send [10:57:42]OFD Sender: No OFD packet to send [10:57:47]OFD Sender: No OFD packet to send [10:57:52]OFD Sender: No OFD packet to send [10:57:57]OFD Sender: No OFD packet to send [10:58:02]OFD Sender: No OFD packet to send [10:58:02]accept exits with 9 [10:58:02]New connection [10:58:02]New thread 3066608996 created [10:58:02]Thread 3066752356 joined [10:58:02]Waiting for new connection... [10:58:02] Sock 9.Parse request [10:58:02]Sock 9.Check first char [10:58:02]Sock 9.First char is OK [10:58:02]request: POST /json_proto HTTP/1.0 [10:58:02]Method: POST [10:58:02]URL: /json_proto [10:58:02]Method is POST - this is cgi request [10:58:02]url: /json_proto [10:58:02]query_string will be loaded in cgi processing [10:58:02]execute_cgi json_proto POST (null) [10:58:02]execute_cgi path=json_proto method=POST [10:58:02]POST find Content-Length [10:58:02]Host: 172.17.41.195:8080 [10:58:02]Content-Length: 1173 [10:58:02]Content-Type: application/json [10:58:02] [10:58:02]POST finish read [10:58:02]Found Content-Length = 1173 [10:58:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0440\u0441\u0442\u0430\u043D\u0431\u0435\u043A\u043E\u0432 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)508009\u000A18.05.2024 10:40\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 33\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 66.80\u000A\u0418\u0422\u041E\u0413: 668.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30039368\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:58:02]execute_script... [10:58:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0440\u0441\u0442\u0430\u043D\u0431\u0435\u043A\u043E\u0432 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)508009\u000A18.05.2024 10:40\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 33\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 66.80\u000A\u0418\u0422\u041E\u0413: 668.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30039368\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:58:02]POST & json_proto [10:58:02]process_json_proto [10:58:02]json parsed OK: [10:58:02]protocol is kg_v1.0 [10:58:02]action value=print_text [10:58:02]process_action print_text [10:58:02]cmd_print_text [10:58:02]ExternCall_PrintAddStr [10:58:02]wPrintStart [10:58:02]Write to MH i2c: 01 00 00 8C 2C B8 [10:58:02]Write i2c OK [10:58:02]MH_I2C_Read... [10:58:02]Read from MH i2c: 01 [10:58:02]MH_I2C_Read... [10:58:02]Read from MH i2c: 01 07 00 [10:58:02]MH_I2C_Read... [10:58:02]Read from MH i2c: 01 07 00 8C 2C 00 00 00 00 00 FF 0F CD [10:58:02]RasterBufferAndPrint [10:58:02]line *****ТОВАРНЫЙ ЧЕК***** [10:58:02]line АЗС-91 [10:58:02]line Партнер нефть [10:58:02]line 02508201610067 [10:58:02]line Кассир : Арстанбеков Н. [10:58:02]line Счет N : (1)508009 [10:58:02]line 18.05.2024 10:40 [10:58:02]line ПРОДАЖА [10:58:02]line ТРК (МРК, ГНК): 33 [10:58:02]line Вид ГСМ : 2710124130 [10:58:02]line Аи-92-К-5 [10:58:02]line 10.000 x 66.80 [10:58:02]line ИТОГ: 668.00 [10:58:02]line Тип оплаты: Талоны: ТК ГПНА Online [10:58:02]line 30039368 [10:58:02]line ______________________ [10:58:02]line (подпись) [10:58:02]written 0, free lines is 4095 [10:58:03]Write to MH i2c: 01 00 00 A0 2C CC [10:58:03]Write i2c OK [10:58:03]MH_I2C_Read... [10:58:03]Read from MH i2c: 01 [10:58:03]MH_I2C_Read... [10:58:03]Read from MH i2c: 01 07 00 [10:58:03]MH_I2C_Read... [10:58:03]Read from MH i2c: 01 07 00 A0 2C 00 00 00 00 00 12 0E F3 [10:58:03]RasterBufferAndPrint [10:58:03]line [10:58:03]line [10:58:03]line [10:58:03]line [10:58:03]line [10:58:03]written 0, free lines is 3603 [10:58:03]MH_Cut [10:58:03]Write to MH i2c: D1 01 00 A7 2C 01 A5 [10:58:03]Write i2c OK [10:58:03]MH_I2C_Read... [10:58:03]Read from MH i2c: D1 [10:58:03]MH_I2C_Read... [10:58:03]Read from MH i2c: D1 01 00 [10:58:03]MH_I2C_Read... [10:58:03]Read from MH i2c: D1 01 00 A7 2C 00 A4 [10:58:03]Write to MH i2c: 01 00 00 A8 2C D4 [10:58:03]Write i2c OK [10:58:03]MH_I2C_Read... [10:58:03]*** Cut start [10:58:03]*** Purtial cut [10:58:03]*** Stage 1: CUTSNS_PIN = 1 [10:58:04]Read from MH i2c: 01 [10:58:04]MH_I2C_Read... [10:58:04]*** Stop cut motor [10:58:04]*** Cut end [10:58:04]Read from MH i2c: 01 07 00 [10:58:04]MH_I2C_Read... [10:58:04]Read from MH i2c: 01 07 00 A8 2C 00 00 00 00 00 FF 0F E9 [10:58:04]process_action print_text done [10:58:04]requested_data is exist [10:58:04]produce_requested_data [10:58:04]requested_item fm.sn is exist - process it [10:58:04]wFMCommunicate request_size=4 [10:58:04]MH_SAM_APDU [10:58:04]CAPDU: 80 11 00 00 [10:58:04]Write to MH i2c: E2 08 00 A9 2C 80 11 00 00 00 00 00 00 4F [10:58:04]Write i2c OK [10:58:04]MH_I2C_Read... [10:58:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:58:04]Read from MH i2c: E2 [10:58:04]MH_I2C_Read... [10:58:04]Read from MH i2c: E2 17 00 [10:58:04]MH_I2C_Read... [10:58:04]Read from MH i2c: E2 17 00 A9 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 A5 [10:58:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [10:58:04]wFMCommunicate OK [10:58:04]requested_item fd.num is exist - process it [10:58:04]SAM_PROTO_GetFieldsCounters [10:58:04]wFMCommunicate request_size=4 [10:58:04]MH_SAM_APDU [10:58:04]CAPDU: 80 13 00 00 [10:58:04]Write to MH i2c: E2 08 00 AA 2C 80 13 00 00 00 00 00 00 52 [10:58:04]Write i2c OK [10:58:04]MH_I2C_Read... [10:58:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:58:04]Read from MH i2c: E2 [10:58:04]MH_I2C_Read... [10:58:04]Read from MH i2c: E2 62 00 [10:58:04]MH_I2C_Read... [10:58:04]Read from MH i2c: E2 62 00 AA 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 DB 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 42 [10:58:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 DB 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:58:04]wFMCommunicate OK [10:58:04]SAM_PROTO_GetFieldsCounters done [10:58:04]requested_item shift.num is exist - process it [10:58:04]requested_item shift.opened is exist - process it [10:58:04]req_shift_opened [10:58:04]FM_GetShiftState [10:58:04]SAM_PROTO_GetShiftState [10:58:04]wFMCommunicate request_size=4 [10:58:04]MH_SAM_APDU [10:58:04]CAPDU: 80 13 01 00 [10:58:04]Write to MH i2c: E2 08 00 AB 2C 80 13 01 00 00 00 00 00 54 [10:58:04]Write i2c OK [10:58:04]MH_I2C_Read... [10:58:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:58:04]Read from MH i2c: E2 [10:58:04]MH_I2C_Read... [10:58:04]Read from MH i2c: E2 0E 00 [10:58:04]MH_I2C_Read... [10:58:04]Read from MH i2c: E2 0E 00 AB 2C 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 BB [10:58:04]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [10:58:04]wFMCommunicate OK [10:58:04]SAM_PROTO_GetShiftState done [10:58:04]FM_GetShiftState done [10:58:04]req_shift_opened done [10:58:04]requested_item shift.open_date is exist - process it [10:58:04]req_shift_open_date [10:58:04]req_shift_open_date done [10:58:04]produce_requested_data done [10:58:04]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67803,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [10:58:04]process_action_free print_text [10:58:04]json_value_free [10:58:04]json_value_free done [10:58:04]process_json_proto returns [10:58:04]Send response to host [10:58:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67803,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [10:58:04]free response buf [10:58:04]execute_script done [10:58:04]execute_script returns [10:58:04]free content buf [10:58:04]Sock 9.Close socket [10:58:04]Sock 9.Thread stoped [10:58:07]OFD Sender: No OFD packet to send [10:58:12]OFD Sender: No OFD packet to send [10:58:17]OFD Sender: No OFD packet to send [10:58:22]OFD Sender: No OFD packet to send [10:58:27]OFD Sender: No OFD packet to send [10:58:32]OFD Sender: No OFD packet to send [10:58:37]OFD Sender: No OFD packet to send [10:58:42]OFD Sender: No OFD packet to send [10:58:47]OFD Sender: No OFD packet to send [10:58:52]OFD Sender: No OFD packet to send [10:58:57]OFD Sender: No OFD packet to send [10:59:02]OFD Sender: No OFD packet to send [10:59:07]OFD Sender: No OFD packet to send [10:59:12]OFD Sender: No OFD packet to send [10:59:17]OFD Sender: No OFD packet to send [10:59:22]OFD Sender: No OFD packet to send [10:59:27]OFD Sender: No OFD packet to send [10:59:32]OFD Sender: No OFD packet to send [10:59:37]OFD Sender: No OFD packet to send [10:59:42]OFD Sender: No OFD packet to send [10:59:47]OFD Sender: No OFD packet to send [10:59:52]OFD Sender: No OFD packet to send [10:59:57]OFD Sender: No OFD packet to send [11:00:02]OFD Sender: No OFD packet to send [11:00:07]OFD Sender: No OFD packet to send [11:00:12]OFD Sender: No OFD packet to send [11:00:17]OFD Sender: No OFD packet to send [11:00:22]OFD Sender: No OFD packet to send [11:00:27]OFD Sender: No OFD packet to send [11:00:32]OFD Sender: No OFD packet to send [11:00:37]OFD Sender: No OFD packet to send [11:00:42]OFD Sender: No OFD packet to send [11:00:47]OFD Sender: No OFD packet to send [11:00:52]OFD Sender: No OFD packet to send [11:00:57]OFD Sender: No OFD packet to send [11:01:02]OFD Sender: No OFD packet to send [11:01:07]OFD Sender: No OFD packet to send [11:01:12]OFD Sender: No OFD packet to send [11:01:17]accept exits with 10 [11:01:17]New connection [11:01:17]New thread 3066752356 created [11:01:17]Thread 3066608996 joined [11:01:17]Waiting for new connection... [11:01:17] Sock 10.Parse request [11:01:17]Sock 10.Check first char [11:01:17]Sock 10.First char is OK [11:01:17]request: POST /json_proto HTTP/1.0 [11:01:17]Method: POST [11:01:17]URL: /json_proto [11:01:17]Method is POST - this is cgi request [11:01:17]url: /json_proto [11:01:17]query_string will be loaded in cgi processing [11:01:17]execute_cgi json_proto POST (null) [11:01:17]execute_cgi path=json_proto method=POST [11:01:17]POST find Content-Length [11:01:17]Host: 172.17.41.195:8080 [11:01:17]Content-Length: 794 [11:01:17]Content-Type: application/json [11:01:17] [11:01:17]POST finish read [11:01:17]Found Content-Length = 794 [11:01:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)508010", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 700.37 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:01:17]execute_script... [11:01:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)508010", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 700.37 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:01:17]POST & json_proto [11:01:17]process_json_proto [11:01:17]json parsed OK: [11:01:17]protocol is kg_v1.0 [11:01:17]action value=close_receipt [11:01:17]process_action close_receipt [11:01:17]cmd_close_receipt [11:01:17]MH_GetDate [11:01:17]Write to MH i2c: F0 00 00 AC 2C C7 [11:01:17]Write i2c OK [11:01:17]MH_I2C_Read... [11:01:17]Read from MH i2c: F0 [11:01:17]MH_I2C_Read... [11:01:17]Read from MH i2c: F0 09 00 [11:01:17]MH_I2C_Read... [11:01:17]Read from MH i2c: F0 09 00 AC 2C 00 82 8A 48 66 FC 21 6F 64 7A [11:01:17]GetLastDocTimeStamp 1716029569 [11:01:17]current date 1716030082 [11:01:17]FM_GetShiftState [11:01:17]SAM_PROTO_GetShiftState [11:01:17]wFMCommunicate request_size=4 [11:01:17]MH_SAM_APDU [11:01:17]CAPDU: 80 13 01 00 [11:01:17]Write to MH i2c: E2 08 00 AD 2C 80 13 01 00 00 00 00 00 56 [11:01:17]Write i2c OK [11:01:17]MH_I2C_Read... [11:01:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:01:17]Read from MH i2c: E2 [11:01:17]MH_I2C_Read... [11:01:17]Read from MH i2c: E2 0E 00 [11:01:17]MH_I2C_Read... [11:01:17]Read from MH i2c: E2 0E 00 AD 2C 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 BD [11:01:17]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [11:01:17]wFMCommunicate OK [11:01:17]SAM_PROTO_GetShiftState done [11:01:17]FM_GetShiftState done [11:01:17]opened in 1715991483 [11:01:17]opened+sec_in_day 1716077883 [11:01:17]quantity*price = 70037 [11:01:17]sum+1 = 70038 [11:01:17]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 700.37 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 0.00 Безнал.: 700.37 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 43 18.05.2024 11:01 Смена: 359 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67804 ФПД: 12497717650271 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T110122&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67804&fm=12497717650271&tin=02508201610067®Number=0000000000091845&sum=70037 [11:01:18]StoreToDocumentArchive [11:01:18]shift 359 fd 67804 [11:01:18]save to /storage/0359/doc_00067804 [11:01:18]save last doc name /storage/0359/doc_00067804 to /storage/kkm_last_doc_name [11:01:18]save OK [11:01:18]Clear old archive folders... [11:01:18]ProcessDocumentItem done err = 0, tmpTLVsize=252 [11:01:18]tlvbuf is 01B84B10 [11:01:18]SAM_PROTO_ClearQueue [11:01:18]wFMCommunicate request_size=4 [11:01:18]MH_SAM_APDU [11:01:18]CAPDU: 80 09 00 00 [11:01:18]Write to MH i2c: E2 08 00 BA 2C 80 09 00 00 00 00 00 00 58 [11:01:18]Write i2c OK [11:01:18]MH_I2C_Read... [11:01:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:01:18]Read from MH i2c: E2 [11:01:18]MH_I2C_Read... [11:01:18]Read from MH i2c: E2 03 00 [11:01:18]MH_I2C_Read... [11:01:18]Read from MH i2c: E2 03 00 BA 2C 00 90 00 5A [11:01:18]RAPDU: 90 00 [11:01:18]wFMCommunicate OK [11:01:18]SAM_PROTO_ClearQueue done [11:01:18]KKMCreateOFDPacket [11:01:18]OFDProtocolAddRootSTLVToBuf [11:01:18]FM_MakeSignedData [11:01:18]FM_MakeSignedData [11:01:18]SAM_PROTO_SignData [11:01:18]wFMCommunicate request_size=4 [11:01:18]MH_SAM_APDU [11:01:18]CAPDU: 80 0D 01 02 [11:01:18]Write to MH i2c: E2 08 00 BB 2C 80 0D 01 02 00 00 00 00 60 [11:01:18]Write i2c OK [11:01:18]MH_I2C_Read... [11:01:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:01:18]Read from MH i2c: E2 [11:01:18]MH_I2C_Read... [11:01:18]Read from MH i2c: E2 03 00 [11:01:18]MH_I2C_Read... [11:01:18]Read from MH i2c: E2 03 00 BB 2C 00 90 00 5B [11:01:18]RAPDU: 90 00 [11:01:18]wFMCommunicate OK [11:01:18]wFMCommunicate request_size=255 [11:01:18]MH_SAM_APDU [11:01:18]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 95 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 95 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 82 8A 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 DC 08 01 00 35 04 06 00 [11:01:18]Write to MH i2c: E2 02 01 BC 2C 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 95 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 95 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 82 8A 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 DC 08 01 00 35 04 06 00 00 00 71 [11:01:18]Write i2c OK [11:01:18]MH_I2C_Read... [11:01:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:01:18]Read from MH i2c: E2 [11:01:18]MH_I2C_Read... [11:01:18]Read from MH i2c: E2 03 00 [11:01:18]MH_I2C_Read... [11:01:18]Read from MH i2c: E2 03 00 BC 2C 00 90 00 5C [11:01:18]RAPDU: 90 00 [11:01:18]wFMCommunicate OK [11:01:18]wFMCommunicate request_size=11 [11:01:18]MH_SAM_APDU [11:01:18]CAPDU: 80 0D 02 02 06 0B 5D DA 05 63 5F [11:01:18]Write to MH i2c: E2 0E 00 BD 2C 80 0D 02 02 06 00 0B 5D DA 05 63 5F 00 00 78 [11:01:18]Write i2c OK [11:01:18]MH_I2C_Read... [11:01:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:01:18]Read from MH i2c: E2 [11:01:18]MH_I2C_Read... [11:01:18]Read from MH i2c: E2 03 00 [11:01:18]MH_I2C_Read... [11:01:18]Read from MH i2c: E2 03 00 BD 2C 00 90 00 5D [11:01:18]RAPDU: 90 00 [11:01:18]wFMCommunicate OK [11:01:18]wFMCommunicate request_size=4 [11:01:18]MH_SAM_APDU [11:01:18]CAPDU: 80 0D 03 02 [11:01:18]Write to MH i2c: E2 08 00 BE 2C 80 0D 03 02 00 00 00 00 65 [11:01:18]Write i2c OK [11:01:18]MH_I2C_Read... [11:01:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:01:18]Read from MH i2c: E2 [11:01:18]MH_I2C_Read... [11:01:18]Read from MH i2c: E2 0B 00 [11:01:18]MH_I2C_Read... [11:01:18]Read from MH i2c: E2 0B 00 BE 2C 00 85 FA 83 69 BD 65 3B 7A 90 00 A8 [11:01:18]RAPDU: 85 FA 83 69 BD 65 3B 7A 90 00 [11:01:18]wFMCommunicate OK [11:01:18]SAM_PROTO_SignData done [11:01:18]FM_MakeSignedData done [11:01:18]CreateOFDProtocolMessage [11:01:18]wFMCommunicate request_size=4 [11:01:18]MH_SAM_APDU [11:01:18]CAPDU: 80 11 00 00 [11:01:18]Write to MH i2c: E2 08 00 BF 2C 80 11 00 00 00 00 00 00 65 [11:01:18]Write i2c OK [11:01:18]MH_I2C_Read... [11:01:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:01:18]Read from MH i2c: E2 [11:01:18]MH_I2C_Read... [11:01:18]Read from MH i2c: E2 17 00 [11:01:18]MH_I2C_Read... [11:01:18]Read from MH i2c: E2 17 00 BF 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 BB [11:01:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [11:01:18]wFMCommunicate OK [11:01:18]CreateOFDProtocolMessage done [11:01:18]OFDSenderStorePacket 67804 [11:01:18]StoreOFDPacket docnum=67804 [11:01:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 01 00 00 D7 9C 08 01 37 49 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 95 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 95 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 82 8A 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 DC 08 01 00 35 04 06 00 0B 5D DA 05 63 5F 85 FA 83 69 BD 65 3B 7A [11:01:18]CheckFolder [11:01:18]dirname=/storage/ofd_packets [11:01:18]CheckFolder done [11:01:18]ProducePacketName [11:01:18]name=ofd_packets/00067804 [11:01:18]NVStorageSaveData ofd_packets/00067804 [11:01:18]File name is /storage/ofd_packets/00067804 [11:01:18]Write 302 bytes [11:01:18]NVStorageSaveData done [11:01:18]OFDSenderStorePacket done [11:01:18]KKMCreateOFDPacket done [11:01:18]NVStorageSaveData kkm_last_timestamp [11:01:18]File name is /storage/kkm_last_timestamp [11:01:18]Write 4 bytes [11:01:18]NVStorageSaveData done [11:01:18]ExternCall_PrintAddStr [11:01:18]wPrintStart [11:01:18]Write to MH i2c: 01 00 00 C0 2C EC [11:01:18]Write i2c OK [11:01:18]MH_I2C_Read... [11:01:18]Read from MH i2c: 01 [11:01:18]MH_I2C_Read... [11:01:18]Read from MH i2c: 01 07 00 [11:01:18]MH_I2C_Read... [11:01:18]Read from MH i2c: 01 07 00 C0 2C 00 00 00 00 00 FF 0F 01 [11:01:18]RasterBufferAndPrint [11:01:18]line Счет N : (1)508010 [11:01:18]line ИНН: 02508201610067 [11:01:18]line Контрольно-Кассовый Чек [11:01:18]line ПРОДАЖА [11:01:18]line ТРК (МРК, ГНК) : 32 [11:01:18]line Товар: 2710124130 [11:01:18]line Super-92-К-5 [11:01:18]line 10.330 * 67.80 [11:01:18]line = 700.37 [11:01:18]line НДС 12% НСП 1% [11:01:18]line > о реализуемом товаре [11:01:18]line ИТОГО: 700.37 [11:01:18]line НСП 1% : 6.20 [11:01:18]line НДС 12% : 74.38 [11:01:18]line Наличными: 0.00 [11:01:18]line Безнал.: 700.37 [11:01:18]line Место: АЗС № 91 "Партнер Нефть" [11:01:18]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [11:01:18]line СНО: Общий режим [11:01:18]line Чек 43 18.05.2024 11:01 [11:01:18]line Смена: 359 ФФД: 1.0 [11:01:18]line ЗНМ: 0300000119 [11:01:18]line РНМ: 0000000000091845 [11:01:18]line Версия ККМ: 001 [11:01:18]line Платежная система: O! деньги [11:01:18]line ФМ: 0000000000871829 [11:01:18]line ФД: 67804 [11:01:18]line ФПД: 12497717650271 [11:01:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T110122&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67804&fm=12497717650271&tin=02508201610067®Number=0000000000091845&sum=70037 [11:01:19]OFD Sender: Processing packet 67804 [packets to send 35, broken 34] [11:01:19]ProducePacketName [11:01:19]name=ofd_packets/00067804 [11:01:19]OFD Sender: To server: pG, [11:01:19]CommunicateWithHost lk.salyk.kg:30040 [11:01:19]ConnectInit lk.salyk.kg [11:01:19]written 0, free lines is 4095 [11:01:19]Connected sock=9 [11:01:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 01 00 00 D7 9C 08 01 37 49 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 95 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 95 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 82 8A 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 DC 08 01 00 35 04 06 00 0B 5D DA 05 63 5F 85 FA 83 69 BD 65 3B 7A [11:01:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 A2 63 47 00 78 34 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 DC 08 01 00 F4 03 04 00 57 32 48 66 B6 04 01 00 00 3F 3A D7 DE 1C 15 A4 69 [11:01:19]CommunicateWithHost err = 0 [11:01:19]CheckOFDResponse [11:01:19]1017 (14) - 77093643461234 [11:01:19]1041 (16) - 0000000000871829 [11:01:19]1040 (4) - 67804 [11:01:19]1012 (4) - 18.05.2024 04:45 [11:01:19]1206 (1) - 0 [11:01:19]OFD Sender: Remove packet 67804 [11:01:19]ProducePacketName [11:01:19]name=ofd_packets/00067804 [11:01:19]NVStorageDeleteData [11:01:19]Write to MH i2c: 01 00 00 E9 2C 15 [11:01:19]Write i2c OK [11:01:19]MH_I2C_Read... [11:01:19]Read from MH i2c: 01 [11:01:19]MH_I2C_Read... [11:01:19]Read from MH i2c: 01 07 00 [11:01:19]MH_I2C_Read... [11:01:19]Read from MH i2c: 01 07 00 E9 2C 00 00 00 00 00 D2 0C FA [11:01:19]RasterBufferAndPrint [11:01:19]line [11:01:19]line [11:01:19]line [11:01:19]line [11:01:19]line [11:01:19]written 0, free lines is 3288 [11:01:19]MH_Cut [11:01:19]Write to MH i2c: D1 01 00 F0 2C 01 EE [11:01:19]Write i2c OK [11:01:19]MH_I2C_Read... [11:01:19]Read from MH i2c: D1 [11:01:19]MH_I2C_Read... [11:01:19]Read from MH i2c: D1 01 00 [11:01:19]MH_I2C_Read... [11:01:19]Read from MH i2c: D1 01 00 F0 2C 00 ED [11:01:19]Write to MH i2c: 01 00 00 F1 2C 1D [11:01:19]Write i2c OK [11:01:19]MH_I2C_Read... [11:01:19]OFD Sender: No OFD packet to send [11:01:20]*** Cut start [11:01:20]*** Purtial cut [11:01:20]*** CUTSNS_PIN = 0 [11:01:20]*** Stage 1: CUTSNS_PIN = 1 [11:01:22]Read from MH i2c: 01 [11:01:22]*** Stop cut motor [11:01:22]*** Cut end [11:01:22]MH_I2C_Read... [11:01:22]Read from MH i2c: 01 07 00 [11:01:22]MH_I2C_Read... [11:01:22]Read from MH i2c: 01 07 00 F1 2C 00 00 00 00 00 FF 0F 32 [11:01:22]process_action close_receipt done [11:01:22]requested_data is exist [11:01:22]produce_requested_data [11:01:22]requested_item fm.sn is exist - process it [11:01:22]wFMCommunicate request_size=4 [11:01:22]MH_SAM_APDU [11:01:22]CAPDU: 80 11 00 00 [11:01:22]Write to MH i2c: E2 08 00 F2 2C 80 11 00 00 00 00 00 00 98 [11:01:22]Write i2c OK [11:01:22]MH_I2C_Read... [11:01:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:01:22]Read from MH i2c: E2 [11:01:22]MH_I2C_Read... [11:01:22]Read from MH i2c: E2 17 00 [11:01:22]MH_I2C_Read... [11:01:22]Read from MH i2c: E2 17 00 F2 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 EE [11:01:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [11:01:22]wFMCommunicate OK [11:01:22]requested_item fd.num is exist - process it [11:01:22]SAM_PROTO_GetFieldsCounters [11:01:22]wFMCommunicate request_size=4 [11:01:22]MH_SAM_APDU [11:01:22]CAPDU: 80 13 00 00 [11:01:22]Write to MH i2c: E2 08 00 F3 2C 80 13 00 00 00 00 00 00 9B [11:01:22]Write i2c OK [11:01:22]MH_I2C_Read... [11:01:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:01:22]Read from MH i2c: E2 [11:01:22]MH_I2C_Read... [11:01:22]Read from MH i2c: E2 62 00 [11:01:22]MH_I2C_Read... [11:01:22]Read from MH i2c: E2 62 00 F3 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 DC 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 8F [11:01:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 DC 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:01:22]wFMCommunicate OK [11:01:22]SAM_PROTO_GetFieldsCounters done [11:01:22]requested_item shift.num is exist - process it [11:01:22]requested_item shift.opened is exist - process it [11:01:22]req_shift_opened [11:01:22]FM_GetShiftState [11:01:22]SAM_PROTO_GetShiftState [11:01:22]wFMCommunicate request_size=4 [11:01:22]MH_SAM_APDU [11:01:22]CAPDU: 80 13 01 00 [11:01:22]Write to MH i2c: E2 08 00 F4 2C 80 13 01 00 00 00 00 00 9D [11:01:22]Write i2c OK [11:01:22]MH_I2C_Read... [11:01:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:01:22]Read from MH i2c: E2 [11:01:22]MH_I2C_Read... [11:01:22]Read from MH i2c: E2 0E 00 [11:01:22]MH_I2C_Read... [11:01:22]Read from MH i2c: E2 0E 00 F4 2C 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 04 [11:01:22]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [11:01:22]wFMCommunicate OK [11:01:22]SAM_PROTO_GetShiftState done [11:01:22]FM_GetShiftState done [11:01:22]req_shift_opened done [11:01:22]requested_item shift.open_date is exist - process it [11:01:22]req_shift_open_date [11:01:22]req_shift_open_date done [11:01:22]produce_requested_data done [11:01:22]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67804,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [11:01:22]process_action_free close_receipt [11:01:22]json_value_free [11:01:22]json_value_free done [11:01:22]process_json_proto returns [11:01:22]Send response to host [11:01:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67804,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [11:01:22]free response buf [11:01:22]execute_script done [11:01:22]execute_script returns [11:01:22]free content buf [11:01:22]Sock 10.Close socket [11:01:22]Sock 10.Thread stoped [11:01:24]OFD Sender: No OFD packet to send [11:01:29]OFD Sender: No OFD packet to send [11:01:34]OFD Sender: No OFD packet to send [11:01:39]OFD Sender: No OFD packet to send [11:01:44]OFD Sender: No OFD packet to send [11:01:49]OFD Sender: No OFD packet to send [11:01:55]OFD Sender: No OFD packet to send [11:02:00]OFD Sender: No OFD packet to send [11:02:05]OFD Sender: No OFD packet to send [11:02:10]OFD Sender: No OFD packet to send [11:02:15]OFD Sender: No OFD packet to send [11:02:20]OFD Sender: No OFD packet to send [11:02:25]OFD Sender: No OFD packet to send [11:02:30]OFD Sender: No OFD packet to send [11:02:35]OFD Sender: No OFD packet to send [11:02:40]OFD Sender: No OFD packet to send [11:02:45]OFD Sender: No OFD packet to send [11:02:50]OFD Sender: No OFD packet to send [11:02:55]OFD Sender: No OFD packet to send [11:03:00]OFD Sender: No OFD packet to send [11:03:05]OFD Sender: No OFD packet to send [11:03:10]OFD Sender: No OFD packet to send [11:03:15]OFD Sender: No OFD packet to send [11:03:20]OFD Sender: No OFD packet to send [11:03:25]OFD Sender: No OFD packet to send [11:03:30]OFD Sender: No OFD packet to send [11:03:35]OFD Sender: No OFD packet to send [11:03:40]OFD Sender: No OFD packet to send [11:03:45]OFD Sender: No OFD packet to send [11:03:46]accept exits with 7 [11:03:46]New connection [11:03:46]New thread 3066608996 created [11:03:46]Thread 3066752356 joined [11:03:46]Waiting for new connection... [11:03:46] Sock 7.Parse request [11:03:46]Sock 7.Check first char [11:03:46]Sock 7.First char is OK [11:03:46]request: POST /json_proto HTTP/1.0 [11:03:46]Method: POST [11:03:46]URL: /json_proto [11:03:46]Method is POST - this is cgi request [11:03:46]url: /json_proto [11:03:46]query_string will be loaded in cgi processing [11:03:46]execute_cgi json_proto POST (null) [11:03:46]execute_cgi path=json_proto method=POST [11:03:46]POST find Content-Length [11:03:46]Host: 172.17.41.195:8080 [11:03:46]Content-Length: 800 [11:03:46]Content-Type: application/json [11:03:46] [11:03:46]POST finish read [11:03:46]Found Content-Length = 800 [11:03:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)508011", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 46.860, "sum" : 3500.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 3500.44 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:03:46]execute_script... [11:03:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)508011", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 46.860, "sum" : 3500.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 3500.44 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:03:46]POST & json_proto [11:03:46]process_json_proto [11:03:46]json parsed OK: [11:03:46]protocol is kg_v1.0 [11:03:46]action value=close_receipt [11:03:46]process_action close_receipt [11:03:46]cmd_close_receipt [11:03:46]MH_GetDate [11:03:46]Write to MH i2c: F0 00 00 F5 2C 10 [11:03:46]Write i2c OK [11:03:46]MH_I2C_Read... [11:03:46]Read from MH i2c: F0 [11:03:46]MH_I2C_Read... [11:03:46]Read from MH i2c: F0 09 00 [11:03:46]MH_I2C_Read... [11:03:46]Read from MH i2c: F0 09 00 F5 2C 00 17 8B 48 66 FC 21 6F 64 59 [11:03:46]GetLastDocTimeStamp 1716030082 [11:03:46]current date 1716030231 [11:03:46]FM_GetShiftState [11:03:46]SAM_PROTO_GetShiftState [11:03:46]wFMCommunicate request_size=4 [11:03:46]MH_SAM_APDU [11:03:46]CAPDU: 80 13 01 00 [11:03:46]Write to MH i2c: E2 08 00 F6 2C 80 13 01 00 00 00 00 00 9F [11:03:46]Write i2c OK [11:03:46]MH_I2C_Read... [11:03:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:03:46]Read from MH i2c: E2 [11:03:46]MH_I2C_Read... [11:03:46]Read from MH i2c: E2 0E 00 [11:03:46]MH_I2C_Read... [11:03:46]Read from MH i2c: E2 0E 00 F6 2C 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 06 [11:03:46]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [11:03:46]wFMCommunicate OK [11:03:46]SAM_PROTO_GetShiftState done [11:03:46]FM_GetShiftState done [11:03:46]opened in 1715991483 [11:03:46]opened+sec_in_day 1716077883 [11:03:46]quantity*price = 350044 [11:03:46]sum+1 = 350045 [11:03:46]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3500.44 НСП 1% : 30.98 НДС 12% : 371.73 Наличными: 0.00 Безнал.: 3500.44 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 44 18.05.2024 11:03 Смена: 359 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67805 ФПД: 194869329500963 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T110351&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67805&fm=194869329500963&tin=02508201610067®Number=0000000000091845&sum=350044 [11:03:47]StoreToDocumentArchive [11:03:47]shift 359 fd 67805 [11:03:47]save to /storage/0359/doc_00067805 [11:03:47]save last doc name /storage/0359/doc_00067805 to /storage/kkm_last_doc_name [11:03:47]save OK [11:03:47]Clear old archive folders... [11:03:47]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:03:47]tlvbuf is 01B498A0 [11:03:47]SAM_PROTO_ClearQueue [11:03:47]wFMCommunicate request_size=4 [11:03:47]MH_SAM_APDU [11:03:47]CAPDU: 80 09 00 00 [11:03:47]Write to MH i2c: E2 08 00 03 2D 80 09 00 00 00 00 00 00 A2 [11:03:47]Write i2c OK [11:03:47]MH_I2C_Read... [11:03:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:03:47]Read from MH i2c: E2 [11:03:47]MH_I2C_Read... [11:03:47]Read from MH i2c: E2 03 00 [11:03:47]MH_I2C_Read... [11:03:47]Read from MH i2c: E2 03 00 03 2D 00 90 00 A4 [11:03:47]RAPDU: 90 00 [11:03:47]wFMCommunicate OK [11:03:47]SAM_PROTO_ClearQueue done [11:03:47]KKMCreateOFDPacket [11:03:47]OFDProtocolAddRootSTLVToBuf [11:03:47]FM_MakeSignedData [11:03:47]FM_MakeSignedData [11:03:47]SAM_PROTO_SignData [11:03:47]wFMCommunicate request_size=4 [11:03:47]MH_SAM_APDU [11:03:47]CAPDU: 80 0D 01 02 [11:03:47]Write to MH i2c: E2 08 00 04 2D 80 0D 01 02 00 00 00 00 AA [11:03:47]Write i2c OK [11:03:47]MH_I2C_Read... [11:03:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:03:47]Read from MH i2c: E2 [11:03:47]MH_I2C_Read... [11:03:47]Read from MH i2c: E2 03 00 [11:03:47]MH_I2C_Read... [11:03:47]Read from MH i2c: E2 03 00 04 2D 00 90 00 A5 [11:03:47]RAPDU: 90 00 [11:03:47]wFMCommunicate OK [11:03:47]wFMCommunicate request_size=255 [11:03:47]MH_SAM_APDU [11:03:47]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 0C B7 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 5C 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 35 91 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5C 57 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 17 8B 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 DD 08 01 00 35 04 06 00 B1 3B 8D 29 [11:03:47]Write to MH i2c: E2 02 01 05 2D 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 0C B7 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 5C 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 35 91 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5C 57 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 17 8B 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 DD 08 01 00 35 04 06 00 B1 3B 8D 29 00 00 9A [11:03:47]Write i2c OK [11:03:47]MH_I2C_Read... [11:03:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:03:48]Read from MH i2c: E2 [11:03:48]MH_I2C_Read... [11:03:48]Read from MH i2c: E2 03 00 [11:03:48]MH_I2C_Read... [11:03:48]Read from MH i2c: E2 03 00 05 2D 00 90 00 A6 [11:03:48]RAPDU: 90 00 [11:03:48]wFMCommunicate OK [11:03:48]wFMCommunicate request_size=7 [11:03:48]MH_SAM_APDU [11:03:48]CAPDU: 80 0D 02 02 02 9B 23 [11:03:48]Write to MH i2c: E2 0A 00 06 2D 80 0D 02 02 02 00 9B 23 00 00 6F [11:03:48]Write i2c OK [11:03:48]MH_I2C_Read... [11:03:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:03:48]Read from MH i2c: E2 [11:03:48]MH_I2C_Read... [11:03:48]Read from MH i2c: E2 03 00 [11:03:48]MH_I2C_Read... [11:03:48]Read from MH i2c: E2 03 00 06 2D 00 90 00 A7 [11:03:48]RAPDU: 90 00 [11:03:48]wFMCommunicate OK [11:03:48]wFMCommunicate request_size=4 [11:03:48]MH_SAM_APDU [11:03:48]CAPDU: 80 0D 03 02 [11:03:48]Write to MH i2c: E2 08 00 07 2D 80 0D 03 02 00 00 00 00 AF [11:03:48]Write i2c OK [11:03:48]MH_I2C_Read... [11:03:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:03:48]Read from MH i2c: E2 [11:03:48]MH_I2C_Read... [11:03:48]Read from MH i2c: E2 0B 00 [11:03:48]MH_I2C_Read... [11:03:48]Read from MH i2c: E2 0B 00 07 2D 00 D0 D7 7B FB 4F D7 EF A5 90 00 87 [11:03:48]RAPDU: D0 D7 7B FB 4F D7 EF A5 90 00 [11:03:48]wFMCommunicate OK [11:03:48]SAM_PROTO_SignData done [11:03:48]FM_MakeSignedData done [11:03:48]CreateOFDProtocolMessage [11:03:48]wFMCommunicate request_size=4 [11:03:48]MH_SAM_APDU [11:03:48]CAPDU: 80 11 00 00 [11:03:48]Write to MH i2c: E2 08 00 08 2D 80 11 00 00 00 00 00 00 AF [11:03:48]Write i2c OK [11:03:48]MH_I2C_Read... [11:03:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:03:48]Read from MH i2c: E2 [11:03:48]MH_I2C_Read... [11:03:48]Read from MH i2c: E2 17 00 [11:03:48]MH_I2C_Read... [11:03:48]Read from MH i2c: E2 17 00 08 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 05 [11:03:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [11:03:48]wFMCommunicate OK [11:03:48]CreateOFDProtocolMessage done [11:03:48]OFDSenderStorePacket 67805 [11:03:48]StoreOFDPacket docnum=67805 [11:03:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 18 57 04 01 C9 4D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 0C B7 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 5C 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 35 91 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5C 57 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 17 8B 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 DD 08 01 00 35 04 06 00 B1 3B 8D 29 9B 23 D0 D7 7B FB 4F D7 EF A5 [11:03:48]CheckFolder [11:03:48]dirname=/storage/ofd_packets [11:03:48]CheckFolder done [11:03:48]ProducePacketName [11:03:48]name=ofd_packets/00067805 [11:03:48]NVStorageSaveData ofd_packets/00067805 [11:03:48]File name is /storage/ofd_packets/00067805 [11:03:48]Write 298 bytes [11:03:48]NVStorageSaveData done [11:03:48]OFDSenderStorePacket done [11:03:48]KKMCreateOFDPacket done [11:03:48]NVStorageSaveData kkm_last_timestamp [11:03:48]File name is /storage/kkm_last_timestamp [11:03:48]Write 4 bytes [11:03:48]NVStorageSaveData done [11:03:48]ExternCall_PrintAddStr [11:03:48]wPrintStart [11:03:48]Write to MH i2c: 01 00 00 09 2D 36 [11:03:48]Write i2c OK [11:03:48]MH_I2C_Read... [11:03:48]Read from MH i2c: 01 [11:03:48]MH_I2C_Read... [11:03:48]Read from MH i2c: 01 07 00 [11:03:48]MH_I2C_Read... [11:03:48]Read from MH i2c: 01 07 00 09 2D 00 00 00 00 00 FF 0F 4B [11:03:48]RasterBufferAndPrint [11:03:48]line Счет N : (1)508011 [11:03:48]line ИНН: 02508201610067 [11:03:48]line Контрольно-Кассовый Чек [11:03:48]line ПРОДАЖА [11:03:48]line ТРК (МРК, ГНК) : 11 [11:03:48]line Товар: 2710194210 [11:03:48]line ДТ-К-5 [11:03:48]line 46.860 * 74.70 [11:03:48]line = 3500.44 [11:03:48]line НДС 12% НСП 1% [11:03:48]line > о реализуемом товаре [11:03:48]line ИТОГО: 3500.44 [11:03:48]line НСП 1% : 30.98 [11:03:48]line НДС 12% : 371.73 [11:03:48]line Наличными: 0.00 [11:03:48]line Безнал.: 3500.44 [11:03:48]line Место: АЗС № 91 "Партнер Нефть" [11:03:48]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [11:03:48]line СНО: Общий режим [11:03:48]line Чек 44 18.05.2024 11:03 [11:03:48]line Смена: 359 ФФД: 1.0 [11:03:48]line ЗНМ: 0300000119 [11:03:48]line РНМ: 0000000000091845 [11:03:48]line Версия ККМ: 001 [11:03:48]line Платежная система: O! деньги [11:03:48]line ФМ: 0000000000871829 [11:03:48]line ФД: 67805 [11:03:48]line ФПД: 194869329500963 [11:03:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T110351&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67805&fm=194869329500963&tin=02508201610067®Number=0000000000091845&sum=350044 [11:03:48]OFD Sender: Processing packet 67805 [packets to send 35, broken 34] [11:03:48]ProducePacketName [11:03:48]name=ofd_packets/00067805 [11:03:48]OFD Sender: To server: pG, [11:03:48]CommunicateWithHost lk.salyk.kg:30040 [11:03:48]ConnectInit lk.salyk.kg [11:03:48]written 0, free lines is 4095 [11:03:48]Connected sock=10 [11:03:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 18 57 04 01 C9 4D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 0C B7 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 5C 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 35 91 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5C 57 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 17 8B 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 DD 08 01 00 35 04 06 00 B1 3B 8D 29 9B 23 D0 D7 7B FB 4F D7 EF A5 [11:03:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 2A BD 47 00 67 48 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 DD 08 01 00 F4 03 04 00 ED 32 48 66 B6 04 01 00 00 3B D5 92 E4 2F 64 66 35 [11:03:49]CommunicateWithHost err = 0 [11:03:49]CheckOFDResponse [11:03:49]1017 (14) - 77093643461234 [11:03:49]1041 (16) - 0000000000871829 [11:03:49]1040 (4) - 67805 [11:03:49]1012 (4) - 18.05.2024 04:47 [11:03:49]1206 (1) - 0 [11:03:49]OFD Sender: Remove packet 67805 [11:03:49]ProducePacketName [11:03:49]name=ofd_packets/00067805 [11:03:49]NVStorageDeleteData [11:03:49]Write to MH i2c: 01 00 00 32 2D 5F [11:03:49]Write i2c OK [11:03:49]MH_I2C_Read... [11:03:49]Read from MH i2c: 01 [11:03:49]MH_I2C_Read... [11:03:49]Read from MH i2c: 01 07 00 [11:03:49]MH_I2C_Read... [11:03:49]Read from MH i2c: 01 07 00 32 2D 00 00 00 00 00 D8 0C 4A [11:03:49]RasterBufferAndPrint [11:03:49]line [11:03:49]line [11:03:49]line [11:03:49]line [11:03:49]line [11:03:49]written 0, free lines is 3296 [11:03:49]MH_Cut [11:03:49]Write to MH i2c: D1 01 00 39 2D 01 38 [11:03:49]Write i2c OK [11:03:49]MH_I2C_Read... [11:03:49]Read from MH i2c: D1 [11:03:49]MH_I2C_Read... [11:03:49]Read from MH i2c: D1 01 00 [11:03:49]MH_I2C_Read... [11:03:49]Read from MH i2c: D1 01 00 39 2D 00 37 [11:03:49]Write to MH i2c: 01 00 00 3A 2D 67 [11:03:49]Write i2c OK [11:03:49]MH_I2C_Read... [11:03:49]OFD Sender: No OFD packet to send [11:03:49]*** Cut start [11:03:49]*** Purtial cut [11:03:49]*** Stage 1: CUTSNS_PIN = 1 [11:03:50]Read from MH i2c: 01 [11:03:50]MH_I2C_Read... [11:03:50]*** Stop cut motor [11:03:50]*** Cut end [11:03:50]Read from MH i2c: 01 07 00 [11:03:50]MH_I2C_Read... [11:03:50]Read from MH i2c: 01 07 00 3A 2D 00 00 00 00 00 FF 0F 7C [11:03:50]process_action close_receipt done [11:03:50]requested_data is exist [11:03:50]produce_requested_data [11:03:50]requested_item fm.sn is exist - process it [11:03:50]wFMCommunicate request_size=4 [11:03:50]MH_SAM_APDU [11:03:50]CAPDU: 80 11 00 00 [11:03:50]Write to MH i2c: E2 08 00 3B 2D 80 11 00 00 00 00 00 00 E2 [11:03:50]Write i2c OK [11:03:50]MH_I2C_Read... [11:03:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:03:50]Read from MH i2c: E2 [11:03:50]MH_I2C_Read... [11:03:50]Read from MH i2c: E2 17 00 [11:03:50]MH_I2C_Read... [11:03:50]Read from MH i2c: E2 17 00 3B 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 38 [11:03:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [11:03:50]wFMCommunicate OK [11:03:50]requested_item fd.num is exist - process it [11:03:50]SAM_PROTO_GetFieldsCounters [11:03:50]wFMCommunicate request_size=4 [11:03:50]MH_SAM_APDU [11:03:50]CAPDU: 80 13 00 00 [11:03:50]Write to MH i2c: E2 08 00 3C 2D 80 13 00 00 00 00 00 00 E5 [11:03:50]Write i2c OK [11:03:50]MH_I2C_Read... [11:03:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:03:50]Read from MH i2c: E2 [11:03:50]MH_I2C_Read... [11:03:50]Read from MH i2c: E2 62 00 [11:03:50]MH_I2C_Read... [11:03:50]Read from MH i2c: E2 62 00 3C 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 DD 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 DD [11:03:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 DD 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:03:50]wFMCommunicate OK [11:03:50]SAM_PROTO_GetFieldsCounters done [11:03:50]requested_item shift.num is exist - process it [11:03:50]requested_item shift.opened is exist - process it [11:03:50]req_shift_opened [11:03:50]FM_GetShiftState [11:03:50]SAM_PROTO_GetShiftState [11:03:50]wFMCommunicate request_size=4 [11:03:50]MH_SAM_APDU [11:03:50]CAPDU: 80 13 01 00 [11:03:50]Write to MH i2c: E2 08 00 3D 2D 80 13 01 00 00 00 00 00 E7 [11:03:50]Write i2c OK [11:03:50]MH_I2C_Read... [11:03:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:03:50]Read from MH i2c: E2 [11:03:50]MH_I2C_Read... [11:03:50]Read from MH i2c: E2 0E 00 [11:03:50]MH_I2C_Read... [11:03:50]Read from MH i2c: E2 0E 00 3D 2D 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 4E [11:03:50]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [11:03:50]wFMCommunicate OK [11:03:50]SAM_PROTO_GetShiftState done [11:03:50]FM_GetShiftState done [11:03:50]req_shift_opened done [11:03:50]requested_item shift.open_date is exist - process it [11:03:50]req_shift_open_date [11:03:50]req_shift_open_date done [11:03:50]produce_requested_data done [11:03:50]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67805,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [11:03:50]process_action_free close_receipt [11:03:50]json_value_free [11:03:50]json_value_free done [11:03:50]process_json_proto returns [11:03:50]Send response to host [11:03:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67805,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [11:03:50]free response buf [11:03:50]execute_script done [11:03:50]execute_script returns [11:03:50]free content buf [11:03:50]Sock 7.Close socket [11:03:50]Sock 7.Thread stoped [11:03:54]OFD Sender: No OFD packet to send [11:03:59]OFD Sender: No OFD packet to send [11:04:04]OFD Sender: No OFD packet to send [11:04:09]OFD Sender: No OFD packet to send [11:04:14]OFD Sender: No OFD packet to send [11:04:19]OFD Sender: No OFD packet to send [11:04:24]OFD Sender: No OFD packet to send [11:04:29]OFD Sender: No OFD packet to send [11:04:34]OFD Sender: No OFD packet to send [11:04:39]OFD Sender: No OFD packet to send [11:04:44]OFD Sender: No OFD packet to send [11:04:49]OFD Sender: No OFD packet to send [11:04:54]OFD Sender: No OFD packet to send [11:04:59]OFD Sender: No OFD packet to send [11:05:04]OFD Sender: No OFD packet to send [11:05:09]OFD Sender: No OFD packet to send [11:05:14]OFD Sender: No OFD packet to send [11:05:19]OFD Sender: No OFD packet to send [11:05:24]OFD Sender: No OFD packet to send [11:05:29]OFD Sender: No OFD packet to send [11:05:34]OFD Sender: No OFD packet to send [11:05:39]OFD Sender: No OFD packet to send [11:05:44]OFD Sender: No OFD packet to send [11:05:49]OFD Sender: No OFD packet to send [11:05:54]OFD Sender: No OFD packet to send [11:05:59]OFD Sender: No OFD packet to send [11:06:04]OFD Sender: No OFD packet to send [11:06:09]OFD Sender: No OFD packet to send [11:06:14]OFD Sender: No OFD packet to send [11:06:19]OFD Sender: No OFD packet to send [11:06:24]OFD Sender: No OFD packet to send [11:06:29]OFD Sender: No OFD packet to send [11:06:34]OFD Sender: No OFD packet to send [11:06:39]OFD Sender: No OFD packet to send [11:06:44]OFD Sender: No OFD packet to send [11:06:49]OFD Sender: No OFD packet to send [11:06:54]OFD Sender: No OFD packet to send [11:06:59]OFD Sender: No OFD packet to send [11:07:04]OFD Sender: No OFD packet to send [11:07:09]OFD Sender: No OFD packet to send [11:07:14]OFD Sender: No OFD packet to send [11:07:19]OFD Sender: No OFD packet to send [11:07:24]OFD Sender: No OFD packet to send [11:07:29]OFD Sender: No OFD packet to send [11:07:34]OFD Sender: No OFD packet to send [11:07:39]OFD Sender: No OFD packet to send [11:07:44]OFD Sender: No OFD packet to send [11:07:49]OFD Sender: No OFD packet to send [11:07:54]OFD Sender: No OFD packet to send [11:07:59]OFD Sender: No OFD packet to send [11:08:04]OFD Sender: No OFD packet to send [11:08:09]OFD Sender: No OFD packet to send [11:08:14]OFD Sender: No OFD packet to send [11:08:19]OFD Sender: No OFD packet to send [11:08:24]OFD Sender: No OFD packet to send [11:08:29]OFD Sender: No OFD packet to send [11:08:34]OFD Sender: No OFD packet to send [11:08:39]OFD Sender: No OFD packet to send [11:08:44]OFD Sender: No OFD packet to send [11:08:49]OFD Sender: No OFD packet to send [11:08:54]OFD Sender: No OFD packet to send [11:08:59]OFD Sender: No OFD packet to send [11:09:04]OFD Sender: No OFD packet to send [11:09:09]OFD Sender: No OFD packet to send [11:09:14]OFD Sender: No OFD packet to send [11:09:19]OFD Sender: No OFD packet to send [11:09:24]OFD Sender: No OFD packet to send [11:09:29]OFD Sender: No OFD packet to send [11:09:34]OFD Sender: No OFD packet to send [11:09:39]OFD Sender: No OFD packet to send [11:09:44]OFD Sender: No OFD packet to send [11:09:49]OFD Sender: No OFD packet to send [11:09:54]OFD Sender: No OFD packet to send [11:09:59]OFD Sender: No OFD packet to send [11:10:04]OFD Sender: No OFD packet to send [11:10:09]OFD Sender: No OFD packet to send [11:10:14]OFD Sender: No OFD packet to send [11:10:19]OFD Sender: No OFD packet to send [11:10:24]OFD Sender: No OFD packet to send [11:10:29]OFD Sender: No OFD packet to send [11:10:34]OFD Sender: No OFD packet to send [11:10:39]OFD Sender: No OFD packet to send [11:10:44]OFD Sender: No OFD packet to send [11:10:49]OFD Sender: No OFD packet to send [11:10:54]OFD Sender: No OFD packet to send [11:10:59]OFD Sender: No OFD packet to send [11:11:04]OFD Sender: No OFD packet to send [11:11:09]OFD Sender: No OFD packet to send [11:11:14]OFD Sender: No OFD packet to send [11:11:19]OFD Sender: No OFD packet to send [11:11:24]OFD Sender: No OFD packet to send [11:11:29]OFD Sender: No OFD packet to send [11:11:34]OFD Sender: No OFD packet to send [11:11:39]OFD Sender: No OFD packet to send [11:11:44]OFD Sender: No OFD packet to send [11:11:49]OFD Sender: No OFD packet to send [11:11:54]OFD Sender: No OFD packet to send [11:11:59]OFD Sender: No OFD packet to send [11:12:04]OFD Sender: No OFD packet to send [11:12:09]OFD Sender: No OFD packet to send [11:12:14]OFD Sender: No OFD packet to send [11:12:19]OFD Sender: No OFD packet to send [11:12:24]OFD Sender: No OFD packet to send [11:12:29]OFD Sender: No OFD packet to send [11:12:34]OFD Sender: No OFD packet to send [11:12:39]OFD Sender: No OFD packet to send [11:12:44]OFD Sender: No OFD packet to send [11:12:49]OFD Sender: No OFD packet to send [11:12:54]OFD Sender: No OFD packet to send [11:12:59]OFD Sender: No OFD packet to send [11:13:04]OFD Sender: No OFD packet to send [11:13:09]OFD Sender: No OFD packet to send [11:13:14]OFD Sender: No OFD packet to send [11:13:19]OFD Sender: No OFD packet to send [11:13:25]OFD Sender: No OFD packet to send [11:13:30]OFD Sender: No OFD packet to send [11:13:35]OFD Sender: No OFD packet to send [11:13:40]OFD Sender: No OFD packet to send [11:13:45]OFD Sender: No OFD packet to send [11:13:50]OFD Sender: No OFD packet to send [11:13:55]OFD Sender: No OFD packet to send [11:14:00]OFD Sender: No OFD packet to send [11:14:05]OFD Sender: No OFD packet to send [11:14:10]OFD Sender: No OFD packet to send [11:14:15]OFD Sender: No OFD packet to send [11:14:20]OFD Sender: No OFD packet to send [11:14:25]OFD Sender: No OFD packet to send [11:14:30]OFD Sender: No OFD packet to send [11:14:35]OFD Sender: No OFD packet to send [11:14:40]OFD Sender: No OFD packet to send [11:14:45]OFD Sender: No OFD packet to send [11:14:50]OFD Sender: No OFD packet to send [11:14:55]OFD Sender: No OFD packet to send [11:15:00]OFD Sender: No OFD packet to send [11:15:05]OFD Sender: No OFD packet to send [11:15:10]OFD Sender: No OFD packet to send [11:15:15]OFD Sender: No OFD packet to send [11:15:20]OFD Sender: No OFD packet to send [11:15:25]OFD Sender: No OFD packet to send [11:15:30]OFD Sender: No OFD packet to send [11:15:35]OFD Sender: No OFD packet to send [11:15:40]OFD Sender: No OFD packet to send [11:15:45]OFD Sender: No OFD packet to send [11:15:50]OFD Sender: No OFD packet to send [11:15:55]OFD Sender: No OFD packet to send [11:16:00]OFD Sender: No OFD packet to send [11:16:05]OFD Sender: No OFD packet to send [11:16:10]OFD Sender: No OFD packet to send [11:16:15]OFD Sender: No OFD packet to send [11:16:20]OFD Sender: No OFD packet to send [11:16:24]accept exits with 9 [11:16:24]New connection [11:16:24]New thread 3066752356 created [11:16:24]Thread 3066608996 joined [11:16:24]Waiting for new connection... [11:16:24] Sock 9.Parse request [11:16:24]Sock 9.Check first char [11:16:24]Sock 9.First char is OK [11:16:24]request: POST /json_proto HTTP/1.0 [11:16:24]Method: POST [11:16:24]URL: /json_proto [11:16:24]Method is POST - this is cgi request [11:16:24]url: /json_proto [11:16:24]query_string will be loaded in cgi processing [11:16:24]execute_cgi json_proto POST (null) [11:16:24]execute_cgi path=json_proto method=POST [11:16:24]POST find Content-Length [11:16:24]Host: 172.17.41.195:8080 [11:16:24]Content-Length: 215 [11:16:24]Content-Type: application/json [11:16:24] [11:16:24]POST finish read [11:16:24]Found Content-Length = 215 [11:16:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:16:24]execute_script... [11:16:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:16:24]POST & json_proto [11:16:24]process_json_proto [11:16:24]json parsed OK: [11:16:24]protocol is kg_v1.0 [11:16:24]action value=get_value [11:16:24]process_action get_value [11:16:24]cmd_get_value [11:16:24]process_action get_value done [11:16:24]requested_data is exist [11:16:24]produce_requested_data [11:16:24]requested_item kkm.sn is exist - process it [11:16:24]requested_item kkm.ver is exist - process it [11:16:24]requested_item fm.sn is exist - process it [11:16:24]wFMCommunicate request_size=4 [11:16:24]MH_SAM_APDU [11:16:24]CAPDU: 80 11 00 00 [11:16:24]Write to MH i2c: E2 08 00 3E 2D 80 11 00 00 00 00 00 00 E5 [11:16:24]Write i2c OK [11:16:24]MH_I2C_Read... [11:16:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:16:24]Read from MH i2c: E2 [11:16:24]MH_I2C_Read... [11:16:24]Read from MH i2c: E2 17 00 [11:16:24]MH_I2C_Read... [11:16:24]Read from MH i2c: E2 17 00 3E 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 3B [11:16:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [11:16:24]wFMCommunicate OK [11:16:24]requested_item fd.num is exist - process it [11:16:24]SAM_PROTO_GetFieldsCounters [11:16:24]wFMCommunicate request_size=4 [11:16:24]MH_SAM_APDU [11:16:24]CAPDU: 80 13 00 00 [11:16:24]Write to MH i2c: E2 08 00 3F 2D 80 13 00 00 00 00 00 00 E8 [11:16:24]Write i2c OK [11:16:24]MH_I2C_Read... [11:16:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:16:24]Read from MH i2c: E2 [11:16:24]MH_I2C_Read... [11:16:24]Read from MH i2c: E2 62 00 [11:16:24]MH_I2C_Read... [11:16:24]Read from MH i2c: E2 62 00 3F 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 DD 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 E0 [11:16:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 DD 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:16:24]wFMCommunicate OK [11:16:24]SAM_PROTO_GetFieldsCounters done [11:16:24]requested_item shift.num is exist - process it [11:16:24]requested_item shift.opened is exist - process it [11:16:24]req_shift_opened [11:16:24]FM_GetShiftState [11:16:24]SAM_PROTO_GetShiftState [11:16:24]wFMCommunicate request_size=4 [11:16:24]MH_SAM_APDU [11:16:24]CAPDU: 80 13 01 00 [11:16:24]Write to MH i2c: E2 08 00 40 2D 80 13 01 00 00 00 00 00 EA [11:16:24]Write i2c OK [11:16:24]MH_I2C_Read... [11:16:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:16:24]Read from MH i2c: E2 [11:16:24]MH_I2C_Read... [11:16:24]Read from MH i2c: E2 0E 00 [11:16:24]MH_I2C_Read... [11:16:24]Read from MH i2c: E2 0E 00 40 2D 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 51 [11:16:24]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [11:16:24]wFMCommunicate OK [11:16:24]SAM_PROTO_GetShiftState done [11:16:24]FM_GetShiftState done [11:16:24]req_shift_opened done [11:16:24]requested_item shift.open_date is exist - process it [11:16:24]req_shift_open_date [11:16:24]req_shift_open_date done [11:16:24]produce_requested_data done [11:16:24]produce_requested_data return {"kkm.sn":"0300000119","kkm.ver":"001","fm.sn":"0000000000871829","fd.num":67805,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [11:16:24]process_action_free get_value [11:16:24]json_value_free [11:16:24]json_value_free done [11:16:24]process_json_proto returns [11:16:24]Send response to host [11:16:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000119","kkm.ver":"001","fm.sn":"0000000000871829","fd.num":67805,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [11:16:24]free response buf [11:16:24]execute_script done [11:16:24]execute_script returns [11:16:24]free content buf [11:16:24]Sock 9.Close socket [11:16:24]Sock 9.Thread stoped [11:16:24]accept exits with 7 [11:16:24]New connection [11:16:24]New thread 3066608996 created [11:16:24]Thread 3066752356 joined [11:16:24]Waiting for new connection... [11:16:24] Sock 7.Parse request [11:16:24]Sock 7.Check first char [11:16:24]Sock 7.First char is OK [11:16:24]request: POST /json_proto HTTP/1.0 [11:16:24]Method: POST [11:16:24]URL: /json_proto [11:16:24]Method is POST - this is cgi request [11:16:24]url: /json_proto [11:16:24]query_string will be loaded in cgi processing [11:16:24]execute_cgi json_proto POST (null) [11:16:24]execute_cgi path=json_proto method=POST [11:16:24]POST find Content-Length [11:16:24]Host: 172.17.41.195:8080 [11:16:24]Content-Length: 331 [11:16:24]Content-Type: application/json [11:16:24] [11:16:24]POST finish read [11:16:24]Found Content-Length = 331 [11:16:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [11:16:24]execute_script... [11:16:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [11:16:24]POST & json_proto [11:16:24]process_json_proto [11:16:24]json parsed OK: [11:16:24]protocol is kg_v1.0 [11:16:24]action value=get_value [11:16:24]process_action get_value [11:16:24]cmd_get_value [11:16:24]process_action get_value done [11:16:24]requested_data is exist [11:16:24]produce_requested_data [11:16:24]requested_item fm.sale.total is exist - process it [11:16:24]SAM_PROTO_GetFMData [11:16:24]wFMCommunicate request_size=4 [11:16:24]MH_SAM_APDU [11:16:24]CAPDU: 80 13 03 00 [11:16:24]Write to MH i2c: E2 08 00 41 2D 80 13 03 00 00 00 00 00 ED [11:16:24]Write i2c OK [11:16:24]MH_I2C_Read... [11:16:25]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [11:16:25]Read from MH i2c: E2 [11:16:25]MH_I2C_Read... [11:16:25]Read from MH i2c: E2 FD 00 [11:16:25]MH_I2C_Read... [11:16:25]Read from MH i2c: E2 FD 00 41 2D 00 C6 04 85 04 C2 04 6E 04 04 00 0F 06 01 00 69 04 A3 00 6F 04 04 00 65 05 01 00 B1 04 05 00 3C 10 D7 1D 03 70 04 05 00 4C 9D D5 C0 02 72 04 04 00 F0 72 01 5D 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 9D ED BC 54 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 E0 A9 0F 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9D 00 6F 04 04 00 AA 00 00 00 B1 04 04 00 00 23 C3 DC 70 04 04 00 00 23 C3 DC 72 04 00 00 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 DD 9D 71 17 EF 03 09 90 00 82 [11:16:25]RAPDU: C6 04 85 04 C2 04 6E 04 04 00 0F 06 01 00 69 04 A3 00 6F 04 04 00 65 05 01 00 B1 04 05 00 3C 10 D7 1D 03 70 04 05 00 4C 9D D5 C0 02 72 04 04 00 F0 72 01 5D 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 9D ED BC 54 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 E0 A9 0F 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9D 00 6F 04 04 00 AA 00 00 00 B1 04 04 00 00 23 C3 DC 70 04 04 00 00 23 C3 DC 72 04 00 00 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 DD 9D 71 17 EF 03 09 90 00 [11:16:25]wFMCommunicate OK [11:16:25]wFMCommunicate request_size=4 [11:16:25]MH_SAM_APDU [11:16:25]CAPDU: 80 17 00 00 [11:16:25]Write to MH i2c: E2 08 00 42 2D 80 17 00 00 00 00 00 00 EF [11:16:25]Write i2c OK [11:16:25]MH_I2C_Read... [11:16:25]OFD Sender: No OFD packet to send [11:16:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:16:25]Read from MH i2c: E2 [11:16:25]MH_I2C_Read... [11:16:25]Read from MH i2c: E2 FD 00 [11:16:25]MH_I2C_Read... [11:16:25]Read from MH i2c: E2 FD 00 42 2D 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 70 22 F4 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 90 00 2A [11:16:25]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 70 22 F4 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 90 00 [11:16:25]wFMCommunicate OK [11:16:25]wFMCommunicate request_size=4 [11:16:25]MH_SAM_APDU [11:16:25]CAPDU: 80 17 00 00 [11:16:25]Write to MH i2c: E2 08 00 43 2D 80 17 00 00 00 00 00 00 F0 [11:16:25]Write i2c OK [11:16:25]MH_I2C_Read... [11:16:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:16:25]Read from MH i2c: E2 [11:16:25]MH_I2C_Read... [11:16:25]Read from MH i2c: E2 FD 00 [11:16:25]MH_I2C_Read... [11:16:25]Read from MH i2c: E2 FD 00 43 2D 00 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 90 00 17 [11:16:25]RAPDU: 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 90 00 [11:16:25]wFMCommunicate OK [11:16:25]wFMCommunicate request_size=4 [11:16:25]MH_SAM_APDU [11:16:25]CAPDU: 80 17 00 00 [11:16:25]Write to MH i2c: E2 08 00 44 2D 80 17 00 00 00 00 00 00 F1 [11:16:25]Write i2c OK [11:16:25]MH_I2C_Read... [11:16:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:16:25]Read from MH i2c: E2 [11:16:25]MH_I2C_Read... [11:16:25]Read from MH i2c: E2 FD 00 [11:16:25]MH_I2C_Read... [11:16:25]Read from MH i2c: E2 FD 00 44 2D 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 6C [11:16:25]RAPDU: EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 [11:16:25]wFMCommunicate OK [11:16:25]wFMCommunicate request_size=4 [11:16:25]MH_SAM_APDU [11:16:25]CAPDU: 80 17 00 00 [11:16:25]Write to MH i2c: E2 08 00 45 2D 80 17 00 00 00 00 00 00 F2 [11:16:25]Write i2c OK [11:16:25]MH_I2C_Read... [11:16:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 224! [11:16:26]Read from MH i2c: E2 [11:16:26]MH_I2C_Read... [11:16:26]Read from MH i2c: E2 E3 00 [11:16:26]MH_I2C_Read... [11:16:26]Read from MH i2c: E2 E3 00 45 2D 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 D1 [11:16:26]RAPDU: 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [11:16:26]wFMCommunicate OK [11:16:26]SAM_PROTO_GetFMData done [11:16:26]requested_item fm.sale_refund.total is exist - process it [11:16:26]requested_item fm.buy.total is exist - process it [11:16:26]requested_item shift.sale.total is exist - process it [11:16:26]SAM_PROTO_GetShiftData [11:16:26]wFMCommunicate request_size=4 [11:16:26]MH_SAM_APDU [11:16:26]CAPDU: 80 13 02 00 [11:16:26]Write to MH i2c: E2 08 00 46 2D 80 13 02 00 00 00 00 00 F1 [11:16:26]Write i2c OK [11:16:26]MH_I2C_Read... [11:16:26]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [11:16:26]Read from MH i2c: E2 [11:16:26]MH_I2C_Read... [11:16:26]Read from MH i2c: E2 FD 00 [11:16:26]MH_I2C_Read... [11:16:26]Read from MH i2c: E2 FD 00 46 2D 00 AE 04 AA 04 AA 04 6E 04 04 00 2C 00 00 00 69 04 9B 00 6F 04 04 00 2C 00 00 00 B1 04 03 00 B0 1F 48 70 04 03 00 90 A8 12 72 04 03 00 20 77 35 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 F9 A8 07 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 66 A3 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 E8 [11:16:26]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 2C 00 00 00 69 04 9B 00 6F 04 04 00 2C 00 00 00 B1 04 03 00 B0 1F 48 70 04 03 00 90 A8 12 72 04 03 00 20 77 35 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 F9 A8 07 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 66 A3 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [11:16:26]wFMCommunicate OK [11:16:26]wFMCommunicate request_size=4 [11:16:26]MH_SAM_APDU [11:16:26]CAPDU: 80 17 00 00 [11:16:26]Write to MH i2c: E2 08 00 47 2D 80 17 00 00 00 00 00 00 F4 [11:16:26]Write i2c OK [11:16:26]MH_I2C_Read... [11:16:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:16:26]Read from MH i2c: E2 [11:16:26]MH_I2C_Read... [11:16:26]Read from MH i2c: E2 FD 00 [11:16:26]MH_I2C_Read... [11:16:26]Read from MH i2c: E2 FD 00 47 2D 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 16 [11:16:26]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [11:16:26]wFMCommunicate OK [11:16:26]wFMCommunicate request_size=4 [11:16:26]MH_SAM_APDU [11:16:26]CAPDU: 80 17 00 00 [11:16:26]Write to MH i2c: E2 08 00 48 2D 80 17 00 00 00 00 00 00 F5 [11:16:26]Write i2c OK [11:16:26]MH_I2C_Read... [11:16:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:16:27]Read from MH i2c: E2 [11:16:27]MH_I2C_Read... [11:16:27]Read from MH i2c: E2 FD 00 [11:16:27]MH_I2C_Read... [11:16:27]Read from MH i2c: E2 FD 00 48 2D 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 AC [11:16:27]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [11:16:27]wFMCommunicate OK [11:16:27]wFMCommunicate request_size=4 [11:16:27]MH_SAM_APDU [11:16:27]CAPDU: 80 17 00 00 [11:16:27]Write to MH i2c: E2 08 00 49 2D 80 17 00 00 00 00 00 00 F6 [11:16:27]Write i2c OK [11:16:27]MH_I2C_Read... [11:16:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:16:27]Read from MH i2c: E2 [11:16:27]MH_I2C_Read... [11:16:27]Read from MH i2c: E2 FD 00 [11:16:27]MH_I2C_Read... [11:16:27]Read from MH i2c: E2 FD 00 49 2D 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 68 [11:16:27]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [11:16:27]wFMCommunicate OK [11:16:27]wFMCommunicate request_size=4 [11:16:27]MH_SAM_APDU [11:16:27]CAPDU: 80 17 00 00 [11:16:27]Write to MH i2c: E2 08 00 4A 2D 80 17 00 00 00 00 00 00 F7 [11:16:27]Write i2c OK [11:16:27]MH_I2C_Read... [11:16:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [11:16:27]Read from MH i2c: E2 [11:16:27]MH_I2C_Read... [11:16:27]Read from MH i2c: E2 CB 00 [11:16:27]MH_I2C_Read... [11:16:27]Read from MH i2c: E2 CB 00 4A 2D 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 E0 [11:16:27]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [11:16:27]wFMCommunicate OK [11:16:27]SAM_PROTO_GetShiftData done [11:16:27]requested_item shift.sale.total_cash is exist - process it [11:16:27]requested_item shift.sale_refund.total is exist - process it [11:16:27]requested_item shift.sale_refund.total_cash is exist - process it [11:16:27]requested_item shift.buy.total is exist - process it [11:16:27]requested_item shift.buy.total_cash is exist - process it [11:16:27]produce_requested_data done [11:16:27]produce_requested_data return {"fm.sale.total":133855355.48,"fm.sale_refund.total":37037760.00,"fm.buy.total":0.00,"shift.sale.total":47267.04,"shift.sale.total_cash":12228.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [11:16:27]process_action_free get_value [11:16:27]json_value_free [11:16:27]json_value_free done [11:16:27]process_json_proto returns [11:16:27]Send response to host [11:16:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":133855355.48,"fm.sale_refund.total":37037760.00,"fm.buy.total":0.00,"shift.sale.total":47267.04,"shift.sale.total_cash":12228.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [11:16:27]free response buf [11:16:27]execute_script done [11:16:27]execute_script returns [11:16:27]free content buf [11:16:27]Sock 7.Close socket [11:16:27]Sock 7.Thread stoped [11:16:30]OFD Sender: No OFD packet to send [11:16:35]OFD Sender: No OFD packet to send [11:16:40]OFD Sender: No OFD packet to send [11:16:45]OFD Sender: No OFD packet to send [11:16:50]OFD Sender: No OFD packet to send [11:16:55]OFD Sender: No OFD packet to send [11:17:00]OFD Sender: No OFD packet to send [11:17:04]accept exits with 9 [11:17:04]New connection [11:17:04]New thread 3066752356 created [11:17:04]Thread 3066608996 joined [11:17:04]Waiting for new connection... [11:17:04] Sock 9.Parse request [11:17:04]Sock 9.Check first char [11:17:04]Sock 9.First char is OK [11:17:04]request: POST /json_proto HTTP/1.0 [11:17:04]Method: POST [11:17:04]URL: /json_proto [11:17:04]Method is POST - this is cgi request [11:17:04]url: /json_proto [11:17:04]query_string will be loaded in cgi processing [11:17:04]execute_cgi json_proto POST (null) [11:17:04]execute_cgi path=json_proto method=POST [11:17:04]POST find Content-Length [11:17:04]Host: 172.17.41.195:8080 [11:17:04]Content-Length: 1207 [11:17:04]Content-Type: application/json [11:17:04] [11:17:04]POST finish read [11:17:04]Found Content-Length = 1207 [11:17:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0440\u0441\u0442\u0430\u043D\u0431\u0435\u043A\u043E\u0432 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)508012\u000A18.05.2024 10:59\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 5.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 373.50\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:17:04]execute_script... [11:17:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0440\u0441\u0442\u0430\u043D\u0431\u0435\u043A\u043E\u0432 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)508012\u000A18.05.2024 10:59\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 5.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 373.50\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:17:04]POST & json_proto [11:17:04]process_json_proto [11:17:04]json parsed OK: [11:17:04]protocol is kg_v1.0 [11:17:04]action value=print_text [11:17:04]process_action print_text [11:17:04]cmd_print_text [11:17:04]ExternCall_PrintAddStr [11:17:04]wPrintStart [11:17:04]Write to MH i2c: 01 00 00 4B 2D 78 [11:17:04]Write i2c OK [11:17:04]MH_I2C_Read... [11:17:04]Read from MH i2c: 01 [11:17:04]MH_I2C_Read... [11:17:04]Read from MH i2c: 01 07 00 [11:17:04]MH_I2C_Read... [11:17:04]Read from MH i2c: 01 07 00 4B 2D 00 00 00 00 00 FF 0F 8D [11:17:04]RasterBufferAndPrint [11:17:04]line *****ТОВАРНЫЙ ЧЕК***** [11:17:04]line АЗС-91 [11:17:04]line Партнер нефть [11:17:04]line 02508201610067 [11:17:04]line Кассир : Арстанбеков Н. [11:17:04]line Счет N : (1)508012 [11:17:04]line 18.05.2024 10:59 [11:17:04]line ПРОДАЖА [11:17:04]line ТРК (МРК, ГНК): 11 [11:17:04]line Вид ГСМ : 2710194210 [11:17:04]line ДТ-К-5 [11:17:04]line 5.000 x 74.70 [11:17:04]line ИТОГ: 373.50 [11:17:04]line Тип оплаты: Талоны: Топливная Карта [11:17:04]line 02750 [11:17:04]line ______________________ [11:17:04]line (подпись) [11:17:04]written 0, free lines is 4095 [11:17:04]Write to MH i2c: 01 00 00 5F 2D 8C [11:17:04]Write i2c OK [11:17:04]MH_I2C_Read... [11:17:04]Read from MH i2c: 01 [11:17:04]MH_I2C_Read... [11:17:04]Read from MH i2c: 01 07 00 [11:17:04]MH_I2C_Read... [11:17:04]Read from MH i2c: 01 07 00 5F 2D 00 00 00 00 00 0D 0E AE [11:17:04]RasterBufferAndPrint [11:17:04]line [11:17:04]line [11:17:04]line [11:17:04]line [11:17:04]line [11:17:04]written 0, free lines is 3599 [11:17:04]MH_Cut [11:17:04]Write to MH i2c: D1 01 00 66 2D 01 65 [11:17:04]Write i2c OK [11:17:04]MH_I2C_Read... [11:17:04]Read from MH i2c: D1 [11:17:04]MH_I2C_Read... [11:17:04]Read from MH i2c: D1 01 00 [11:17:04]MH_I2C_Read... [11:17:04]Read from MH i2c: D1 01 00 66 2D 00 64 [11:17:04]Write to MH i2c: 01 00 00 67 2D 94 [11:17:04]Write i2c OK [11:17:04]MH_I2C_Read... [11:17:05]*** Cut start [11:17:05]*** Purtial cut [11:17:05]*** CUTSNS_PIN = 0 [11:17:05]OFD Sender: No OFD packet to send [11:17:05]*** Stage 1: CUTSNS_PIN = 1 [11:17:07]Read from MH i2c: 01 [11:17:07]MH_I2C_Read... [11:17:07]*** Stop cut motor [11:17:07]*** Cut end [11:17:07]Read from MH i2c: 01 07 00 [11:17:07]MH_I2C_Read... [11:17:07]Read from MH i2c: 01 07 00 67 2D 00 00 00 00 00 FF 0F A9 [11:17:07]process_action print_text done [11:17:07]requested_data is exist [11:17:07]produce_requested_data [11:17:07]requested_item fm.sn is exist - process it [11:17:07]wFMCommunicate request_size=4 [11:17:07]MH_SAM_APDU [11:17:07]CAPDU: 80 11 00 00 [11:17:07]Write to MH i2c: E2 08 00 68 2D 80 11 00 00 00 00 00 00 0F [11:17:07]Write i2c OK [11:17:07]MH_I2C_Read... [11:17:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:17:07]Read from MH i2c: E2 [11:17:07]MH_I2C_Read... [11:17:07]Read from MH i2c: E2 17 00 [11:17:07]MH_I2C_Read... [11:17:07]Read from MH i2c: E2 17 00 68 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 65 [11:17:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [11:17:07]wFMCommunicate OK [11:17:07]requested_item fd.num is exist - process it [11:17:07]SAM_PROTO_GetFieldsCounters [11:17:07]wFMCommunicate request_size=4 [11:17:07]MH_SAM_APDU [11:17:07]CAPDU: 80 13 00 00 [11:17:07]Write to MH i2c: E2 08 00 69 2D 80 13 00 00 00 00 00 00 12 [11:17:07]Write i2c OK [11:17:07]MH_I2C_Read... [11:17:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:17:07]Read from MH i2c: E2 [11:17:07]MH_I2C_Read... [11:17:07]Read from MH i2c: E2 62 00 [11:17:07]MH_I2C_Read... [11:17:07]Read from MH i2c: E2 62 00 69 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 DD 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 0A [11:17:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 DD 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:17:07]wFMCommunicate OK [11:17:07]SAM_PROTO_GetFieldsCounters done [11:17:07]requested_item shift.num is exist - process it [11:17:07]requested_item shift.opened is exist - process it [11:17:07]req_shift_opened [11:17:07]FM_GetShiftState [11:17:07]SAM_PROTO_GetShiftState [11:17:07]wFMCommunicate request_size=4 [11:17:07]MH_SAM_APDU [11:17:07]CAPDU: 80 13 01 00 [11:17:07]Write to MH i2c: E2 08 00 6A 2D 80 13 01 00 00 00 00 00 14 [11:17:07]Write i2c OK [11:17:07]MH_I2C_Read... [11:17:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:17:07]Read from MH i2c: E2 [11:17:07]MH_I2C_Read... [11:17:07]Read from MH i2c: E2 0E 00 [11:17:07]MH_I2C_Read... [11:17:07]Read from MH i2c: E2 0E 00 6A 2D 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 7B [11:17:07]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [11:17:07]wFMCommunicate OK [11:17:07]SAM_PROTO_GetShiftState done [11:17:07]FM_GetShiftState done [11:17:07]req_shift_opened done [11:17:07]requested_item shift.open_date is exist - process it [11:17:07]req_shift_open_date [11:17:07]req_shift_open_date done [11:17:07]produce_requested_data done [11:17:07]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67805,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [11:17:07]process_action_free print_text [11:17:07]json_value_free [11:17:07]json_value_free done [11:17:07]process_json_proto returns [11:17:07]Send response to host [11:17:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67805,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [11:17:07]free response buf [11:17:07]execute_script done [11:17:07]execute_script returns [11:17:07]free content buf [11:17:07]Sock 9.Close socket [11:17:07]Sock 9.Thread stoped [11:17:10]OFD Sender: No OFD packet to send [11:17:15]OFD Sender: No OFD packet to send [11:17:20]OFD Sender: No OFD packet to send [11:17:25]OFD Sender: No OFD packet to send [11:17:30]OFD Sender: No OFD packet to send [11:17:35]OFD Sender: No OFD packet to send [11:17:40]OFD Sender: No OFD packet to send [11:17:45]OFD Sender: No OFD packet to send [11:17:50]OFD Sender: No OFD packet to send [11:17:55]OFD Sender: No OFD packet to send [11:18:00]OFD Sender: No OFD packet to send [11:18:05]OFD Sender: No OFD packet to send [11:18:10]OFD Sender: No OFD packet to send [11:18:15]OFD Sender: No OFD packet to send [11:18:20]OFD Sender: No OFD packet to send [11:18:25]OFD Sender: No OFD packet to send [11:18:27]accept exits with 7 [11:18:27]New connection [11:18:27]New thread 3066608996 created [11:18:27]Thread 3066752356 joined [11:18:27]Waiting for new connection... [11:18:27] Sock 7.Parse request [11:18:27]Sock 7.Check first char [11:18:27]Sock 7.First char is OK [11:18:27]request: POST /json_proto HTTP/1.0 [11:18:27]Method: POST [11:18:27]URL: /json_proto [11:18:27]Method is POST - this is cgi request [11:18:27]url: /json_proto [11:18:27]query_string will be loaded in cgi processing [11:18:27]execute_cgi json_proto POST (null) [11:18:27]execute_cgi path=json_proto method=POST [11:18:27]POST find Content-Length [11:18:27]Host: 172.17.41.195:8080 [11:18:27]Content-Length: 685 [11:18:27]Content-Type: application/json [11:18:27] [11:18:27]POST finish read [11:18:27]Found Content-Length = 685 [11:18:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)12111", "tax_sys" : 0, "items" : [ { "code": "4870002326172", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043B\u0438\u043C\u043E\u043D \u041F\u042D\u0422 1\u043B", "price" : 66.00, "quantity" : 1.000, "sum" : 66.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 66.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:18:27]execute_script... [11:18:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)12111", "tax_sys" : 0, "items" : [ { "code": "4870002326172", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043B\u0438\u043C\u043E\u043D \u041F\u042D\u0422 1\u043B", "price" : 66.00, "quantity" : 1.000, "sum" : 66.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 66.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:18:27]POST & json_proto [11:18:27]process_json_proto [11:18:27]json parsed OK: [11:18:27]protocol is kg_v1.0 [11:18:27]action value=close_receipt [11:18:27]process_action close_receipt [11:18:27]cmd_close_receipt [11:18:27]MH_GetDate [11:18:27]Write to MH i2c: F0 00 00 6B 2D 87 [11:18:27]Write i2c OK [11:18:27]MH_I2C_Read... [11:18:27]Read from MH i2c: F0 [11:18:27]MH_I2C_Read... [11:18:27]Read from MH i2c: F0 09 00 [11:18:27]MH_I2C_Read... [11:18:27]Read from MH i2c: F0 09 00 6B 2D 00 88 8E 48 66 FC 21 6F 64 44 [11:18:27]GetLastDocTimeStamp 1716030231 [11:18:27]current date 1716031112 [11:18:27]FM_GetShiftState [11:18:27]SAM_PROTO_GetShiftState [11:18:27]wFMCommunicate request_size=4 [11:18:27]MH_SAM_APDU [11:18:27]CAPDU: 80 13 01 00 [11:18:27]Write to MH i2c: E2 08 00 6C 2D 80 13 01 00 00 00 00 00 16 [11:18:27]Write i2c OK [11:18:27]MH_I2C_Read... [11:18:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:18:27]Read from MH i2c: E2 [11:18:27]MH_I2C_Read... [11:18:27]Read from MH i2c: E2 0E 00 [11:18:27]MH_I2C_Read... [11:18:27]Read from MH i2c: E2 0E 00 6C 2D 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 7D [11:18:27]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [11:18:27]wFMCommunicate OK [11:18:27]SAM_PROTO_GetShiftState done [11:18:27]FM_GetShiftState done [11:18:27]opened in 1715991483 [11:18:27]opened+sec_in_day 1716077883 [11:18:27]quantity*price = 6600 [11:18:27]sum+1 = 6601 [11:18:27]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 66.00 НСП 1% : 0.58 НДС 12% : 7.01 Наличными: 66.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 45 18.05.2024 11:18 Смена: 359 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67806 ФПД: 32108300097128 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T111832&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67806&fm=32108300097128&tin=02508201610067®Number=0000000000091845&sum=6600 0 [11:18:28]StoreToDocumentArchive [11:18:28]shift 359 fd 67806 [11:18:28]save to /storage/0359/doc_00067806 [11:18:28]save last doc name /storage/0359/doc_00067806 to /storage/kkm_last_doc_name [11:18:28]save OK [11:18:28]Clear old archive folders... [11:18:28]ProcessDocumentItem done err = 0, tmpTLVsize=293 [11:18:28]tlvbuf is 01B26A60 [11:18:28]SAM_PROTO_ClearQueue [11:18:28]wFMCommunicate request_size=4 [11:18:28]MH_SAM_APDU [11:18:28]CAPDU: 80 09 00 00 [11:18:28]Write to MH i2c: E2 08 00 79 2D 80 09 00 00 00 00 00 00 18 [11:18:28]Write i2c OK [11:18:28]MH_I2C_Read... [11:18:28]Read from MH i2c: E2 [11:18:28]MH_I2C_Read... [11:18:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:18:28]Read from MH i2c: E2 03 00 [11:18:28]MH_I2C_Read... [11:18:28]Read from MH i2c: E2 03 00 79 2D 00 90 00 1A [11:18:28]RAPDU: 90 00 [11:18:28]wFMCommunicate OK [11:18:28]SAM_PROTO_ClearQueue done [11:18:28]KKMCreateOFDPacket [11:18:28]OFDProtocolAddRootSTLVToBuf [11:18:28]FM_MakeSignedData [11:18:28]FM_MakeSignedData [11:18:28]SAM_PROTO_SignData [11:18:28]wFMCommunicate request_size=4 [11:18:28]MH_SAM_APDU [11:18:28]CAPDU: 80 0D 01 02 [11:18:28]Write to MH i2c: E2 08 00 7A 2D 80 0D 01 02 00 00 00 00 20 [11:18:28]Write i2c OK [11:18:28]MH_I2C_Read... [11:18:28]Read from MH i2c: E2 [11:18:28]MH_I2C_Read... [11:18:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:18:28]Read from MH i2c: E2 03 00 [11:18:28]MH_I2C_Read... [11:18:28]Read from MH i2c: E2 03 00 7A 2D 00 90 00 1B [11:18:28]RAPDU: 90 00 [11:18:28]wFMCommunicate OK [11:18:28]wFMCommunicate request_size=255 [11:18:28]MH_SAM_APDU [11:18:28]CAPDU: 80 0D 02 02 FA 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 36 31 37 32 06 04 33 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 19 00 00 00 00 13 04 06 00 C8 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BD 02 00 00 00 00 07 04 06 00 C8 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 88 8E 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 [11:18:28]Write to MH i2c: E2 02 01 7B 2D 80 0D 02 02 FA 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 36 31 37 32 06 04 33 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 19 00 00 00 00 13 04 06 00 C8 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BD 02 00 00 00 00 07 04 06 00 C8 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 88 8E 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 00 00 51 [11:18:28]Write i2c OK [11:18:28]MH_I2C_Read... [11:18:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:18:28]Read from MH i2c: E2 [11:18:28]MH_I2C_Read... [11:18:28]Read from MH i2c: E2 03 00 [11:18:28]MH_I2C_Read... [11:18:28]Read from MH i2c: E2 03 00 7B 2D 00 90 00 1C [11:18:28]RAPDU: 90 00 [11:18:28]wFMCommunicate OK [11:18:28]wFMCommunicate request_size=52 [11:18:28]MH_SAM_APDU [11:18:28]CAPDU: 80 0D 02 02 2F 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 DE 08 01 00 35 04 06 00 1D 33 CB D2 56 68 [11:18:28]Write to MH i2c: E2 37 00 7C 2D 80 0D 02 02 2F 00 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 DE 08 01 00 35 04 06 00 1D 33 CB D2 56 68 00 00 7D [11:18:28]Write i2c OK [11:18:28]MH_I2C_Read... [11:18:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:18:28]Read from MH i2c: E2 [11:18:28]MH_I2C_Read... [11:18:28]Read from MH i2c: E2 03 00 [11:18:28]MH_I2C_Read... [11:18:28]Read from MH i2c: E2 03 00 7C 2D 00 90 00 1D [11:18:28]RAPDU: 90 00 [11:18:28]wFMCommunicate OK [11:18:28]wFMCommunicate request_size=4 [11:18:28]MH_SAM_APDU [11:18:28]CAPDU: 80 0D 03 02 [11:18:28]Write to MH i2c: E2 08 00 7D 2D 80 0D 03 02 00 00 00 00 25 [11:18:28]Write i2c OK [11:18:28]MH_I2C_Read... [11:18:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:18:28]Read from MH i2c: E2 [11:18:28]MH_I2C_Read... [11:18:28]Read from MH i2c: E2 0B 00 [11:18:28]MH_I2C_Read... [11:18:28]Read from MH i2c: E2 0B 00 7D 2D 00 80 BF 63 A6 51 54 ED F3 90 00 F3 [11:18:28]RAPDU: 80 BF 63 A6 51 54 ED F3 90 00 [11:18:28]wFMCommunicate OK [11:18:28]SAM_PROTO_SignData done [11:18:28]FM_MakeSignedData done [11:18:28]CreateOFDProtocolMessage [11:18:28]wFMCommunicate request_size=4 [11:18:28]MH_SAM_APDU [11:18:28]CAPDU: 80 11 00 00 [11:18:28]Write to MH i2c: E2 08 00 7E 2D 80 11 00 00 00 00 00 00 25 [11:18:28]Write i2c OK [11:18:28]MH_I2C_Read... [11:18:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:18:28]Read from MH i2c: E2 [11:18:28]MH_I2C_Read... [11:18:28]Read from MH i2c: E2 17 00 [11:18:28]MH_I2C_Read... [11:18:28]Read from MH i2c: E2 17 00 7E 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 7B [11:18:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [11:18:28]wFMCommunicate OK [11:18:28]CreateOFDProtocolMessage done [11:18:28]OFDSenderStorePacket 67806 [11:18:28]StoreOFDPacket docnum=67806 [11:18:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 39 01 00 00 0A 52 31 01 3E 6E 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 36 31 37 32 06 04 33 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 19 00 00 00 00 13 04 06 00 C8 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BD 02 00 00 00 00 07 04 06 00 C8 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 88 8E 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 DE 08 01 00 35 04 06 00 1D 33 CB D2 56 68 80 BF 63 A6 51 54 ED F3 [11:18:28]CheckFolder [11:18:28]dirname=/storage/ofd_packets [11:18:28]CheckFolder done [11:18:28]ProducePacketName [11:18:28]name=ofd_packets/00067806 [11:18:28]NVStorageSaveData ofd_packets/00067806 [11:18:28]File name is /storage/ofd_packets/00067806 [11:18:28]Write 343 bytes [11:18:28]NVStorageSaveData done [11:18:28]OFDSenderStorePacket done [11:18:28]KKMCreateOFDPacket done [11:18:28]NVStorageSaveData kkm_last_timestamp [11:18:28]File name is /storage/kkm_last_timestamp [11:18:28]Write 4 bytes [11:18:28]NVStorageSaveData done [11:18:28]OFD Sender: Processing packet 67806 [packets to send 35, broken 34] [11:18:28]ProducePacketName [11:18:28]name=ofd_packets/00067806 [11:18:28]OFD Sender: To server: pG, [11:18:28]CommunicateWithHost lk.salyk.kg:30040 [11:18:28]ConnectInit lk.salyk.kg [11:18:28]ExternCall_PrintAddStr [11:18:28]wPrintStart [11:18:28]Write to MH i2c: 01 00 00 7F 2D AC [11:18:28]Write i2c OK [11:18:28]MH_I2C_Read... [11:18:28]Read from MH i2c: 01 [11:18:28]MH_I2C_Read... [11:18:28]Read from MH i2c: 01 07 00 [11:18:28]MH_I2C_Read... [11:18:28]Read from MH i2c: 01 07 00 7F 2D 00 00 00 00 00 FF 0F C1 [11:18:28]RasterBufferAndPrint [11:18:28]line Счет N : (3)12111 [11:18:28]line ИНН: 02508201610067 [11:18:28]line Контрольно-Кассовый Чек [11:18:28]line ПРОДАЖА [11:18:28]line Товар: 4870002326172 [11:18:28]line Вода ASU пит н.газ лимон ПЭТ 1л [11:18:28]line 1.000 * 66.00 [11:18:28]line = 66.00 [11:18:28]line НДС 12% НСП 1% [11:18:28]line > о реализуемом товаре [11:18:28]line ИТОГО: 66.00 [11:18:28]line НСП 1% : 0.58 [11:18:28]line НДС 12% : 7.01 [11:18:28]line Наличными: 66.00 [11:18:28]line Безнал.: 0.00 [11:18:28]line Место: АЗС № 91 "Партнер Нефть" [11:18:28]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [11:18:28]line СНО: Общий режим [11:18:28]line Чек 45 18.05.2024 11:18 [11:18:28]line Смена: 359 ФФД: 1.0 [11:18:28]line ЗНМ: 0300000119 [11:18:28]line РНМ: 0000000000091845 [11:18:28]line Версия ККМ: 001 [11:18:28]line ФМ: 0000000000871829 [11:18:28]line ФД: 67806 [11:18:28]line ФПД: 32108300097128 [11:18:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T111832&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67806&fm=32108300097128&tin=02508201610067®Number=0000000000091845&sum=6600 [11:18:29]line 0 [11:18:29]Connected sock=11 [11:18:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 39 01 00 00 0A 52 31 01 3E 6E 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 36 31 37 32 06 04 33 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 19 00 00 00 00 13 04 06 00 C8 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BD 02 00 00 00 00 07 04 06 00 C8 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 88 8E 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 DE 08 01 00 35 04 06 00 1D 33 CB D2 56 68 80 BF 63 A6 51 54 ED F3 [11:18:29]written 0, free lines is 4095 [11:18:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 81 58 47 00 B9 41 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 DE 08 01 00 F4 03 04 00 5D 36 48 66 B6 04 01 00 00 F0 CA 42 0C 42 2E 3A F1 [11:18:29]CommunicateWithHost err = 0 [11:18:29]CheckOFDResponse [11:18:29]1017 (14) - 77093643461234 [11:18:29]1041 (16) - 0000000000871829 [11:18:29]1040 (4) - 67806 [11:18:29]1012 (4) - 18.05.2024 05:02 [11:18:29]1206 (1) - 0 [11:18:29]OFD Sender: Remove packet 67806 [11:18:29]ProducePacketName [11:18:29]name=ofd_packets/00067806 [11:18:29]NVStorageDeleteData [11:18:29]Write to MH i2c: 01 00 00 A7 2D D4 [11:18:29]Write i2c OK [11:18:29]MH_I2C_Read... [11:18:29]Read from MH i2c: 01 [11:18:29]MH_I2C_Read... [11:18:29]Read from MH i2c: 01 07 00 [11:18:29]MH_I2C_Read... [11:18:29]Read from MH i2c: 01 07 00 A7 2D 00 00 00 00 00 CE 0C B5 [11:18:29]RasterBufferAndPrint [11:18:29]line [11:18:29]line [11:18:29]line [11:18:29]line [11:18:29]line [11:18:29]written 0, free lines is 3282 [11:18:29]MH_Cut [11:18:29]Write to MH i2c: D1 01 00 AE 2D 01 AD [11:18:29]Write i2c OK [11:18:29]MH_I2C_Read... [11:18:29]Read from MH i2c: D1 [11:18:29]MH_I2C_Read... [11:18:29]Read from MH i2c: D1 01 00 [11:18:29]MH_I2C_Read... [11:18:29]Read from MH i2c: D1 01 00 AE 2D 00 AC [11:18:29]Write to MH i2c: 01 00 00 AF 2D DC [11:18:29]Write i2c OK [11:18:29]MH_I2C_Read... [11:18:29]OFD Sender: No OFD packet to send [11:18:30]*** Cut start [11:18:30]*** Purtial cut [11:18:30]*** Stage 1: CUTSNS_PIN = 1 [11:18:30]Read from MH i2c: 01 [11:18:30]MH_I2C_Read... [11:18:30]Read from MH i2c: 01 07 00 [11:18:30]MH_I2C_Read... [11:18:30]*** Stop cut motor [11:18:30]Read from MH i2c: 01 07 00 AF 2D 00 00 00 00 00 FF 0F F1 [11:18:30]process_action close_receipt done [11:18:30]requested_data is exist [11:18:30]produce_requested_data [11:18:30]requested_item fm.sn is exist - process it [11:18:30]wFMCommunicate request_size=4 [11:18:30]MH_SAM_APDU [11:18:30]CAPDU: 80 11 00 00 [11:18:30]Write to MH i2c: E2 08 00 B0 2D 80 11 00 00 00 00 00 00 57 [11:18:30]*** Cut end [11:18:30]Write i2c OK [11:18:30]MH_I2C_Read... [11:18:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:18:30]Read from MH i2c: E2 [11:18:30]MH_I2C_Read... [11:18:30]Read from MH i2c: E2 17 00 [11:18:30]MH_I2C_Read... [11:18:30]Read from MH i2c: E2 17 00 B0 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 AD [11:18:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [11:18:30]wFMCommunicate OK [11:18:30]requested_item fd.num is exist - process it [11:18:30]SAM_PROTO_GetFieldsCounters [11:18:30]wFMCommunicate request_size=4 [11:18:30]MH_SAM_APDU [11:18:30]CAPDU: 80 13 00 00 [11:18:30]Write to MH i2c: E2 08 00 B1 2D 80 13 00 00 00 00 00 00 5A [11:18:30]Write i2c OK [11:18:30]MH_I2C_Read... [11:18:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:18:30]Read from MH i2c: E2 [11:18:30]MH_I2C_Read... [11:18:30]Read from MH i2c: E2 62 00 [11:18:30]MH_I2C_Read... [11:18:30]Read from MH i2c: E2 62 00 B1 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 DE 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 56 [11:18:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 DE 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:18:31]wFMCommunicate OK [11:18:31]SAM_PROTO_GetFieldsCounters done [11:18:31]requested_item shift.num is exist - process it [11:18:31]requested_item shift.opened is exist - process it [11:18:31]req_shift_opened [11:18:31]FM_GetShiftState [11:18:31]SAM_PROTO_GetShiftState [11:18:31]wFMCommunicate request_size=4 [11:18:31]MH_SAM_APDU [11:18:31]CAPDU: 80 13 01 00 [11:18:31]Write to MH i2c: E2 08 00 B2 2D 80 13 01 00 00 00 00 00 5C [11:18:31]Write i2c OK [11:18:31]MH_I2C_Read... [11:18:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:18:31]Read from MH i2c: E2 [11:18:31]MH_I2C_Read... [11:18:31]Read from MH i2c: E2 0E 00 [11:18:31]MH_I2C_Read... [11:18:31]Read from MH i2c: E2 0E 00 B2 2D 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 C3 [11:18:31]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [11:18:31]wFMCommunicate OK [11:18:31]SAM_PROTO_GetShiftState done [11:18:31]FM_GetShiftState done [11:18:31]req_shift_opened done [11:18:31]requested_item shift.open_date is exist - process it [11:18:31]req_shift_open_date [11:18:31]req_shift_open_date done [11:18:31]produce_requested_data done [11:18:31]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67806,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [11:18:31]process_action_free close_receipt [11:18:31]json_value_free [11:18:31]json_value_free done [11:18:31]process_json_proto returns [11:18:31]Send response to host [11:18:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67806,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [11:18:31]free response buf [11:18:31]execute_script done [11:18:31]execute_script returns [11:18:31]free content buf [11:18:31]Sock 7.Close socket [11:18:31]Sock 7.Thread stoped [11:18:34]OFD Sender: No OFD packet to send [11:18:39]OFD Sender: No OFD packet to send [11:18:44]OFD Sender: No OFD packet to send [11:18:49]OFD Sender: No OFD packet to send [11:18:54]OFD Sender: No OFD packet to send [11:18:59]OFD Sender: No OFD packet to send [11:19:04]OFD Sender: No OFD packet to send [11:19:09]OFD Sender: No OFD packet to send [11:19:12]accept exits with 9 [11:19:12]New connection [11:19:12]New thread 3066752356 created [11:19:12]Thread 3066608996 joined [11:19:12]Waiting for new connection... [11:19:12] Sock 9.Parse request [11:19:12]Sock 9.Check first char [11:19:12]Sock 9.First char is OK [11:19:12]request: POST /json_proto HTTP/1.0 [11:19:12]Method: POST [11:19:12]URL: /json_proto [11:19:12]Method is POST - this is cgi request [11:19:12]url: /json_proto [11:19:12]query_string will be loaded in cgi processing [11:19:12]execute_cgi json_proto POST (null) [11:19:12]execute_cgi path=json_proto method=POST [11:19:12]POST find Content-Length [11:19:12]Host: 172.17.41.195:8080 [11:19:12]Content-Length: 800 [11:19:12]Content-Type: application/json [11:19:12] [11:19:12]POST finish read [11:19:12]Found Content-Length = 800 [11:19:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)508013", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 40.170, "sum" : 3000.70, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 3000.70 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:19:12]execute_script... [11:19:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)508013", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 40.170, "sum" : 3000.70, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 3000.70 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:19:12]POST & json_proto [11:19:12]process_json_proto [11:19:12]json parsed OK: [11:19:12]protocol is kg_v1.0 [11:19:12]action value=close_receipt [11:19:12]process_action close_receipt [11:19:12]cmd_close_receipt [11:19:12]MH_GetDate [11:19:12]Write to MH i2c: F0 00 00 B3 2D CF [11:19:12]Write i2c OK [11:19:12]MH_I2C_Read... [11:19:12]Read from MH i2c: F0 [11:19:12]MH_I2C_Read... [11:19:12]Read from MH i2c: F0 09 00 [11:19:12]MH_I2C_Read... [11:19:12]Read from MH i2c: F0 09 00 B3 2D 00 B5 8E 48 66 FC 21 6F 64 B9 [11:19:12]GetLastDocTimeStamp 1716031112 [11:19:12]current date 1716031157 [11:19:12]FM_GetShiftState [11:19:12]SAM_PROTO_GetShiftState [11:19:12]wFMCommunicate request_size=4 [11:19:12]MH_SAM_APDU [11:19:12]CAPDU: 80 13 01 00 [11:19:12]Write to MH i2c: E2 08 00 B4 2D 80 13 01 00 00 00 00 00 5E [11:19:12]Write i2c OK [11:19:12]MH_I2C_Read... [11:19:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:19:12]Read from MH i2c: E2 [11:19:12]MH_I2C_Read... [11:19:12]Read from MH i2c: E2 0E 00 [11:19:12]MH_I2C_Read... [11:19:12]Read from MH i2c: E2 0E 00 B4 2D 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 C5 [11:19:12]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [11:19:12]wFMCommunicate OK [11:19:12]SAM_PROTO_GetShiftState done [11:19:12]FM_GetShiftState done [11:19:12]opened in 1715991483 [11:19:12]opened+sec_in_day 1716077883 [11:19:12]quantity*price = 300069 [11:19:12]sum+1 = 300071 [11:19:12]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3000.70 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 0.00 Безнал.: 3000.70 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 46 18.05.2024 11:19 Смена: 359 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67807 ФПД: 25713217798142 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T111917&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67807&fm=25713217798142&tin=02508201610067®Number=0000000000091845&sum=300070 [11:19:13]StoreToDocumentArchive [11:19:13]shift 359 fd 67807 [11:19:13]save to /storage/0359/doc_00067807 [11:19:13]save last doc name /storage/0359/doc_00067807 to /storage/kkm_last_doc_name [11:19:13]save OK [11:19:13]Clear old archive folders... [11:19:13]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:19:13]tlvbuf is 01B45840 [11:19:13]SAM_PROTO_ClearQueue [11:19:13]wFMCommunicate request_size=4 [11:19:13]MH_SAM_APDU [11:19:13]CAPDU: 80 09 00 00 [11:19:13]Write to MH i2c: E2 08 00 C1 2D 80 09 00 00 00 00 00 00 60 [11:19:13]Write i2c OK [11:19:13]MH_I2C_Read... [11:19:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:19:13]Read from MH i2c: E2 [11:19:13]MH_I2C_Read... [11:19:13]Read from MH i2c: E2 03 00 [11:19:13]MH_I2C_Read... [11:19:13]Read from MH i2c: E2 03 00 C1 2D 00 90 00 62 [11:19:13]RAPDU: 90 00 [11:19:13]wFMCommunicate OK [11:19:13]SAM_PROTO_ClearQueue done [11:19:13]KKMCreateOFDPacket [11:19:13]OFDProtocolAddRootSTLVToBuf [11:19:13]FM_MakeSignedData [11:19:13]FM_MakeSignedData [11:19:13]SAM_PROTO_SignData [11:19:13]wFMCommunicate request_size=4 [11:19:13]MH_SAM_APDU [11:19:13]CAPDU: 80 0D 01 02 [11:19:13]Write to MH i2c: E2 08 00 C2 2D 80 0D 01 02 00 00 00 00 68 [11:19:13]Write i2c OK [11:19:13]MH_I2C_Read... [11:19:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:19:13]Read from MH i2c: E2 [11:19:13]MH_I2C_Read... [11:19:13]Read from MH i2c: E2 03 00 [11:19:13]MH_I2C_Read... [11:19:13]Read from MH i2c: E2 03 00 C2 2D 00 90 00 63 [11:19:13]RAPDU: 90 00 [11:19:13]wFMCommunicate OK [11:19:13]wFMCommunicate request_size=255 [11:19:13]MH_SAM_APDU [11:19:13]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 9C 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 26 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 26 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 26 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 B5 8E 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 DF 08 01 00 35 04 06 00 17 62 D3 36 [11:19:13]Write to MH i2c: E2 02 01 C3 2D 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 9C 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 26 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 26 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 26 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 B5 8E 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 DF 08 01 00 35 04 06 00 17 62 D3 36 00 00 25 [11:19:13]Write i2c OK [11:19:13]MH_I2C_Read... [11:19:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:19:13]Read from MH i2c: E2 [11:19:13]MH_I2C_Read... [11:19:13]Read from MH i2c: E2 03 00 [11:19:13]MH_I2C_Read... [11:19:13]Read from MH i2c: E2 03 00 C3 2D 00 90 00 64 [11:19:13]RAPDU: 90 00 [11:19:13]wFMCommunicate OK [11:19:13]wFMCommunicate request_size=7 [11:19:13]MH_SAM_APDU [11:19:13]CAPDU: 80 0D 02 02 02 7F FE [11:19:13]Write to MH i2c: E2 0A 00 C4 2D 80 0D 02 02 02 00 7F FE 00 00 EC [11:19:13]Write i2c OK [11:19:13]MH_I2C_Read... [11:19:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:19:13]Read from MH i2c: E2 [11:19:13]MH_I2C_Read... [11:19:13]Read from MH i2c: E2 03 00 [11:19:13]MH_I2C_Read... [11:19:13]Read from MH i2c: E2 03 00 C4 2D 00 90 00 65 [11:19:13]RAPDU: 90 00 [11:19:13]wFMCommunicate OK [11:19:13]wFMCommunicate request_size=4 [11:19:13]MH_SAM_APDU [11:19:13]CAPDU: 80 0D 03 02 [11:19:13]Write to MH i2c: E2 08 00 C5 2D 80 0D 03 02 00 00 00 00 6D [11:19:13]Write i2c OK [11:19:13]MH_I2C_Read... [11:19:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:19:13]Read from MH i2c: E2 [11:19:13]MH_I2C_Read... [11:19:13]Read from MH i2c: E2 0B 00 [11:19:13]MH_I2C_Read... [11:19:13]Read from MH i2c: E2 0B 00 C5 2D 00 0C CD 5B 84 79 82 75 10 90 00 A6 [11:19:13]RAPDU: 0C CD 5B 84 79 82 75 10 90 00 [11:19:13]wFMCommunicate OK [11:19:13]SAM_PROTO_SignData done [11:19:13]FM_MakeSignedData done [11:19:13]CreateOFDProtocolMessage [11:19:13]wFMCommunicate request_size=4 [11:19:13]MH_SAM_APDU [11:19:13]CAPDU: 80 11 00 00 [11:19:13]Write to MH i2c: E2 08 00 C6 2D 80 11 00 00 00 00 00 00 6D [11:19:13]Write i2c OK [11:19:13]MH_I2C_Read... [11:19:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:19:13]Read from MH i2c: E2 [11:19:13]MH_I2C_Read... [11:19:13]Read from MH i2c: E2 17 00 [11:19:13]MH_I2C_Read... [11:19:13]Read from MH i2c: E2 17 00 C6 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 C3 [11:19:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [11:19:13]wFMCommunicate OK [11:19:13]CreateOFDProtocolMessage done [11:19:13]OFDSenderStorePacket 67807 [11:19:13]StoreOFDPacket docnum=67807 [11:19:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 7B 2A 04 01 44 D6 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 9C 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 26 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 26 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 26 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 B5 8E 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 DF 08 01 00 35 04 06 00 17 62 D3 36 7F FE 0C CD 5B 84 79 82 75 10 [11:19:13]CheckFolder [11:19:13]dirname=/storage/ofd_packets [11:19:13]CheckFolder done [11:19:13]ProducePacketName [11:19:13]name=ofd_packets/00067807 [11:19:13]NVStorageSaveData ofd_packets/00067807 [11:19:13]File name is /storage/ofd_packets/00067807 [11:19:13]Write 298 bytes [11:19:13]NVStorageSaveData done [11:19:13]OFDSenderStorePacket done [11:19:13]KKMCreateOFDPacket done [11:19:13]NVStorageSaveData kkm_last_timestamp [11:19:13]File name is /storage/kkm_last_timestamp [11:19:13]Write 4 bytes [11:19:13]NVStorageSaveData done [11:19:13]ExternCall_PrintAddStr [11:19:13]wPrintStart [11:19:13]Write to MH i2c: 01 00 00 C7 2D F4 [11:19:13]Write i2c OK [11:19:13]MH_I2C_Read... [11:19:13]Read from MH i2c: 01 [11:19:13]MH_I2C_Read... [11:19:13]Read from MH i2c: 01 07 00 [11:19:13]MH_I2C_Read... [11:19:13]Read from MH i2c: 01 07 00 C7 2D 00 00 00 00 00 FF 0F 09 [11:19:13]RasterBufferAndPrint [11:19:13]line Счет N : (1)508013 [11:19:13]line ИНН: 02508201610067 [11:19:13]line Контрольно-Кассовый Чек [11:19:13]line ПРОДАЖА [11:19:13]line ТРК (МРК, ГНК) : 21 [11:19:13]line Товар: 2710194210 [11:19:13]line ДТ-К-5 [11:19:13]line 40.170 * 74.70 [11:19:13]line = 3000.70 [11:19:13]line НДС 12% НСП 1% [11:19:13]line > о реализуемом товаре [11:19:13]line ИТОГО: 3000.70 [11:19:13]line НСП 1% : 26.55 [11:19:13]line НДС 12% : 318.66 [11:19:13]line Наличными: 0.00 [11:19:13]line Безнал.: 3000.70 [11:19:13]line Место: АЗС № 91 "Партнер Нефть" [11:19:13]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [11:19:13]line СНО: Общий режим [11:19:13]line Чек 46 18.05.2024 11:19 [11:19:13]line Смена: 359 ФФД: 1.0 [11:19:13]line ЗНМ: 0300000119 [11:19:13]line РНМ: 0000000000091845 [11:19:13]line Версия ККМ: 001 [11:19:13]line Платежная система: O! деньги [11:19:13]line ФМ: 0000000000871829 [11:19:13]line ФД: 67807 [11:19:13]line ФПД: 25713217798142 [11:19:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T111917&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67807&fm=25713217798142&tin=02508201610067®Number=0000000000091845&sum=300070 [11:19:14]OFD Sender: Processing packet 67807 [packets to send 35, broken 34] [11:19:14]ProducePacketName [11:19:14]name=ofd_packets/00067807 [11:19:14]OFD Sender: To server: pG, [11:19:14]CommunicateWithHost lk.salyk.kg:30040 [11:19:14]ConnectInit lk.salyk.kg [11:19:14]written 0, free lines is 4095 [11:19:14]Connected sock=10 [11:19:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 7B 2A 04 01 44 D6 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 9C 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 26 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 26 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 26 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 B5 8E 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 DF 08 01 00 35 04 06 00 17 62 D3 36 7F FE 0C CD 5B 84 79 82 75 10 [11:19:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 D6 33 47 00 2A 29 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 DF 08 01 00 F4 03 04 00 8A 36 48 66 B6 04 01 00 00 C9 B1 A1 60 25 6F 34 03 [11:19:14]CommunicateWithHost err = 0 [11:19:14]CheckOFDResponse [11:19:14]1017 (14) - 77093643461234 [11:19:14]1041 (16) - 0000000000871829 [11:19:14]1040 (4) - 67807 [11:19:14]1012 (4) - 18.05.2024 05:03 [11:19:14]1206 (1) - 0 [11:19:14]OFD Sender: Remove packet 67807 [11:19:14]ProducePacketName [11:19:14]name=ofd_packets/00067807 [11:19:14]NVStorageDeleteData [11:19:14]Write to MH i2c: 01 00 00 F0 2D 1D [11:19:14]Write i2c OK [11:19:14]MH_I2C_Read... [11:19:14]Read from MH i2c: 01 [11:19:14]MH_I2C_Read... [11:19:14]Read from MH i2c: 01 07 00 [11:19:14]MH_I2C_Read... [11:19:14]Read from MH i2c: 01 07 00 F0 2D 00 00 00 00 00 E5 0C 15 [11:19:14]RasterBufferAndPrint [11:19:14]line [11:19:14]line [11:19:14]line [11:19:14]line [11:19:14]line [11:19:14]written 0, free lines is 3306 [11:19:14]MH_Cut [11:19:14]Write to MH i2c: D1 01 00 F7 2D 01 F6 [11:19:14]Write i2c OK [11:19:14]MH_I2C_Read... [11:19:14]Read from MH i2c: D1 [11:19:14]MH_I2C_Read... [11:19:14]Read from MH i2c: D1 01 00 [11:19:14]MH_I2C_Read... [11:19:14]Read from MH i2c: D1 01 00 F7 2D 00 F5 [11:19:14]Write to MH i2c: 01 00 00 F8 2D 25 [11:19:14]Write i2c OK [11:19:14]MH_I2C_Read... [11:19:15]OFD Sender: No OFD packet to send [11:19:15]*** Cut start [11:19:15]*** Purtial cut [11:19:15]*** CUTSNS_PIN = 0 [11:19:15]*** Stage 1: CUTSNS_PIN = 1 [11:19:17]Read from MH i2c: 01 [11:19:17]MH_I2C_Read... [11:19:17]*** Stop cut motor [11:19:17]*** Cut end [11:19:17]Read from MH i2c: 01 07 00 [11:19:17]MH_I2C_Read... [11:19:17]Read from MH i2c: 01 07 00 F8 2D 00 00 00 00 00 FF 0F 3A [11:19:17]process_action close_receipt done [11:19:17]requested_data is exist [11:19:17]produce_requested_data [11:19:17]requested_item fm.sn is exist - process it [11:19:17]wFMCommunicate request_size=4 [11:19:17]MH_SAM_APDU [11:19:17]CAPDU: 80 11 00 00 [11:19:17]Write to MH i2c: E2 08 00 F9 2D 80 11 00 00 00 00 00 00 A0 [11:19:17]Write i2c OK [11:19:17]MH_I2C_Read... [11:19:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:19:17]Read from MH i2c: E2 [11:19:17]MH_I2C_Read... [11:19:17]Read from MH i2c: E2 17 00 [11:19:17]MH_I2C_Read... [11:19:17]Read from MH i2c: E2 17 00 F9 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 F6 [11:19:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [11:19:17]wFMCommunicate OK [11:19:17]requested_item fd.num is exist - process it [11:19:17]SAM_PROTO_GetFieldsCounters [11:19:17]wFMCommunicate request_size=4 [11:19:17]MH_SAM_APDU [11:19:17]CAPDU: 80 13 00 00 [11:19:17]Write to MH i2c: E2 08 00 FA 2D 80 13 00 00 00 00 00 00 A3 [11:19:17]Write i2c OK [11:19:17]MH_I2C_Read... [11:19:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:19:17]Read from MH i2c: E2 [11:19:17]MH_I2C_Read... [11:19:17]Read from MH i2c: E2 62 00 [11:19:17]MH_I2C_Read... [11:19:17]Read from MH i2c: E2 62 00 FA 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 DF 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 2E 00 00 00 5E 04 04 00 2E 00 00 00 57 04 04 00 2F 00 00 00 19 04 04 00 00 00 00 00 90 00 A3 [11:19:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 DF 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 2E 00 00 00 5E 04 04 00 2E 00 00 00 57 04 04 00 2F 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:19:17]wFMCommunicate OK [11:19:17]SAM_PROTO_GetFieldsCounters done [11:19:17]requested_item shift.num is exist - process it [11:19:17]requested_item shift.opened is exist - process it [11:19:17]req_shift_opened [11:19:17]FM_GetShiftState [11:19:17]SAM_PROTO_GetShiftState [11:19:17]wFMCommunicate request_size=4 [11:19:17]MH_SAM_APDU [11:19:17]CAPDU: 80 13 01 00 [11:19:17]Write to MH i2c: E2 08 00 FB 2D 80 13 01 00 00 00 00 00 A5 [11:19:17]Write i2c OK [11:19:17]MH_I2C_Read... [11:19:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:19:17]Read from MH i2c: E2 [11:19:17]MH_I2C_Read... [11:19:17]Read from MH i2c: E2 0E 00 [11:19:17]MH_I2C_Read... [11:19:17]Read from MH i2c: E2 0E 00 FB 2D 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 0C [11:19:17]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [11:19:17]wFMCommunicate OK [11:19:17]SAM_PROTO_GetShiftState done [11:19:17]FM_GetShiftState done [11:19:17]req_shift_opened done [11:19:17]requested_item shift.open_date is exist - process it [11:19:17]req_shift_open_date [11:19:17]req_shift_open_date done [11:19:17]produce_requested_data done [11:19:17]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67807,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [11:19:17]process_action_free close_receipt [11:19:17]json_value_free [11:19:17]json_value_free done [11:19:17]process_json_proto returns [11:19:17]Send response to host [11:19:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67807,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [11:19:17]free response buf [11:19:17]execute_script done [11:19:17]execute_script returns [11:19:17]free content buf [11:19:17]Sock 9.Close socket [11:19:17]Sock 9.Thread stoped [11:19:20]OFD Sender: No OFD packet to send [11:19:25]OFD Sender: No OFD packet to send [11:19:30]OFD Sender: No OFD packet to send [11:19:35]OFD Sender: No OFD packet to send [11:19:40]OFD Sender: No OFD packet to send [11:19:45]OFD Sender: No OFD packet to send [11:19:50]OFD Sender: No OFD packet to send [11:19:55]OFD Sender: No OFD packet to send [11:20:00]OFD Sender: No OFD packet to send [11:20:05]OFD Sender: No OFD packet to send [11:20:10]OFD Sender: No OFD packet to send [11:20:15]OFD Sender: No OFD packet to send [11:20:20]OFD Sender: No OFD packet to send [11:20:25]OFD Sender: No OFD packet to send [11:20:30]OFD Sender: No OFD packet to send [11:20:35]OFD Sender: No OFD packet to send [11:20:40]OFD Sender: No OFD packet to send [11:20:45]OFD Sender: No OFD packet to send [11:20:50]OFD Sender: No OFD packet to send [11:20:55]OFD Sender: No OFD packet to send [11:21:00]OFD Sender: No OFD packet to send [11:21:05]OFD Sender: No OFD packet to send [11:21:10]OFD Sender: No OFD packet to send [11:21:15]OFD Sender: No OFD packet to send [11:21:20]OFD Sender: No OFD packet to send [11:21:25]OFD Sender: No OFD packet to send [11:21:30]OFD Sender: No OFD packet to send [11:21:35]OFD Sender: No OFD packet to send [11:21:40]OFD Sender: No OFD packet to send [11:21:45]OFD Sender: No OFD packet to send [11:21:50]OFD Sender: No OFD packet to send [11:21:55]OFD Sender: No OFD packet to send [11:22:00]OFD Sender: No OFD packet to send [11:22:05]OFD Sender: No OFD packet to send [11:22:10]OFD Sender: No OFD packet to send [11:22:15]OFD Sender: No OFD packet to send [11:22:20]OFD Sender: No OFD packet to send [11:22:25]OFD Sender: No OFD packet to send [11:22:30]OFD Sender: No OFD packet to send [11:22:35]OFD Sender: No OFD packet to send [11:22:40]OFD Sender: No OFD packet to send [11:22:45]OFD Sender: No OFD packet to send [11:22:50]OFD Sender: No OFD packet to send [11:22:55]OFD Sender: No OFD packet to send [11:23:00]OFD Sender: No OFD packet to send [11:23:05]OFD Sender: No OFD packet to send [11:23:10]OFD Sender: No OFD packet to send [11:23:15]OFD Sender: No OFD packet to send [11:23:20]OFD Sender: No OFD packet to send [11:23:25]OFD Sender: No OFD packet to send [11:23:30]OFD Sender: No OFD packet to send [11:23:35]OFD Sender: No OFD packet to send [11:23:40]OFD Sender: No OFD packet to send [11:23:45]OFD Sender: No OFD packet to send [11:23:50]OFD Sender: No OFD packet to send [11:23:55]OFD Sender: No OFD packet to send [11:24:00]OFD Sender: No OFD packet to send [11:24:05]OFD Sender: No OFD packet to send [11:24:10]OFD Sender: No OFD packet to send [11:24:15]OFD Sender: No OFD packet to send [11:24:20]OFD Sender: No OFD packet to send [11:24:25]OFD Sender: No OFD packet to send [11:24:30]OFD Sender: No OFD packet to send [11:24:35]OFD Sender: No OFD packet to send [11:24:40]OFD Sender: No OFD packet to send [11:24:45]OFD Sender: No OFD packet to send [11:24:50]OFD Sender: No OFD packet to send [11:24:55]OFD Sender: No OFD packet to send [11:25:00]OFD Sender: No OFD packet to send [11:25:05]OFD Sender: No OFD packet to send [11:25:10]OFD Sender: No OFD packet to send [11:25:15]OFD Sender: No OFD packet to send [11:25:20]OFD Sender: No OFD packet to send [11:25:25]OFD Sender: No OFD packet to send [11:25:30]OFD Sender: No OFD packet to send [11:25:35]OFD Sender: No OFD packet to send [11:25:40]OFD Sender: No OFD packet to send [11:25:45]OFD Sender: No OFD packet to send [11:25:50]OFD Sender: No OFD packet to send [11:25:55]OFD Sender: No OFD packet to send [11:26:00]OFD Sender: No OFD packet to send [11:26:05]OFD Sender: No OFD packet to send [11:26:10]OFD Sender: No OFD packet to send [11:26:15]OFD Sender: No OFD packet to send [11:26:20]OFD Sender: No OFD packet to send [11:26:25]OFD Sender: No OFD packet to send [11:26:30]OFD Sender: No OFD packet to send [11:26:35]OFD Sender: No OFD packet to send [11:26:40]OFD Sender: No OFD packet to send [11:26:45]OFD Sender: No OFD packet to send [11:26:50]OFD Sender: No OFD packet to send [11:26:55]OFD Sender: No OFD packet to send [11:27:00]OFD Sender: No OFD packet to send [11:27:05]OFD Sender: No OFD packet to send [11:27:10]OFD Sender: No OFD packet to send [11:27:15]OFD Sender: No OFD packet to send [11:27:20]OFD Sender: No OFD packet to send [11:27:25]OFD Sender: No OFD packet to send [11:27:30]OFD Sender: No OFD packet to send [11:27:35]OFD Sender: No OFD packet to send [11:27:38]accept exits with 7 [11:27:38]New connection [11:27:38]New thread 3066608996 created [11:27:38]Thread 3066752356 joined [11:27:38]Waiting for new connection... [11:27:38] Sock 7.Parse request [11:27:38]Sock 7.Check first char [11:27:38]Sock 7.First char is OK [11:27:38]request: POST /json_proto HTTP/1.0 [11:27:38]Method: POST [11:27:38]URL: /json_proto [11:27:38]Method is POST - this is cgi request [11:27:38]url: /json_proto [11:27:38]query_string will be loaded in cgi processing [11:27:38]execute_cgi json_proto POST (null) [11:27:38]execute_cgi path=json_proto method=POST [11:27:38]POST find Content-Length [11:27:38]Host: 172.17.41.195:8080 [11:27:38]Content-Length: 800 [11:27:38]Content-Type: application/json [11:27:38] [11:27:38]POST finish read [11:27:38]Found Content-Length = 800 [11:27:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)508014", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.80, "quantity" : 7.490, "sum" : 500.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.33 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:27:38]execute_script... [11:27:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)508014", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.80, "quantity" : 7.490, "sum" : 500.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.33 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:27:38]POST & json_proto [11:27:38]process_json_proto [11:27:38]json parsed OK: [11:27:38]protocol is kg_v1.0 [11:27:38]action value=close_receipt [11:27:38]process_action close_receipt [11:27:38]cmd_close_receipt [11:27:38]MH_GetDate [11:27:38]Write to MH i2c: F0 00 00 FC 2D 18 [11:27:38]Write i2c OK [11:27:38]MH_I2C_Read... [11:27:38]Read from MH i2c: F0 [11:27:38]MH_I2C_Read... [11:27:38]Read from MH i2c: F0 09 00 [11:27:38]MH_I2C_Read... [11:27:38]Read from MH i2c: F0 09 00 FC 2D 00 AF 90 48 66 FC 21 6F 64 FE [11:27:38]GetLastDocTimeStamp 1716031157 [11:27:38]current date 1716031663 [11:27:38]FM_GetShiftState [11:27:38]SAM_PROTO_GetShiftState [11:27:38]wFMCommunicate request_size=4 [11:27:38]MH_SAM_APDU [11:27:38]CAPDU: 80 13 01 00 [11:27:38]Write to MH i2c: E2 08 00 FD 2D 80 13 01 00 00 00 00 00 A7 [11:27:38]Write i2c OK [11:27:38]MH_I2C_Read... [11:27:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:27:38]Read from MH i2c: E2 [11:27:38]MH_I2C_Read... [11:27:38]Read from MH i2c: E2 0E 00 [11:27:38]MH_I2C_Read... [11:27:38]Read from MH i2c: E2 0E 00 FD 2D 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 0E [11:27:38]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [11:27:38]wFMCommunicate OK [11:27:38]SAM_PROTO_GetShiftState done [11:27:38]FM_GetShiftState done [11:27:38]opened in 1715991483 [11:27:38]opened+sec_in_day 1716077883 [11:27:38]quantity*price = 50033 [11:27:38]sum+1 = 50034 [11:27:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.33 НСП 1% : 4.43 НДС 12% : 53.13 Наличными: 0.00 Безнал.: 500.33 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 47 18.05.2024 11:27 Смена: 359 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67808 ФПД: 149986041735185 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T112743&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67808&fm=149986041735185&tin=02508201610067®Number=0000000000091845&sum=50033 [11:27:39]StoreToDocumentArchive [11:27:39]shift 359 fd 67808 [11:27:39]save to /storage/0359/doc_00067808 [11:27:39]save last doc name /storage/0359/doc_00067808 to /storage/kkm_last_doc_name [11:27:39]save OK [11:27:39]Clear old archive folders... [11:27:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:27:39]tlvbuf is 01B267C0 [11:27:39]SAM_PROTO_ClearQueue [11:27:39]wFMCommunicate request_size=4 [11:27:39]MH_SAM_APDU [11:27:39]CAPDU: 80 09 00 00 [11:27:39]Write to MH i2c: E2 08 00 0A 2E 80 09 00 00 00 00 00 00 AA [11:27:39]Write i2c OK [11:27:39]MH_I2C_Read... [11:27:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:27:39]Read from MH i2c: E2 [11:27:39]MH_I2C_Read... [11:27:39]Read from MH i2c: E2 03 00 [11:27:39]MH_I2C_Read... [11:27:39]Read from MH i2c: E2 03 00 0A 2E 00 90 00 AC [11:27:39]RAPDU: 90 00 [11:27:39]wFMCommunicate OK [11:27:39]SAM_PROTO_ClearQueue done [11:27:39]KKMCreateOFDPacket [11:27:39]OFDProtocolAddRootSTLVToBuf [11:27:39]FM_MakeSignedData [11:27:39]FM_MakeSignedData [11:27:39]SAM_PROTO_SignData [11:27:39]wFMCommunicate request_size=4 [11:27:39]MH_SAM_APDU [11:27:39]CAPDU: 80 0D 01 02 [11:27:39]Write to MH i2c: E2 08 00 0B 2E 80 0D 01 02 00 00 00 00 B2 [11:27:39]Write i2c OK [11:27:39]MH_I2C_Read... [11:27:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:27:39]Read from MH i2c: E2 [11:27:39]MH_I2C_Read... [11:27:39]Read from MH i2c: E2 03 00 [11:27:39]MH_I2C_Read... [11:27:39]Read from MH i2c: E2 03 00 0B 2E 00 90 00 AD [11:27:39]RAPDU: 90 00 [11:27:39]wFMCommunicate OK [11:27:39]wFMCommunicate request_size=255 [11:27:39]MH_SAM_APDU [11:27:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 42 1D 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 71 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 71 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 AF 90 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 E0 08 01 00 35 04 06 00 88 [11:27:39]Write to MH i2c: E2 02 01 0C 2E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 42 1D 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 71 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 71 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 AF 90 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 E0 08 01 00 35 04 06 00 88 00 00 74 [11:27:39]Write i2c OK [11:27:39]MH_I2C_Read... [11:27:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:27:39]Read from MH i2c: E2 [11:27:39]MH_I2C_Read... [11:27:39]Read from MH i2c: E2 03 00 [11:27:39]MH_I2C_Read... [11:27:39]Read from MH i2c: E2 03 00 0C 2E 00 90 00 AE [11:27:39]RAPDU: 90 00 [11:27:39]wFMCommunicate OK [11:27:39]wFMCommunicate request_size=10 [11:27:39]MH_SAM_APDU [11:27:39]CAPDU: 80 0D 02 02 05 69 58 BD 28 11 [11:27:39]Write to MH i2c: E2 0D 00 0D 2E 80 0D 02 02 05 00 69 58 BD 28 11 00 00 76 [11:27:39]Write i2c OK [11:27:39]MH_I2C_Read... [11:27:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:27:39]Read from MH i2c: E2 [11:27:39]MH_I2C_Read... [11:27:39]Read from MH i2c: E2 03 00 [11:27:39]MH_I2C_Read... [11:27:39]Read from MH i2c: E2 03 00 0D 2E 00 90 00 AF [11:27:39]RAPDU: 90 00 [11:27:39]wFMCommunicate OK [11:27:39]wFMCommunicate request_size=4 [11:27:39]MH_SAM_APDU [11:27:39]CAPDU: 80 0D 03 02 [11:27:39]Write to MH i2c: E2 08 00 0E 2E 80 0D 03 02 00 00 00 00 B7 [11:27:39]Write i2c OK [11:27:39]MH_I2C_Read... [11:27:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:27:39]Read from MH i2c: E2 [11:27:39]MH_I2C_Read... [11:27:39]Read from MH i2c: E2 0B 00 [11:27:39]MH_I2C_Read... [11:27:39]Read from MH i2c: E2 0B 00 0E 2E 00 23 A9 C8 66 40 9E 77 30 90 00 37 [11:27:39]RAPDU: 23 A9 C8 66 40 9E 77 30 90 00 [11:27:39]wFMCommunicate OK [11:27:39]SAM_PROTO_SignData done [11:27:39]FM_MakeSignedData done [11:27:39]CreateOFDProtocolMessage [11:27:39]wFMCommunicate request_size=4 [11:27:39]MH_SAM_APDU [11:27:39]CAPDU: 80 11 00 00 [11:27:39]Write to MH i2c: E2 08 00 0F 2E 80 11 00 00 00 00 00 00 B7 [11:27:39]Write i2c OK [11:27:39]MH_I2C_Read... [11:27:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:27:39]Read from MH i2c: E2 [11:27:39]MH_I2C_Read... [11:27:39]Read from MH i2c: E2 17 00 [11:27:39]MH_I2C_Read... [11:27:39]Read from MH i2c: E2 17 00 0F 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 0D [11:27:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [11:27:39]wFMCommunicate OK [11:27:39]CreateOFDProtocolMessage done [11:27:39]OFDSenderStorePacket 67808 [11:27:39]StoreOFDPacket docnum=67808 [11:27:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 B1 C8 07 01 AD 9E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 42 1D 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 71 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 71 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 AF 90 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 E0 08 01 00 35 04 06 00 88 69 58 BD 28 11 23 A9 C8 66 40 9E 77 30 [11:27:39]CheckFolder [11:27:39]dirname=/storage/ofd_packets [11:27:39]CheckFolder done [11:27:39]ProducePacketName [11:27:39]name=ofd_packets/00067808 [11:27:39]NVStorageSaveData ofd_packets/00067808 [11:27:39]File name is /storage/ofd_packets/00067808 [11:27:39]Write 301 bytes [11:27:39]NVStorageSaveData done [11:27:39]OFDSenderStorePacket done [11:27:39]KKMCreateOFDPacket done [11:27:39]NVStorageSaveData kkm_last_timestamp [11:27:39]File name is /storage/kkm_last_timestamp [11:27:39]Write 4 bytes [11:27:39]NVStorageSaveData done [11:27:39]ExternCall_PrintAddStr [11:27:39]wPrintStart [11:27:39]Write to MH i2c: 01 00 00 10 2E 3E [11:27:39]Write i2c OK [11:27:39]MH_I2C_Read... [11:27:39]Read from MH i2c: 01 [11:27:39]MH_I2C_Read... [11:27:39]Read from MH i2c: 01 07 00 [11:27:39]MH_I2C_Read... [11:27:39]Read from MH i2c: 01 07 00 10 2E 00 00 00 00 00 FF 0F 53 [11:27:39]RasterBufferAndPrint [11:27:39]line Счет N : (1)508014 [11:27:39]line ИНН: 02508201610067 [11:27:39]line Контрольно-Кассовый Чек [11:27:39]line ПРОДАЖА [11:27:39]line ТРК (МРК, ГНК) : 33 [11:27:39]line Товар: 2710124130 [11:27:39]line Аи-92-К-5 [11:27:39]line 7.490 * 66.80 [11:27:39]line = 500.33 [11:27:39]line НДС 12% НСП 1% [11:27:39]line > о реализуемом товаре [11:27:39]line ИТОГО: 500.33 [11:27:39]line НСП 1% : 4.43 [11:27:39]line НДС 12% : 53.13 [11:27:39]line Наличными: 0.00 [11:27:39]line Безнал.: 500.33 [11:27:39]line Место: АЗС № 91 "Партнер Нефть" [11:27:39]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [11:27:39]line СНО: Общий режим [11:27:39]line Чек 47 18.05.2024 11:27 [11:27:39]line Смена: 359 ФФД: 1.0 [11:27:39]line ЗНМ: 0300000119 [11:27:39]line РНМ: 0000000000091845 [11:27:39]line Версия ККМ: 001 [11:27:39]line Платежная система: O! деньги [11:27:39]line ФМ: 0000000000871829 [11:27:39]line ФД: 67808 [11:27:39]line ФПД: 149986041735185 [11:27:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T112743&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67808&fm=149986041735185&tin=02508201610067®Number=0000000000091845&sum=50033 [11:27:39]written 0, free lines is 4095 [11:27:39]OFD Sender: Processing packet 67808 [packets to send 35, broken 34] [11:27:39]ProducePacketName [11:27:39]name=ofd_packets/00067808 [11:27:39]OFD Sender: To server: pG, [11:27:39]CommunicateWithHost lk.salyk.kg:30040 [11:27:39]ConnectInit lk.salyk.kg [11:27:39]Connected sock=11 [11:27:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 B1 C8 07 01 AD 9E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 42 1D 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 71 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 71 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 AF 90 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 E0 08 01 00 35 04 06 00 88 69 58 BD 28 11 23 A9 C8 66 40 9E 77 30 [11:27:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 4F 60 47 00 C9 64 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 E0 08 01 00 F4 03 04 00 84 38 48 66 B6 04 01 00 00 16 E6 73 14 61 A4 7C 0F [11:27:40]CommunicateWithHost err = 0 [11:27:40]CheckOFDResponse [11:27:40]1017 (14) - 77093643461234 [11:27:40]1041 (16) - 0000000000871829 [11:27:40]1040 (4) - 67808 [11:27:40]1012 (4) - 18.05.2024 05:11 [11:27:40]1206 (1) - 0 [11:27:40]OFD Sender: Remove packet 67808 [11:27:40]ProducePacketName [11:27:40]name=ofd_packets/00067808 [11:27:40]NVStorageDeleteData [11:27:40]Write to MH i2c: 01 00 00 39 2E 67 [11:27:40]Write i2c OK [11:27:40]MH_I2C_Read... [11:27:40]Read from MH i2c: 01 [11:27:40]MH_I2C_Read... [11:27:40]Read from MH i2c: 01 07 00 [11:27:40]MH_I2C_Read... [11:27:40]Read from MH i2c: 01 07 00 39 2E 00 00 00 00 00 DF 0C 59 [11:27:40]RasterBufferAndPrint [11:27:40]line [11:27:40]line [11:27:40]line [11:27:40]line [11:27:40]line [11:27:40]written 0, free lines is 3301 [11:27:40]MH_Cut [11:27:40]Write to MH i2c: D1 01 00 40 2E 01 40 [11:27:40]Write i2c OK [11:27:40]MH_I2C_Read... [11:27:40]Read from MH i2c: D1 [11:27:40]MH_I2C_Read... [11:27:40]Read from MH i2c: D1 01 00 [11:27:40]MH_I2C_Read... [11:27:40]Read from MH i2c: D1 01 00 40 2E 00 3F [11:27:40]Write to MH i2c: 01 00 00 41 2E 6F [11:27:40]Write i2c OK [11:27:40]MH_I2C_Read... [11:27:40]OFD Sender: No OFD packet to send [11:27:41]*** Cut start [11:27:41]*** Purtial cut [11:27:41]*** Stage 1: CUTSNS_PIN = 1 [11:27:41]Read from MH i2c: 01 [11:27:41]MH_I2C_Read... [11:27:41]*** Stop cut motor [11:27:41]*** Cut end [11:27:41]Read from MH i2c: 01 07 00 [11:27:41]MH_I2C_Read... [11:27:41]Read from MH i2c: 01 07 00 41 2E 00 00 00 00 00 FF 0F 84 [11:27:41]process_action close_receipt done [11:27:41]requested_data is exist [11:27:41]produce_requested_data [11:27:41]requested_item fm.sn is exist - process it [11:27:41]wFMCommunicate request_size=4 [11:27:41]MH_SAM_APDU [11:27:41]CAPDU: 80 11 00 00 [11:27:41]Write to MH i2c: E2 08 00 42 2E 80 11 00 00 00 00 00 00 EA [11:27:41]Write i2c OK [11:27:41]MH_I2C_Read... [11:27:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:27:41]Read from MH i2c: E2 [11:27:41]MH_I2C_Read... [11:27:41]Read from MH i2c: E2 17 00 [11:27:41]MH_I2C_Read... [11:27:41]Read from MH i2c: E2 17 00 42 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 40 [11:27:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [11:27:41]wFMCommunicate OK [11:27:41]requested_item fd.num is exist - process it [11:27:41]SAM_PROTO_GetFieldsCounters [11:27:41]wFMCommunicate request_size=4 [11:27:41]MH_SAM_APDU [11:27:41]CAPDU: 80 13 00 00 [11:27:41]Write to MH i2c: E2 08 00 43 2E 80 13 00 00 00 00 00 00 ED [11:27:41]Write i2c OK [11:27:41]MH_I2C_Read... [11:27:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:27:41]Read from MH i2c: E2 [11:27:41]MH_I2C_Read... [11:27:41]Read from MH i2c: E2 62 00 [11:27:41]MH_I2C_Read... [11:27:41]Read from MH i2c: E2 62 00 43 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 E0 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 F1 [11:27:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 E0 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:27:41]wFMCommunicate OK [11:27:41]SAM_PROTO_GetFieldsCounters done [11:27:41]requested_item shift.num is exist - process it [11:27:41]requested_item shift.opened is exist - process it [11:27:41]req_shift_opened [11:27:41]FM_GetShiftState [11:27:41]SAM_PROTO_GetShiftState [11:27:41]wFMCommunicate request_size=4 [11:27:41]MH_SAM_APDU [11:27:41]CAPDU: 80 13 01 00 [11:27:41]Write to MH i2c: E2 08 00 44 2E 80 13 01 00 00 00 00 00 EF [11:27:41]Write i2c OK [11:27:41]MH_I2C_Read... [11:27:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:27:41]Read from MH i2c: E2 [11:27:41]MH_I2C_Read... [11:27:41]Read from MH i2c: E2 0E 00 [11:27:41]MH_I2C_Read... [11:27:41]Read from MH i2c: E2 0E 00 44 2E 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 56 [11:27:41]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [11:27:41]wFMCommunicate OK [11:27:41]SAM_PROTO_GetShiftState done [11:27:41]FM_GetShiftState done [11:27:41]req_shift_opened done [11:27:41]requested_item shift.open_date is exist - process it [11:27:41]req_shift_open_date [11:27:41]req_shift_open_date done [11:27:41]produce_requested_data done [11:27:41]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67808,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [11:27:41]process_action_free close_receipt [11:27:41]json_value_free [11:27:41]json_value_free done [11:27:41]process_json_proto returns [11:27:41]Send response to host [11:27:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67808,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [11:27:41]free response buf [11:27:41]execute_script done [11:27:41]execute_script returns [11:27:41]free content buf [11:27:41]Sock 7.Close socket [11:27:41]Sock 7.Thread stoped [11:27:45]OFD Sender: No OFD packet to send [11:27:50]OFD Sender: No OFD packet to send [11:27:55]OFD Sender: No OFD packet to send [11:28:00]OFD Sender: No OFD packet to send [11:28:05]OFD Sender: No OFD packet to send [11:28:10]OFD Sender: No OFD packet to send [11:28:15]OFD Sender: No OFD packet to send [11:28:20]OFD Sender: No OFD packet to send [11:28:25]OFD Sender: No OFD packet to send [11:28:30]OFD Sender: No OFD packet to send [11:28:35]OFD Sender: No OFD packet to send [11:28:40]OFD Sender: No OFD packet to send [11:28:45]OFD Sender: No OFD packet to send [11:28:50]OFD Sender: No OFD packet to send [11:28:55]OFD Sender: No OFD packet to send [11:29:00]OFD Sender: No OFD packet to send [11:29:05]OFD Sender: No OFD packet to send [11:29:10]OFD Sender: No OFD packet to send [11:29:15]OFD Sender: No OFD packet to send [11:29:20]OFD Sender: No OFD packet to send [11:29:25]OFD Sender: No OFD packet to send [11:29:30]OFD Sender: No OFD packet to send [11:29:35]OFD Sender: No OFD packet to send [11:29:40]OFD Sender: No OFD packet to send [11:29:45]OFD Sender: No OFD packet to send [11:29:50]OFD Sender: No OFD packet to send [11:29:55]OFD Sender: No OFD packet to send [11:30:00]OFD Sender: No OFD packet to send [11:30:03]accept exits with 9 [11:30:03]New connection [11:30:03]New thread 3066752356 created [11:30:03]Thread 3066608996 joined [11:30:03]Waiting for new connection... [11:30:03] Sock 9.Parse request [11:30:03]Sock 9.Check first char [11:30:03]Sock 9.First char is OK [11:30:03]request: POST /json_proto HTTP/1.0 [11:30:03]Method: POST [11:30:03]URL: /json_proto [11:30:03]Method is POST - this is cgi request [11:30:03]url: /json_proto [11:30:03]query_string will be loaded in cgi processing [11:30:03]execute_cgi json_proto POST (null) [11:30:03]execute_cgi path=json_proto method=POST [11:30:03]POST find Content-Length [11:30:03]Host: 172.17.41.195:8080 [11:30:03]Content-Length: 1217 [11:30:03]Content-Type: application/json [11:30:03] [11:30:03]POST finish read [11:30:03]Found Content-Length = 1217 [11:30:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0440\u0441\u0442\u0430\u043D\u0431\u0435\u043A\u043E\u0432 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)508015\u000A18.05.2024 11:12\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 20.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 1494.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3797522\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:30:03]execute_script... [11:30:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0440\u0441\u0442\u0430\u043D\u0431\u0435\u043A\u043E\u0432 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)508015\u000A18.05.2024 11:12\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 20.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 1494.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3797522\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:30:03]POST & json_proto [11:30:03]process_json_proto [11:30:03]json parsed OK: [11:30:03]protocol is kg_v1.0 [11:30:03]action value=print_text [11:30:03]process_action print_text [11:30:03]cmd_print_text [11:30:03]ExternCall_PrintAddStr [11:30:03]wPrintStart [11:30:03]Write to MH i2c: 01 00 00 45 2E 73 [11:30:03]Write i2c OK [11:30:03]MH_I2C_Read... [11:30:03]Read from MH i2c: 01 [11:30:03]MH_I2C_Read... [11:30:03]Read from MH i2c: 01 07 00 [11:30:03]MH_I2C_Read... [11:30:03]Read from MH i2c: 01 07 00 45 2E 00 00 00 00 00 FF 0F 88 [11:30:03]RasterBufferAndPrint [11:30:03]line *****ТОВАРНЫЙ ЧЕК***** [11:30:03]line АЗС-91 [11:30:03]line Партнер нефть [11:30:03]line 02508201610067 [11:30:03]line Кассир : Арстанбеков Н. [11:30:03]line Счет N : (1)508015 [11:30:03]line 18.05.2024 11:12 [11:30:03]line ПРОДАЖА [11:30:03]line ТРК (МРК, ГНК): 11 [11:30:03]line Вид ГСМ : 2710194210 [11:30:03]line ДТ-К-5 [11:30:03]line 20.000 x 74.70 [11:30:03]line ИТОГ: 1494.00 [11:30:03]line Тип оплаты: Талоны: Топливные Талоны [11:30:03]line 3797522 [11:30:03]line ______________________ [11:30:03]line (подпись) [11:30:03]written 0, free lines is 4095 [11:30:03]Write to MH i2c: 01 00 00 59 2E 87 [11:30:03]Write i2c OK [11:30:03]MH_I2C_Read... [11:30:03]Read from MH i2c: 01 [11:30:03]MH_I2C_Read... [11:30:03]Read from MH i2c: 01 07 00 [11:30:03]MH_I2C_Read... [11:30:03]Read from MH i2c: 01 07 00 59 2E 00 00 00 00 00 0E 0E AA [11:30:03]RasterBufferAndPrint [11:30:03]line [11:30:03]line [11:30:03]line [11:30:03]line [11:30:03]line [11:30:03]written 0, free lines is 3600 [11:30:03]MH_Cut [11:30:03]Write to MH i2c: D1 01 00 60 2E 01 60 [11:30:03]Write i2c OK [11:30:03]MH_I2C_Read... [11:30:03]Read from MH i2c: D1 [11:30:03]MH_I2C_Read... [11:30:03]Read from MH i2c: D1 01 00 [11:30:03]MH_I2C_Read... [11:30:03]Read from MH i2c: D1 01 00 60 2E 00 5F [11:30:03]Write to MH i2c: 01 00 00 61 2E 8F [11:30:03]Write i2c OK [11:30:03]MH_I2C_Read... [11:30:04]*** Cut start [11:30:04]*** Purtial cut [11:30:04]*** CUTSNS_PIN = 0 [11:30:04]*** Stage 1: CUTSNS_PIN = 1 [11:30:05]OFD Sender: No OFD packet to send [11:30:06]Read from MH i2c: 01 [11:30:06]MH_I2C_Read... [11:30:06]Read from MH i2c: 01 07 00 [11:30:06]MH_I2C_Read... [11:30:06]*** Stop cut motor [11:30:06]*** Cut end [11:30:06]Read from MH i2c: 01 07 00 61 2E 00 00 00 00 00 FF 0F A4 [11:30:06]process_action print_text done [11:30:06]requested_data is exist [11:30:06]produce_requested_data [11:30:06]requested_item fm.sn is exist - process it [11:30:06]wFMCommunicate request_size=4 [11:30:06]MH_SAM_APDU [11:30:06]CAPDU: 80 11 00 00 [11:30:06]Write to MH i2c: E2 08 00 62 2E 80 11 00 00 00 00 00 00 0A [11:30:06]Write i2c OK [11:30:06]MH_I2C_Read... [11:30:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:30:06]Read from MH i2c: E2 [11:30:06]MH_I2C_Read... [11:30:06]Read from MH i2c: E2 17 00 [11:30:06]MH_I2C_Read... [11:30:06]Read from MH i2c: E2 17 00 62 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 60 [11:30:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [11:30:06]wFMCommunicate OK [11:30:06]requested_item fd.num is exist - process it [11:30:06]SAM_PROTO_GetFieldsCounters [11:30:06]wFMCommunicate request_size=4 [11:30:06]MH_SAM_APDU [11:30:06]CAPDU: 80 13 00 00 [11:30:06]Write to MH i2c: E2 08 00 63 2E 80 13 00 00 00 00 00 00 0D [11:30:06]Write i2c OK [11:30:06]MH_I2C_Read... [11:30:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:30:06]Read from MH i2c: E2 [11:30:06]MH_I2C_Read... [11:30:06]Read from MH i2c: E2 62 00 [11:30:06]MH_I2C_Read... [11:30:06]Read from MH i2c: E2 62 00 63 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 E0 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 11 [11:30:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 E0 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:30:06]wFMCommunicate OK [11:30:06]SAM_PROTO_GetFieldsCounters done [11:30:06]requested_item shift.num is exist - process it [11:30:06]requested_item shift.opened is exist - process it [11:30:06]req_shift_opened [11:30:06]FM_GetShiftState [11:30:06]SAM_PROTO_GetShiftState [11:30:06]wFMCommunicate request_size=4 [11:30:06]MH_SAM_APDU [11:30:06]CAPDU: 80 13 01 00 [11:30:06]Write to MH i2c: E2 08 00 64 2E 80 13 01 00 00 00 00 00 0F [11:30:06]Write i2c OK [11:30:06]MH_I2C_Read... [11:30:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:30:06]Read from MH i2c: E2 [11:30:06]MH_I2C_Read... [11:30:06]Read from MH i2c: E2 0E 00 [11:30:06]MH_I2C_Read... [11:30:06]Read from MH i2c: E2 0E 00 64 2E 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 76 [11:30:06]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [11:30:06]wFMCommunicate OK [11:30:06]SAM_PROTO_GetShiftState done [11:30:06]FM_GetShiftState done [11:30:06]req_shift_opened done [11:30:06]requested_item shift.open_date is exist - process it [11:30:06]req_shift_open_date [11:30:06]req_shift_open_date done [11:30:06]produce_requested_data done [11:30:06]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67808,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [11:30:06]process_action_free print_text [11:30:06]json_value_free [11:30:06]json_value_free done [11:30:06]process_json_proto returns [11:30:06]Send response to host [11:30:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67808,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [11:30:06]free response buf [11:30:06]execute_script done [11:30:06]execute_script returns [11:30:06]free content buf [11:30:06]Sock 9.Close socket [11:30:06]Sock 9.Thread stoped [11:30:07]accept exits with 7 [11:30:07]New connection [11:30:07]New thread 3066608996 created [11:30:07]Thread 3066752356 joined [11:30:07]Waiting for new connection... [11:30:07] Sock 7.Parse request [11:30:07]Sock 7.Check first char [11:30:07]Sock 7.First char is OK [11:30:07]request: POST /json_proto HTTP/1.0 [11:30:07]Method: POST [11:30:07]URL: /json_proto [11:30:07]Method is POST - this is cgi request [11:30:07]url: /json_proto [11:30:07]query_string will be loaded in cgi processing [11:30:07]execute_cgi json_proto POST (null) [11:30:07]execute_cgi path=json_proto method=POST [11:30:07]POST find Content-Length [11:30:07]Host: 172.17.41.195:8080 [11:30:07]Content-Length: 800 [11:30:07]Content-Type: application/json [11:30:07] [11:30:07]POST finish read [11:30:07]Found Content-Length = 800 [11:30:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)508016", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.80, "quantity" : 8.990, "sum" : 600.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 600.53 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:30:07]execute_script... [11:30:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)508016", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.80, "quantity" : 8.990, "sum" : 600.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 600.53 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:30:07]POST & json_proto [11:30:07]process_json_proto [11:30:07]json parsed OK: [11:30:07]protocol is kg_v1.0 [11:30:07]action value=close_receipt [11:30:07]process_action close_receipt [11:30:07]cmd_close_receipt [11:30:07]MH_GetDate [11:30:07]Write to MH i2c: F0 00 00 65 2E 82 [11:30:07]Write i2c OK [11:30:07]MH_I2C_Read... [11:30:07]Read from MH i2c: F0 [11:30:07]MH_I2C_Read... [11:30:07]Read from MH i2c: F0 09 00 [11:30:07]MH_I2C_Read... [11:30:07]Read from MH i2c: F0 09 00 65 2E 00 44 91 48 66 FC 21 6F 64 FE [11:30:07]GetLastDocTimeStamp 1716031663 [11:30:07]current date 1716031812 [11:30:07]FM_GetShiftState [11:30:07]SAM_PROTO_GetShiftState [11:30:07]wFMCommunicate request_size=4 [11:30:07]MH_SAM_APDU [11:30:07]CAPDU: 80 13 01 00 [11:30:07]Write to MH i2c: E2 08 00 66 2E 80 13 01 00 00 00 00 00 11 [11:30:07]Write i2c OK [11:30:07]MH_I2C_Read... [11:30:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:30:08]Read from MH i2c: E2 [11:30:08]MH_I2C_Read... [11:30:08]Read from MH i2c: E2 0E 00 [11:30:08]MH_I2C_Read... [11:30:08]Read from MH i2c: E2 0E 00 66 2E 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 78 [11:30:08]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [11:30:08]wFMCommunicate OK [11:30:08]SAM_PROTO_GetShiftState done [11:30:08]FM_GetShiftState done [11:30:08]opened in 1715991483 [11:30:08]opened+sec_in_day 1716077883 [11:30:08]quantity*price = 60053 [11:30:08]sum+1 = 60054 [11:30:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 600.53 НСП 1% : 5.31 НДС 12% : 63.77 Наличными: 0.00 Безнал.: 600.53 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 48 18.05.2024 11:30 Смена: 359 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67809 ФПД: 92400885849586 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T113013&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67809&fm=92400885849586&tin=02508201610067®Number=0000000000091845&sum=60053 [11:30:08]StoreToDocumentArchive [11:30:08]shift 359 fd 67809 [11:30:08]save to /storage/0359/doc_00067809 [11:30:08]save last doc name /storage/0359/doc_00067809 to /storage/kkm_last_doc_name [11:30:08]save OK [11:30:08]Clear old archive folders... [11:30:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:30:09]tlvbuf is 01B2F980 [11:30:09]SAM_PROTO_ClearQueue [11:30:09]wFMCommunicate request_size=4 [11:30:09]MH_SAM_APDU [11:30:09]CAPDU: 80 09 00 00 [11:30:09]Write to MH i2c: E2 08 00 73 2E 80 09 00 00 00 00 00 00 13 [11:30:09]Write i2c OK [11:30:09]MH_I2C_Read... [11:30:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:30:09]Read from MH i2c: E2 [11:30:09]MH_I2C_Read... [11:30:09]Read from MH i2c: E2 03 00 [11:30:09]MH_I2C_Read... [11:30:09]Read from MH i2c: E2 03 00 73 2E 00 90 00 15 [11:30:09]RAPDU: 90 00 [11:30:09]wFMCommunicate OK [11:30:09]SAM_PROTO_ClearQueue done [11:30:09]KKMCreateOFDPacket [11:30:09]OFDProtocolAddRootSTLVToBuf [11:30:09]FM_MakeSignedData [11:30:09]FM_MakeSignedData [11:30:09]SAM_PROTO_SignData [11:30:09]wFMCommunicate request_size=4 [11:30:09]MH_SAM_APDU [11:30:09]CAPDU: 80 0D 01 02 [11:30:09]Write to MH i2c: E2 08 00 74 2E 80 0D 01 02 00 00 00 00 1B [11:30:09]Write i2c OK [11:30:09]MH_I2C_Read... [11:30:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:30:09]Read from MH i2c: E2 [11:30:09]MH_I2C_Read... [11:30:09]Read from MH i2c: E2 03 00 [11:30:09]MH_I2C_Read... [11:30:09]Read from MH i2c: E2 03 00 74 2E 00 90 00 16 [11:30:09]RAPDU: 90 00 [11:30:09]wFMCommunicate OK [11:30:09]wFMCommunicate request_size=255 [11:30:09]MH_SAM_APDU [11:30:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1E 23 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 95 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 95 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 95 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 45 91 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 E1 08 01 00 35 04 06 00 54 [11:30:09]Write to MH i2c: E2 02 01 75 2E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1E 23 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 95 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 95 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 95 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 45 91 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 E1 08 01 00 35 04 06 00 54 00 00 8A [11:30:09]Write i2c OK [11:30:09]MH_I2C_Read... [11:30:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:30:09]Read from MH i2c: E2 [11:30:09]MH_I2C_Read... [11:30:09]Read from MH i2c: E2 03 00 [11:30:09]MH_I2C_Read... [11:30:09]Read from MH i2c: E2 03 00 75 2E 00 90 00 17 [11:30:09]RAPDU: 90 00 [11:30:09]wFMCommunicate OK [11:30:09]wFMCommunicate request_size=10 [11:30:09]MH_SAM_APDU [11:30:09]CAPDU: 80 0D 02 02 05 09 C1 FA 5D F2 [11:30:09]Write to MH i2c: E2 0D 00 76 2E 80 0D 02 02 05 00 09 C1 FA 5D F2 00 00 3B [11:30:09]Write i2c OK [11:30:09]MH_I2C_Read... [11:30:09]Read from MH i2c: E2 [11:30:09]MH_I2C_Read... [11:30:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:30:09]Read from MH i2c: E2 03 00 [11:30:09]MH_I2C_Read... [11:30:09]Read from MH i2c: E2 03 00 76 2E 00 90 00 18 [11:30:09]RAPDU: 90 00 [11:30:09]wFMCommunicate OK [11:30:09]wFMCommunicate request_size=4 [11:30:09]MH_SAM_APDU [11:30:09]CAPDU: 80 0D 03 02 [11:30:09]Write to MH i2c: E2 08 00 77 2E 80 0D 03 02 00 00 00 00 20 [11:30:09]Write i2c OK [11:30:09]MH_I2C_Read... [11:30:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:30:09]Read from MH i2c: E2 [11:30:09]MH_I2C_Read... [11:30:09]Read from MH i2c: E2 0B 00 [11:30:09]MH_I2C_Read... [11:30:09]Read from MH i2c: E2 0B 00 77 2E 00 8A E2 9D AE D4 1B D8 6A 90 00 09 [11:30:09]RAPDU: 8A E2 9D AE D4 1B D8 6A 90 00 [11:30:09]wFMCommunicate OK [11:30:09]SAM_PROTO_SignData done [11:30:09]FM_MakeSignedData done [11:30:09]CreateOFDProtocolMessage [11:30:09]wFMCommunicate request_size=4 [11:30:09]MH_SAM_APDU [11:30:09]CAPDU: 80 11 00 00 [11:30:09]Write to MH i2c: E2 08 00 78 2E 80 11 00 00 00 00 00 00 20 [11:30:09]Write i2c OK [11:30:09]MH_I2C_Read... [11:30:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:30:09]Read from MH i2c: E2 [11:30:09]MH_I2C_Read... [11:30:09]Read from MH i2c: E2 17 00 [11:30:09]MH_I2C_Read... [11:30:09]Read from MH i2c: E2 17 00 78 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 76 [11:30:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [11:30:09]wFMCommunicate OK [11:30:09]CreateOFDProtocolMessage done [11:30:09]OFDSenderStorePacket 67809 [11:30:09]StoreOFDPacket docnum=67809 [11:30:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 08 81 07 01 8B A1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1E 23 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 95 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 95 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 95 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 45 91 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 E1 08 01 00 35 04 06 00 54 09 C1 FA 5D F2 8A E2 9D AE D4 1B D8 6A [11:30:09]CheckFolder [11:30:09]dirname=/storage/ofd_packets [11:30:09]CheckFolder done [11:30:09]ProducePacketName [11:30:09]name=ofd_packets/00067809 [11:30:09]NVStorageSaveData ofd_packets/00067809 [11:30:09]File name is /storage/ofd_packets/00067809 [11:30:09]Write 301 bytes [11:30:09]NVStorageSaveData done [11:30:09]OFDSenderStorePacket done [11:30:09]KKMCreateOFDPacket done [11:30:09]NVStorageSaveData kkm_last_timestamp [11:30:09]File name is /storage/kkm_last_timestamp [11:30:09]Write 4 bytes [11:30:09]NVStorageSaveData done [11:30:09]ExternCall_PrintAddStr [11:30:09]wPrintStart [11:30:09]Write to MH i2c: 01 00 00 79 2E A7 [11:30:09]Write i2c OK [11:30:09]MH_I2C_Read... [11:30:09]Read from MH i2c: 01 [11:30:09]MH_I2C_Read... [11:30:09]Read from MH i2c: 01 07 00 [11:30:09]MH_I2C_Read... [11:30:09]Read from MH i2c: 01 07 00 79 2E 00 00 00 00 00 FF 0F BC [11:30:09]RasterBufferAndPrint [11:30:09]line Счет N : (1)508016 [11:30:09]line ИНН: 02508201610067 [11:30:09]line Контрольно-Кассовый Чек [11:30:09]line ПРОДАЖА [11:30:09]line ТРК (МРК, ГНК) : 23 [11:30:09]line Товар: 2710124130 [11:30:09]line Аи-92-К-5 [11:30:09]line 8.990 * 66.80 [11:30:09]line = 600.53 [11:30:09]line НДС 12% НСП 1% [11:30:09]line > о реализуемом товаре [11:30:09]line ИТОГО: 600.53 [11:30:09]line НСП 1% : 5.31 [11:30:09]line НДС 12% : 63.77 [11:30:09]line Наличными: 0.00 [11:30:09]line Безнал.: 600.53 [11:30:09]line Место: АЗС № 91 "Партнер Нефть" [11:30:09]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [11:30:09]line СНО: Общий режим [11:30:09]line Чек 48 18.05.2024 11:30 [11:30:09]line Смена: 359 ФФД: 1.0 [11:30:09]line ЗНМ: 0300000119 [11:30:09]line РНМ: 0000000000091845 [11:30:09]line Версия ККМ: 001 [11:30:09]line Платежная система: O! деньги [11:30:09]line ФМ: 0000000000871829 [11:30:09]line ФД: 67809 [11:30:09]line ФПД: 92400885849586 [11:30:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T113013&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67809&fm=92400885849586&tin=02508201610067®Number=0000000000091845&sum=60053 [11:30:09]written 0, free lines is 4095 [11:30:09]OFD Sender: Processing packet 67809 [packets to send 35, broken 34] [11:30:09]ProducePacketName [11:30:09]name=ofd_packets/00067809 [11:30:09]OFD Sender: To server: pG, [11:30:09]CommunicateWithHost lk.salyk.kg:30040 [11:30:09]ConnectInit lk.salyk.kg [11:30:09]Connected sock=10 [11:30:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 08 81 07 01 8B A1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1E 23 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 95 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 95 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 95 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 45 91 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 E1 08 01 00 35 04 06 00 54 09 C1 FA 5D F2 8A E2 9D AE D4 1B D8 6A [11:30:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 A6 89 47 00 FC CA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 E1 08 01 00 F4 03 04 00 1A 39 48 66 B6 04 01 00 00 C9 0D 53 8E 64 8C 87 EF [11:30:10]CommunicateWithHost err = 0 [11:30:10]CheckOFDResponse [11:30:10]1017 (14) - 77093643461234 [11:30:10]1041 (16) - 0000000000871829 [11:30:10]1040 (4) - 67809 [11:30:10]1012 (4) - 18.05.2024 05:14 [11:30:10]1206 (1) - 0 [11:30:10]OFD Sender: Remove packet 67809 [11:30:10]ProducePacketName [11:30:10]name=ofd_packets/00067809 [11:30:10]NVStorageDeleteData [11:30:10]Write to MH i2c: 01 00 00 A2 2E D0 [11:30:10]Write i2c OK [11:30:10]MH_I2C_Read... [11:30:10]Read from MH i2c: 01 [11:30:10]MH_I2C_Read... [11:30:10]Read from MH i2c: 01 07 00 [11:30:10]MH_I2C_Read... [11:30:10]Read from MH i2c: 01 07 00 A2 2E 00 00 00 00 00 E5 0C C8 [11:30:10]RasterBufferAndPrint [11:30:10]line [11:30:10]line [11:30:10]line [11:30:10]line [11:30:10]line [11:30:10]written 0, free lines is 3309 [11:30:10]MH_Cut [11:30:10]Write to MH i2c: D1 01 00 A9 2E 01 A9 [11:30:10]Write i2c OK [11:30:10]MH_I2C_Read... [11:30:10]Read from MH i2c: D1 [11:30:10]MH_I2C_Read... [11:30:10]Read from MH i2c: D1 01 00 [11:30:10]MH_I2C_Read... [11:30:10]Read from MH i2c: D1 01 00 A9 2E 00 A8 [11:30:10]Write to MH i2c: 01 00 00 AA 2E D8 [11:30:10]Write i2c OK [11:30:10]MH_I2C_Read... [11:30:10]OFD Sender: No OFD packet to send [11:30:11]*** Cut start [11:30:11]*** Purtial cut [11:30:11]*** Stage 1: CUTSNS_PIN = 1 [11:30:11]*** Stop cut motor [11:30:11]*** Cut end [11:30:11]Read from MH i2c: 01 [11:30:11]MH_I2C_Read... [11:30:11]Read from MH i2c: 01 07 00 [11:30:11]MH_I2C_Read... [11:30:11]Read from MH i2c: 01 07 00 AA 2E 00 00 00 00 00 FF 0F ED [11:30:11]process_action close_receipt done [11:30:11]requested_data is exist [11:30:11]produce_requested_data [11:30:11]requested_item fm.sn is exist - process it [11:30:11]wFMCommunicate request_size=4 [11:30:11]MH_SAM_APDU [11:30:11]CAPDU: 80 11 00 00 [11:30:11]Write to MH i2c: E2 08 00 AB 2E 80 11 00 00 00 00 00 00 53 [11:30:11]Write i2c OK [11:30:11]MH_I2C_Read... [11:30:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:30:11]Read from MH i2c: E2 [11:30:11]MH_I2C_Read... [11:30:11]Read from MH i2c: E2 17 00 [11:30:11]MH_I2C_Read... [11:30:11]Read from MH i2c: E2 17 00 AB 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 A9 [11:30:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [11:30:11]wFMCommunicate OK [11:30:11]requested_item fd.num is exist - process it [11:30:11]SAM_PROTO_GetFieldsCounters [11:30:11]wFMCommunicate request_size=4 [11:30:11]MH_SAM_APDU [11:30:11]CAPDU: 80 13 00 00 [11:30:11]Write to MH i2c: E2 08 00 AC 2E 80 13 00 00 00 00 00 00 56 [11:30:11]Write i2c OK [11:30:11]MH_I2C_Read... [11:30:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:30:11]Read from MH i2c: E2 [11:30:11]MH_I2C_Read... [11:30:11]Read from MH i2c: E2 62 00 [11:30:11]MH_I2C_Read... [11:30:11]Read from MH i2c: E2 62 00 AC 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 E1 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 30 00 00 00 5E 04 04 00 30 00 00 00 57 04 04 00 31 00 00 00 19 04 04 00 00 00 00 00 90 00 5E [11:30:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 E1 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 30 00 00 00 5E 04 04 00 30 00 00 00 57 04 04 00 31 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:30:11]wFMCommunicate OK [11:30:11]SAM_PROTO_GetFieldsCounters done [11:30:11]requested_item shift.num is exist - process it [11:30:11]requested_item shift.opened is exist - process it [11:30:11]req_shift_opened [11:30:11]FM_GetShiftState [11:30:11]SAM_PROTO_GetShiftState [11:30:11]wFMCommunicate request_size=4 [11:30:11]MH_SAM_APDU [11:30:11]CAPDU: 80 13 01 00 [11:30:11]Write to MH i2c: E2 08 00 AD 2E 80 13 01 00 00 00 00 00 58 [11:30:11]Write i2c OK [11:30:11]MH_I2C_Read... [11:30:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:30:11]Read from MH i2c: E2 [11:30:11]MH_I2C_Read... [11:30:11]Read from MH i2c: E2 0E 00 [11:30:11]MH_I2C_Read... [11:30:11]Read from MH i2c: E2 0E 00 AD 2E 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 BF [11:30:11]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [11:30:11]wFMCommunicate OK [11:30:11]SAM_PROTO_GetShiftState done [11:30:11]FM_GetShiftState done [11:30:11]req_shift_opened done [11:30:11]requested_item shift.open_date is exist - process it [11:30:11]req_shift_open_date [11:30:11]req_shift_open_date done [11:30:11]produce_requested_data done [11:30:11]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67809,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [11:30:11]process_action_free close_receipt [11:30:11]json_value_free [11:30:11]json_value_free done [11:30:11]process_json_proto returns [11:30:11]Send response to host [11:30:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67809,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [11:30:11]free response buf [11:30:11]execute_script done [11:30:11]execute_script returns [11:30:11]free content buf [11:30:11]Sock 7.Close socket [11:30:11]Sock 7.Thread stoped [11:30:15]OFD Sender: No OFD packet to send [11:30:20]OFD Sender: No OFD packet to send [11:30:25]OFD Sender: No OFD packet to send [11:30:30]OFD Sender: No OFD packet to send [11:30:35]OFD Sender: No OFD packet to send [11:30:40]OFD Sender: No OFD packet to send [11:30:45]OFD Sender: No OFD packet to send [11:30:50]accept exits with 9 [11:30:50]New connection [11:30:50]New thread 3066752356 created [11:30:50]Thread 3066608996 joined [11:30:50]Waiting for new connection... [11:30:50] Sock 9.Parse request [11:30:50]Sock 9.Check first char [11:30:50]Sock 9.First char is OK [11:30:50]request: POST /json_proto HTTP/1.0 [11:30:50]Method: POST [11:30:50]URL: /json_proto [11:30:50]Method is POST - this is cgi request [11:30:50]url: /json_proto [11:30:50]query_string will be loaded in cgi processing [11:30:50]execute_cgi json_proto POST (null) [11:30:50]execute_cgi path=json_proto method=POST [11:30:50]POST find Content-Length [11:30:50]Host: 172.17.41.195:8080 [11:30:50]Content-Length: 674 [11:30:50]Content-Type: application/json [11:30:50] [11:30:50]POST finish read [11:30:50]Found Content-Length = 674 [11:30:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)508018", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 6.700, "sum" : 500.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:30:50]execute_script... [11:30:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)508018", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 6.700, "sum" : 500.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:30:50]POST & json_proto [11:30:50]process_json_proto [11:30:50]json parsed OK: [11:30:50]protocol is kg_v1.0 [11:30:50]action value=close_receipt [11:30:50]process_action close_receipt [11:30:50]cmd_close_receipt [11:30:50]MH_GetDate [11:30:50]Write to MH i2c: F0 00 00 AE 2E CB [11:30:50]Write i2c OK [11:30:50]MH_I2C_Read... [11:30:50]Read from MH i2c: F0 [11:30:50]MH_I2C_Read... [11:30:50]Read from MH i2c: F0 09 00 [11:30:50]MH_I2C_Read... [11:30:50]Read from MH i2c: F0 09 00 AE 2E 00 6F 91 48 66 FC 21 6F 64 72 [11:30:50]GetLastDocTimeStamp 1716031813 [11:30:50]current date 1716031855 [11:30:50]FM_GetShiftState [11:30:50]SAM_PROTO_GetShiftState [11:30:50]wFMCommunicate request_size=4 [11:30:50]MH_SAM_APDU [11:30:50]CAPDU: 80 13 01 00 [11:30:50]Write to MH i2c: E2 08 00 AF 2E 80 13 01 00 00 00 00 00 5A [11:30:50]Write i2c OK [11:30:50]MH_I2C_Read... [11:30:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:30:50]Read from MH i2c: E2 [11:30:50]MH_I2C_Read... [11:30:50]Read from MH i2c: E2 0E 00 [11:30:50]MH_I2C_Read... [11:30:50]Read from MH i2c: E2 0E 00 AF 2E 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 C1 [11:30:50]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [11:30:50]wFMCommunicate OK [11:30:50]SAM_PROTO_GetShiftState done [11:30:50]FM_GetShiftState done [11:30:50]opened in 1715991483 [11:30:50]opened+sec_in_day 1716077883 [11:30:50]quantity*price = 50049 [11:30:50]sum+1 = 50050 [11:30:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.15 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 49 18.05.2024 11:30 Смена: 359 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67810 ФПД: 114328803964940 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T113055&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67810&fm=114328803964940&tin=02508201610067®Number=0000000000091845&sum=50000 [11:30:51]StoreToDocumentArchive [11:30:51]shift 359 fd 67810 [11:30:51]save to /storage/0359/doc_00067810 [11:30:51]save last doc name /storage/0359/doc_00067810 to /storage/kkm_last_doc_name [11:30:51]save OK [11:30:51]Clear old archive folders... [11:30:51]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:30:51]tlvbuf is 01B9EEF0 [11:30:51]SAM_PROTO_ClearQueue [11:30:51]wFMCommunicate request_size=4 [11:30:51]MH_SAM_APDU [11:30:51]CAPDU: 80 09 00 00 [11:30:51]Write to MH i2c: E2 08 00 BC 2E 80 09 00 00 00 00 00 00 5C [11:30:51]Write i2c OK [11:30:51]MH_I2C_Read... [11:30:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:30:51]Read from MH i2c: E2 [11:30:51]MH_I2C_Read... [11:30:51]Read from MH i2c: E2 03 00 [11:30:51]MH_I2C_Read... [11:30:51]Read from MH i2c: E2 03 00 BC 2E 00 90 00 5E [11:30:51]RAPDU: 90 00 [11:30:51]wFMCommunicate OK [11:30:51]SAM_PROTO_ClearQueue done [11:30:51]KKMCreateOFDPacket [11:30:51]OFDProtocolAddRootSTLVToBuf [11:30:51]FM_MakeSignedData [11:30:51]FM_MakeSignedData [11:30:51]SAM_PROTO_SignData [11:30:51]wFMCommunicate request_size=4 [11:30:51]MH_SAM_APDU [11:30:51]CAPDU: 80 0D 01 02 [11:30:51]Write to MH i2c: E2 08 00 BD 2E 80 0D 01 02 00 00 00 00 64 [11:30:51]Write i2c OK [11:30:51]MH_I2C_Read... [11:30:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:30:51]Read from MH i2c: E2 [11:30:51]MH_I2C_Read... [11:30:51]Read from MH i2c: E2 03 00 [11:30:51]MH_I2C_Read... [11:30:51]Read from MH i2c: E2 03 00 BD 2E 00 90 00 5F [11:30:51]RAPDU: 90 00 [11:30:51]wFMCommunicate OK [11:30:51]wFMCommunicate request_size=255 [11:30:51]MH_SAM_APDU [11:30:51]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2C 1A 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 6F 91 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 E2 08 01 00 35 04 06 00 67 FB 3F BF [11:30:51]Write to MH i2c: E2 02 01 BE 2E 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2C 1A 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 6F 91 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 E2 08 01 00 35 04 06 00 67 FB 3F BF 00 00 E6 [11:30:51]Write i2c OK [11:30:51]MH_I2C_Read... [11:30:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:30:52]Read from MH i2c: E2 [11:30:52]MH_I2C_Read... [11:30:52]Read from MH i2c: E2 03 00 [11:30:52]MH_I2C_Read... [11:30:52]Read from MH i2c: E2 03 00 BE 2E 00 90 00 60 [11:30:52]RAPDU: 90 00 [11:30:52]wFMCommunicate OK [11:30:52]wFMCommunicate request_size=7 [11:30:52]MH_SAM_APDU [11:30:52]CAPDU: 80 0D 02 02 02 78 0C [11:30:52]Write to MH i2c: E2 0A 00 BF 2E 80 0D 02 02 02 00 78 0C 00 00 EF [11:30:52]Write i2c OK [11:30:52]MH_I2C_Read... [11:30:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:30:52]Read from MH i2c: E2 [11:30:52]MH_I2C_Read... [11:30:52]Read from MH i2c: E2 03 00 [11:30:52]MH_I2C_Read... [11:30:52]Read from MH i2c: E2 03 00 BF 2E 00 90 00 61 [11:30:52]RAPDU: 90 00 [11:30:52]wFMCommunicate OK [11:30:52]wFMCommunicate request_size=4 [11:30:52]MH_SAM_APDU [11:30:52]CAPDU: 80 0D 03 02 [11:30:52]Write to MH i2c: E2 08 00 C0 2E 80 0D 03 02 00 00 00 00 69 [11:30:52]Write i2c OK [11:30:52]MH_I2C_Read... [11:30:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:30:52]Read from MH i2c: E2 [11:30:52]MH_I2C_Read... [11:30:52]Read from MH i2c: E2 0B 00 [11:30:52]MH_I2C_Read... [11:30:52]Read from MH i2c: E2 0B 00 C0 2E 00 9A 0D 00 E4 80 A8 EA D8 90 00 DF [11:30:52]RAPDU: 9A 0D 00 E4 80 A8 EA D8 90 00 [11:30:52]wFMCommunicate OK [11:30:52]SAM_PROTO_SignData done [11:30:52]FM_MakeSignedData done [11:30:52]CreateOFDProtocolMessage [11:30:52]wFMCommunicate request_size=4 [11:30:52]MH_SAM_APDU [11:30:52]CAPDU: 80 11 00 00 [11:30:52]Write to MH i2c: E2 08 00 C1 2E 80 11 00 00 00 00 00 00 69 [11:30:52]Write i2c OK [11:30:52]MH_I2C_Read... [11:30:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:30:52]Read from MH i2c: E2 [11:30:52]MH_I2C_Read... [11:30:52]Read from MH i2c: E2 17 00 [11:30:52]MH_I2C_Read... [11:30:52]Read from MH i2c: E2 17 00 C1 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 BF [11:30:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [11:30:52]wFMCommunicate OK [11:30:52]CreateOFDProtocolMessage done [11:30:52]OFDSenderStorePacket 67810 [11:30:52]StoreOFDPacket docnum=67810 [11:30:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 D4 04 04 01 BC 4F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2C 1A 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 6F 91 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 E2 08 01 00 35 04 06 00 67 FB 3F BF 78 0C 9A 0D 00 E4 80 A8 EA D8 [11:30:52]CheckFolder [11:30:52]dirname=/storage/ofd_packets [11:30:52]CheckFolder done [11:30:52]ProducePacketName [11:30:52]name=ofd_packets/00067810 [11:30:52]NVStorageSaveData ofd_packets/00067810 [11:30:52]File name is /storage/ofd_packets/00067810 [11:30:52]Write 298 bytes [11:30:52]NVStorageSaveData done [11:30:52]OFDSenderStorePacket done [11:30:52]KKMCreateOFDPacket done [11:30:52]NVStorageSaveData kkm_last_timestamp [11:30:52]File name is /storage/kkm_last_timestamp [11:30:52]Write 4 bytes [11:30:52]NVStorageSaveData done [11:30:52]ExternCall_PrintAddStr [11:30:52]wPrintStart [11:30:52]Write to MH i2c: 01 00 00 C2 2E F0 [11:30:52]Write i2c OK [11:30:52]MH_I2C_Read... [11:30:52]Read from MH i2c: 01 [11:30:52]MH_I2C_Read... [11:30:52]Read from MH i2c: 01 07 00 [11:30:52]MH_I2C_Read... [11:30:52]Read from MH i2c: 01 07 00 C2 2E 00 00 00 00 00 FF 0F 05 [11:30:52]RasterBufferAndPrint [11:30:52]line Счет N : (1)508018 [11:30:52]line ИНН: 02508201610067 [11:30:52]line Контрольно-Кассовый Чек [11:30:52]line ПРОДАЖА [11:30:52]line ТРК (МРК, ГНК) : 11 [11:30:52]line Товар: 2710194210 [11:30:52]line ДТ-К-5 [11:30:52]line 6.700 * 74.70 [11:30:52]line = 500.49 [11:30:52]line НДС 12% НСП 1% [11:30:52]line > о реализуемом товаре [11:30:52]line ОКРУГЛЕНИЕ: -0.49 [11:30:52]line ИТОГО: 500.00 [11:30:52]line Внесено: 500.00 [11:30:52]line СДАЧА: 0.00 [11:30:52]line НСП 1% : 4.43 [11:30:52]line НДС 12% : 53.15 [11:30:52]line Наличными: 500.00 [11:30:52]line Безнал.: 0.00 [11:30:52]line Место: АЗС № 91 "Партнер Нефть" [11:30:52]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [11:30:52]line СНО: Общий режим [11:30:52]line Чек 49 18.05.2024 11:30 [11:30:52]line Смена: 359 ФФД: 1.0 [11:30:52]line ЗНМ: 0300000119 [11:30:52]line РНМ: 0000000000091845 [11:30:52]line Версия ККМ: 001 [11:30:52]line ФМ: 0000000000871829 [11:30:52]line ФД: 67810 [11:30:52]line ФПД: 114328803964940 [11:30:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T113055&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67810&fm=114328803964940&tin=02508201610067®Number=0000000000091845&sum=50000 [11:30:52]OFD Sender: Processing packet 67810 [packets to send 35, broken 34] [11:30:52]ProducePacketName [11:30:52]name=ofd_packets/00067810 [11:30:52]OFD Sender: To server: pG, [11:30:52]CommunicateWithHost lk.salyk.kg:30040 [11:30:52]ConnectInit lk.salyk.kg [11:30:52]written 0, free lines is 4095 [11:30:52]Connected sock=10 [11:30:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 D4 04 04 01 BC 4F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2C 1A 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 6F 91 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 E2 08 01 00 35 04 06 00 67 FB 3F BF 78 0C 9A 0D 00 E4 80 A8 EA D8 [11:30:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 F8 EE 47 00 2A 70 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 E2 08 01 00 F4 03 04 00 45 39 48 66 B6 04 01 00 00 69 C8 EC 06 94 45 DB 88 [11:30:52]CommunicateWithHost err = 0 [11:30:52]CheckOFDResponse [11:30:52]1017 (14) - 77093643461234 [11:30:52]1041 (16) - 0000000000871829 [11:30:52]1040 (4) - 67810 [11:30:52]1012 (4) - 18.05.2024 05:14 [11:30:52]1206 (1) - 0 [11:30:52]OFD Sender: Remove packet 67810 [11:30:52]ProducePacketName [11:30:52]name=ofd_packets/00067810 [11:30:52]NVStorageDeleteData [11:30:52]Write to MH i2c: 01 00 00 EC 2E 1A [11:30:52]Write i2c OK [11:30:52]MH_I2C_Read... [11:30:52]Read from MH i2c: 01 [11:30:52]MH_I2C_Read... [11:30:52]Read from MH i2c: 01 07 00 [11:30:52]MH_I2C_Read... [11:30:52]Read from MH i2c: 01 07 00 EC 2E 00 00 00 00 00 BE 0C EB [11:30:52]RasterBufferAndPrint [11:30:52]line [11:30:52]line [11:30:52]line [11:30:52]line [11:30:52]line [11:30:52]written 0, free lines is 3268 [11:30:52]MH_Cut [11:30:52]Write to MH i2c: D1 01 00 F3 2E 01 F3 [11:30:52]Write i2c OK [11:30:52]MH_I2C_Read... [11:30:52]Read from MH i2c: D1 [11:30:52]MH_I2C_Read... [11:30:52]Read from MH i2c: D1 01 00 [11:30:52]MH_I2C_Read... [11:30:52]Read from MH i2c: D1 01 00 F3 2E 00 F2 [11:30:52]Write to MH i2c: 01 00 00 F4 2E 22 [11:30:52]Write i2c OK [11:30:52]MH_I2C_Read... [11:30:53]OFD Sender: No OFD packet to send [11:30:53]*** Cut start [11:30:53]*** Purtial cut [11:30:53]*** CUTSNS_PIN = 0 [11:30:54]*** Stage 1: CUTSNS_PIN = 1 [11:30:55]Read from MH i2c: 01 [11:30:55]MH_I2C_Read... [11:30:55]*** Stop cut motor [11:30:55]Read from MH i2c: *** Cut end [11:30:55]01 07 00 [11:30:55]MH_I2C_Read... [11:30:55]Read from MH i2c: 01 07 00 F4 2E 00 00 00 00 00 FF 0F 37 [11:30:55]process_action close_receipt done [11:30:55]requested_data is exist [11:30:55]produce_requested_data [11:30:55]requested_item fm.sn is exist - process it [11:30:55]wFMCommunicate request_size=4 [11:30:55]MH_SAM_APDU [11:30:55]CAPDU: 80 11 00 00 [11:30:55]Write to MH i2c: E2 08 00 F5 2E 80 11 00 00 00 00 00 00 9D [11:30:55]Write i2c OK [11:30:55]MH_I2C_Read... [11:30:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:30:55]Read from MH i2c: E2 [11:30:55]MH_I2C_Read... [11:30:55]Read from MH i2c: E2 17 00 [11:30:55]MH_I2C_Read... [11:30:55]Read from MH i2c: E2 17 00 F5 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 F3 [11:30:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [11:30:55]wFMCommunicate OK [11:30:55]requested_item fd.num is exist - process it [11:30:55]SAM_PROTO_GetFieldsCounters [11:30:55]wFMCommunicate request_size=4 [11:30:55]MH_SAM_APDU [11:30:55]CAPDU: 80 13 00 00 [11:30:55]Write to MH i2c: E2 08 00 F6 2E 80 13 00 00 00 00 00 00 A0 [11:30:55]Write i2c OK [11:30:55]MH_I2C_Read... [11:30:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:30:55]Read from MH i2c: E2 [11:30:55]MH_I2C_Read... [11:30:55]Read from MH i2c: E2 62 00 [11:30:55]MH_I2C_Read... [11:30:55]Read from MH i2c: E2 62 00 F6 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 E2 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 31 00 00 00 5E 04 04 00 31 00 00 00 57 04 04 00 32 00 00 00 19 04 04 00 00 00 00 00 90 00 AC [11:30:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 E2 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 31 00 00 00 5E 04 04 00 31 00 00 00 57 04 04 00 32 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:30:55]wFMCommunicate OK [11:30:55]SAM_PROTO_GetFieldsCounters done [11:30:55]requested_item shift.num is exist - process it [11:30:55]requested_item shift.opened is exist - process it [11:30:55]req_shift_opened [11:30:55]FM_GetShiftState [11:30:55]SAM_PROTO_GetShiftState [11:30:55]wFMCommunicate request_size=4 [11:30:55]MH_SAM_APDU [11:30:55]CAPDU: 80 13 01 00 [11:30:55]Write to MH i2c: E2 08 00 F7 2E 80 13 01 00 00 00 00 00 A2 [11:30:55]Write i2c OK [11:30:55]MH_I2C_Read... [11:30:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:30:56]Read from MH i2c: E2 [11:30:56]MH_I2C_Read... [11:30:56]Read from MH i2c: E2 0E 00 [11:30:56]MH_I2C_Read... [11:30:56]Read from MH i2c: E2 0E 00 F7 2E 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 09 [11:30:56]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [11:30:56]wFMCommunicate OK [11:30:56]SAM_PROTO_GetShiftState done [11:30:56]FM_GetShiftState done [11:30:56]req_shift_opened done [11:30:56]requested_item shift.open_date is exist - process it [11:30:56]req_shift_open_date [11:30:56]req_shift_open_date done [11:30:56]produce_requested_data done [11:30:56]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67810,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [11:30:56]process_action_free close_receipt [11:30:56]json_value_free [11:30:56]json_value_free done [11:30:56]process_json_proto returns [11:30:56]Send response to host [11:30:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67810,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [11:30:56]free response buf [11:30:56]execute_script done [11:30:56]execute_script returns [11:30:56]free content buf [11:30:56]Sock 9.Close socket [11:30:56]Sock 9.Thread stoped [11:30:58]OFD Sender: No OFD packet to send [11:31:03]OFD Sender: No OFD packet to send [11:31:08]OFD Sender: No OFD packet to send [11:31:13]OFD Sender: No OFD packet to send [11:31:18]OFD Sender: No OFD packet to send [11:31:23]OFD Sender: No OFD packet to send [11:31:28]OFD Sender: No OFD packet to send [11:31:33]OFD Sender: No OFD packet to send [11:31:38]OFD Sender: No OFD packet to send [11:31:43]OFD Sender: No OFD packet to send [11:31:48]OFD Sender: No OFD packet to send [11:31:53]OFD Sender: No OFD packet to send [11:31:58]OFD Sender: No OFD packet to send [11:32:03]OFD Sender: No OFD packet to send [11:32:08]OFD Sender: No OFD packet to send [11:32:13]OFD Sender: No OFD packet to send [11:32:18]OFD Sender: No OFD packet to send [11:32:23]OFD Sender: No OFD packet to send [11:32:28]OFD Sender: No OFD packet to send [11:32:33]OFD Sender: No OFD packet to send [11:32:38]OFD Sender: No OFD packet to send [11:32:43]OFD Sender: No OFD packet to send [11:32:48]OFD Sender: No OFD packet to send [11:32:53]OFD Sender: No OFD packet to send [11:32:58]OFD Sender: No OFD packet to send [11:33:03]OFD Sender: No OFD packet to send [11:33:08]OFD Sender: No OFD packet to send [11:33:13]OFD Sender: No OFD packet to send [11:33:18]OFD Sender: No OFD packet to send [11:33:23]OFD Sender: No OFD packet to send [11:33:28]OFD Sender: No OFD packet to send [11:33:33]OFD Sender: No OFD packet to send [11:33:38]OFD Sender: No OFD packet to send [11:33:43]OFD Sender: No OFD packet to send [11:33:48]OFD Sender: No OFD packet to send [11:33:53]OFD Sender: No OFD packet to send [11:33:58]accept exits with 7 [11:33:58]New connection [11:33:58]New thread 3066608996 created [11:33:58]Thread 3066752356 joined [11:33:58]Waiting for new connection... [11:33:58] Sock 7.Parse request [11:33:58]Sock 7.Check first char [11:33:58]Sock 7.First char is OK [11:33:58]request: POST /json_proto HTTP/1.0 [11:33:58]Method: POST [11:33:58]URL: /json_proto [11:33:58]Method is POST - this is cgi request [11:33:58]url: /json_proto [11:33:58]query_string will be loaded in cgi processing [11:33:58]execute_cgi json_proto POST (null) [11:33:58]execute_cgi path=json_proto method=POST [11:33:58]POST find Content-Length [11:33:58]Host: 172.17.41.195:8080 [11:33:58]Content-Length: 678 [11:33:58]OFD Sender: No OFD packet to send [11:33:58]Content-Type: application/json [11:33:58] [11:33:58]POST finish read [11:33:58]Found Content-Length = 678 [11:33:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)508019", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.80, "quantity" : 11.980, "sum" : 800.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:33:58]execute_script... [11:33:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)508019", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.80, "quantity" : 11.980, "sum" : 800.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:33:58]POST & json_proto [11:33:58]process_json_proto [11:33:58]json parsed OK: [11:33:58]protocol is kg_v1.0 [11:33:58]action value=close_receipt [11:33:58]process_action close_receipt [11:33:58]cmd_close_receipt [11:33:58]MH_GetDate [11:33:58]Write to MH i2c: F0 00 00 F8 2E 15 [11:33:58]Write i2c OK [11:33:58]MH_I2C_Read... [11:33:58]Read from MH i2c: F0 [11:33:58]MH_I2C_Read... [11:33:58]Read from MH i2c: F0 09 00 [11:33:58]MH_I2C_Read... [11:33:58]Read from MH i2c: F0 09 00 F8 2E 00 2B 92 48 66 FC 21 6F 64 79 [11:33:58]GetLastDocTimeStamp 1716031855 [11:33:58]current date 1716032043 [11:33:58]FM_GetShiftState [11:33:58]SAM_PROTO_GetShiftState [11:33:58]wFMCommunicate request_size=4 [11:33:58]MH_SAM_APDU [11:33:58]CAPDU: 80 13 01 00 [11:33:58]Write to MH i2c: E2 08 00 F9 2E 80 13 01 00 00 00 00 00 A4 [11:33:58]Write i2c OK [11:33:58]MH_I2C_Read... [11:33:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:33:58]Read from MH i2c: E2 [11:33:58]MH_I2C_Read... [11:33:58]Read from MH i2c: E2 0E 00 [11:33:58]MH_I2C_Read... [11:33:58]Read from MH i2c: E2 0E 00 F9 2E 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 0B [11:33:58]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [11:33:58]wFMCommunicate OK [11:33:58]SAM_PROTO_GetShiftState done [11:33:58]FM_GetShiftState done [11:33:58]opened in 1715991483 [11:33:58]opened+sec_in_day 1716077883 [11:33:58]quantity*price = 80026 [11:33:58]sum+1 = 80027 [11:33:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.98 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 50 18.05.2024 11:34 Смена: 359 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67811 ФПД: 57086583017763 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T113403&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67811&fm=57086583017763&tin=02508201610067®Number=0000000000091845&sum=80000 [11:33:59]StoreToDocumentArchive [11:33:59]shift 359 fd 67811 [11:33:59]save to /storage/0359/doc_00067811 [11:33:59]save last doc name /storage/0359/doc_00067811 to /storage/kkm_last_doc_name [11:33:59]save OK [11:33:59]Clear old archive folders... [11:33:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:33:59]tlvbuf is 01BD9E90 [11:33:59]SAM_PROTO_ClearQueue [11:33:59]wFMCommunicate request_size=4 [11:33:59]MH_SAM_APDU [11:33:59]CAPDU: 80 09 00 00 [11:33:59]Write to MH i2c: E2 08 00 06 2F 80 09 00 00 00 00 00 00 A7 [11:33:59]Write i2c OK [11:33:59]MH_I2C_Read... [11:33:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:33:59]Read from MH i2c: E2 [11:33:59]MH_I2C_Read... [11:33:59]Read from MH i2c: E2 03 00 [11:33:59]MH_I2C_Read... [11:33:59]Read from MH i2c: E2 03 00 06 2F 00 90 00 A9 [11:33:59]RAPDU: 90 00 [11:33:59]wFMCommunicate OK [11:33:59]SAM_PROTO_ClearQueue done [11:33:59]KKMCreateOFDPacket [11:33:59]OFDProtocolAddRootSTLVToBuf [11:33:59]FM_MakeSignedData [11:33:59]FM_MakeSignedData [11:33:59]SAM_PROTO_SignData [11:33:59]wFMCommunicate request_size=4 [11:33:59]MH_SAM_APDU [11:33:59]CAPDU: 80 0D 01 02 [11:33:59]Write to MH i2c: E2 08 00 07 2F 80 0D 01 02 00 00 00 00 AF [11:33:59]Write i2c OK [11:33:59]MH_I2C_Read... [11:33:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:33:59]Read from MH i2c: E2 [11:33:59]MH_I2C_Read... [11:33:59]Read from MH i2c: E2 03 00 [11:33:59]MH_I2C_Read... [11:33:59]Read from MH i2c: E2 03 00 07 2F 00 90 00 AA [11:33:59]RAPDU: 90 00 [11:33:59]wFMCommunicate OK [11:33:59]wFMCommunicate request_size=255 [11:33:59]MH_SAM_APDU [11:33:59]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 2E 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 9A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 2B 92 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 E3 08 01 00 35 04 06 00 33 [11:33:59]Write to MH i2c: E2 02 01 08 2F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 2E 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 9A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 2B 92 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 E3 08 01 00 35 04 06 00 33 00 00 6C [11:33:59]Write i2c OK [11:33:59]MH_I2C_Read... [11:33:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:33:59]Read from MH i2c: E2 [11:33:59]MH_I2C_Read... [11:33:59]Read from MH i2c: E2 03 00 [11:33:59]MH_I2C_Read... [11:33:59]Read from MH i2c: E2 03 00 08 2F 00 90 00 AB [11:33:59]RAPDU: 90 00 [11:33:59]wFMCommunicate OK [11:33:59]wFMCommunicate request_size=10 [11:33:59]MH_SAM_APDU [11:33:59]CAPDU: 80 0D 02 02 05 EB 81 80 91 23 [11:33:59]Write to MH i2c: E2 0D 00 09 2F 80 0D 02 02 05 00 EB 81 80 91 23 00 00 5C [11:33:59]Write i2c OK [11:33:59]MH_I2C_Read... [11:34:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:34:00]Read from MH i2c: E2 [11:34:00]MH_I2C_Read... [11:34:00]Read from MH i2c: E2 03 00 [11:34:00]MH_I2C_Read... [11:34:00]Read from MH i2c: E2 03 00 09 2F 00 90 00 AC [11:34:00]RAPDU: 90 00 [11:34:00]wFMCommunicate OK [11:34:00]wFMCommunicate request_size=4 [11:34:00]MH_SAM_APDU [11:34:00]CAPDU: 80 0D 03 02 [11:34:00]Write to MH i2c: E2 08 00 0A 2F 80 0D 03 02 00 00 00 00 B4 [11:34:00]Write i2c OK [11:34:00]MH_I2C_Read... [11:34:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:34:00]Read from MH i2c: E2 [11:34:00]MH_I2C_Read... [11:34:00]Read from MH i2c: E2 0B 00 [11:34:00]MH_I2C_Read... [11:34:00]Read from MH i2c: E2 0B 00 0A 2F 00 51 CC 9B F8 4A F0 1C B8 90 00 73 [11:34:00]RAPDU: 51 CC 9B F8 4A F0 1C B8 90 00 [11:34:00]wFMCommunicate OK [11:34:00]SAM_PROTO_SignData done [11:34:00]FM_MakeSignedData done [11:34:00]CreateOFDProtocolMessage [11:34:00]wFMCommunicate request_size=4 [11:34:00]MH_SAM_APDU [11:34:00]CAPDU: 80 11 00 00 [11:34:00]Write to MH i2c: E2 08 00 0B 2F 80 11 00 00 00 00 00 00 B4 [11:34:00]Write i2c OK [11:34:00]MH_I2C_Read... [11:34:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:34:00]Read from MH i2c: E2 [11:34:00]MH_I2C_Read... [11:34:00]Read from MH i2c: E2 17 00 [11:34:00]MH_I2C_Read... [11:34:00]Read from MH i2c: E2 17 00 0B 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 0A [11:34:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [11:34:00]wFMCommunicate OK [11:34:00]CreateOFDProtocolMessage done [11:34:00]OFDSenderStorePacket 67811 [11:34:00]StoreOFDPacket docnum=67811 [11:34:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 D1 9E 07 01 02 7B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 2E 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 9A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 2B 92 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 E3 08 01 00 35 04 06 00 33 EB 81 80 91 23 51 CC 9B F8 4A F0 1C B8 [11:34:00]CheckFolder [11:34:00]dirname=/storage/ofd_packets [11:34:00]CheckFolder done [11:34:00]ProducePacketName [11:34:00]name=ofd_packets/00067811 [11:34:00]NVStorageSaveData ofd_packets/00067811 [11:34:00]File name is /storage/ofd_packets/00067811 [11:34:00]Write 301 bytes [11:34:00]NVStorageSaveData done [11:34:00]OFDSenderStorePacket done [11:34:00]KKMCreateOFDPacket done [11:34:00]NVStorageSaveData kkm_last_timestamp [11:34:00]File name is /storage/kkm_last_timestamp [11:34:00]Write 4 bytes [11:34:00]NVStorageSaveData done [11:34:00]ExternCall_PrintAddStr [11:34:00]wPrintStart [11:34:00]Write to MH i2c: 01 00 00 0C 2F 3B [11:34:00]Write i2c OK [11:34:00]MH_I2C_Read... [11:34:00]Read from MH i2c: 01 [11:34:00]MH_I2C_Read... [11:34:00]Read from MH i2c: 01 07 00 [11:34:00]MH_I2C_Read... [11:34:00]Read from MH i2c: 01 07 00 0C 2F 00 00 00 00 00 FF 0F 50 [11:34:00]RasterBufferAndPrint [11:34:00]line Счет N : (1)508019 [11:34:00]line ИНН: 02508201610067 [11:34:00]line Контрольно-Кассовый Чек [11:34:00]line ПРОДАЖА [11:34:00]line ТРК (МРК, ГНК) : 33 [11:34:00]line Товар: 2710124130 [11:34:00]line Аи-92-К-5 [11:34:00]line 11.980 * 66.80 [11:34:00]line = 800.26 [11:34:00]line НДС 12% НСП 1% [11:34:00]line > о реализуемом товаре [11:34:00]line ОКРУГЛЕНИЕ: -0.26 [11:34:00]line ИТОГО: 800.00 [11:34:00]line Внесено: 800.00 [11:34:00]line СДАЧА: 0.00 [11:34:00]line НСП 1% : 7.08 [11:34:00]line НДС 12% : 84.98 [11:34:00]line Наличными: 800.00 [11:34:00]line Безнал.: 0.00 [11:34:00]line Место: АЗС № 91 "Партнер Нефть" [11:34:00]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [11:34:00]line СНО: Общий режим [11:34:00]line Чек 50 18.05.2024 11:34 [11:34:00]line Смена: 359 ФФД: 1.0 [11:34:00]line ЗНМ: 0300000119 [11:34:00]line РНМ: 0000000000091845 [11:34:00]line Версия ККМ: 001 [11:34:00]line ФМ: 0000000000871829 [11:34:00]line ФД: 67811 [11:34:00]line ФПД: 57086583017763 [11:34:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T113403&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67811&fm=57086583017763&tin=02508201610067®Number=0000000000091845&sum=80000 [11:34:00]OFD Sender: Processing packet 67811 [packets to send 35, broken 34] [11:34:00]ProducePacketName [11:34:00]name=ofd_packets/00067811 [11:34:00]OFD Sender: To server: pG, [11:34:00]CommunicateWithHost lk.salyk.kg:30040 [11:34:00]ConnectInit lk.salyk.kg [11:34:00]written 0, free lines is 4095 [11:34:00]Connected sock=10 [11:34:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 D1 9E 07 01 02 7B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 2E 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 9A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 2B 92 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 E3 08 01 00 35 04 06 00 33 EB 81 80 91 23 51 CC 9B F8 4A F0 1C B8 [11:34:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 16 8D 47 00 E7 1B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 E3 08 01 00 F4 03 04 00 01 3A 48 66 B6 04 01 00 00 69 D0 77 68 D6 6C 73 E6 [11:34:00]CommunicateWithHost err = 0 [11:34:00]CheckOFDResponse [11:34:00]1017 (14) - 77093643461234 [11:34:00]1041 (16) - 0000000000871829 [11:34:00]1040 (4) - 67811 [11:34:00]1012 (4) - 18.05.2024 05:17 [11:34:00]1206 (1) - 0 [11:34:00]OFD Sender: Remove packet 67811 [11:34:00]ProducePacketName [11:34:00]name=ofd_packets/00067811 [11:34:00]NVStorageDeleteData [11:34:00]Write to MH i2c: 01 00 00 36 2F 65 [11:34:00]Write i2c OK [11:34:00]MH_I2C_Read... [11:34:00]Read from MH i2c: 01 [11:34:00]MH_I2C_Read... [11:34:00]Read from MH i2c: 01 07 00 [11:34:00]MH_I2C_Read... [11:34:00]Read from MH i2c: 01 07 00 36 2F 00 00 00 00 00 C2 0C 3A [11:34:00]RasterBufferAndPrint [11:34:00]line [11:34:00]line [11:34:00]line [11:34:00]line [11:34:00]line [11:34:00]written 0, free lines is 3271 [11:34:00]MH_Cut [11:34:00]Write to MH i2c: D1 01 00 3D 2F 01 3E [11:34:00]Write i2c OK [11:34:00]MH_I2C_Read... [11:34:00]Read from MH i2c: D1 [11:34:00]MH_I2C_Read... [11:34:00]Read from MH i2c: D1 01 00 [11:34:00]MH_I2C_Read... [11:34:00]Read from MH i2c: D1 01 00 3D 2F 00 3D [11:34:00]Write to MH i2c: 01 00 00 3E 2F 6D [11:34:00]Write i2c OK [11:34:00]MH_I2C_Read... [11:34:01]OFD Sender: No OFD packet to send [11:34:01]*** Cut start [11:34:01]*** Purtial cut [11:34:01]*** Stage 1: CUTSNS_PIN = 1 [11:34:02]Read from MH i2c: 01 [11:34:02]MH_I2C_Read... [11:34:02]*** Stop cut motor [11:34:02]*** Cut end [11:34:02]Read from MH i2c: 01 07 00 [11:34:02]MH_I2C_Read... [11:34:02]Read from MH i2c: 01 07 00 3E 2F 00 00 00 00 00 FF 0F 82 [11:34:02]process_action close_receipt done [11:34:02]requested_data is exist [11:34:02]produce_requested_data [11:34:02]requested_item fm.sn is exist - process it [11:34:02]wFMCommunicate request_size=4 [11:34:02]MH_SAM_APDU [11:34:02]CAPDU: 80 11 00 00 [11:34:02]Write to MH i2c: E2 08 00 3F 2F 80 11 00 00 00 00 00 00 E8 [11:34:02]Write i2c OK [11:34:02]MH_I2C_Read... [11:34:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:34:02]Read from MH i2c: E2 [11:34:02]MH_I2C_Read... [11:34:02]Read from MH i2c: E2 17 00 [11:34:02]MH_I2C_Read... [11:34:02]Read from MH i2c: E2 17 00 3F 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 3E [11:34:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [11:34:02]wFMCommunicate OK [11:34:02]requested_item fd.num is exist - process it [11:34:02]SAM_PROTO_GetFieldsCounters [11:34:02]wFMCommunicate request_size=4 [11:34:02]MH_SAM_APDU [11:34:02]CAPDU: 80 13 00 00 [11:34:02]Write to MH i2c: E2 08 00 40 2F 80 13 00 00 00 00 00 00 EB [11:34:02]Write i2c OK [11:34:02]MH_I2C_Read... [11:34:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:34:02]Read from MH i2c: E2 [11:34:02]MH_I2C_Read... [11:34:02]Read from MH i2c: E2 62 00 [11:34:02]MH_I2C_Read... [11:34:02]Read from MH i2c: E2 62 00 40 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 E3 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 FB [11:34:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 E3 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:34:02]wFMCommunicate OK [11:34:02]SAM_PROTO_GetFieldsCounters done [11:34:02]requested_item shift.num is exist - process it [11:34:02]requested_item shift.opened is exist - process it [11:34:02]req_shift_opened [11:34:02]FM_GetShiftState [11:34:02]SAM_PROTO_GetShiftState [11:34:02]wFMCommunicate request_size=4 [11:34:02]MH_SAM_APDU [11:34:02]CAPDU: 80 13 01 00 [11:34:02]Write to MH i2c: E2 08 00 41 2F 80 13 01 00 00 00 00 00 ED [11:34:02]Write i2c OK [11:34:02]MH_I2C_Read... [11:34:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:34:02]Read from MH i2c: E2 [11:34:02]MH_I2C_Read... [11:34:02]Read from MH i2c: E2 0E 00 [11:34:02]MH_I2C_Read... [11:34:02]Read from MH i2c: E2 0E 00 41 2F 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 54 [11:34:02]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [11:34:02]wFMCommunicate OK [11:34:02]SAM_PROTO_GetShiftState done [11:34:02]FM_GetShiftState done [11:34:02]req_shift_opened done [11:34:02]requested_item shift.open_date is exist - process it [11:34:02]req_shift_open_date [11:34:02]req_shift_open_date done [11:34:02]produce_requested_data done [11:34:02]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67811,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [11:34:02]process_action_free close_receipt [11:34:02]json_value_free [11:34:02]json_value_free done [11:34:02]process_json_proto returns [11:34:02]Send response to host [11:34:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67811,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [11:34:02]free response buf [11:34:02]execute_script done [11:34:02]execute_script returns [11:34:02]free content buf [11:34:02]Sock 7.Close socket [11:34:02]Sock 7.Thread stoped [11:34:06]OFD Sender: No OFD packet to send [11:34:11]OFD Sender: No OFD packet to send [11:34:16]OFD Sender: No OFD packet to send [11:34:21]OFD Sender: No OFD packet to send [11:34:26]OFD Sender: No OFD packet to send [11:34:31]OFD Sender: No OFD packet to send [11:34:36]OFD Sender: No OFD packet to send [11:34:41]OFD Sender: No OFD packet to send [11:34:41]accept exits with 9 [11:34:41]New connection [11:34:41]New thread 3066752356 created [11:34:41]Thread 3066608996 joined [11:34:41]Waiting for new connection... [11:34:41] Sock 9.Parse request [11:34:41]Sock 9.Check first char [11:34:41]Sock 9.First char is OK [11:34:41]request: POST /json_proto HTTP/1.0 [11:34:41]Method: POST [11:34:41]URL: /json_proto [11:34:41]Method is POST - this is cgi request [11:34:41]url: /json_proto [11:34:41]query_string will be loaded in cgi processing [11:34:41]execute_cgi json_proto POST (null) [11:34:41]execute_cgi path=json_proto method=POST [11:34:41]POST find Content-Length [11:34:41]Host: 172.17.41.195:8080 [11:34:41]Content-Length: 1212 [11:34:41]Content-Type: application/json [11:34:41] [11:34:41]POST finish read [11:34:41]Found Content-Length = 1212 [11:34:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0440\u0441\u0442\u0430\u043D\u0431\u0435\u043A\u043E\u0432 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)508017\u000A18.05.2024 11:17\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 43\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 70.000 x 66.80\u000A\u0418\u0422\u041E\u0413: 4676.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:34:41]execute_script... [11:34:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0440\u0441\u0442\u0430\u043D\u0431\u0435\u043A\u043E\u0432 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)508017\u000A18.05.2024 11:17\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 43\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 70.000 x 66.80\u000A\u0418\u0422\u041E\u0413: 4676.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:34:41]POST & json_proto [11:34:41]process_json_proto [11:34:41]json parsed OK: [11:34:41]protocol is kg_v1.0 [11:34:41]action value=print_text [11:34:41]process_action print_text [11:34:41]cmd_print_text [11:34:41]ExternCall_PrintAddStr [11:34:41]wPrintStart [11:34:41]Write to MH i2c: 01 00 00 42 2F 71 [11:34:41]Write i2c OK [11:34:41]MH_I2C_Read... [11:34:41]Read from MH i2c: 01 [11:34:41]MH_I2C_Read... [11:34:41]Read from MH i2c: 01 07 00 [11:34:41]MH_I2C_Read... [11:34:41]Read from MH i2c: 01 07 00 42 2F 00 00 00 00 00 FF 0F 86 [11:34:41]RasterBufferAndPrint [11:34:41]line *****ТОВАРНЫЙ ЧЕК***** [11:34:41]line АЗС-91 [11:34:41]line Партнер нефть [11:34:41]line 02508201610067 [11:34:41]line Кассир : Арстанбеков Н. [11:34:41]line Счет N : (1)508017 [11:34:41]line 18.05.2024 11:17 [11:34:41]line ПРОДАЖА [11:34:41]line ТРК (МРК, ГНК): 43 [11:34:41]line Вид ГСМ : 2710124130 [11:34:41]line Аи-92-К-5 [11:34:41]line 70.000 x 66.80 [11:34:41]line ИТОГ: 4676.00 [11:34:41]line Тип оплаты: Талоны: Топливная Карта [11:34:41]line 02750 [11:34:41]line ______________________ [11:34:41]line (подпись) [11:34:41]written 0, free lines is 4095 [11:34:41]Write to MH i2c: 01 00 00 56 2F 85 [11:34:41]Write i2c OK [11:34:41]MH_I2C_Read... [11:34:41]Read from MH i2c: 01 [11:34:41]MH_I2C_Read... [11:34:41]Read from MH i2c: 01 07 00 [11:34:41]MH_I2C_Read... [11:34:41]Read from MH i2c: 01 07 00 56 2F 00 00 00 00 00 10 0E AA [11:34:41]RasterBufferAndPrint [11:34:41]line [11:34:41]line [11:34:41]line [11:34:41]line [11:34:41]line [11:34:41]written 0, free lines is 3602 [11:34:41]MH_Cut [11:34:41]Write to MH i2c: D1 01 00 5D 2F 01 5E [11:34:41]Write i2c OK [11:34:41]MH_I2C_Read... [11:34:41]Read from MH i2c: D1 [11:34:41]MH_I2C_Read... [11:34:41]Read from MH i2c: D1 01 00 [11:34:41]MH_I2C_Read... [11:34:41]Read from MH i2c: D1 01 00 5D 2F 00 5D [11:34:41]Write to MH i2c: 01 00 00 5E 2F 8D [11:34:41]Write i2c OK [11:34:41]MH_I2C_Read... [11:34:42]*** Cut start [11:34:42]*** Purtial cut [11:34:42]*** CUTSNS_PIN = 0 [11:34:42]*** Stage 1: CUTSNS_PIN = 1 [11:34:44]Read from MH i2c: 01 [11:34:44]MH_I2C_Read... [11:34:44]Read from MH i2c: 01 07 00 [11:34:44]MH_I2C_Read... [11:34:44]*** Stop cut motor [11:34:44]*** Cut end [11:34:44]Read from MH i2c: 01 07 00 5E 2F 00 00 00 00 00 FF 0F A2 [11:34:44]process_action print_text done [11:34:44]requested_data is exist [11:34:44]produce_requested_data [11:34:44]requested_item fm.sn is exist - process it [11:34:44]wFMCommunicate request_size=4 [11:34:44]MH_SAM_APDU [11:34:44]CAPDU: 80 11 00 00 [11:34:44]Write to MH i2c: E2 08 00 5F 2F 80 11 00 00 00 00 00 00 08 [11:34:44]Write i2c OK [11:34:44]MH_I2C_Read... [11:34:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:34:44]Read from MH i2c: E2 [11:34:44]MH_I2C_Read... [11:34:44]Read from MH i2c: E2 17 00 [11:34:44]MH_I2C_Read... [11:34:44]Read from MH i2c: E2 17 00 5F 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 5E [11:34:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [11:34:44]wFMCommunicate OK [11:34:44]requested_item fd.num is exist - process it [11:34:44]SAM_PROTO_GetFieldsCounters [11:34:44]wFMCommunicate request_size=4 [11:34:44]MH_SAM_APDU [11:34:44]CAPDU: 80 13 00 00 [11:34:44]Write to MH i2c: E2 08 00 60 2F 80 13 00 00 00 00 00 00 0B [11:34:44]Write i2c OK [11:34:44]MH_I2C_Read... [11:34:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:34:44]Read from MH i2c: E2 [11:34:44]MH_I2C_Read... [11:34:44]Read from MH i2c: E2 62 00 [11:34:44]MH_I2C_Read... [11:34:44]Read from MH i2c: E2 62 00 60 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 E3 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 1B [11:34:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 E3 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:34:44]wFMCommunicate OK [11:34:44]SAM_PROTO_GetFieldsCounters done [11:34:44]requested_item shift.num is exist - process it [11:34:44]requested_item shift.opened is exist - process it [11:34:44]req_shift_opened [11:34:44]FM_GetShiftState [11:34:44]SAM_PROTO_GetShiftState [11:34:44]wFMCommunicate request_size=4 [11:34:44]MH_SAM_APDU [11:34:44]CAPDU: 80 13 01 00 [11:34:44]Write to MH i2c: E2 08 00 61 2F 80 13 01 00 00 00 00 00 0D [11:34:44]Write i2c OK [11:34:44]MH_I2C_Read... [11:34:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:34:44]Read from MH i2c: E2 [11:34:44]MH_I2C_Read... [11:34:44]Read from MH i2c: E2 0E 00 [11:34:44]MH_I2C_Read... [11:34:44]Read from MH i2c: E2 0E 00 61 2F 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 74 [11:34:44]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [11:34:44]wFMCommunicate OK [11:34:44]SAM_PROTO_GetShiftState done [11:34:44]FM_GetShiftState done [11:34:44]req_shift_opened done [11:34:44]requested_item shift.open_date is exist - process it [11:34:44]req_shift_open_date [11:34:44]req_shift_open_date done [11:34:44]produce_requested_data done [11:34:44]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67811,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [11:34:44]process_action_free print_text [11:34:44]json_value_free [11:34:44]json_value_free done [11:34:44]process_json_proto returns [11:34:44]Send response to host [11:34:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67811,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [11:34:44]free response buf [11:34:44]execute_script done [11:34:44]execute_script returns [11:34:44]free content buf [11:34:44]Sock 9.Close socket [11:34:44]Sock 9.Thread stoped [11:34:46]OFD Sender: No OFD packet to send [11:34:51]OFD Sender: No OFD packet to send [11:34:56]OFD Sender: No OFD packet to send [11:35:01]OFD Sender: No OFD packet to send [11:35:06]OFD Sender: No OFD packet to send [11:35:11]OFD Sender: No OFD packet to send [11:35:16]OFD Sender: No OFD packet to send [11:35:21]OFD Sender: No OFD packet to send [11:35:26]OFD Sender: No OFD packet to send [11:35:31]OFD Sender: No OFD packet to send [11:35:36]OFD Sender: No OFD packet to send [11:35:41]OFD Sender: No OFD packet to send [11:35:46]OFD Sender: No OFD packet to send [11:35:51]OFD Sender: No OFD packet to send [11:35:56]OFD Sender: No OFD packet to send [11:36:01]OFD Sender: No OFD packet to send [11:36:06]OFD Sender: No OFD packet to send [11:36:11]OFD Sender: No OFD packet to send [11:36:16]OFD Sender: No OFD packet to send [11:36:21]OFD Sender: No OFD packet to send [11:36:26]OFD Sender: No OFD packet to send [11:36:30]accept exits with 7 [11:36:30]New connection [11:36:30]New thread 3066608996 created [11:36:30]Thread 3066752356 joined [11:36:30]Waiting for new connection... [11:36:30] Sock 7.Parse request [11:36:30]Sock 7.Check first char [11:36:30]Sock 7.First char is OK [11:36:30]request: POST /json_proto HTTP/1.0 [11:36:30]Method: POST [11:36:30]URL: /json_proto [11:36:30]Method is POST - this is cgi request [11:36:30]url: /json_proto [11:36:30]query_string will be loaded in cgi processing [11:36:30]execute_cgi json_proto POST (null) [11:36:30]execute_cgi path=json_proto method=POST [11:36:30]POST find Content-Length [11:36:30]Host: 172.17.41.195:8080 [11:36:30]Content-Length: 1219 [11:36:30]Content-Type: application/json [11:36:30] [11:36:30]POST finish read [11:36:30]Found Content-Length = 1219 [11:36:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0440\u0441\u0442\u0430\u043D\u0431\u0435\u043A\u043E\u0432 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)508020\u000A18.05.2024 11:18\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 23\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 66.80\u000A\u0418\u0422\u041E\u0413: 668.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3883423\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:36:30]execute_script... [11:36:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0440\u0441\u0442\u0430\u043D\u0431\u0435\u043A\u043E\u0432 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)508020\u000A18.05.2024 11:18\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 23\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 66.80\u000A\u0418\u0422\u041E\u0413: 668.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3883423\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:36:30]POST & json_proto [11:36:30]process_json_proto [11:36:30]json parsed OK: [11:36:30]protocol is kg_v1.0 [11:36:30]action value=print_text [11:36:30]process_action print_text [11:36:30]cmd_print_text [11:36:30]ExternCall_PrintAddStr [11:36:30]wPrintStart [11:36:30]Write to MH i2c: 01 00 00 62 2F 91 [11:36:30]Write i2c OK [11:36:30]MH_I2C_Read... [11:36:30]Read from MH i2c: 01 [11:36:30]MH_I2C_Read... [11:36:30]Read from MH i2c: 01 07 00 [11:36:30]MH_I2C_Read... [11:36:30]Read from MH i2c: 01 07 00 62 2F 00 00 00 00 00 FF 0F A6 [11:36:30]RasterBufferAndPrint [11:36:30]line *****ТОВАРНЫЙ ЧЕК***** [11:36:30]line АЗС-91 [11:36:30]line Партнер нефть [11:36:30]line 02508201610067 [11:36:30]line Кассир : Арстанбеков Н. [11:36:30]line Счет N : (1)508020 [11:36:30]line 18.05.2024 11:18 [11:36:30]line ПРОДАЖА [11:36:30]line ТРК (МРК, ГНК): 23 [11:36:30]line Вид ГСМ : 2710124130 [11:36:30]line Аи-92-К-5 [11:36:30]line 10.000 x 66.80 [11:36:30]line ИТОГ: 668.00 [11:36:30]line Тип оплаты: Талоны: Топливные Талоны [11:36:30]line 3883423 [11:36:30]line ______________________ [11:36:30]line (подпись) [11:36:30]written 0, free lines is 4095 [11:36:30]Write to MH i2c: 01 00 00 76 2F A5 [11:36:30]Write i2c OK [11:36:30]MH_I2C_Read... [11:36:30]Read from MH i2c: 01 [11:36:30]MH_I2C_Read... [11:36:30]Read from MH i2c: 01 07 00 [11:36:30]MH_I2C_Read... [11:36:30]Read from MH i2c: 01 07 00 76 2F 00 00 00 00 00 11 0E CB [11:36:30]RasterBufferAndPrint [11:36:30]line [11:36:30]line [11:36:30]line [11:36:30]line [11:36:30]line [11:36:30]written 0, free lines is 3603 [11:36:30]MH_Cut [11:36:30]Write to MH i2c: D1 01 00 7D 2F 01 7E [11:36:30]Write i2c OK [11:36:30]MH_I2C_Read... [11:36:30]Read from MH i2c: D1 [11:36:30]MH_I2C_Read... [11:36:30]Read from MH i2c: D1 01 00 [11:36:30]MH_I2C_Read... [11:36:30]Read from MH i2c: D1 01 00 7D 2F 00 7D [11:36:30]Write to MH i2c: 01 00 00 7E 2F AD [11:36:30]Write i2c OK [11:36:30]MH_I2C_Read... [11:36:30]*** Cut start [11:36:30]*** Purtial cut [11:36:30]*** Stage 1: CUTSNS_PIN = 1 [11:36:31]Read from MH i2c: 01 [11:36:31]MH_I2C_Read... [11:36:31]Read from MH i2c: 01 07 00 [11:36:31]MH_I2C_Read... [11:36:31]*** Stop cut motor [11:36:31]*** Cut end [11:36:31]Read from MH i2c: 01 07 00 7E 2F 00 00 00 00 00 FF 0F C2 [11:36:31]process_action print_text done [11:36:31]requested_data is exist [11:36:31]produce_requested_data [11:36:31]requested_item fm.sn is exist - process it [11:36:31]wFMCommunicate request_size=4 [11:36:31]MH_SAM_APDU [11:36:31]CAPDU: 80 11 00 00 [11:36:31]Write to MH i2c: E2 08 00 7F 2F 80 11 00 00 00 00 00 00 28 [11:36:31]Write i2c OK [11:36:31]MH_I2C_Read... [11:36:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:36:31]Read from MH i2c: E2 [11:36:31]MH_I2C_Read... [11:36:31]Read from MH i2c: E2 17 00 [11:36:31]MH_I2C_Read... [11:36:31]Read from MH i2c: E2 17 00 7F 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 7E [11:36:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [11:36:31]wFMCommunicate OK [11:36:31]requested_item fd.num is exist - process it [11:36:31]SAM_PROTO_GetFieldsCounters [11:36:31]wFMCommunicate request_size=4 [11:36:31]MH_SAM_APDU [11:36:31]CAPDU: 80 13 00 00 [11:36:31]Write to MH i2c: E2 08 00 80 2F 80 13 00 00 00 00 00 00 2B [11:36:31]Write i2c OK [11:36:31]MH_I2C_Read... [11:36:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:36:31]Read from MH i2c: E2 [11:36:31]MH_I2C_Read... [11:36:31]Read from MH i2c: E2 62 00 [11:36:31]MH_I2C_Read... [11:36:31]Read from MH i2c: E2 62 00 80 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 E3 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 3B [11:36:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 E3 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:36:31]wFMCommunicate OK [11:36:31]SAM_PROTO_GetFieldsCounters done [11:36:31]requested_item shift.num is exist - process it [11:36:31]requested_item shift.opened is exist - process it [11:36:31]req_shift_opened [11:36:31]FM_GetShiftState [11:36:31]SAM_PROTO_GetShiftState [11:36:31]wFMCommunicate request_size=4 [11:36:31]MH_SAM_APDU [11:36:31]CAPDU: 80 13 01 00 [11:36:31]Write to MH i2c: E2 08 00 81 2F 80 13 01 00 00 00 00 00 2D [11:36:31]Write i2c OK [11:36:31]MH_I2C_Read... [11:36:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:36:31]Read from MH i2c: E2 [11:36:31]MH_I2C_Read... [11:36:31]Read from MH i2c: E2 0E 00 [11:36:31]MH_I2C_Read... [11:36:31]Read from MH i2c: E2 0E 00 81 2F 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 94 [11:36:31]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [11:36:31]wFMCommunicate OK [11:36:31]SAM_PROTO_GetShiftState done [11:36:31]FM_GetShiftState done [11:36:31]req_shift_opened done [11:36:31]requested_item shift.open_date is exist - process it [11:36:31]req_shift_open_date [11:36:31]req_shift_open_date done [11:36:31]produce_requested_data done [11:36:31]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67811,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [11:36:31]process_action_free print_text [11:36:31]json_value_free [11:36:31]json_value_free done [11:36:31]process_json_proto returns [11:36:31]Send response to host [11:36:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67811,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [11:36:31]free response buf [11:36:31]execute_script done [11:36:31]execute_script returns [11:36:31]free content buf [11:36:31]Sock 7.Close socket [11:36:31]Sock 7.Thread stoped [11:36:31]OFD Sender: No OFD packet to send [11:36:36]OFD Sender: No OFD packet to send [11:36:41]OFD Sender: No OFD packet to send [11:36:46]OFD Sender: No OFD packet to send [11:36:51]OFD Sender: No OFD packet to send [11:36:56]OFD Sender: No OFD packet to send [11:37:01]OFD Sender: No OFD packet to send [11:37:06]OFD Sender: No OFD packet to send [11:37:11]OFD Sender: No OFD packet to send [11:37:16]OFD Sender: No OFD packet to send [11:37:21]OFD Sender: No OFD packet to send [11:37:26]OFD Sender: No OFD packet to send [11:37:31]OFD Sender: No OFD packet to send [11:37:36]OFD Sender: No OFD packet to send [11:37:41]OFD Sender: No OFD packet to send [11:37:46]OFD Sender: No OFD packet to send [11:37:46]accept exits with 9 [11:37:46]New connection [11:37:46]New thread 3066752356 created [11:37:46]Thread 3066608996 joined [11:37:46]Waiting for new connection... [11:37:46] Sock 9.Parse request [11:37:46]Sock 9.Check first char [11:37:46]Sock 9.First char is OK [11:37:46]request: POST /json_proto HTTP/1.0 [11:37:46]Method: POST [11:37:46]URL: /json_proto [11:37:46]Method is POST - this is cgi request [11:37:46]url: /json_proto [11:37:46]query_string will be loaded in cgi processing [11:37:46]execute_cgi json_proto POST (null) [11:37:46]execute_cgi path=json_proto method=POST [11:37:46]POST find Content-Length [11:37:46]Host: 172.17.41.195:8080 [11:37:46]Content-Length: 1209 [11:37:46]Content-Type: application/json [11:37:46] [11:37:46]POST finish read [11:37:46]Found Content-Length = 1209 [11:37:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0440\u0441\u0442\u0430\u043D\u0431\u0435\u043A\u043E\u0432 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)508021\u000A18.05.2024 11:20\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 15.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 1120.50\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:37:46]execute_script... [11:37:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0440\u0441\u0442\u0430\u043D\u0431\u0435\u043A\u043E\u0432 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)508021\u000A18.05.2024 11:20\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 15.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 1120.50\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:37:46]POST & json_proto [11:37:46]process_json_proto [11:37:46]json parsed OK: [11:37:46]protocol is kg_v1.0 [11:37:46]action value=print_text [11:37:46]process_action print_text [11:37:46]cmd_print_text [11:37:46]ExternCall_PrintAddStr [11:37:46]wPrintStart [11:37:46]Write to MH i2c: 01 00 00 82 2F B1 [11:37:46]Write i2c OK [11:37:46]MH_I2C_Read... [11:37:46]Read from MH i2c: 01 [11:37:46]MH_I2C_Read... [11:37:46]Read from MH i2c: 01 07 00 [11:37:46]MH_I2C_Read... [11:37:46]Read from MH i2c: 01 07 00 82 2F 00 00 00 00 00 FF 0F C6 [11:37:46]RasterBufferAndPrint [11:37:46]line *****ТОВАРНЫЙ ЧЕК***** [11:37:46]line АЗС-91 [11:37:46]line Партнер нефть [11:37:46]line 02508201610067 [11:37:46]line Кассир : Арстанбеков Н. [11:37:46]line Счет N : (1)508021 [11:37:46]line 18.05.2024 11:20 [11:37:46]line ПРОДАЖА [11:37:46]line ТРК (МРК, ГНК): 11 [11:37:46]line Вид ГСМ : 2710194210 [11:37:46]line ДТ-К-5 [11:37:46]line 15.000 x 74.70 [11:37:46]line ИТОГ: 1120.50 [11:37:46]line Тип оплаты: Талоны: Топливная Карта [11:37:46]line 02750 [11:37:46]line ______________________ [11:37:46]line (подпись) [11:37:46]written 0, free lines is 4095 [11:37:47]Write to MH i2c: 01 00 00 96 2F C5 [11:37:47]Write i2c OK [11:37:47]MH_I2C_Read... [11:37:47]Read from MH i2c: 01 [11:37:47]MH_I2C_Read... [11:37:47]Read from MH i2c: 01 07 00 [11:37:47]MH_I2C_Read... [11:37:47]Read from MH i2c: 01 07 00 96 2F 00 00 00 00 00 0E 0E E8 [11:37:47]RasterBufferAndPrint [11:37:47]line [11:37:47]line [11:37:47]line [11:37:47]line [11:37:47]line [11:37:47]written 0, free lines is 3599 [11:37:47]MH_Cut [11:37:47]Write to MH i2c: D1 01 00 9D 2F 01 9E [11:37:47]Write i2c OK [11:37:47]MH_I2C_Read... [11:37:47]Read from MH i2c: D1 [11:37:47]MH_I2C_Read... [11:37:47]Read from MH i2c: D1 01 00 [11:37:47]MH_I2C_Read... [11:37:47]Read from MH i2c: D1 01 00 9D 2F 00 9D [11:37:47]Write to MH i2c: 01 00 00 9E 2F CD [11:37:47]Write i2c OK [11:37:47]MH_I2C_Read... [11:37:47]*** Cut start [11:37:47]*** Purtial cut [11:37:47]*** CUTSNS_PIN = 0 [11:37:47]*** Stage 1: CUTSNS_PIN = 1 [11:37:49]Read from MH i2c: 01 [11:37:49]MH_I2C_Read... [11:37:49]Read from MH i2c: 01 07 00 [11:37:49]MH_I2C_Read... [11:37:49]*** Stop cut motor [11:37:49]*** Cut end [11:37:49]Read from MH i2c: 01 07 00 9E 2F 00 00 00 00 00 FF 0F E2 [11:37:49]process_action print_text done [11:37:49]requested_data is exist [11:37:49]produce_requested_data [11:37:49]requested_item fm.sn is exist - process it [11:37:49]wFMCommunicate request_size=4 [11:37:49]MH_SAM_APDU [11:37:49]CAPDU: 80 11 00 00 [11:37:49]Write to MH i2c: E2 08 00 9F 2F 80 11 00 00 00 00 00 00 48 [11:37:49]Write i2c OK [11:37:49]MH_I2C_Read... [11:37:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:37:49]Read from MH i2c: E2 [11:37:49]MH_I2C_Read... [11:37:49]Read from MH i2c: E2 17 00 [11:37:49]MH_I2C_Read... [11:37:49]Read from MH i2c: E2 17 00 9F 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 9E [11:37:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [11:37:49]wFMCommunicate OK [11:37:49]requested_item fd.num is exist - process it [11:37:49]SAM_PROTO_GetFieldsCounters [11:37:49]wFMCommunicate request_size=4 [11:37:49]MH_SAM_APDU [11:37:49]CAPDU: 80 13 00 00 [11:37:49]Write to MH i2c: E2 08 00 A0 2F 80 13 00 00 00 00 00 00 4B [11:37:49]Write i2c OK [11:37:49]MH_I2C_Read... [11:37:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:37:49]Read from MH i2c: E2 [11:37:49]MH_I2C_Read... [11:37:49]Read from MH i2c: E2 62 00 [11:37:49]MH_I2C_Read... [11:37:49]Read from MH i2c: E2 62 00 A0 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 E3 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 5B [11:37:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 E3 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:37:49]wFMCommunicate OK [11:37:49]SAM_PROTO_GetFieldsCounters done [11:37:49]requested_item shift.num is exist - process it [11:37:49]requested_item shift.opened is exist - process it [11:37:49]req_shift_opened [11:37:49]FM_GetShiftState [11:37:49]SAM_PROTO_GetShiftState [11:37:49]wFMCommunicate request_size=4 [11:37:49]MH_SAM_APDU [11:37:49]CAPDU: 80 13 01 00 [11:37:49]Write to MH i2c: E2 08 00 A1 2F 80 13 01 00 00 00 00 00 4D [11:37:49]Write i2c OK [11:37:49]MH_I2C_Read... [11:37:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:37:49]Read from MH i2c: E2 [11:37:49]MH_I2C_Read... [11:37:49]Read from MH i2c: E2 0E 00 [11:37:49]MH_I2C_Read... [11:37:49]Read from MH i2c: E2 0E 00 A1 2F 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 B4 [11:37:49]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [11:37:49]wFMCommunicate OK [11:37:49]SAM_PROTO_GetShiftState done [11:37:49]FM_GetShiftState done [11:37:49]req_shift_opened done [11:37:49]requested_item shift.open_date is exist - process it [11:37:49]req_shift_open_date [11:37:49]req_shift_open_date done [11:37:49]produce_requested_data done [11:37:49]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67811,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [11:37:49]process_action_free print_text [11:37:49]json_value_free [11:37:49]json_value_free done [11:37:49]process_json_proto returns [11:37:49]Send response to host [11:37:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67811,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [11:37:49]free response buf [11:37:49]execute_script done [11:37:49]execute_script returns [11:37:49]free content buf [11:37:49]Sock 9.Close socket [11:37:49]Sock 9.Thread stoped [11:37:51]OFD Sender: No OFD packet to send [11:37:56]OFD Sender: No OFD packet to send [11:38:01]OFD Sender: No OFD packet to send [11:38:03]accept exits with 7 [11:38:03]New connection [11:38:03]New thread 3066608996 created [11:38:03]Thread 3066752356 joined [11:38:03]Waiting for new connection... [11:38:03] Sock 7.Parse request [11:38:03]Sock 7.Check first char [11:38:03]Sock 7.First char is OK [11:38:03]request: POST /json_proto HTTP/1.0 [11:38:03]Method: POST [11:38:03]URL: /json_proto [11:38:03]Method is POST - this is cgi request [11:38:03]url: /json_proto [11:38:03]query_string will be loaded in cgi processing [11:38:03]execute_cgi json_proto POST (null) [11:38:03]execute_cgi path=json_proto method=POST [11:38:03]POST find Content-Length [11:38:03]Host: 172.17.41.195:8080 [11:38:03]Content-Length: 800 [11:38:03]Content-Type: application/json [11:38:03] [11:38:03]POST finish read [11:38:03]Found Content-Length = 800 [11:38:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)508022", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 20.090, "sum" : 1500.72, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1500.72 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:38:03]execute_script... [11:38:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)508022", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 20.090, "sum" : 1500.72, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1500.72 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:38:03]POST & json_proto [11:38:03]process_json_proto [11:38:03]json parsed OK: [11:38:03]protocol is kg_v1.0 [11:38:03]action value=close_receipt [11:38:03]process_action close_receipt [11:38:03]cmd_close_receipt [11:38:03]MH_GetDate [11:38:03]Write to MH i2c: F0 00 00 A2 2F C0 [11:38:03]Write i2c OK [11:38:03]MH_I2C_Read... [11:38:03]Read from MH i2c: F0 [11:38:03]MH_I2C_Read... [11:38:03]Read from MH i2c: F0 09 00 [11:38:03]MH_I2C_Read... [11:38:03]Read from MH i2c: F0 09 00 A2 2F 00 20 93 48 66 FC 21 6F 64 1A [11:38:03]GetLastDocTimeStamp 1716032043 [11:38:03]current date 1716032288 [11:38:03]FM_GetShiftState [11:38:03]SAM_PROTO_GetShiftState [11:38:03]wFMCommunicate request_size=4 [11:38:03]MH_SAM_APDU [11:38:03]CAPDU: 80 13 01 00 [11:38:03]Write to MH i2c: E2 08 00 A3 2F 80 13 01 00 00 00 00 00 4F [11:38:03]Write i2c OK [11:38:03]MH_I2C_Read... [11:38:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:38:03]Read from MH i2c: E2 [11:38:03]MH_I2C_Read... [11:38:03]Read from MH i2c: E2 0E 00 [11:38:03]MH_I2C_Read... [11:38:03]Read from MH i2c: E2 0E 00 A3 2F 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 B6 [11:38:03]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [11:38:03]wFMCommunicate OK [11:38:03]SAM_PROTO_GetShiftState done [11:38:03]FM_GetShiftState done [11:38:03]opened in 1715991483 [11:38:03]opened+sec_in_day 1716077883 [11:38:03]quantity*price = 150072 [11:38:03]sum+1 = 150073 [11:38:03]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.72 НСП 1% : 13.28 НДС 12% : 159.37 Наличными: 0.00 Безнал.: 1500.72 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 51 18.05.2024 11:38 Смена: 359 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67812 ФПД: 210767150855530 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T113808&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67812&fm=210767150855530&tin=02508201610067®Number=0000000000091845&sum=150072 [11:38:04]StoreToDocumentArchive [11:38:04]shift 359 fd 67812 [11:38:04]save to /storage/0359/doc_00067812 [11:38:04]save last doc name /storage/0359/doc_00067812 to /storage/kkm_last_doc_name [11:38:04]save OK [11:38:04]Clear old archive folders... [11:38:04]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:38:04]tlvbuf is 01AF0440 [11:38:04]SAM_PROTO_ClearQueue [11:38:04]wFMCommunicate request_size=4 [11:38:04]MH_SAM_APDU [11:38:04]CAPDU: 80 09 00 00 [11:38:04]Write to MH i2c: E2 08 00 B0 2F 80 09 00 00 00 00 00 00 51 [11:38:04]Write i2c OK [11:38:04]MH_I2C_Read... [11:38:04]Read from MH i2c: E2 [11:38:04]MH_I2C_Read... [11:38:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:38:04]Read from MH i2c: E2 03 00 [11:38:04]MH_I2C_Read... [11:38:04]Read from MH i2c: E2 03 00 B0 2F 00 90 00 53 [11:38:04]RAPDU: 90 00 [11:38:04]wFMCommunicate OK [11:38:04]SAM_PROTO_ClearQueue done [11:38:04]KKMCreateOFDPacket [11:38:04]OFDProtocolAddRootSTLVToBuf [11:38:04]FM_MakeSignedData [11:38:04]FM_MakeSignedData [11:38:04]SAM_PROTO_SignData [11:38:04]wFMCommunicate request_size=4 [11:38:04]MH_SAM_APDU [11:38:04]CAPDU: 80 0D 01 02 [11:38:04]Write to MH i2c: E2 08 00 B1 2F 80 0D 01 02 00 00 00 00 59 [11:38:04]Write i2c OK [11:38:04]MH_I2C_Read... [11:38:04]Read from MH i2c: E2 [11:38:04]MH_I2C_Read... [11:38:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:38:04]Read from MH i2c: E2 03 00 [11:38:04]MH_I2C_Read... [11:38:04]Read from MH i2c: E2 03 00 B1 2F 00 90 00 54 [11:38:04]RAPDU: 90 00 [11:38:04]wFMCommunicate OK [11:38:04]wFMCommunicate request_size=255 [11:38:04]MH_SAM_APDU [11:38:04]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7A 4E 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 38 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 41 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 38 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 20 93 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 E4 08 01 00 35 04 06 00 BF B1 0D 28 [11:38:04]Write to MH i2c: E2 02 01 B2 2F 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7A 4E 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 38 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 41 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 38 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 20 93 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 E4 08 01 00 35 04 06 00 BF B1 0D 28 00 00 9C [11:38:04]Write i2c OK [11:38:04]MH_I2C_Read... [11:38:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:38:04]Read from MH i2c: E2 [11:38:04]MH_I2C_Read... [11:38:04]Read from MH i2c: E2 03 00 [11:38:04]MH_I2C_Read... [11:38:04]Read from MH i2c: E2 03 00 B2 2F 00 90 00 55 [11:38:04]RAPDU: 90 00 [11:38:04]wFMCommunicate OK [11:38:04]wFMCommunicate request_size=7 [11:38:04]MH_SAM_APDU [11:38:04]CAPDU: 80 0D 02 02 02 35 6A [11:38:04]Write to MH i2c: E2 0A 00 B3 2F 80 0D 02 02 02 00 35 6A 00 00 FF [11:38:04]Write i2c OK [11:38:04]MH_I2C_Read... [11:38:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:38:04]Read from MH i2c: E2 [11:38:04]MH_I2C_Read... [11:38:04]Read from MH i2c: E2 03 00 [11:38:04]MH_I2C_Read... [11:38:04]Read from MH i2c: E2 03 00 B3 2F 00 90 00 56 [11:38:04]RAPDU: 90 00 [11:38:04]wFMCommunicate OK [11:38:04]wFMCommunicate request_size=4 [11:38:04]MH_SAM_APDU [11:38:04]CAPDU: 80 0D 03 02 [11:38:04]Write to MH i2c: E2 08 00 B4 2F 80 0D 03 02 00 00 00 00 5E [11:38:04]Write i2c OK [11:38:04]MH_I2C_Read... [11:38:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:38:04]Read from MH i2c: E2 [11:38:04]MH_I2C_Read... [11:38:04]Read from MH i2c: E2 0B 00 [11:38:04]MH_I2C_Read... [11:38:04]Read from MH i2c: E2 0B 00 B4 2F 00 0B B0 28 13 11 A2 17 A6 90 00 C5 [11:38:04]RAPDU: 0B B0 28 13 11 A2 17 A6 90 00 [11:38:04]wFMCommunicate OK [11:38:04]SAM_PROTO_SignData done [11:38:04]FM_MakeSignedData done [11:38:04]CreateOFDProtocolMessage [11:38:04]wFMCommunicate request_size=4 [11:38:04]MH_SAM_APDU [11:38:04]CAPDU: 80 11 00 00 [11:38:04]Write to MH i2c: E2 08 00 B5 2F 80 11 00 00 00 00 00 00 5E [11:38:04]Write i2c OK [11:38:04]MH_I2C_Read... [11:38:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:38:04]Read from MH i2c: E2 [11:38:04]MH_I2C_Read... [11:38:04]Read from MH i2c: E2 17 00 [11:38:04]MH_I2C_Read... [11:38:04]Read from MH i2c: E2 17 00 B5 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 B4 [11:38:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [11:38:04]wFMCommunicate OK [11:38:04]CreateOFDProtocolMessage done [11:38:04]OFDSenderStorePacket 67812 [11:38:04]StoreOFDPacket docnum=67812 [11:38:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 AA AD 04 01 3F B2 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7A 4E 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 38 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 41 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 38 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 20 93 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 E4 08 01 00 35 04 06 00 BF B1 0D 28 35 6A 0B B0 28 13 11 A2 17 A6 [11:38:04]CheckFolder [11:38:04]dirname=/storage/ofd_packets [11:38:04]CheckFolder done [11:38:04]ProducePacketName [11:38:04]name=ofd_packets/00067812 [11:38:04]NVStorageSaveData ofd_packets/00067812 [11:38:04]File name is /storage/ofd_packets/00067812 [11:38:04]Write 298 bytes [11:38:04]NVStorageSaveData done [11:38:04]OFDSenderStorePacket done [11:38:04]KKMCreateOFDPacket done [11:38:04]NVStorageSaveData kkm_last_timestamp [11:38:04]File name is /storage/kkm_last_timestamp [11:38:04]Write 4 bytes [11:38:04]NVStorageSaveData done [11:38:04]ExternCall_PrintAddStr [11:38:04]wPrintStart [11:38:04]Write to MH i2c: 01 00 00 B6 2F E5 [11:38:04]Write i2c OK [11:38:04]MH_I2C_Read... [11:38:04]Read from MH i2c: 01 [11:38:04]MH_I2C_Read... [11:38:04]Read from MH i2c: 01 07 00 [11:38:04]MH_I2C_Read... [11:38:04]Read from MH i2c: 01 07 00 B6 2F 00 00 00 00 00 FF 0F FA [11:38:04]RasterBufferAndPrint [11:38:04]line Счет N : (1)508022 [11:38:04]line ИНН: 02508201610067 [11:38:04]line Контрольно-Кассовый Чек [11:38:04]line ПРОДАЖА [11:38:04]line ТРК (МРК, ГНК) : 41 [11:38:04]line Товар: 2710194210 [11:38:04]line ДТ-К-5 [11:38:04]line 20.090 * 74.70 [11:38:04]line = 1500.72 [11:38:04]line НДС 12% НСП 1% [11:38:04]line > о реализуемом товаре [11:38:04]line ИТОГО: 1500.72 [11:38:04]line НСП 1% : 13.28 [11:38:04]line НДС 12% : 159.37 [11:38:04]line Наличными: 0.00 [11:38:04]line Безнал.: 1500.72 [11:38:04]line Место: АЗС № 91 "Партнер Нефть" [11:38:04]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [11:38:04]line СНО: Общий режим [11:38:04]line Чек 51 18.05.2024 11:38 [11:38:04]line Смена: 359 ФФД: 1.0 [11:38:04]line ЗНМ: 0300000119 [11:38:04]line РНМ: 0000000000091845 [11:38:04]line Версия ККМ: 001 [11:38:04]line Платежная система: O! деньги [11:38:04]line ФМ: 0000000000871829 [11:38:04]line ФД: 67812 [11:38:04]line ФПД: 210767150855530 [11:38:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T113808&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67812&fm=210767150855530&tin=02508201610067®Number=0000000000091845&sum=150072 [11:38:05]OFD Sender: Processing packet 67812 [packets to send 35, broken 34] [11:38:05]ProducePacketName [11:38:05]name=ofd_packets/00067812 [11:38:05]OFD Sender: To server: pG, [11:38:05]CommunicateWithHost lk.salyk.kg:30040 [11:38:05]ConnectInit lk.salyk.kg [11:38:05]written 0, free lines is 4095 [11:38:05]Connected sock=10 [11:38:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 AA AD 04 01 3F B2 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7A 4E 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 38 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 41 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 38 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 20 93 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 E4 08 01 00 35 04 06 00 BF B1 0D 28 35 6A 0B B0 28 13 11 A2 17 A6 [11:38:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 4F F9 47 00 AF D3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 E4 08 01 00 F4 03 04 00 F5 3A 48 66 B6 04 01 00 00 48 44 AF 4B 42 1D 9E 7A [11:38:05]CommunicateWithHost err = 0 [11:38:05]CheckOFDResponse [11:38:05]1017 (14) - 77093643461234 [11:38:05]1041 (16) - 0000000000871829 [11:38:05]1040 (4) - 67812 [11:38:05]1012 (4) - 18.05.2024 05:21 [11:38:05]1206 (1) - 0 [11:38:05]OFD Sender: Remove packet 67812 [11:38:05]ProducePacketName [11:38:05]name=ofd_packets/00067812 [11:38:05]NVStorageDeleteData [11:38:05]Write to MH i2c: 01 00 00 DF 2F 0E [11:38:05]Write i2c OK [11:38:05]MH_I2C_Read... [11:38:05]Read from MH i2c: 01 [11:38:05]MH_I2C_Read... [11:38:05]Read from MH i2c: 01 07 00 [11:38:05]MH_I2C_Read... [11:38:05]Read from MH i2c: 01 07 00 DF 2F 00 00 00 00 00 D6 0C F7 [11:38:05]RasterBufferAndPrint [11:38:05]line [11:38:05]line [11:38:05]line [11:38:05]line [11:38:05]line [11:38:05]written 0, free lines is 3290 [11:38:05]MH_Cut [11:38:05]Write to MH i2c: D1 01 00 E6 2F 01 E7 [11:38:05]Write i2c OK [11:38:05]MH_I2C_Read... [11:38:05]Read from MH i2c: D1 [11:38:05]MH_I2C_Read... [11:38:05]Read from MH i2c: D1 01 00 [11:38:05]MH_I2C_Read... [11:38:05]Read from MH i2c: D1 01 00 E6 2F 00 E6 [11:38:05]Write to MH i2c: 01 00 00 E7 2F 16 [11:38:05]Write i2c OK [11:38:05]MH_I2C_Read... [11:38:06]OFD Sender: No OFD packet to send [11:38:06]*** Cut start [11:38:06]*** Purtial cut [11:38:06]*** Stage 1: CUTSNS_PIN = 1 [11:38:06]Read from MH i2c: 01 [11:38:06]MH_I2C_Read... [11:38:06]*** Stop cut motor [11:38:06]*** Cut end [11:38:06]Read from MH i2c: 01 07 00 [11:38:06]MH_I2C_Read... [11:38:06]Read from MH i2c: 01 07 00 E7 2F 00 00 00 00 00 FF 0F 2B [11:38:06]process_action close_receipt done [11:38:06]requested_data is exist [11:38:06]produce_requested_data [11:38:06]requested_item fm.sn is exist - process it [11:38:06]wFMCommunicate request_size=4 [11:38:06]MH_SAM_APDU [11:38:06]CAPDU: 80 11 00 00 [11:38:06]Write to MH i2c: E2 08 00 E8 2F 80 11 00 00 00 00 00 00 91 [11:38:06]Write i2c OK [11:38:06]MH_I2C_Read... [11:38:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:38:06]Read from MH i2c: E2 [11:38:06]MH_I2C_Read... [11:38:06]Read from MH i2c: E2 17 00 [11:38:06]MH_I2C_Read... [11:38:06]Read from MH i2c: E2 17 00 E8 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 E7 [11:38:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [11:38:06]wFMCommunicate OK [11:38:06]requested_item fd.num is exist - process it [11:38:06]SAM_PROTO_GetFieldsCounters [11:38:06]wFMCommunicate request_size=4 [11:38:06]MH_SAM_APDU [11:38:06]CAPDU: 80 13 00 00 [11:38:06]Write to MH i2c: E2 08 00 E9 2F 80 13 00 00 00 00 00 00 94 [11:38:06]Write i2c OK [11:38:06]MH_I2C_Read... [11:38:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:38:06]Read from MH i2c: E2 [11:38:06]MH_I2C_Read... [11:38:06]Read from MH i2c: E2 62 00 [11:38:06]MH_I2C_Read... [11:38:06]Read from MH i2c: E2 62 00 E9 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 E4 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 A8 [11:38:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 E4 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:38:06]wFMCommunicate OK [11:38:06]SAM_PROTO_GetFieldsCounters done [11:38:06]requested_item shift.num is exist - process it [11:38:06]requested_item shift.opened is exist - process it [11:38:06]req_shift_opened [11:38:06]FM_GetShiftState [11:38:06]SAM_PROTO_GetShiftState [11:38:06]wFMCommunicate request_size=4 [11:38:06]MH_SAM_APDU [11:38:06]CAPDU: 80 13 01 00 [11:38:06]Write to MH i2c: E2 08 00 EA 2F 80 13 01 00 00 00 00 00 96 [11:38:06]Write i2c OK [11:38:06]MH_I2C_Read... [11:38:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:38:07]Read from MH i2c: E2 [11:38:07]MH_I2C_Read... [11:38:07]Read from MH i2c: E2 0E 00 [11:38:07]MH_I2C_Read... [11:38:07]Read from MH i2c: E2 0E 00 EA 2F 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 FD [11:38:07]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [11:38:07]wFMCommunicate OK [11:38:07]SAM_PROTO_GetShiftState done [11:38:07]FM_GetShiftState done [11:38:07]req_shift_opened done [11:38:07]requested_item shift.open_date is exist - process it [11:38:07]req_shift_open_date [11:38:07]req_shift_open_date done [11:38:07]produce_requested_data done [11:38:07]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67812,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [11:38:07]process_action_free close_receipt [11:38:07]json_value_free [11:38:07]json_value_free done [11:38:07]process_json_proto returns [11:38:07]Send response to host [11:38:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67812,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [11:38:07]free response buf [11:38:07]execute_script done [11:38:07]execute_script returns [11:38:07]free content buf [11:38:07]Sock 7.Close socket [11:38:07]Sock 7.Thread stoped [11:38:11]OFD Sender: No OFD packet to send [11:38:16]OFD Sender: No OFD packet to send [11:38:21]OFD Sender: No OFD packet to send [11:38:26]OFD Sender: No OFD packet to send [11:38:31]OFD Sender: No OFD packet to send [11:38:36]OFD Sender: No OFD packet to send [11:38:41]OFD Sender: No OFD packet to send [11:38:46]OFD Sender: No OFD packet to send [11:38:51]OFD Sender: No OFD packet to send [11:38:56]OFD Sender: No OFD packet to send [11:39:01]OFD Sender: No OFD packet to send [11:39:06]OFD Sender: No OFD packet to send [11:39:11]OFD Sender: No OFD packet to send [11:39:16]OFD Sender: No OFD packet to send [11:39:21]OFD Sender: No OFD packet to send [11:39:26]OFD Sender: No OFD packet to send [11:39:31]OFD Sender: No OFD packet to send [11:39:36]OFD Sender: No OFD packet to send [11:39:41]OFD Sender: No OFD packet to send [11:39:45]accept exits with 9 [11:39:45]New connection [11:39:45]New thread 3066752356 created [11:39:45]Thread 3066608996 joined [11:39:45]Waiting for new connection... [11:39:45] Sock 9.Parse request [11:39:45]Sock 9.Check first char [11:39:45]Sock 9.First char is OK [11:39:45]request: POST /json_proto HTTP/1.0 [11:39:45]Method: POST [11:39:45]URL: /json_proto [11:39:45]Method is POST - this is cgi request [11:39:45]url: /json_proto [11:39:45]query_string will be loaded in cgi processing [11:39:45]execute_cgi json_proto POST (null) [11:39:45]execute_cgi path=json_proto method=POST [11:39:45]POST find Content-Length [11:39:45]Host: 172.17.41.195:8080 [11:39:45]Content-Length: 706 [11:39:45]Content-Type: application/json [11:39:45] [11:39:45]POST finish read [11:39:45]Found Content-Length = 706 [11:39:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)12112", "tax_sys" : 0, "items" : [ { "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433\u0435\u0442\u0438\u0447\u0435\u0441\u043A\u0438\u0439 Nitro 0.45 \u0436/\u0431", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 75.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:39:45]execute_script... [11:39:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)12112", "tax_sys" : 0, "items" : [ { "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433\u0435\u0442\u0438\u0447\u0435\u0441\u043A\u0438\u0439 Nitro 0.45 \u0436/\u0431", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 75.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:39:45]POST & json_proto [11:39:45]process_json_proto [11:39:45]json parsed OK: [11:39:45]protocol is kg_v1.0 [11:39:45]action value=close_receipt [11:39:45]process_action close_receipt [11:39:45]cmd_close_receipt [11:39:45]MH_GetDate [11:39:45]Write to MH i2c: F0 00 00 EB 2F 09 [11:39:45]Write i2c OK [11:39:45]MH_I2C_Read... [11:39:45]Read from MH i2c: F0 [11:39:45]MH_I2C_Read... [11:39:45]Read from MH i2c: F0 09 00 [11:39:45]MH_I2C_Read... [11:39:45]Read from MH i2c: F0 09 00 EB 2F 00 86 93 48 66 FC 21 6F 64 C9 [11:39:45]GetLastDocTimeStamp 1716032288 [11:39:45]current date 1716032390 [11:39:45]FM_GetShiftState [11:39:45]SAM_PROTO_GetShiftState [11:39:45]wFMCommunicate request_size=4 [11:39:45]MH_SAM_APDU [11:39:45]CAPDU: 80 13 01 00 [11:39:45]Write to MH i2c: E2 08 00 EC 2F 80 13 01 00 00 00 00 00 98 [11:39:45]Write i2c OK [11:39:45]MH_I2C_Read... [11:39:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:39:45]Read from MH i2c: E2 [11:39:45]MH_I2C_Read... [11:39:45]Read from MH i2c: E2 0E 00 [11:39:45]MH_I2C_Read... [11:39:45]Read from MH i2c: E2 0E 00 EC 2F 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 FF [11:39:45]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [11:39:45]wFMCommunicate OK [11:39:45]SAM_PROTO_GetShiftState done [11:39:45]FM_GetShiftState done [11:39:45]opened in 1715991483 [11:39:45]opened+sec_in_day 1716077883 [11:39:45]quantity*price = 7500 [11:39:45]sum+1 = 7501 [11:39:45]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 75.00 НСП 1% : 0.66 НДС 12% : 7.96 Наличными: 75.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 52 18.05.2024 11:39 Смена: 359 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67813 ФПД: 47046822293846 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T113950&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67813&fm=47046822293846&tin=02508201610067®Number=0000000000091845&sum=7500 0 [11:39:46]StoreToDocumentArchive [11:39:46]shift 359 fd 67813 [11:39:46]save to /storage/0359/doc_00067813 [11:39:46]save last doc name /storage/0359/doc_00067813 to /storage/kkm_last_doc_name [11:39:46]save OK [11:39:46]Clear old archive folders... [11:39:46]ProcessDocumentItem done err = 0, tmpTLVsize=302 [11:39:46]tlvbuf is 01B2FD20 [11:39:46]SAM_PROTO_ClearQueue [11:39:46]wFMCommunicate request_size=4 [11:39:46]MH_SAM_APDU [11:39:46]CAPDU: 80 09 00 00 [11:39:46]Write to MH i2c: E2 08 00 F9 2F 80 09 00 00 00 00 00 00 9A [11:39:46]Write i2c OK [11:39:46]MH_I2C_Read... [11:39:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:39:46]Read from MH i2c: E2 [11:39:46]MH_I2C_Read... [11:39:46]Read from MH i2c: E2 03 00 [11:39:46]MH_I2C_Read... [11:39:46]Read from MH i2c: E2 03 00 F9 2F 00 90 00 9C [11:39:46]RAPDU: 90 00 [11:39:46]wFMCommunicate OK [11:39:46]SAM_PROTO_ClearQueue done [11:39:46]KKMCreateOFDPacket [11:39:46]OFDProtocolAddRootSTLVToBuf [11:39:46]FM_MakeSignedData [11:39:46]FM_MakeSignedData [11:39:46]SAM_PROTO_SignData [11:39:46]wFMCommunicate request_size=4 [11:39:46]MH_SAM_APDU [11:39:46]CAPDU: 80 0D 01 02 [11:39:46]Write to MH i2c: E2 08 00 FA 2F 80 0D 01 02 00 00 00 00 A2 [11:39:46]Write i2c OK [11:39:46]MH_I2C_Read... [11:39:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:39:46]Read from MH i2c: E2 [11:39:46]MH_I2C_Read... [11:39:46]Read from MH i2c: E2 03 00 [11:39:46]MH_I2C_Read... [11:39:46]Read from MH i2c: E2 03 00 FA 2F 00 90 00 9D [11:39:46]RAPDU: 90 00 [11:39:46]wFMCommunicate OK [11:39:46]wFMCommunicate request_size=255 [11:39:46]MH_SAM_APDU [11:39:46]CAPDU: 80 0D 02 02 FA 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 3C 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 D0 B5 D1 82 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 4E 69 74 72 6F 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 86 93 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 [11:39:46]Write to MH i2c: E2 02 01 FB 2F 80 0D 02 02 FA 00 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 3C 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 D0 B5 D1 82 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 4E 69 74 72 6F 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 86 93 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 00 00 58 [11:39:46]Write i2c OK [11:39:46]MH_I2C_Read... [11:39:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:39:46]Read from MH i2c: E2 [11:39:46]MH_I2C_Read... [11:39:46]Read from MH i2c: E2 03 00 [11:39:46]MH_I2C_Read... [11:39:46]Read from MH i2c: E2 03 00 FB 2F 00 90 00 9E [11:39:46]RAPDU: 90 00 [11:39:46]wFMCommunicate OK [11:39:46]wFMCommunicate request_size=61 [11:39:46]MH_SAM_APDU [11:39:46]CAPDU: 80 0D 02 02 38 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 E5 08 01 00 35 04 06 00 2A C9 F1 21 71 56 [11:39:46]Write to MH i2c: E2 40 00 FC 2F 80 0D 02 02 38 00 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 E5 08 01 00 35 04 06 00 2A C9 F1 21 71 56 00 00 99 [11:39:46]Write i2c OK [11:39:46]MH_I2C_Read... [11:39:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:39:46]Read from MH i2c: E2 [11:39:46]MH_I2C_Read... [11:39:46]Read from MH i2c: E2 03 00 [11:39:46]MH_I2C_Read... [11:39:46]Read from MH i2c: E2 03 00 FC 2F 00 90 00 9F [11:39:46]RAPDU: 90 00 [11:39:46]wFMCommunicate OK [11:39:46]wFMCommunicate request_size=4 [11:39:46]MH_SAM_APDU [11:39:46]CAPDU: 80 0D 03 02 [11:39:46]Write to MH i2c: E2 08 00 FD 2F 80 0D 03 02 00 00 00 00 A7 [11:39:46]Write i2c OK [11:39:46]MH_I2C_Read... [11:39:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:39:46]Read from MH i2c: E2 [11:39:46]MH_I2C_Read... [11:39:46]Read from MH i2c: E2 0B 00 [11:39:46]MH_I2C_Read... [11:39:46]Read from MH i2c: E2 0B 00 FD 2F 00 7C 03 0E E7 71 46 11 C6 90 00 AA [11:39:46]RAPDU: 7C 03 0E E7 71 46 11 C6 90 00 [11:39:46]wFMCommunicate OK [11:39:46]SAM_PROTO_SignData done [11:39:46]FM_MakeSignedData done [11:39:46]CreateOFDProtocolMessage [11:39:46]wFMCommunicate request_size=4 [11:39:46]MH_SAM_APDU [11:39:46]CAPDU: 80 11 00 00 [11:39:46]Write to MH i2c: E2 08 00 FE 2F 80 11 00 00 00 00 00 00 A7 [11:39:46]Write i2c OK [11:39:46]MH_I2C_Read... [11:39:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:39:46]Read from MH i2c: E2 [11:39:47]MH_I2C_Read... [11:39:47]Read from MH i2c: E2 17 00 [11:39:47]MH_I2C_Read... [11:39:47]Read from MH i2c: E2 17 00 FE 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 FD [11:39:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [11:39:47]wFMCommunicate OK [11:39:47]CreateOFDProtocolMessage done [11:39:47]OFDSenderStorePacket 67813 [11:39:47]StoreOFDPacket docnum=67813 [11:39:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 42 01 00 00 F8 B8 3A 01 04 73 5A 03 01 00 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 3C 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 D0 B5 D1 82 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 4E 69 74 72 6F 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 86 93 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 E5 08 01 00 35 04 06 00 2A C9 F1 21 71 56 7C 03 0E E7 71 46 11 C6 [11:39:47]CheckFolder [11:39:47]dirname=/storage/ofd_packets [11:39:47]CheckFolder done [11:39:47]ProducePacketName [11:39:47]name=ofd_packets/00067813 [11:39:47]NVStorageSaveData ofd_packets/00067813 [11:39:47]File name is /storage/ofd_packets/00067813 [11:39:47]Write 352 bytes [11:39:47]NVStorageSaveData done [11:39:47]OFDSenderStorePacket done [11:39:47]KKMCreateOFDPacket done [11:39:47]NVStorageSaveData kkm_last_timestamp [11:39:47]File name is /storage/kkm_last_timestamp [11:39:47]Write 4 bytes [11:39:47]NVStorageSaveData done [11:39:47]ExternCall_PrintAddStr [11:39:47]wPrintStart [11:39:47]Write to MH i2c: 01 00 00 FF 2F 2E [11:39:47]Write i2c OK [11:39:47]MH_I2C_Read... [11:39:47]Read from MH i2c: 01 [11:39:47]MH_I2C_Read... [11:39:47]Read from MH i2c: 01 07 00 [11:39:47]MH_I2C_Read... [11:39:47]Read from MH i2c: 01 07 00 FF 2F 00 00 00 00 00 FF 0F 43 [11:39:47]RasterBufferAndPrint [11:39:47]line Счет N : (3)12112 [11:39:47]line ИНН: 02508201610067 [11:39:47]line Контрольно-Кассовый Чек [11:39:47]line ПРОДАЖА [11:39:47]line Товар: 4700000480050 [11:39:47]line Напиток энергетический Nitro 0.45 ж/б [11:39:47]line 1.000 * 75.00 [11:39:47]line = 75.00 [11:39:47]line НДС 12% НСП 1% [11:39:47]line > о реализуемом товаре [11:39:47]line ИТОГО: 75.00 [11:39:47]line НСП 1% : 0.66 [11:39:47]line НДС 12% : 7.96 [11:39:47]line Наличными: 75.00 [11:39:47]line Безнал.: 0.00 [11:39:47]line Место: АЗС № 91 "Партнер Нефть" [11:39:47]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [11:39:47]line СНО: Общий режим [11:39:47]line Чек 52 18.05.2024 11:39 [11:39:47]line Смена: 359 ФФД: 1.0 [11:39:47]line ЗНМ: 0300000119 [11:39:47]line РНМ: 0000000000091845 [11:39:47]line Версия ККМ: 001 [11:39:47]line ФМ: 0000000000871829 [11:39:47]line ФД: 67813 [11:39:47]line ФПД: 47046822293846 [11:39:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T113950&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67813&fm=47046822293846&tin=02508201610067®Number=0000000000091845&sum=7500 [11:39:47]line 0 [11:39:47]OFD Sender: Processing packet 67813 [packets to send 35, broken 34] [11:39:47]ProducePacketName [11:39:47]name=ofd_packets/00067813 [11:39:47]OFD Sender: To server: pG, [11:39:47]CommunicateWithHost lk.salyk.kg:30040 [11:39:47]ConnectInit lk.salyk.kg [11:39:47]written 0, free lines is 4095 [11:39:47]Connected sock=10 [11:39:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 42 01 00 00 F8 B8 3A 01 04 73 5A 03 01 00 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 3C 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 D0 B5 D1 82 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 4E 69 74 72 6F 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 86 93 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 E5 08 01 00 35 04 06 00 2A C9 F1 21 71 56 7C 03 0E E7 71 46 11 C6 [11:39:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 10 A0 47 00 8C 6A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 E5 08 01 00 F4 03 04 00 5C 3B 48 66 B6 04 01 00 00 45 4B 77 FF 48 2E A6 52 [11:39:47]CommunicateWithHost err = 0 [11:39:47]CheckOFDResponse [11:39:47]1017 (14) - 77093643461234 [11:39:47]1041 (16) - 0000000000871829 [11:39:47]1040 (4) - 67813 [11:39:47]1012 (4) - 18.05.2024 05:23 [11:39:47]1206 (1) - 0 [11:39:47]OFD Sender: Remove packet 67813 [11:39:47]ProducePacketName [11:39:47]name=ofd_packets/00067813 [11:39:47]NVStorageDeleteData [11:39:47]Write to MH i2c: 01 00 00 27 30 57 [11:39:47]Write i2c OK [11:39:47]MH_I2C_Read... [11:39:47]Read from MH i2c: 01 [11:39:47]MH_I2C_Read... [11:39:47]Read from MH i2c: 01 07 00 [11:39:47]MH_I2C_Read... [11:39:47]Read from MH i2c: 01 07 00 27 30 00 00 00 00 00 D5 0C 3F [11:39:47]RasterBufferAndPrint [11:39:47]line [11:39:47]line [11:39:47]line [11:39:47]line [11:39:47]line [11:39:47]written 0, free lines is 3290 [11:39:47]MH_Cut [11:39:47]Write to MH i2c: D1 01 00 2E 30 01 30 [11:39:47]Write i2c OK [11:39:47]MH_I2C_Read... [11:39:47]Read from MH i2c: D1 [11:39:47]MH_I2C_Read... [11:39:47]Read from MH i2c: D1 01 00 [11:39:47]MH_I2C_Read... [11:39:47]Read from MH i2c: D1 01 00 2E 30 00 2F [11:39:47]Write to MH i2c: 01 00 00 2F 30 5F [11:39:47]Write i2c OK [11:39:47]MH_I2C_Read... [11:39:48]OFD Sender: No OFD packet to send [11:39:48]*** Cut start [11:39:48]*** Purtial cut [11:39:48]*** CUTSNS_PIN = 0 [11:39:48]*** Stage 1: CUTSNS_PIN = 1 [11:39:50]Read from MH i2c: 01 [11:39:50]MH_I2C_Read... [11:39:50]*** Stop cut motor [11:39:50]*** Cut end [11:39:50]Read from MH i2c: 01 07 00 [11:39:50]MH_I2C_Read... [11:39:50]Read from MH i2c: 01 07 00 2F 30 00 00 00 00 00 FF 0F 74 [11:39:50]process_action close_receipt done [11:39:50]requested_data is exist [11:39:50]produce_requested_data [11:39:50]requested_item fm.sn is exist - process it [11:39:50]wFMCommunicate request_size=4 [11:39:50]MH_SAM_APDU [11:39:50]CAPDU: 80 11 00 00 [11:39:50]Write to MH i2c: E2 08 00 30 30 80 11 00 00 00 00 00 00 DA [11:39:50]Write i2c OK [11:39:50]MH_I2C_Read... [11:39:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:39:50]Read from MH i2c: E2 [11:39:50]MH_I2C_Read... [11:39:50]Read from MH i2c: E2 17 00 [11:39:50]MH_I2C_Read... [11:39:50]Read from MH i2c: E2 17 00 30 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 30 [11:39:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [11:39:50]wFMCommunicate OK [11:39:50]requested_item fd.num is exist - process it [11:39:50]SAM_PROTO_GetFieldsCounters [11:39:50]wFMCommunicate request_size=4 [11:39:50]MH_SAM_APDU [11:39:50]CAPDU: 80 13 00 00 [11:39:50]Write to MH i2c: E2 08 00 31 30 80 13 00 00 00 00 00 00 DD [11:39:50]Write i2c OK [11:39:50]MH_I2C_Read... [11:39:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:39:50]Read from MH i2c: E2 [11:39:50]MH_I2C_Read... [11:39:50]Read from MH i2c: E2 62 00 [11:39:50]MH_I2C_Read... [11:39:50]Read from MH i2c: E2 62 00 31 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 E5 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 34 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 35 00 00 00 19 04 04 00 00 00 00 00 90 00 F5 [11:39:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 E5 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 34 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 35 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:39:50]wFMCommunicate OK [11:39:50]SAM_PROTO_GetFieldsCounters done [11:39:50]requested_item shift.num is exist - process it [11:39:50]requested_item shift.opened is exist - process it [11:39:50]req_shift_opened [11:39:50]FM_GetShiftState [11:39:50]SAM_PROTO_GetShiftState [11:39:50]wFMCommunicate request_size=4 [11:39:50]MH_SAM_APDU [11:39:50]CAPDU: 80 13 01 00 [11:39:50]Write to MH i2c: E2 08 00 32 30 80 13 01 00 00 00 00 00 DF [11:39:50]Write i2c OK [11:39:50]MH_I2C_Read... [11:39:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:39:50]Read from MH i2c: E2 [11:39:50]MH_I2C_Read... [11:39:50]Read from MH i2c: E2 0E 00 [11:39:50]MH_I2C_Read... [11:39:50]Read from MH i2c: E2 0E 00 32 30 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 46 [11:39:50]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [11:39:50]wFMCommunicate OK [11:39:50]SAM_PROTO_GetShiftState done [11:39:50]FM_GetShiftState done [11:39:50]req_shift_opened done [11:39:50]requested_item shift.open_date is exist - process it [11:39:50]req_shift_open_date [11:39:50]req_shift_open_date done [11:39:50]produce_requested_data done [11:39:50]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67813,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [11:39:50]process_action_free close_receipt [11:39:50]json_value_free [11:39:50]json_value_free done [11:39:50]process_json_proto returns [11:39:50]Send response to host [11:39:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67813,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [11:39:50]free response buf [11:39:50]execute_script done [11:39:50]execute_script returns [11:39:50]free content buf [11:39:50]Sock 9.Close socket [11:39:50]Sock 9.Thread stoped [11:39:53]OFD Sender: No OFD packet to send [11:39:58]OFD Sender: No OFD packet to send [11:40:03]OFD Sender: No OFD packet to send [11:40:08]OFD Sender: No OFD packet to send [11:40:13]OFD Sender: No OFD packet to send [11:40:18]OFD Sender: No OFD packet to send [11:40:23]OFD Sender: No OFD packet to send [11:40:28]OFD Sender: No OFD packet to send [11:40:33]OFD Sender: No OFD packet to send [11:40:38]OFD Sender: No OFD packet to send [11:40:43]OFD Sender: No OFD packet to send [11:40:48]OFD Sender: No OFD packet to send [11:40:53]OFD Sender: No OFD packet to send [11:40:58]OFD Sender: No OFD packet to send [11:41:02]accept exits with 7 [11:41:02]New connection [11:41:02]New thread 3066608996 created [11:41:02]Thread 3066752356 joined [11:41:02]Waiting for new connection... [11:41:02] Sock 7.Parse request [11:41:02]Sock 7.Check first char [11:41:02]Sock 7.First char is OK [11:41:02]request: POST /json_proto HTTP/1.0 [11:41:02]Method: POST [11:41:02]URL: /json_proto [11:41:02]Method is POST - this is cgi request [11:41:02]url: /json_proto [11:41:02]query_string will be loaded in cgi processing [11:41:02]execute_cgi json_proto POST (null) [11:41:02]execute_cgi path=json_proto method=POST [11:41:02]POST find Content-Length [11:41:02]Host: 172.17.41.195:8080 [11:41:02]Content-Length: 800 [11:41:02]Content-Type: application/json [11:41:02] [11:41:02]POST finish read [11:41:02]Found Content-Length = 800 [11:41:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)508023", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 13.390, "sum" : 1000.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.23 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:41:02]execute_script... [11:41:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)508023", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 13.390, "sum" : 1000.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.23 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:41:02]POST & json_proto [11:41:02]process_json_proto [11:41:02]json parsed OK: [11:41:02]protocol is kg_v1.0 [11:41:02]action value=close_receipt [11:41:02]process_action close_receipt [11:41:02]cmd_close_receipt [11:41:02]MH_GetDate [11:41:02]Write to MH i2c: F0 00 00 33 30 52 [11:41:02]Write i2c OK [11:41:02]MH_I2C_Read... [11:41:02]Read from MH i2c: F0 [11:41:02]MH_I2C_Read... [11:41:02]Read from MH i2c: F0 09 00 [11:41:02]MH_I2C_Read... [11:41:02]Read from MH i2c: F0 09 00 33 30 00 D4 93 48 66 FC 21 6F 64 60 [11:41:02]GetLastDocTimeStamp 1716032390 [11:41:02]current date 1716032468 [11:41:02]FM_GetShiftState [11:41:02]SAM_PROTO_GetShiftState [11:41:02]wFMCommunicate request_size=4 [11:41:02]MH_SAM_APDU [11:41:02]CAPDU: 80 13 01 00 [11:41:02]Write to MH i2c: E2 08 00 34 30 80 13 01 00 00 00 00 00 E1 [11:41:02]Write i2c OK [11:41:02]MH_I2C_Read... [11:41:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:41:02]Read from MH i2c: E2 [11:41:02]MH_I2C_Read... [11:41:02]Read from MH i2c: E2 0E 00 [11:41:02]MH_I2C_Read... [11:41:02]Read from MH i2c: E2 0E 00 34 30 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 48 [11:41:02]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [11:41:03]wFMCommunicate OK [11:41:03]SAM_PROTO_GetShiftState done [11:41:03]FM_GetShiftState done [11:41:03]opened in 1715991483 [11:41:03]opened+sec_in_day 1716077883 [11:41:03]quantity*price = 100023 [11:41:03]sum+1 = 100024 [11:41:03]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.23 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.23 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 53 18.05.2024 11:41 Смена: 359 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67814 ФПД: 110213791556357 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T114108&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67814&fm=110213791556357&tin=02508201610067®Number=0000000000091845&sum=100023 [11:41:04]StoreToDocumentArchive [11:41:04]shift 359 fd 67814 [11:41:04]save to /storage/0359/doc_00067814 [11:41:04]save last doc name /storage/0359/doc_00067814 to /storage/kkm_last_doc_name [11:41:04]save OK [11:41:04]Clear old archive folders... [11:41:04]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:41:04]tlvbuf is 01B84780 [11:41:04]SAM_PROTO_ClearQueue [11:41:04]wFMCommunicate request_size=4 [11:41:04]MH_SAM_APDU [11:41:04]CAPDU: 80 09 00 00 [11:41:04]Write to MH i2c: E2 08 00 41 30 80 09 00 00 00 00 00 00 E3 [11:41:04]Write i2c OK [11:41:04]MH_I2C_Read... [11:41:04]Read from MH i2c: E2 [11:41:04]MH_I2C_Read... [11:41:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:41:04]Read from MH i2c: E2 03 00 [11:41:04]MH_I2C_Read... [11:41:04]Read from MH i2c: E2 03 00 41 30 00 90 00 E5 [11:41:04]RAPDU: 90 00 [11:41:04]wFMCommunicate OK [11:41:04]SAM_PROTO_ClearQueue done [11:41:04]KKMCreateOFDPacket [11:41:04]OFDProtocolAddRootSTLVToBuf [11:41:04]FM_MakeSignedData [11:41:04]FM_MakeSignedData [11:41:04]SAM_PROTO_SignData [11:41:04]wFMCommunicate request_size=4 [11:41:04]MH_SAM_APDU [11:41:04]CAPDU: 80 0D 01 02 [11:41:04]Write to MH i2c: E2 08 00 42 30 80 0D 01 02 00 00 00 00 EB [11:41:04]Write i2c OK [11:41:04]MH_I2C_Read... [11:41:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:41:04]Read from MH i2c: E2 [11:41:04]MH_I2C_Read... [11:41:04]Read from MH i2c: E2 03 00 [11:41:04]MH_I2C_Read... [11:41:04]Read from MH i2c: E2 03 00 42 30 00 90 00 E6 [11:41:04]RAPDU: 90 00 [11:41:04]wFMCommunicate OK [11:41:04]wFMCommunicate request_size=255 [11:41:04]MH_SAM_APDU [11:41:04]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4E 34 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 B7 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B7 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B7 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 D4 93 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 E6 08 01 00 35 04 06 00 64 3D 25 E5 [11:41:04]Write to MH i2c: E2 02 01 43 30 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4E 34 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 B7 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B7 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B7 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 D4 93 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 E6 08 01 00 35 04 06 00 64 3D 25 E5 00 00 3F [11:41:04]Write i2c OK [11:41:04]MH_I2C_Read... [11:41:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:41:04]Read from MH i2c: E2 [11:41:04]MH_I2C_Read... [11:41:04]Read from MH i2c: E2 03 00 [11:41:04]MH_I2C_Read... [11:41:04]Read from MH i2c: E2 03 00 43 30 00 90 00 E7 [11:41:04]RAPDU: 90 00 [11:41:04]wFMCommunicate OK [11:41:04]wFMCommunicate request_size=7 [11:41:04]MH_SAM_APDU [11:41:04]CAPDU: 80 0D 02 02 02 23 05 [11:41:04]Write to MH i2c: E2 0A 00 44 30 80 0D 02 02 02 00 23 05 00 00 1A [11:41:04]Write i2c OK [11:41:04]MH_I2C_Read... [11:41:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:41:04]Read from MH i2c: E2 [11:41:04]MH_I2C_Read... [11:41:04]Read from MH i2c: E2 03 00 [11:41:04]MH_I2C_Read... [11:41:04]Read from MH i2c: E2 03 00 44 30 00 90 00 E8 [11:41:04]RAPDU: 90 00 [11:41:04]wFMCommunicate OK [11:41:04]wFMCommunicate request_size=4 [11:41:04]MH_SAM_APDU [11:41:04]CAPDU: 80 0D 03 02 [11:41:04]Write to MH i2c: E2 08 00 45 30 80 0D 03 02 00 00 00 00 F0 [11:41:04]Write i2c OK [11:41:04]MH_I2C_Read... [11:41:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:41:04]Read from MH i2c: E2 [11:41:04]MH_I2C_Read... [11:41:04]Read from MH i2c: E2 0B 00 [11:41:04]MH_I2C_Read... [11:41:04]Read from MH i2c: E2 0B 00 45 30 00 29 54 52 FA 26 3C B5 34 90 00 05 [11:41:04]RAPDU: 29 54 52 FA 26 3C B5 34 90 00 [11:41:04]wFMCommunicate OK [11:41:04]SAM_PROTO_SignData done [11:41:04]FM_MakeSignedData done [11:41:04]CreateOFDProtocolMessage [11:41:04]wFMCommunicate request_size=4 [11:41:04]MH_SAM_APDU [11:41:04]CAPDU: 80 11 00 00 [11:41:04]Write to MH i2c: E2 08 00 46 30 80 11 00 00 00 00 00 00 F0 [11:41:04]Write i2c OK [11:41:04]MH_I2C_Read... [11:41:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:41:04]Read from MH i2c: E2 [11:41:04]MH_I2C_Read... [11:41:04]Read from MH i2c: E2 17 00 [11:41:04]MH_I2C_Read... [11:41:04]Read from MH i2c: E2 17 00 46 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 46 [11:41:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [11:41:04]wFMCommunicate OK [11:41:04]CreateOFDProtocolMessage done [11:41:04]OFDSenderStorePacket 67814 [11:41:04]StoreOFDPacket docnum=67814 [11:41:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 E4 5D 04 01 CA 08 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4E 34 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 B7 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B7 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B7 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 D4 93 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 E6 08 01 00 35 04 06 00 64 3D 25 E5 23 05 29 54 52 FA 26 3C B5 34 [11:41:04]CheckFolder [11:41:04]dirname=/storage/ofd_packets [11:41:04]CheckFolder done [11:41:04]ProducePacketName [11:41:04]name=ofd_packets/00067814 [11:41:04]NVStorageSaveData ofd_packets/00067814 [11:41:04]File name is /storage/ofd_packets/00067814 [11:41:04]Write 298 bytes [11:41:04]NVStorageSaveData done [11:41:04]OFDSenderStorePacket done [11:41:04]KKMCreateOFDPacket done [11:41:04]NVStorageSaveData kkm_last_timestamp [11:41:04]File name is /storage/kkm_last_timestamp [11:41:04]Write 4 bytes [11:41:04]NVStorageSaveData done [11:41:04]ExternCall_PrintAddStr [11:41:04]wPrintStart [11:41:04]Write to MH i2c: 01 00 00 47 30 77 [11:41:04]Write i2c OK [11:41:04]MH_I2C_Read... [11:41:04]Read from MH i2c: 01 [11:41:04]MH_I2C_Read... [11:41:04]Read from MH i2c: 01 07 00 [11:41:04]MH_I2C_Read... [11:41:04]Read from MH i2c: 01 07 00 47 30 00 00 00 00 00 FF 0F 8C [11:41:04]RasterBufferAndPrint [11:41:04]line Счет N : (1)508023 [11:41:04]line ИНН: 02508201610067 [11:41:04]line Контрольно-Кассовый Чек [11:41:04]line ПРОДАЖА [11:41:04]line ТРК (МРК, ГНК) : 11 [11:41:04]line Товар: 2710194210 [11:41:04]line ДТ-К-5 [11:41:04]line 13.390 * 74.70 [11:41:04]line = 1000.23 [11:41:04]line НДС 12% НСП 1% [11:41:04]line > о реализуемом товаре [11:41:04]line ИТОГО: 1000.23 [11:41:04]line НСП 1% : 8.85 [11:41:04]line НДС 12% : 106.22 [11:41:04]line Наличными: 0.00 [11:41:04]line Безнал.: 1000.23 [11:41:04]line Место: АЗС № 91 "Партнер Нефть" [11:41:04]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [11:41:04]line СНО: Общий режим [11:41:04]line Чек 53 18.05.2024 11:41 [11:41:04]line Смена: 359 ФФД: 1.0 [11:41:04]line ЗНМ: 0300000119 [11:41:04]line РНМ: 0000000000091845 [11:41:04]line Версия ККМ: 001 [11:41:04]line Платежная система: O! деньги [11:41:04]line ФМ: 0000000000871829 [11:41:04]line ФД: 67814 [11:41:04]line ФПД: 110213791556357 [11:41:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T114108&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67814&fm=110213791556357&tin=02508201610067®Number=0000000000091845&sum=100023 [11:41:04]OFD Sender: Processing packet 67814 [packets to send 35, broken 34] [11:41:04]ProducePacketName [11:41:04]name=ofd_packets/00067814 [11:41:04]OFD Sender: To server: pG, [11:41:04]CommunicateWithHost lk.salyk.kg:30040 [11:41:04]ConnectInit lk.salyk.kg [11:41:04]written 0, free lines is 4095 [11:41:05]Connected sock=10 [11:41:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 E4 5D 04 01 CA 08 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4E 34 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 B7 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B7 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B7 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 D4 93 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 E6 08 01 00 35 04 06 00 64 3D 25 E5 23 05 29 54 52 FA 26 3C B5 34 [11:41:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 AA 6E 47 00 68 68 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 E6 08 01 00 F4 03 04 00 A9 3B 48 66 B6 04 01 00 00 51 1E C9 D0 32 B1 51 EF [11:41:05]CommunicateWithHost err = 0 [11:41:05]CheckOFDResponse [11:41:05]1017 (14) - 77093643461234 [11:41:05]1041 (16) - 0000000000871829 [11:41:05]1040 (4) - 67814 [11:41:05]1012 (4) - 18.05.2024 05:24 [11:41:05]1206 (1) - 0 [11:41:05]OFD Sender: Remove packet 67814 [11:41:05]ProducePacketName [11:41:05]name=ofd_packets/00067814 [11:41:05]NVStorageDeleteData [11:41:05]Write to MH i2c: 01 00 00 70 30 A0 [11:41:05]Write i2c OK [11:41:05]MH_I2C_Read... [11:41:05]Read from MH i2c: 01 [11:41:05]MH_I2C_Read... [11:41:05]Read from MH i2c: 01 07 00 [11:41:05]MH_I2C_Read... [11:41:05]Read from MH i2c: 01 07 00 70 30 00 00 00 00 00 D3 0C 86 [11:41:05]RasterBufferAndPrint [11:41:05]line [11:41:05]line [11:41:05]line [11:41:05]line [11:41:05]line [11:41:05]written 0, free lines is 3288 [11:41:05]MH_Cut [11:41:05]Write to MH i2c: D1 01 00 77 30 01 79 [11:41:05]Write i2c OK [11:41:05]MH_I2C_Read... [11:41:05]Read from MH i2c: D1 [11:41:05]MH_I2C_Read... [11:41:05]Read from MH i2c: D1 01 00 [11:41:05]MH_I2C_Read... [11:41:05]Read from MH i2c: D1 01 00 77 30 00 78 [11:41:05]Write to MH i2c: 01 00 00 78 30 A8 [11:41:05]Write i2c OK [11:41:05]MH_I2C_Read... [11:41:05]OFD Sender: No OFD packet to send [11:41:06]*** Cut start [11:41:06]*** Purtial cut [11:41:06]*** Stage 1: CUTSNS_PIN = 1 [11:41:06]Read from MH i2c: 01 [11:41:06]MH_I2C_Read... [11:41:06]*** Stop cut motor [11:41:06]*** Cut end [11:41:06]Read from MH i2c: 01 07 00 [11:41:06]MH_I2C_Read... [11:41:06]Read from MH i2c: 01 07 00 78 30 00 00 00 00 00 FF 0F BD [11:41:06]process_action close_receipt done [11:41:06]requested_data is exist [11:41:06]produce_requested_data [11:41:06]requested_item fm.sn is exist - process it [11:41:06]wFMCommunicate request_size=4 [11:41:06]MH_SAM_APDU [11:41:06]CAPDU: 80 11 00 00 [11:41:06]Write to MH i2c: E2 08 00 79 30 80 11 00 00 00 00 00 00 23 [11:41:06]Write i2c OK [11:41:06]MH_I2C_Read... [11:41:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:41:06]Read from MH i2c: E2 [11:41:06]MH_I2C_Read... [11:41:06]Read from MH i2c: E2 17 00 [11:41:06]MH_I2C_Read... [11:41:06]Read from MH i2c: E2 17 00 79 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 79 [11:41:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [11:41:06]wFMCommunicate OK [11:41:06]requested_item fd.num is exist - process it [11:41:06]SAM_PROTO_GetFieldsCounters [11:41:06]wFMCommunicate request_size=4 [11:41:06]MH_SAM_APDU [11:41:06]CAPDU: 80 13 00 00 [11:41:06]Write to MH i2c: E2 08 00 7A 30 80 13 00 00 00 00 00 00 26 [11:41:06]Write i2c OK [11:41:06]MH_I2C_Read... [11:41:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:41:06]Read from MH i2c: E2 [11:41:06]MH_I2C_Read... [11:41:06]Read from MH i2c: E2 62 00 [11:41:06]MH_I2C_Read... [11:41:06]Read from MH i2c: E2 62 00 7A 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 E6 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 35 00 00 00 5E 04 04 00 35 00 00 00 57 04 04 00 36 00 00 00 19 04 04 00 00 00 00 00 90 00 42 [11:41:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 E6 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 35 00 00 00 5E 04 04 00 35 00 00 00 57 04 04 00 36 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:41:06]wFMCommunicate OK [11:41:06]SAM_PROTO_GetFieldsCounters done [11:41:06]requested_item shift.num is exist - process it [11:41:06]requested_item shift.opened is exist - process it [11:41:06]req_shift_opened [11:41:06]FM_GetShiftState [11:41:06]SAM_PROTO_GetShiftState [11:41:06]wFMCommunicate request_size=4 [11:41:06]MH_SAM_APDU [11:41:06]CAPDU: 80 13 01 00 [11:41:06]Write to MH i2c: E2 08 00 7B 30 80 13 01 00 00 00 00 00 28 [11:41:06]Write i2c OK [11:41:06]MH_I2C_Read... [11:41:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:41:06]Read from MH i2c: E2 [11:41:06]MH_I2C_Read... [11:41:06]Read from MH i2c: E2 0E 00 [11:41:06]MH_I2C_Read... [11:41:06]Read from MH i2c: E2 0E 00 7B 30 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 8F [11:41:06]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [11:41:06]wFMCommunicate OK [11:41:06]SAM_PROTO_GetShiftState done [11:41:06]FM_GetShiftState done [11:41:06]req_shift_opened done [11:41:06]requested_item shift.open_date is exist - process it [11:41:06]req_shift_open_date [11:41:06]req_shift_open_date done [11:41:06]produce_requested_data done [11:41:06]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67814,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [11:41:06]process_action_free close_receipt [11:41:06]json_value_free [11:41:06]json_value_free done [11:41:06]process_json_proto returns [11:41:06]Send response to host [11:41:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67814,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [11:41:06]free response buf [11:41:06]execute_script done [11:41:06]execute_script returns [11:41:06]free content buf [11:41:06]Sock 7.Close socket [11:41:06]Sock 7.Thread stoped [11:41:10]OFD Sender: No OFD packet to send [11:41:15]OFD Sender: No OFD packet to send [11:41:20]OFD Sender: No OFD packet to send [11:41:25]OFD Sender: No OFD packet to send [11:41:30]OFD Sender: No OFD packet to send [11:41:33]accept exits with 9 [11:41:33]New connection [11:41:33]New thread 3066752356 created [11:41:33]Thread 3066608996 joined [11:41:33]Waiting for new connection... [11:41:33] Sock 9.Parse request [11:41:33]Sock 9.Check first char [11:41:33]Sock 9.First char is OK [11:41:33]request: POST /json_proto HTTP/1.0 [11:41:33]Method: POST [11:41:33]URL: /json_proto [11:41:33]Method is POST - this is cgi request [11:41:33]url: /json_proto [11:41:33]query_string will be loaded in cgi processing [11:41:33]execute_cgi json_proto POST (null) [11:41:33]execute_cgi path=json_proto method=POST [11:41:33]POST find Content-Length [11:41:33]Host: 172.17.41.195:8080 [11:41:33]Content-Length: 796 [11:41:33]Content-Type: application/json [11:41:33] [11:41:33]POST finish read [11:41:33]Found Content-Length = 796 [11:41:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)508025", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.80, "quantity" : 22.130, "sum" : 1500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:41:33]execute_script... [11:41:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)508025", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.80, "quantity" : 22.130, "sum" : 1500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:41:33]POST & json_proto [11:41:33]process_json_proto [11:41:33]json parsed OK: [11:41:33]protocol is kg_v1.0 [11:41:33]action value=close_receipt [11:41:33]process_action close_receipt [11:41:33]cmd_close_receipt [11:41:33]MH_GetDate [11:41:33]Write to MH i2c: F0 00 00 7C 30 9B [11:41:33]Write i2c OK [11:41:33]MH_I2C_Read... [11:41:33]Read from MH i2c: F0 [11:41:33]MH_I2C_Read... [11:41:33]Read from MH i2c: F0 09 00 [11:41:33]MH_I2C_Read... [11:41:33]Read from MH i2c: F0 09 00 7C 30 00 F2 93 48 66 FC 21 6F 64 C7 [11:41:33]GetLastDocTimeStamp 1716032468 [11:41:33]current date 1716032498 [11:41:33]FM_GetShiftState [11:41:33]SAM_PROTO_GetShiftState [11:41:33]wFMCommunicate request_size=4 [11:41:33]MH_SAM_APDU [11:41:33]CAPDU: 80 13 01 00 [11:41:33]Write to MH i2c: E2 08 00 7D 30 80 13 01 00 00 00 00 00 2A [11:41:33]Write i2c OK [11:41:33]MH_I2C_Read... [11:41:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:41:33]Read from MH i2c: E2 [11:41:33]MH_I2C_Read... [11:41:33]Read from MH i2c: E2 0E 00 [11:41:33]MH_I2C_Read... [11:41:33]Read from MH i2c: E2 0E 00 7D 30 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 91 [11:41:33]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [11:41:33]wFMCommunicate OK [11:41:33]SAM_PROTO_GetShiftState done [11:41:33]FM_GetShiftState done [11:41:33]opened in 1715991483 [11:41:33]opened+sec_in_day 1716077883 [11:41:33]quantity*price = 150041 [11:41:33]sum+1 = 150042 [11:41:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.41 НСП 1% : 13.28 НДС 12% : 159.34 Наличными: 0.00 Безнал.: 1500.41 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 54 18.05.2024 11:41 Смена: 359 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67815 ФПД: 49882988473896 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T114138&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67815&fm=49882988473896&tin=02508201610067®Number=0000000000091845&sum=150041 [11:41:34]StoreToDocumentArchive [11:41:34]shift 359 fd 67815 [11:41:34]save to /storage/0359/doc_00067815 [11:41:34]save last doc name /storage/0359/doc_00067815 to /storage/kkm_last_doc_name [11:41:34]save OK [11:41:34]Clear old archive folders... [11:41:34]ProcessDocumentItem done err = 0, tmpTLVsize=252 [11:41:34]tlvbuf is 01BD4630 [11:41:34]SAM_PROTO_ClearQueue [11:41:34]wFMCommunicate request_size=4 [11:41:34]MH_SAM_APDU [11:41:34]CAPDU: 80 09 00 00 [11:41:34]Write to MH i2c: E2 08 00 8A 30 80 09 00 00 00 00 00 00 2C [11:41:34]Write i2c OK [11:41:34]MH_I2C_Read... [11:41:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:41:34]Read from MH i2c: E2 [11:41:34]MH_I2C_Read... [11:41:34]Read from MH i2c: E2 03 00 [11:41:34]MH_I2C_Read... [11:41:34]Read from MH i2c: E2 03 00 8A 30 00 90 00 2E [11:41:34]RAPDU: 90 00 [11:41:34]wFMCommunicate OK [11:41:34]SAM_PROTO_ClearQueue done [11:41:34]KKMCreateOFDPacket [11:41:34]OFDProtocolAddRootSTLVToBuf [11:41:34]FM_MakeSignedData [11:41:34]FM_MakeSignedData [11:41:34]SAM_PROTO_SignData [11:41:34]wFMCommunicate request_size=4 [11:41:34]MH_SAM_APDU [11:41:34]CAPDU: 80 0D 01 02 [11:41:34]Write to MH i2c: E2 08 00 8B 30 80 0D 01 02 00 00 00 00 34 [11:41:34]Write i2c OK [11:41:34]MH_I2C_Read... [11:41:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:41:34]Read from MH i2c: E2 [11:41:34]MH_I2C_Read... [11:41:34]Read from MH i2c: E2 03 00 [11:41:34]MH_I2C_Read... [11:41:34]Read from MH i2c: E2 03 00 8B 30 00 90 00 2F [11:41:34]RAPDU: 90 00 [11:41:34]wFMCommunicate OK [11:41:34]wFMCommunicate request_size=255 [11:41:34]MH_SAM_APDU [11:41:34]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 19 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 19 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 F2 93 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 E7 08 01 00 35 04 06 00 [11:41:34]Write to MH i2c: E2 02 01 8C 30 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 19 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 19 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 F2 93 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 E7 08 01 00 35 04 06 00 00 00 6C [11:41:34]Write i2c OK [11:41:34]MH_I2C_Read... [11:41:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:41:34]Read from MH i2c: E2 [11:41:34]MH_I2C_Read... [11:41:34]Read from MH i2c: E2 03 00 [11:41:34]MH_I2C_Read... [11:41:34]Read from MH i2c: E2 03 00 8C 30 00 90 00 30 [11:41:34]RAPDU: 90 00 [11:41:34]wFMCommunicate OK [11:41:34]wFMCommunicate request_size=11 [11:41:34]MH_SAM_APDU [11:41:34]CAPDU: 80 0D 02 02 06 2D 5E 49 CE EE 28 [11:41:34]Write to MH i2c: E2 0E 00 8D 30 80 0D 02 02 06 00 2D 5E 49 CE EE 28 00 00 FB [11:41:34]Write i2c OK [11:41:34]MH_I2C_Read... [11:41:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:41:34]Read from MH i2c: E2 [11:41:34]MH_I2C_Read... [11:41:34]Read from MH i2c: E2 03 00 [11:41:34]MH_I2C_Read... [11:41:34]Read from MH i2c: E2 03 00 8D 30 00 90 00 31 [11:41:34]RAPDU: 90 00 [11:41:34]wFMCommunicate OK [11:41:34]wFMCommunicate request_size=4 [11:41:34]MH_SAM_APDU [11:41:34]CAPDU: 80 0D 03 02 [11:41:34]Write to MH i2c: E2 08 00 8E 30 80 0D 03 02 00 00 00 00 39 [11:41:34]Write i2c OK [11:41:34]MH_I2C_Read... [11:41:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:41:34]Read from MH i2c: E2 [11:41:34]MH_I2C_Read... [11:41:34]Read from MH i2c: E2 0B 00 [11:41:34]MH_I2C_Read... [11:41:34]Read from MH i2c: E2 0B 00 8E 30 00 F1 F4 F4 5A 62 1E 03 59 90 00 49 [11:41:34]RAPDU: F1 F4 F4 5A 62 1E 03 59 90 00 [11:41:34]wFMCommunicate OK [11:41:34]SAM_PROTO_SignData done [11:41:34]FM_MakeSignedData done [11:41:34]CreateOFDProtocolMessage [11:41:34]wFMCommunicate request_size=4 [11:41:34]MH_SAM_APDU [11:41:34]CAPDU: 80 11 00 00 [11:41:34]Write to MH i2c: E2 08 00 8F 30 80 11 00 00 00 00 00 00 39 [11:41:34]Write i2c OK [11:41:34]MH_I2C_Read... [11:41:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:41:34]Read from MH i2c: E2 [11:41:34]MH_I2C_Read... [11:41:34]Read from MH i2c: E2 17 00 [11:41:34]MH_I2C_Read... [11:41:34]Read from MH i2c: E2 17 00 8F 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 8F [11:41:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [11:41:34]wFMCommunicate OK [11:41:34]CreateOFDProtocolMessage done [11:41:34]OFDSenderStorePacket 67815 [11:41:34]StoreOFDPacket docnum=67815 [11:41:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 01 00 00 24 2D 08 01 FB 8D 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 19 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 19 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 F2 93 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 E7 08 01 00 35 04 06 00 2D 5E 49 CE EE 28 F1 F4 F4 5A 62 1E 03 59 [11:41:34]CheckFolder [11:41:34]dirname=/storage/ofd_packets [11:41:34]CheckFolder done [11:41:34]ProducePacketName [11:41:34]name=ofd_packets/00067815 [11:41:34]NVStorageSaveData ofd_packets/00067815 [11:41:34]File name is /storage/ofd_packets/00067815 [11:41:34]Write 302 bytes [11:41:34]NVStorageSaveData done [11:41:34]OFDSenderStorePacket done [11:41:34]KKMCreateOFDPacket done [11:41:34]NVStorageSaveData kkm_last_timestamp [11:41:34]File name is /storage/kkm_last_timestamp [11:41:34]Write 4 bytes [11:41:34]NVStorageSaveData done [11:41:34]ExternCall_PrintAddStr [11:41:34]wPrintStart [11:41:34]Write to MH i2c: 01 00 00 90 30 C0 [11:41:34]Write i2c OK [11:41:34]MH_I2C_Read... [11:41:34]Read from MH i2c: 01 [11:41:34]MH_I2C_Read... [11:41:34]Read from MH i2c: 01 07 00 [11:41:34]MH_I2C_Read... [11:41:34]Read from MH i2c: 01 07 00 90 30 00 00 00 00 00 FF 0F D5 [11:41:34]RasterBufferAndPrint [11:41:34]line Счет N : (1)508025 [11:41:34]line ИНН: 02508201610067 [11:41:34]line Контрольно-Кассовый Чек [11:41:34]line ПРОДАЖА [11:41:34]line ТРК (МРК, ГНК) : 42 [11:41:34]line Товар: 2710124130 [11:41:34]line Super-92-К-5 [11:41:34]line 22.130 * 67.80 [11:41:34]line = 1500.41 [11:41:34]line НДС 12% НСП 1% [11:41:34]line > о реализуемом товаре [11:41:34]line ИТОГО: 1500.41 [11:41:34]line НСП 1% : 13.28 [11:41:34]line НДС 12% : 159.34 [11:41:34]line Наличными: 0.00 [11:41:34]line Безнал.: 1500.41 [11:41:34]line Место: АЗС № 91 "Партнер Нефть" [11:41:34]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [11:41:34]line СНО: Общий режим [11:41:34]line Чек 54 18.05.2024 11:41 [11:41:34]line Смена: 359 ФФД: 1.0 [11:41:34]line ЗНМ: 0300000119 [11:41:34]line РНМ: 0000000000091845 [11:41:34]line Версия ККМ: 001 [11:41:34]line Платежная система: O! деньги [11:41:34]line ФМ: 0000000000871829 [11:41:34]line ФД: 67815 [11:41:34]line ФПД: 49882988473896 [11:41:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T114138&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67815&fm=49882988473896&tin=02508201610067®Number=0000000000091845&sum=150041 [11:41:34]written 0, free lines is 4095 [11:41:34]OFD Sender: Processing packet 67815 [packets to send 35, broken 34] [11:41:34]ProducePacketName [11:41:34]name=ofd_packets/00067815 [11:41:35]OFD Sender: To server: pG, [11:41:35]CommunicateWithHost lk.salyk.kg:30040 [11:41:35]ConnectInit lk.salyk.kg [11:41:35]Connected sock=7 [11:41:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 01 00 00 24 2D 08 01 FB 8D 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 19 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 19 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 F2 93 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 E7 08 01 00 35 04 06 00 2D 5E 49 CE EE 28 F1 F4 F4 5A 62 1E 03 59 [11:41:35]Write to MH i2c: 01 00 00 B9 30 E9 [11:41:35]Write i2c OK [11:41:35]MH_I2C_Read... [11:41:35]Read from MH i2c: 01 [11:41:35]MH_I2C_Read... [11:41:35]Read from MH i2c: 01 07 00 [11:41:35]MH_I2C_Read... [11:41:35]Read from MH i2c: 01 07 00 B9 30 00 00 00 00 00 E4 0C E0 [11:41:35]RasterBufferAndPrint [11:41:35]line [11:41:35]line [11:41:35]line [11:41:35]line [11:41:35]line [11:41:35]written 0, free lines is 3305 [11:41:35]MH_Cut [11:41:35]Write to MH i2c: D1 01 00 C0 30 01 C2 [11:41:35]Write i2c OK [11:41:35]MH_I2C_Read... [11:41:35]Read from MH i2c: D1 [11:41:35]MH_I2C_Read... [11:41:35]Read from MH i2c: D1 01 00 [11:41:35]MH_I2C_Read... [11:41:35]Read from MH i2c: D1 01 00 C0 30 00 C1 [11:41:35]Write to MH i2c: 01 00 00 C1 30 F1 [11:41:35]Write i2c OK [11:41:35]MH_I2C_Read... [11:41:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 AA 51 47 00 8E 1F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 E7 08 01 00 F4 03 04 00 C7 3B 48 66 B6 04 01 00 00 2C C1 39 2E 21 1E 2A 32 [11:41:35]CommunicateWithHost err = 0 [11:41:35]CheckOFDResponse [11:41:35]1017 (14) - 77093643461234 [11:41:35]1041 (16) - 0000000000871829 [11:41:35]1040 (4) - 67815 [11:41:35]1012 (4) - 18.05.2024 05:25 [11:41:35]1206 (1) - 0 [11:41:35]OFD Sender: Remove packet 67815 [11:41:35]ProducePacketName [11:41:35]name=ofd_packets/00067815 [11:41:35]NVStorageDeleteData [11:41:36]OFD Sender: No OFD packet to send [11:41:36]*** Cut start [11:41:36]*** Purtial cut [11:41:36]*** CUTSNS_PIN = 0 [11:41:36]*** Stage 1: CUTSNS_PIN = 1 [11:41:38]Read from MH i2c: 01 [11:41:38]MH_I2C_Read... [11:41:38]*** Stop cut motor [11:41:38]*** Cut end [11:41:38]Read from MH i2c: 01 07 00 [11:41:38]MH_I2C_Read... [11:41:38]Read from MH i2c: 01 07 00 C1 30 00 00 00 00 00 FF 0F 06 [11:41:38]process_action close_receipt done [11:41:38]requested_data is exist [11:41:38]produce_requested_data [11:41:38]requested_item fm.sn is exist - process it [11:41:38]wFMCommunicate request_size=4 [11:41:38]MH_SAM_APDU [11:41:38]CAPDU: 80 11 00 00 [11:41:38]Write to MH i2c: E2 08 00 C2 30 80 11 00 00 00 00 00 00 6C [11:41:38]Write i2c OK [11:41:38]MH_I2C_Read... [11:41:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:41:38]Read from MH i2c: E2 [11:41:38]MH_I2C_Read... [11:41:38]Read from MH i2c: E2 17 00 [11:41:38]MH_I2C_Read... [11:41:38]Read from MH i2c: E2 17 00 C2 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 C2 [11:41:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [11:41:38]wFMCommunicate OK [11:41:38]requested_item fd.num is exist - process it [11:41:38]SAM_PROTO_GetFieldsCounters [11:41:38]wFMCommunicate request_size=4 [11:41:38]MH_SAM_APDU [11:41:38]CAPDU: 80 13 00 00 [11:41:38]Write to MH i2c: E2 08 00 C3 30 80 13 00 00 00 00 00 00 6F [11:41:38]Write i2c OK [11:41:38]MH_I2C_Read... [11:41:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:41:38]Read from MH i2c: E2 [11:41:38]MH_I2C_Read... [11:41:38]Read from MH i2c: E2 62 00 [11:41:38]MH_I2C_Read... [11:41:38]Read from MH i2c: E2 62 00 C3 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 E7 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 8F [11:41:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 E7 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:41:38]wFMCommunicate OK [11:41:38]SAM_PROTO_GetFieldsCounters done [11:41:38]requested_item shift.num is exist - process it [11:41:38]requested_item shift.opened is exist - process it [11:41:38]req_shift_opened [11:41:38]FM_GetShiftState [11:41:38]SAM_PROTO_GetShiftState [11:41:38]wFMCommunicate request_size=4 [11:41:38]MH_SAM_APDU [11:41:38]CAPDU: 80 13 01 00 [11:41:38]Write to MH i2c: E2 08 00 C4 30 80 13 01 00 00 00 00 00 71 [11:41:38]Write i2c OK [11:41:38]MH_I2C_Read... [11:41:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:41:38]Read from MH i2c: E2 [11:41:38]MH_I2C_Read... [11:41:38]Read from MH i2c: E2 0E 00 [11:41:38]MH_I2C_Read... [11:41:38]Read from MH i2c: E2 0E 00 C4 30 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 D8 [11:41:38]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [11:41:38]wFMCommunicate OK [11:41:38]SAM_PROTO_GetShiftState done [11:41:38]FM_GetShiftState done [11:41:38]req_shift_opened done [11:41:38]requested_item shift.open_date is exist - process it [11:41:38]req_shift_open_date [11:41:38]req_shift_open_date done [11:41:38]produce_requested_data done [11:41:38]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67815,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [11:41:38]process_action_free close_receipt [11:41:38]json_value_free [11:41:38]json_value_free done [11:41:38]process_json_proto returns [11:41:38]Send response to host [11:41:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67815,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [11:41:38]free response buf [11:41:38]execute_script done [11:41:38]execute_script returns [11:41:38]free content buf [11:41:38]Sock 9.Close socket [11:41:38]Sock 9.Thread stoped [11:41:41]OFD Sender: No OFD packet to send [11:41:46]OFD Sender: No OFD packet to send [11:41:51]OFD Sender: No OFD packet to send [11:41:56]OFD Sender: No OFD packet to send [11:42:01]OFD Sender: No OFD packet to send [11:42:06]OFD Sender: No OFD packet to send [11:42:11]OFD Sender: No OFD packet to send [11:42:16]OFD Sender: No OFD packet to send [11:42:21]OFD Sender: No OFD packet to send [11:42:26]OFD Sender: No OFD packet to send [11:42:31]OFD Sender: No OFD packet to send [11:42:36]OFD Sender: No OFD packet to send [11:42:36]accept exits with 10 [11:42:36]New connection [11:42:36]New thread 3066608996 created [11:42:36]Thread 3066752356 joined [11:42:36]Waiting for new connection... [11:42:36] Sock 10.Parse request [11:42:36]Sock 10.Check first char [11:42:36]Sock 10.First char is OK [11:42:36]request: POST /json_proto HTTP/1.0 [11:42:36]Method: POST [11:42:36]URL: /json_proto [11:42:36]Method is POST - this is cgi request [11:42:36]url: /json_proto [11:42:36]query_string will be loaded in cgi processing [11:42:36]execute_cgi json_proto POST (null) [11:42:36]execute_cgi path=json_proto method=POST [11:42:36]POST find Content-Length [11:42:36]Host: 172.17.41.195:8080 [11:42:36]Content-Length: 1217 [11:42:36]Content-Type: application/json [11:42:36] [11:42:36]POST finish read [11:42:36]Found Content-Length = 1217 [11:42:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0440\u0441\u0442\u0430\u043D\u0431\u0435\u043A\u043E\u0432 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)508024\u000A18.05.2024 11:25\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 50.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 3735.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3972826\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:42:36]execute_script... [11:42:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0440\u0441\u0442\u0430\u043D\u0431\u0435\u043A\u043E\u0432 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)508024\u000A18.05.2024 11:25\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 50.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 3735.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3972826\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:42:36]POST & json_proto [11:42:36]process_json_proto [11:42:36]json parsed OK: [11:42:36]protocol is kg_v1.0 [11:42:36]action value=print_text [11:42:36]process_action print_text [11:42:36]cmd_print_text [11:42:36]ExternCall_PrintAddStr [11:42:36]wPrintStart [11:42:36]Write to MH i2c: 01 00 00 C5 30 F5 [11:42:36]Write i2c OK [11:42:36]MH_I2C_Read... [11:42:36]Read from MH i2c: 01 [11:42:36]MH_I2C_Read... [11:42:36]Read from MH i2c: 01 07 00 [11:42:36]MH_I2C_Read... [11:42:36]Read from MH i2c: 01 07 00 C5 30 00 00 00 00 00 FF 0F 0A [11:42:36]RasterBufferAndPrint [11:42:36]line *****ТОВАРНЫЙ ЧЕК***** [11:42:36]line АЗС-91 [11:42:36]line Партнер нефть [11:42:36]line 02508201610067 [11:42:36]line Кассир : Арстанбеков Н. [11:42:36]line Счет N : (1)508024 [11:42:36]line 18.05.2024 11:25 [11:42:36]line ПРОДАЖА [11:42:36]line ТРК (МРК, ГНК): 31 [11:42:36]line Вид ГСМ : 2710194210 [11:42:36]line ДТ-К-5 [11:42:36]line 50.000 x 74.70 [11:42:36]line ИТОГ: 3735.00 [11:42:36]line Тип оплаты: Талоны: Топливные Талоны [11:42:36]line 3972826 [11:42:36]line ______________________ [11:42:36]line (подпись) [11:42:36]written 0, free lines is 4095 [11:42:36]Write to MH i2c: 01 00 00 D9 30 09 [11:42:36]Write i2c OK [11:42:36]MH_I2C_Read... [11:42:36]Read from MH i2c: 01 [11:42:36]MH_I2C_Read... [11:42:36]Read from MH i2c: 01 07 00 [11:42:36]MH_I2C_Read... [11:42:36]Read from MH i2c: 01 07 00 D9 30 00 00 00 00 00 0F 0E 2D [11:42:36]RasterBufferAndPrint [11:42:36]line [11:42:36]line [11:42:36]line [11:42:36]line [11:42:36]line [11:42:36]written 0, free lines is 3601 [11:42:36]MH_Cut [11:42:36]Write to MH i2c: D1 01 00 E0 30 01 E2 [11:42:36]Write i2c OK [11:42:36]MH_I2C_Read... [11:42:36]Read from MH i2c: D1 [11:42:36]MH_I2C_Read... [11:42:36]Read from MH i2c: D1 01 00 [11:42:36]MH_I2C_Read... [11:42:36]Read from MH i2c: D1 01 00 E0 30 00 E1 [11:42:36]Write to MH i2c: 01 00 00 E1 30 11 [11:42:36]Write i2c OK [11:42:36]MH_I2C_Read... [11:42:36]*** Cut start [11:42:36]*** Purtial cut [11:42:36]*** Stage 1: CUTSNS_PIN = 1 [11:42:37]Read from MH i2c: 01 [11:42:37]MH_I2C_Read... [11:42:37]Read from MH i2c: 01 07 00 [11:42:37]MH_I2C_Read... [11:42:37]*** Stop cut motor [11:42:37]*** Cut end [11:42:37]Read from MH i2c: 01 07 00 E1 30 00 00 00 00 00 FF 0F 26 [11:42:37]process_action print_text done [11:42:37]requested_data is exist [11:42:37]produce_requested_data [11:42:37]requested_item fm.sn is exist - process it [11:42:37]wFMCommunicate request_size=4 [11:42:37]MH_SAM_APDU [11:42:37]CAPDU: 80 11 00 00 [11:42:37]Write to MH i2c: E2 08 00 E2 30 80 11 00 00 00 00 00 00 8C [11:42:37]Write i2c OK [11:42:37]MH_I2C_Read... [11:42:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:42:37]Read from MH i2c: E2 [11:42:37]MH_I2C_Read... [11:42:37]Read from MH i2c: E2 17 00 [11:42:37]MH_I2C_Read... [11:42:37]Read from MH i2c: E2 17 00 E2 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 E2 [11:42:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [11:42:37]wFMCommunicate OK [11:42:37]requested_item fd.num is exist - process it [11:42:37]SAM_PROTO_GetFieldsCounters [11:42:37]wFMCommunicate request_size=4 [11:42:37]MH_SAM_APDU [11:42:37]CAPDU: 80 13 00 00 [11:42:37]Write to MH i2c: E2 08 00 E3 30 80 13 00 00 00 00 00 00 8F [11:42:37]Write i2c OK [11:42:37]MH_I2C_Read... [11:42:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:42:37]Read from MH i2c: E2 [11:42:37]MH_I2C_Read... [11:42:37]Read from MH i2c: E2 62 00 [11:42:37]MH_I2C_Read... [11:42:37]Read from MH i2c: E2 62 00 E3 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 E7 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 AF [11:42:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 E7 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:42:37]wFMCommunicate OK [11:42:37]SAM_PROTO_GetFieldsCounters done [11:42:37]requested_item shift.num is exist - process it [11:42:37]requested_item shift.opened is exist - process it [11:42:37]req_shift_opened [11:42:37]FM_GetShiftState [11:42:37]SAM_PROTO_GetShiftState [11:42:37]wFMCommunicate request_size=4 [11:42:37]MH_SAM_APDU [11:42:37]CAPDU: 80 13 01 00 [11:42:37]Write to MH i2c: E2 08 00 E4 30 80 13 01 00 00 00 00 00 91 [11:42:37]Write i2c OK [11:42:37]MH_I2C_Read... [11:42:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:42:37]Read from MH i2c: E2 [11:42:37]MH_I2C_Read... [11:42:37]Read from MH i2c: E2 0E 00 [11:42:37]MH_I2C_Read... [11:42:37]Read from MH i2c: E2 0E 00 E4 30 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 F8 [11:42:37]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [11:42:37]wFMCommunicate OK [11:42:37]SAM_PROTO_GetShiftState done [11:42:37]FM_GetShiftState done [11:42:37]req_shift_opened done [11:42:37]requested_item shift.open_date is exist - process it [11:42:37]req_shift_open_date [11:42:37]req_shift_open_date done [11:42:37]produce_requested_data done [11:42:37]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67815,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [11:42:37]process_action_free print_text [11:42:37]json_value_free [11:42:37]json_value_free done [11:42:37]process_json_proto returns [11:42:37]Send response to host [11:42:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67815,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [11:42:37]free response buf [11:42:37]execute_script done [11:42:37]execute_script returns [11:42:37]free content buf [11:42:37]Sock 10.Close socket [11:42:37]Sock 10.Thread stoped [11:42:41]OFD Sender: No OFD packet to send [11:42:46]OFD Sender: No OFD packet to send [11:42:51]OFD Sender: No OFD packet to send [11:42:56]OFD Sender: No OFD packet to send [11:43:01]OFD Sender: No OFD packet to send [11:43:06]OFD Sender: No OFD packet to send [11:43:10]accept exits with 9 [11:43:10]New connection [11:43:10]New thread 3066752356 created [11:43:10]Thread 3066608996 joined [11:43:10]Waiting for new connection... [11:43:10] Sock 9.Parse request [11:43:10]Sock 9.Check first char [11:43:10]Sock 9.First char is OK [11:43:10]request: POST /json_proto HTTP/1.0 [11:43:10]Method: POST [11:43:10]URL: /json_proto [11:43:10]Method is POST - this is cgi request [11:43:10]url: /json_proto [11:43:10]query_string will be loaded in cgi processing [11:43:10]execute_cgi json_proto POST (null) [11:43:10]execute_cgi path=json_proto method=POST [11:43:10]POST find Content-Length [11:43:10]Host: 172.17.41.195:8080 [11:43:10]Content-Length: 800 [11:43:10]Content-Type: application/json [11:43:10] [11:43:10]POST finish read [11:43:10]Found Content-Length = 800 [11:43:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)508026", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 26.780, "sum" : 2000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.47 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:43:10]execute_script... [11:43:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)508026", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 26.780, "sum" : 2000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.47 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:43:10]POST & json_proto [11:43:10]process_json_proto [11:43:10]json parsed OK: [11:43:10]protocol is kg_v1.0 [11:43:10]action value=close_receipt [11:43:10]process_action close_receipt [11:43:10]cmd_close_receipt [11:43:10]MH_GetDate [11:43:10]Write to MH i2c: F0 00 00 E5 30 04 [11:43:10]Write i2c OK [11:43:10]MH_I2C_Read... [11:43:10]Read from MH i2c: F0 [11:43:10]MH_I2C_Read... [11:43:10]Read from MH i2c: F0 09 00 [11:43:10]MH_I2C_Read... [11:43:10]Read from MH i2c: F0 09 00 E5 30 00 53 94 48 66 FC 21 6F 64 92 [11:43:10]GetLastDocTimeStamp 1716032498 [11:43:10]current date 1716032595 [11:43:10]FM_GetShiftState [11:43:10]SAM_PROTO_GetShiftState [11:43:10]wFMCommunicate request_size=4 [11:43:10]MH_SAM_APDU [11:43:10]CAPDU: 80 13 01 00 [11:43:10]Write to MH i2c: E2 08 00 E6 30 80 13 01 00 00 00 00 00 93 [11:43:10]Write i2c OK [11:43:10]MH_I2C_Read... [11:43:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:43:10]Read from MH i2c: E2 [11:43:10]MH_I2C_Read... [11:43:10]Read from MH i2c: E2 0E 00 [11:43:10]MH_I2C_Read... [11:43:10]Read from MH i2c: E2 0E 00 E6 30 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 FA [11:43:10]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [11:43:10]wFMCommunicate OK [11:43:10]SAM_PROTO_GetShiftState done [11:43:10]FM_GetShiftState done [11:43:10]opened in 1715991483 [11:43:10]opened+sec_in_day 1716077883 [11:43:10]quantity*price = 200046 [11:43:10]sum+1 = 200048 [11:43:10]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.47 НСП 1% : 17.70 НДС 12% : 212.44 Наличными: 0.00 Безнал.: 2000.47 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 55 18.05.2024 11:43 Смена: 359 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67816 ФПД: 182811548078947 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T114316&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67816&fm=182811548078947&tin=02508201610067®Number=0000000000091845&sum=200047 [11:43:12]StoreToDocumentArchive [11:43:12]shift 359 fd 67816 [11:43:12]save to /storage/0359/doc_00067816 [11:43:12]save last doc name /storage/0359/doc_00067816 to /storage/kkm_last_doc_name [11:43:12]save OK [11:43:12]Clear old archive folders... [11:43:12]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:43:12]tlvbuf is B6D77070 [11:43:12]SAM_PROTO_ClearQueue [11:43:12]wFMCommunicate request_size=4 [11:43:12]MH_SAM_APDU [11:43:12]CAPDU: 80 09 00 00 [11:43:12]Write to MH i2c: E2 08 00 F3 30 80 09 00 00 00 00 00 00 95 [11:43:12]Write i2c OK [11:43:12]MH_I2C_Read... [11:43:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:43:12]Read from MH i2c: E2 [11:43:12]MH_I2C_Read... [11:43:12]Read from MH i2c: E2 03 00 [11:43:12]MH_I2C_Read... [11:43:12]Read from MH i2c: E2 03 00 F3 30 00 90 00 97 [11:43:12]RAPDU: 90 00 [11:43:12]wFMCommunicate OK [11:43:12]SAM_PROTO_ClearQueue done [11:43:12]KKMCreateOFDPacket [11:43:12]OFDProtocolAddRootSTLVToBuf [11:43:12]FM_MakeSignedData [11:43:12]FM_MakeSignedData [11:43:12]SAM_PROTO_SignData [11:43:12]wFMCommunicate request_size=4 [11:43:12]MH_SAM_APDU [11:43:12]CAPDU: 80 0D 01 02 [11:43:12]Write to MH i2c: E2 08 00 F4 30 80 0D 01 02 00 00 00 00 9D [11:43:12]Write i2c OK [11:43:12]MH_I2C_Read... [11:43:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:43:12]Read from MH i2c: E2 [11:43:12]MH_I2C_Read... [11:43:12]Read from MH i2c: E2 03 00 [11:43:12]MH_I2C_Read... [11:43:12]Read from MH i2c: E2 03 00 F4 30 00 90 00 98 [11:43:12]RAPDU: 90 00 [11:43:12]wFMCommunicate OK [11:43:12]wFMCommunicate request_size=255 [11:43:12]MH_SAM_APDU [11:43:12]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9C 68 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 6F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6F 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FC 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 54 94 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 E8 08 01 00 35 04 06 00 A6 44 21 62 [11:43:12]Write to MH i2c: E2 02 01 F5 30 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9C 68 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 6F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6F 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FC 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 54 94 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 E8 08 01 00 35 04 06 00 A6 44 21 62 00 00 9C [11:43:12]Write i2c OK [11:43:12]MH_I2C_Read... [11:43:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:43:12]Read from MH i2c: E2 [11:43:12]MH_I2C_Read... [11:43:12]Read from MH i2c: E2 03 00 [11:43:12]MH_I2C_Read... [11:43:12]Read from MH i2c: E2 03 00 F5 30 00 90 00 99 [11:43:12]RAPDU: 90 00 [11:43:12]wFMCommunicate OK [11:43:12]wFMCommunicate request_size=7 [11:43:12]MH_SAM_APDU [11:43:12]CAPDU: 80 0D 02 02 02 53 63 [11:43:12]Write to MH i2c: E2 0A 00 F6 30 80 0D 02 02 02 00 53 63 00 00 5A [11:43:12]Write i2c OK [11:43:12]MH_I2C_Read... [11:43:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:43:12]Read from MH i2c: E2 [11:43:12]MH_I2C_Read... [11:43:12]Read from MH i2c: E2 03 00 [11:43:12]MH_I2C_Read... [11:43:12]Read from MH i2c: E2 03 00 F6 30 00 90 00 9A [11:43:12]RAPDU: 90 00 [11:43:12]wFMCommunicate OK [11:43:12]wFMCommunicate request_size=4 [11:43:12]MH_SAM_APDU [11:43:12]CAPDU: 80 0D 03 02 [11:43:12]Write to MH i2c: E2 08 00 F7 30 80 0D 03 02 00 00 00 00 A2 [11:43:12]Write i2c OK [11:43:12]MH_I2C_Read... [11:43:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:43:12]Read from MH i2c: E2 [11:43:12]MH_I2C_Read... [11:43:12]Read from MH i2c: E2 0B 00 [11:43:12]MH_I2C_Read... [11:43:12]Read from MH i2c: E2 0B 00 F7 30 00 EC 79 58 3A 9B 6F DE 00 90 00 82 [11:43:12]RAPDU: EC 79 58 3A 9B 6F DE 00 90 00 [11:43:12]wFMCommunicate OK [11:43:12]SAM_PROTO_SignData done [11:43:12]FM_MakeSignedData done [11:43:12]CreateOFDProtocolMessage [11:43:12]wFMCommunicate request_size=4 [11:43:12]MH_SAM_APDU [11:43:12]CAPDU: 80 11 00 00 [11:43:12]Write to MH i2c: E2 08 00 F8 30 80 11 00 00 00 00 00 00 A2 [11:43:12]Write i2c OK [11:43:12]MH_I2C_Read... [11:43:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:43:12]Read from MH i2c: E2 [11:43:12]MH_I2C_Read... [11:43:12]Read from MH i2c: E2 17 00 [11:43:12]MH_I2C_Read... [11:43:12]Read from MH i2c: E2 17 00 F8 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 F8 [11:43:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [11:43:12]wFMCommunicate OK [11:43:12]CreateOFDProtocolMessage done [11:43:12]OFDSenderStorePacket 67816 [11:43:12]StoreOFDPacket docnum=67816 [11:43:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 E8 A2 04 01 61 9B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9C 68 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 6F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6F 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FC 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 54 94 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 E8 08 01 00 35 04 06 00 A6 44 21 62 53 63 EC 79 58 3A 9B 6F DE 00 [11:43:12]CheckFolder [11:43:12]dirname=/storage/ofd_packets [11:43:12]CheckFolder done [11:43:12]ProducePacketName [11:43:12]name=ofd_packets/00067816 [11:43:12]NVStorageSaveData ofd_packets/00067816 [11:43:12]File name is /storage/ofd_packets/00067816 [11:43:12]Write 298 bytes [11:43:12]NVStorageSaveData done [11:43:12]OFDSenderStorePacket done [11:43:12]KKMCreateOFDPacket done [11:43:12]NVStorageSaveData kkm_last_timestamp [11:43:12]File name is /storage/kkm_last_timestamp [11:43:12]Write 4 bytes [11:43:12]NVStorageSaveData done [11:43:12]ExternCall_PrintAddStr [11:43:12]wPrintStart [11:43:12]Write to MH i2c: 01 00 00 F9 30 29 [11:43:12]Write i2c OK [11:43:12]MH_I2C_Read... [11:43:12]Read from MH i2c: 01 [11:43:12]MH_I2C_Read... [11:43:12]Read from MH i2c: 01 07 00 [11:43:12]MH_I2C_Read... [11:43:12]Read from MH i2c: 01 07 00 F9 30 00 00 00 00 00 FF 0F 3E [11:43:12]RasterBufferAndPrint [11:43:12]line Счет N : (1)508026 [11:43:12]line ИНН: 02508201610067 [11:43:12]line Контрольно-Кассовый Чек [11:43:12]line ПРОДАЖА [11:43:12]line ТРК (МРК, ГНК) : 11 [11:43:12]line Товар: 2710194210 [11:43:12]line ДТ-К-5 [11:43:12]line 26.780 * 74.70 [11:43:12]line = 2000.47 [11:43:12]line НДС 12% НСП 1% [11:43:12]line > о реализуемом товаре [11:43:12]line ИТОГО: 2000.47 [11:43:12]line НСП 1% : 17.70 [11:43:12]line НДС 12% : 212.44 [11:43:12]line Наличными: 0.00 [11:43:12]line Безнал.: 2000.47 [11:43:12]line Место: АЗС № 91 "Партнер Нефть" [11:43:12]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [11:43:12]line СНО: Общий режим [11:43:12]line Чек 55 18.05.2024 11:43 [11:43:12]line Смена: 359 ФФД: 1.0 [11:43:12]line ЗНМ: 0300000119 [11:43:12]line РНМ: 0000000000091845 [11:43:12]line Версия ККМ: 001 [11:43:12]line Платежная система: O! деньги [11:43:12]line ФМ: 0000000000871829 [11:43:12]line ФД: 67816 [11:43:12]line ФПД: 182811548078947 [11:43:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T114316&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67816&fm=182811548078947&tin=02508201610067®Number=0000000000091845&sum=200047 [11:43:12]OFD Sender: Processing packet 67816 [packets to send 35, broken 34] [11:43:12]ProducePacketName [11:43:12]name=ofd_packets/00067816 [11:43:12]OFD Sender: To server: pG, [11:43:12]CommunicateWithHost lk.salyk.kg:30040 [11:43:12]ConnectInit lk.salyk.kg [11:43:12]written 0, free lines is 4095 [11:43:12]Connected sock=10 [11:43:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 E8 A2 04 01 61 9B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9C 68 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 6F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6F 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FC 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 54 94 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 E8 08 01 00 35 04 06 00 A6 44 21 62 53 63 EC 79 58 3A 9B 6F DE 00 [11:43:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 AA D0 47 00 98 72 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 E8 08 01 00 F4 03 04 00 29 3C 48 66 B6 04 01 00 00 40 31 F4 83 21 06 0E F0 [11:43:13]CommunicateWithHost err = 0 [11:43:13]CheckOFDResponse [11:43:13]1017 (14) - 77093643461234 [11:43:13]1041 (16) - 0000000000871829 [11:43:13]1040 (4) - 67816 [11:43:13]1012 (4) - 18.05.2024 05:27 [11:43:13]1206 (1) - 0 [11:43:13]OFD Sender: Remove packet 67816 [11:43:13]ProducePacketName [11:43:13]name=ofd_packets/00067816 [11:43:13]NVStorageDeleteData [11:43:13]Write to MH i2c: 01 00 00 22 31 53 [11:43:13]Write i2c OK [11:43:13]MH_I2C_Read... [11:43:13]Read from MH i2c: 01 [11:43:13]MH_I2C_Read... [11:43:13]Read from MH i2c: 01 07 00 [11:43:13]MH_I2C_Read... [11:43:13]Read from MH i2c: 01 07 00 22 31 00 00 00 00 00 D7 0C 3D [11:43:13]RasterBufferAndPrint [11:43:13]line [11:43:13]line [11:43:13]line [11:43:13]line [11:43:13]line [11:43:13]written 0, free lines is 3292 [11:43:13]MH_Cut [11:43:13]Write to MH i2c: D1 01 00 29 31 01 2C [11:43:13]Write i2c OK [11:43:13]MH_I2C_Read... [11:43:13]Read from MH i2c: D1 [11:43:13]MH_I2C_Read... [11:43:13]Read from MH i2c: D1 01 00 [11:43:13]MH_I2C_Read... [11:43:13]Read from MH i2c: D1 01 00 29 31 00 2B [11:43:13]Write to MH i2c: 01 00 00 2A 31 5B [11:43:13]Write i2c OK [11:43:13]MH_I2C_Read... [11:43:13]OFD Sender: No OFD packet to send [11:43:14]*** Cut start [11:43:14]*** Purtial cut [11:43:14]*** CUTSNS_PIN = 0 [11:43:14]*** Stage 1: CUTSNS_PIN = 1 [11:43:16]Read from MH i2c: 01 [11:43:16]MH_I2C_Read... [11:43:16]*** Stop cut motor [11:43:16]*** Cut end [11:43:16]Read from MH i2c: 01 07 00 [11:43:16]MH_I2C_Read... [11:43:16]Read from MH i2c: 01 07 00 2A 31 00 00 00 00 00 FF 0F 70 [11:43:16]process_action close_receipt done [11:43:16]requested_data is exist [11:43:16]produce_requested_data [11:43:16]requested_item fm.sn is exist - process it [11:43:16]wFMCommunicate request_size=4 [11:43:16]MH_SAM_APDU [11:43:16]CAPDU: 80 11 00 00 [11:43:16]Write to MH i2c: E2 08 00 2B 31 80 11 00 00 00 00 00 00 D6 [11:43:16]Write i2c OK [11:43:16]MH_I2C_Read... [11:43:16]Read from MH i2c: E2 [11:43:16]MH_I2C_Read... [11:43:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:43:16]Read from MH i2c: E2 17 00 [11:43:16]MH_I2C_Read... [11:43:16]Read from MH i2c: E2 17 00 2B 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 2C [11:43:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [11:43:16]wFMCommunicate OK [11:43:16]requested_item fd.num is exist - process it [11:43:16]SAM_PROTO_GetFieldsCounters [11:43:16]wFMCommunicate request_size=4 [11:43:16]MH_SAM_APDU [11:43:16]CAPDU: 80 13 00 00 [11:43:16]Write to MH i2c: E2 08 00 2C 31 80 13 00 00 00 00 00 00 D9 [11:43:16]Write i2c OK [11:43:16]MH_I2C_Read... [11:43:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:43:16]Read from MH i2c: E2 [11:43:16]MH_I2C_Read... [11:43:16]Read from MH i2c: E2 62 00 [11:43:16]MH_I2C_Read... [11:43:16]Read from MH i2c: E2 62 00 2C 31 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 E8 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 37 00 00 00 5E 04 04 00 37 00 00 00 57 04 04 00 38 00 00 00 19 04 04 00 00 00 00 00 90 00 FD [11:43:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 E8 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 37 00 00 00 5E 04 04 00 37 00 00 00 57 04 04 00 38 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:43:16]wFMCommunicate OK [11:43:16]SAM_PROTO_GetFieldsCounters done [11:43:16]requested_item shift.num is exist - process it [11:43:16]requested_item shift.opened is exist - process it [11:43:16]req_shift_opened [11:43:16]FM_GetShiftState [11:43:16]SAM_PROTO_GetShiftState [11:43:16]wFMCommunicate request_size=4 [11:43:16]MH_SAM_APDU [11:43:16]CAPDU: 80 13 01 00 [11:43:16]Write to MH i2c: E2 08 00 2D 31 80 13 01 00 00 00 00 00 DB [11:43:16]Write i2c OK [11:43:16]MH_I2C_Read... [11:43:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:43:16]Read from MH i2c: E2 [11:43:16]MH_I2C_Read... [11:43:16]Read from MH i2c: E2 0E 00 [11:43:16]MH_I2C_Read... [11:43:16]Read from MH i2c: E2 0E 00 2D 31 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 42 [11:43:16]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [11:43:16]wFMCommunicate OK [11:43:16]SAM_PROTO_GetShiftState done [11:43:16]FM_GetShiftState done [11:43:16]req_shift_opened done [11:43:16]requested_item shift.open_date is exist - process it [11:43:16]req_shift_open_date [11:43:16]req_shift_open_date done [11:43:16]produce_requested_data done [11:43:16]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67816,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [11:43:16]process_action_free close_receipt [11:43:16]json_value_free [11:43:16]json_value_free done [11:43:16]process_json_proto returns [11:43:16]Send response to host [11:43:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67816,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [11:43:16]free response buf [11:43:16]execute_script done [11:43:16]execute_script returns [11:43:16]free content buf [11:43:16]Sock 9.Close socket [11:43:16]Sock 9.Thread stoped [11:43:18]OFD Sender: No OFD packet to send [11:43:20]accept exits with 7 [11:43:20]New connection [11:43:20]New thread 3066608996 created [11:43:20]Thread 3066752356 joined [11:43:20]Waiting for new connection... [11:43:20] Sock 7.Parse request [11:43:20]Sock 7.Check first char [11:43:20]Sock 7.First char is OK [11:43:20]request: POST /json_proto HTTP/1.0 [11:43:20]Method: POST [11:43:20]URL: /json_proto [11:43:20]Method is POST - this is cgi request [11:43:20]url: /json_proto [11:43:20]query_string will be loaded in cgi processing [11:43:20]execute_cgi json_proto POST (null) [11:43:20]execute_cgi path=json_proto method=POST [11:43:20]POST find Content-Length [11:43:20]Host: 172.17.41.195:8080 [11:43:20]Content-Length: 215 [11:43:20]Content-Type: application/json [11:43:20] [11:43:20]POST finish read [11:43:20]Found Content-Length = 215 [11:43:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:43:20]execute_script... [11:43:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:43:20]POST & json_proto [11:43:20]process_json_proto [11:43:20]json parsed OK: [11:43:20]protocol is kg_v1.0 [11:43:20]action value=get_value [11:43:20]process_action get_value [11:43:20]cmd_get_value [11:43:20]process_action get_value done [11:43:20]requested_data is exist [11:43:20]produce_requested_data [11:43:20]requested_item kkm.sn is exist - process it [11:43:20]requested_item kkm.ver is exist - process it [11:43:20]requested_item fm.sn is exist - process it [11:43:20]wFMCommunicate request_size=4 [11:43:20]MH_SAM_APDU [11:43:20]CAPDU: 80 11 00 00 [11:43:20]Write to MH i2c: E2 08 00 2E 31 80 11 00 00 00 00 00 00 D9 [11:43:20]Write i2c OK [11:43:20]MH_I2C_Read... [11:43:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:43:20]Read from MH i2c: E2 [11:43:20]MH_I2C_Read... [11:43:20]Read from MH i2c: E2 17 00 [11:43:20]MH_I2C_Read... [11:43:20]Read from MH i2c: E2 17 00 2E 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 2F [11:43:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [11:43:20]wFMCommunicate OK [11:43:20]requested_item fd.num is exist - process it [11:43:20]SAM_PROTO_GetFieldsCounters [11:43:20]wFMCommunicate request_size=4 [11:43:20]MH_SAM_APDU [11:43:20]CAPDU: 80 13 00 00 [11:43:20]Write to MH i2c: E2 08 00 2F 31 80 13 00 00 00 00 00 00 DC [11:43:20]Write i2c OK [11:43:20]MH_I2C_Read... [11:43:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:43:20]Read from MH i2c: E2 [11:43:20]MH_I2C_Read... [11:43:20]Read from MH i2c: E2 62 00 [11:43:20]MH_I2C_Read... [11:43:20]Read from MH i2c: E2 62 00 2F 31 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 E8 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 37 00 00 00 5E 04 04 00 37 00 00 00 57 04 04 00 38 00 00 00 19 04 04 00 00 00 00 00 90 00 00 [11:43:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 E8 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 37 00 00 00 5E 04 04 00 37 00 00 00 57 04 04 00 38 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:43:20]wFMCommunicate OK [11:43:20]SAM_PROTO_GetFieldsCounters done [11:43:20]requested_item shift.num is exist - process it [11:43:20]requested_item shift.opened is exist - process it [11:43:20]req_shift_opened [11:43:20]FM_GetShiftState [11:43:20]SAM_PROTO_GetShiftState [11:43:20]wFMCommunicate request_size=4 [11:43:20]MH_SAM_APDU [11:43:20]CAPDU: 80 13 01 00 [11:43:20]Write to MH i2c: E2 08 00 30 31 80 13 01 00 00 00 00 00 DE [11:43:20]Write i2c OK [11:43:20]MH_I2C_Read... [11:43:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:43:20]Read from MH i2c: E2 [11:43:20]MH_I2C_Read... [11:43:20]Read from MH i2c: E2 0E 00 [11:43:20]MH_I2C_Read... [11:43:20]Read from MH i2c: E2 0E 00 30 31 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 45 [11:43:20]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [11:43:20]wFMCommunicate OK [11:43:20]SAM_PROTO_GetShiftState done [11:43:20]FM_GetShiftState done [11:43:20]req_shift_opened done [11:43:20]requested_item shift.open_date is exist - process it [11:43:20]req_shift_open_date [11:43:20]req_shift_open_date done [11:43:20]produce_requested_data done [11:43:20]produce_requested_data return {"kkm.sn":"0300000119","kkm.ver":"001","fm.sn":"0000000000871829","fd.num":67816,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [11:43:20]process_action_free get_value [11:43:20]json_value_free [11:43:20]json_value_free done [11:43:20]process_json_proto returns [11:43:20]Send response to host [11:43:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000119","kkm.ver":"001","fm.sn":"0000000000871829","fd.num":67816,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [11:43:20]free response buf [11:43:20]execute_script done [11:43:20]execute_script returns [11:43:20]free content buf [11:43:20]Sock 7.Close socket [11:43:20]Sock 7.Thread stoped [11:43:20]accept exits with 9 [11:43:20]New connection [11:43:20]New thread 3066752356 created [11:43:20]Thread 3066608996 joined [11:43:20]Waiting for new connection... [11:43:20] Sock 9.Parse request [11:43:20]Sock 9.Check first char [11:43:20]Sock 9.First char is OK [11:43:20]request: POST /json_proto HTTP/1.0 [11:43:20]Method: POST [11:43:20]URL: /json_proto [11:43:20]Method is POST - this is cgi request [11:43:20]url: /json_proto [11:43:20]query_string will be loaded in cgi processing [11:43:20]execute_cgi json_proto POST (null) [11:43:20]execute_cgi path=json_proto method=POST [11:43:20]POST find Content-Length [11:43:20]Host: 172.17.41.195:8080 [11:43:20]Content-Length: 331 [11:43:20]Content-Type: application/json [11:43:20] [11:43:20]POST finish read [11:43:20]Found Content-Length = 331 [11:43:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [11:43:20]execute_script... [11:43:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [11:43:20]POST & json_proto [11:43:20]process_json_proto [11:43:20]json parsed OK: [11:43:20]protocol is kg_v1.0 [11:43:20]action value=get_value [11:43:20]process_action get_value [11:43:20]cmd_get_value [11:43:20]process_action get_value done [11:43:20]requested_data is exist [11:43:20]produce_requested_data [11:43:20]requested_item fm.sale.total is exist - process it [11:43:20]SAM_PROTO_GetFMData [11:43:20]wFMCommunicate request_size=4 [11:43:20]MH_SAM_APDU [11:43:20]CAPDU: 80 13 03 00 [11:43:20]Write to MH i2c: E2 08 00 31 31 80 13 03 00 00 00 00 00 E1 [11:43:20]Write i2c OK [11:43:20]MH_I2C_Read... [11:43:21]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [11:43:21]Read from MH i2c: E2 [11:43:21]MH_I2C_Read... [11:43:21]Read from MH i2c: E2 FD 00 [11:43:21]MH_I2C_Read... [11:43:21]Read from MH i2c: E2 FD 00 31 31 00 C6 04 85 04 C2 04 6E 04 04 00 1A 06 01 00 69 04 A3 00 6F 04 04 00 70 05 01 00 B1 04 05 00 C3 AD E8 1D 03 70 04 05 00 30 D0 D7 C0 02 72 04 04 00 93 DD 10 5D 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 88 CC BE 54 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 C7 D1 0F 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9D 00 6F 04 04 00 AA 00 00 00 B1 04 04 00 00 23 C3 DC 70 04 04 00 00 23 C3 DC 72 04 00 00 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 DD 9D 71 17 EF 03 09 90 00 D2 [11:43:21]RAPDU: C6 04 85 04 C2 04 6E 04 04 00 1A 06 01 00 69 04 A3 00 6F 04 04 00 70 05 01 00 B1 04 05 00 C3 AD E8 1D 03 70 04 05 00 30 D0 D7 C0 02 72 04 04 00 93 DD 10 5D 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 88 CC BE 54 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 C7 D1 0F 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9D 00 6F 04 04 00 AA 00 00 00 B1 04 04 00 00 23 C3 DC 70 04 04 00 00 23 C3 DC 72 04 00 00 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 DD 9D 71 17 EF 03 09 90 00 [11:43:21]wFMCommunicate OK [11:43:21]wFMCommunicate request_size=4 [11:43:21]MH_SAM_APDU [11:43:21]CAPDU: 80 17 00 00 [11:43:21]Write to MH i2c: E2 08 00 32 31 80 17 00 00 00 00 00 00 E3 [11:43:21]Write i2c OK [11:43:21]MH_I2C_Read... [11:43:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:43:21]Read from MH i2c: E2 [11:43:21]MH_I2C_Read... [11:43:21]Read from MH i2c: E2 FD 00 [11:43:21]MH_I2C_Read... [11:43:21]Read from MH i2c: E2 FD 00 32 31 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 70 22 F4 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 90 00 1E [11:43:21]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 70 22 F4 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 90 00 [11:43:21]wFMCommunicate OK [11:43:21]wFMCommunicate request_size=4 [11:43:21]MH_SAM_APDU [11:43:21]CAPDU: 80 17 00 00 [11:43:21]Write to MH i2c: E2 08 00 33 31 80 17 00 00 00 00 00 00 E4 [11:43:21]Write i2c OK [11:43:21]MH_I2C_Read... [11:43:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:43:21]Read from MH i2c: E2 [11:43:21]MH_I2C_Read... [11:43:21]Read from MH i2c: E2 FD 00 [11:43:21]MH_I2C_Read... [11:43:21]Read from MH i2c: E2 FD 00 33 31 00 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 90 00 0B [11:43:21]RAPDU: 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 90 00 [11:43:21]wFMCommunicate OK [11:43:21]wFMCommunicate request_size=4 [11:43:21]MH_SAM_APDU [11:43:21]CAPDU: 80 17 00 00 [11:43:21]Write to MH i2c: E2 08 00 34 31 80 17 00 00 00 00 00 00 E5 [11:43:21]Write i2c OK [11:43:21]MH_I2C_Read... [11:43:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:43:21]Read from MH i2c: E2 [11:43:21]MH_I2C_Read... [11:43:21]Read from MH i2c: E2 FD 00 [11:43:21]MH_I2C_Read... [11:43:21]Read from MH i2c: E2 FD 00 34 31 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 60 [11:43:21]RAPDU: EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 [11:43:21]wFMCommunicate OK [11:43:21]wFMCommunicate request_size=4 [11:43:21]MH_SAM_APDU [11:43:21]CAPDU: 80 17 00 00 [11:43:21]Write to MH i2c: E2 08 00 35 31 80 17 00 00 00 00 00 00 E6 [11:43:21]Write i2c OK [11:43:21]MH_I2C_Read... [11:43:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 224! [11:43:22]Read from MH i2c: E2 [11:43:22]MH_I2C_Read... [11:43:22]Read from MH i2c: E2 E3 00 [11:43:22]MH_I2C_Read... [11:43:22]Read from MH i2c: E2 E3 00 35 31 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 C5 [11:43:22]RAPDU: 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [11:43:22]wFMCommunicate OK [11:43:22]SAM_PROTO_GetFMData done [11:43:22]requested_item fm.sale_refund.total is exist - process it [11:43:22]requested_item fm.buy.total is exist - process it [11:43:22]requested_item shift.sale.total is exist - process it [11:43:22]SAM_PROTO_GetShiftData [11:43:22]wFMCommunicate request_size=4 [11:43:22]MH_SAM_APDU [11:43:22]CAPDU: 80 13 02 00 [11:43:22]Write to MH i2c: E2 08 00 36 31 80 13 02 00 00 00 00 00 E5 [11:43:22]Write i2c OK [11:43:22]MH_I2C_Read... [11:43:22]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [11:43:22]Read from MH i2c: E2 [11:43:22]MH_I2C_Read... [11:43:22]Read from MH i2c: E2 FD 00 [11:43:22]MH_I2C_Read... [11:43:22]Read from MH i2c: E2 FD 00 36 31 00 AE 04 AA 04 AA 04 6E 04 04 00 37 00 00 00 69 04 9B 00 6F 04 04 00 37 00 00 00 B1 04 03 00 37 BD 59 70 04 03 00 74 DB 14 72 04 03 00 C3 E1 44 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 E4 87 09 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 4D CB EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 38 [11:43:22]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 37 00 00 00 69 04 9B 00 6F 04 04 00 37 00 00 00 B1 04 03 00 37 BD 59 70 04 03 00 74 DB 14 72 04 03 00 C3 E1 44 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 E4 87 09 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 4D CB EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [11:43:22]wFMCommunicate OK [11:43:22]wFMCommunicate request_size=4 [11:43:22]MH_SAM_APDU [11:43:22]CAPDU: 80 17 00 00 [11:43:22]Write to MH i2c: E2 08 00 37 31 80 17 00 00 00 00 00 00 E8 [11:43:22]Write i2c OK [11:43:22]MH_I2C_Read... [11:43:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:43:22]Read from MH i2c: E2 [11:43:22]MH_I2C_Read... [11:43:22]Read from MH i2c: E2 FD 00 [11:43:22]MH_I2C_Read... [11:43:22]Read from MH i2c: E2 FD 00 37 31 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 0A [11:43:22]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [11:43:23]wFMCommunicate OK [11:43:23]wFMCommunicate request_size=4 [11:43:23]MH_SAM_APDU [11:43:23]CAPDU: 80 17 00 00 [11:43:23]Write to MH i2c: E2 08 00 38 31 80 17 00 00 00 00 00 00 E9 [11:43:23]Write i2c OK [11:43:23]MH_I2C_Read... [11:43:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:43:23]Read from MH i2c: E2 [11:43:23]MH_I2C_Read... [11:43:23]Read from MH i2c: E2 FD 00 [11:43:23]MH_I2C_Read... [11:43:23]Read from MH i2c: E2 FD 00 38 31 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 A0 [11:43:23]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [11:43:23]wFMCommunicate OK [11:43:23]wFMCommunicate request_size=4 [11:43:23]MH_SAM_APDU [11:43:23]CAPDU: 80 17 00 00 [11:43:23]Write to MH i2c: E2 08 00 39 31 80 17 00 00 00 00 00 00 EA [11:43:23]Write i2c OK [11:43:23]MH_I2C_Read... [11:43:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:43:23]Read from MH i2c: E2 [11:43:23]MH_I2C_Read... [11:43:23]Read from MH i2c: E2 FD 00 [11:43:23]MH_I2C_Read... [11:43:23]Read from MH i2c: E2 FD 00 39 31 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 5C [11:43:23]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [11:43:23]wFMCommunicate OK [11:43:23]wFMCommunicate request_size=4 [11:43:23]MH_SAM_APDU [11:43:23]CAPDU: 80 17 00 00 [11:43:23]Write to MH i2c: E2 08 00 3A 31 80 17 00 00 00 00 00 00 EB [11:43:23]Write i2c OK [11:43:23]MH_I2C_Read... [11:43:23]OFD Sender: No OFD packet to send [11:43:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [11:43:23]Read from MH i2c: E2 [11:43:23]MH_I2C_Read... [11:43:23]Read from MH i2c: E2 CB 00 [11:43:23]MH_I2C_Read... [11:43:23]Read from MH i2c: E2 CB 00 3A 31 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 D4 [11:43:23]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [11:43:23]wFMCommunicate OK [11:43:23]SAM_PROTO_GetShiftData done [11:43:23]requested_item shift.sale.total_cash is exist - process it [11:43:23]requested_item shift.sale_refund.total is exist - process it [11:43:23]requested_item shift.sale_refund.total_cash is exist - process it [11:43:23]requested_item shift.buy.total is exist - process it [11:43:23]requested_item shift.buy.total_cash is exist - process it [11:43:23]produce_requested_data done [11:43:23]produce_requested_data return {"fm.sale.total":133866899.87,"fm.sale_refund.total":37037760.00,"fm.buy.total":0.00,"shift.sale.total":58811.43,"shift.sale.total_cash":13669.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [11:43:23]process_action_free get_value [11:43:23]json_value_free [11:43:23]json_value_free done [11:43:23]process_json_proto returns [11:43:23]Send response to host [11:43:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":133866899.87,"fm.sale_refund.total":37037760.00,"fm.buy.total":0.00,"shift.sale.total":58811.43,"shift.sale.total_cash":13669.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [11:43:23]free response buf [11:43:23]execute_script done [11:43:23]execute_script returns [11:43:23]free content buf [11:43:23]Sock 9.Close socket [11:43:23]Sock 9.Thread stoped [11:43:28]OFD Sender: No OFD packet to send [11:43:33]OFD Sender: No OFD packet to send [11:43:38]OFD Sender: No OFD packet to send [11:43:43]OFD Sender: No OFD packet to send [11:43:48]OFD Sender: No OFD packet to send [11:43:53]OFD Sender: No OFD packet to send [11:43:58]OFD Sender: No OFD packet to send [11:44:03]OFD Sender: No OFD packet to send [11:44:08]OFD Sender: No OFD packet to send [11:44:13]OFD Sender: No OFD packet to send [11:44:18]OFD Sender: No OFD packet to send [11:44:23]OFD Sender: No OFD packet to send [11:44:28]OFD Sender: No OFD packet to send [11:44:33]OFD Sender: No OFD packet to send [11:44:38]OFD Sender: No OFD packet to send [11:44:43]OFD Sender: No OFD packet to send [11:44:48]OFD Sender: No OFD packet to send [11:44:53]OFD Sender: No OFD packet to send [11:44:58]OFD Sender: No OFD packet to send [11:45:03]OFD Sender: No OFD packet to send [11:45:08]OFD Sender: No OFD packet to send [11:45:12]accept exits with 7 [11:45:12]New connection [11:45:12]New thread 3066608996 created [11:45:12]Thread 3066752356 joined [11:45:12]Waiting for new connection... [11:45:12] Sock 7.Parse request [11:45:12]Sock 7.Check first char [11:45:12]Sock 7.First char is OK [11:45:12]request: POST /json_proto HTTP/1.0 [11:45:12]Method: POST [11:45:12]URL: /json_proto [11:45:12]Method is POST - this is cgi request [11:45:12]url: /json_proto [11:45:12]query_string will be loaded in cgi processing [11:45:12]execute_cgi json_proto POST (null) [11:45:12]execute_cgi path=json_proto method=POST [11:45:12]POST find Content-Length [11:45:12]Host: 172.17.41.195:8080 [11:45:12]Content-Length: 1226 [11:45:12]Content-Type: application/json [11:45:12] [11:45:12]POST finish read [11:45:12]Found Content-Length = 1226 [11:45:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0440\u0441\u0442\u0430\u043D\u0431\u0435\u043A\u043E\u0432 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)508027\u000A18.05.2024 11:27\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 43\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 30.000 x 66.80\u000A\u0418\u0422\u041E\u0413: 2004.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3884161/62/63\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:45:12]execute_script... [11:45:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0440\u0441\u0442\u0430\u043D\u0431\u0435\u043A\u043E\u0432 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)508027\u000A18.05.2024 11:27\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 43\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 30.000 x 66.80\u000A\u0418\u0422\u041E\u0413: 2004.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3884161/62/63\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:45:12]POST & json_proto [11:45:12]process_json_proto [11:45:12]json parsed OK: [11:45:12]protocol is kg_v1.0 [11:45:12]action value=print_text [11:45:12]process_action print_text [11:45:12]cmd_print_text [11:45:12]ExternCall_PrintAddStr [11:45:12]wPrintStart [11:45:12]Write to MH i2c: 01 00 00 3B 31 6C [11:45:12]Write i2c OK [11:45:12]MH_I2C_Read... [11:45:12]Read from MH i2c: 01 [11:45:12]MH_I2C_Read... [11:45:12]Read from MH i2c: 01 07 00 [11:45:12]MH_I2C_Read... [11:45:12]Read from MH i2c: 01 07 00 3B 31 00 00 00 00 00 FF 0F 81 [11:45:12]RasterBufferAndPrint [11:45:12]line *****ТОВАРНЫЙ ЧЕК***** [11:45:12]line АЗС-91 [11:45:12]line Партнер нефть [11:45:12]line 02508201610067 [11:45:12]line Кассир : Арстанбеков Н. [11:45:12]line Счет N : (1)508027 [11:45:12]line 18.05.2024 11:27 [11:45:12]line ПРОДАЖА [11:45:12]line ТРК (МРК, ГНК): 43 [11:45:12]line Вид ГСМ : 2710124130 [11:45:12]line Аи-92-К-5 [11:45:12]line 30.000 x 66.80 [11:45:12]line ИТОГ: 2004.00 [11:45:12]line Тип оплаты: Талоны: Топливные Талоны [11:45:12]line 3884161/62/63 [11:45:12]line ______________________ [11:45:12]line (подпись) [11:45:12]written 0, free lines is 4095 [11:45:12]Write to MH i2c: 01 00 00 4F 31 80 [11:45:12]Write i2c OK [11:45:12]MH_I2C_Read... [11:45:12]Read from MH i2c: 01 [11:45:12]MH_I2C_Read... [11:45:12]Read from MH i2c: 01 07 00 [11:45:12]MH_I2C_Read... [11:45:12]Read from MH i2c: 01 07 00 4F 31 00 00 00 00 00 15 0E AA [11:45:12]RasterBufferAndPrint [11:45:12]line [11:45:12]line [11:45:12]line [11:45:12]line [11:45:12]line [11:45:12]written 0, free lines is 3607 [11:45:12]MH_Cut [11:45:12]Write to MH i2c: D1 01 00 56 31 01 59 [11:45:12]Write i2c OK [11:45:12]MH_I2C_Read... [11:45:12]Read from MH i2c: D1 [11:45:12]MH_I2C_Read... [11:45:12]Read from MH i2c: D1 01 00 [11:45:12]MH_I2C_Read... [11:45:12]Read from MH i2c: D1 01 00 56 31 00 58 [11:45:12]Write to MH i2c: 01 00 00 57 31 88 [11:45:12]Write i2c OK [11:45:12]MH_I2C_Read... [11:45:13]*** Cut start [11:45:13]*** Purtial cut [11:45:13]*** Stage 1: CUTSNS_PIN = 1 [11:45:13]Read from MH i2c: 01 [11:45:13]MH_I2C_Read... [11:45:13]Read from MH i2c: 01 07 00 [11:45:13]MH_I2C_Read... [11:45:13]*** Stop cut motor [11:45:13]*** Cut end [11:45:13]Read from MH i2c: 01 07 00 57 31 00 00 00 00 00 FF 0F 9D [11:45:13]process_action print_text done [11:45:13]requested_data is exist [11:45:13]produce_requested_data [11:45:13]requested_item fm.sn is exist - process it [11:45:13]wFMCommunicate request_size=4 [11:45:13]MH_SAM_APDU [11:45:13]CAPDU: 80 11 00 00 [11:45:13]Write to MH i2c: E2 08 00 58 31 80 11 00 00 00 00 00 00 03 [11:45:13]Write i2c OK [11:45:13]MH_I2C_Read... [11:45:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:45:13]Read from MH i2c: E2 [11:45:13]MH_I2C_Read... [11:45:13]Read from MH i2c: E2 17 00 [11:45:13]MH_I2C_Read... [11:45:13]Read from MH i2c: E2 17 00 58 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 59 [11:45:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [11:45:13]wFMCommunicate OK [11:45:13]requested_item fd.num is exist - process it [11:45:13]SAM_PROTO_GetFieldsCounters [11:45:13]wFMCommunicate request_size=4 [11:45:13]MH_SAM_APDU [11:45:13]CAPDU: 80 13 00 00 [11:45:13]Write to MH i2c: E2 08 00 59 31 80 13 00 00 00 00 00 00 06 [11:45:13]Write i2c OK [11:45:13]MH_I2C_Read... [11:45:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:45:13]Read from MH i2c: E2 [11:45:13]MH_I2C_Read... [11:45:13]Read from MH i2c: E2 62 00 [11:45:13]MH_I2C_Read... [11:45:13]Read from MH i2c: E2 62 00 59 31 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 E8 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 37 00 00 00 5E 04 04 00 37 00 00 00 57 04 04 00 38 00 00 00 19 04 04 00 00 00 00 00 90 00 2A [11:45:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 E8 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 37 00 00 00 5E 04 04 00 37 00 00 00 57 04 04 00 38 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:45:13]wFMCommunicate OK [11:45:13]SAM_PROTO_GetFieldsCounters done [11:45:13]requested_item shift.num is exist - process it [11:45:13]requested_item shift.opened is exist - process it [11:45:13]req_shift_opened [11:45:13]FM_GetShiftState [11:45:13]SAM_PROTO_GetShiftState [11:45:13]wFMCommunicate request_size=4 [11:45:13]MH_SAM_APDU [11:45:13]CAPDU: 80 13 01 00 [11:45:13]Write to MH i2c: E2 08 00 5A 31 80 13 01 00 00 00 00 00 08 [11:45:13]Write i2c OK [11:45:13]MH_I2C_Read... [11:45:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:45:13]Read from MH i2c: E2 [11:45:13]MH_I2C_Read... [11:45:13]Read from MH i2c: E2 0E 00 [11:45:13]MH_I2C_Read... [11:45:13]Read from MH i2c: E2 0E 00 5A 31 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 6F [11:45:13]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [11:45:13]wFMCommunicate OK [11:45:13]SAM_PROTO_GetShiftState done [11:45:13]FM_GetShiftState done [11:45:13]req_shift_opened done [11:45:13]requested_item shift.open_date is exist - process it [11:45:13]req_shift_open_date [11:45:13]req_shift_open_date done [11:45:13]produce_requested_data done [11:45:13]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67816,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [11:45:13]process_action_free print_text [11:45:13]json_value_free [11:45:13]json_value_free done [11:45:13]process_json_proto returns [11:45:13]Send response to host [11:45:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67816,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [11:45:13]free response buf [11:45:13]execute_script done [11:45:13]execute_script returns [11:45:13]free content buf [11:45:13]Sock 7.Close socket [11:45:13]Sock 7.Thread stoped [11:45:13]OFD Sender: No OFD packet to send [11:45:18]OFD Sender: No OFD packet to send [11:45:23]OFD Sender: No OFD packet to send [11:45:28]OFD Sender: No OFD packet to send [11:45:33]OFD Sender: No OFD packet to send [11:45:38]OFD Sender: No OFD packet to send [11:45:43]OFD Sender: No OFD packet to send [11:45:48]OFD Sender: No OFD packet to send [11:45:48]accept exits with 9 [11:45:48]New connection [11:45:48]New thread 3066752356 created [11:45:48]Thread 3066608996 joined [11:45:48]Waiting for new connection... [11:45:48] Sock 9.Parse request [11:45:48]Sock 9.Check first char [11:45:48]Sock 9.First char is OK [11:45:48]request: POST /json_proto HTTP/1.0 [11:45:48]Method: POST [11:45:48]URL: /json_proto [11:45:48]Method is POST - this is cgi request [11:45:48]url: /json_proto [11:45:48]query_string will be loaded in cgi processing [11:45:48]execute_cgi json_proto POST (null) [11:45:48]execute_cgi path=json_proto method=POST [11:45:48]POST find Content-Length [11:45:48]Host: 172.17.41.195:8080 [11:45:48]Content-Length: 1209 [11:45:48]Content-Type: application/json [11:45:48] [11:45:48]POST finish read [11:45:48]Found Content-Length = 1209 [11:45:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0440\u0441\u0442\u0430\u043D\u0431\u0435\u043A\u043E\u0432 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)508028\u000A18.05.2024 11:28\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 13.390 x 74.70\u000A\u0418\u0422\u041E\u0413: 1000.23\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:45:48]execute_script... [11:45:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0440\u0441\u0442\u0430\u043D\u0431\u0435\u043A\u043E\u0432 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)508028\u000A18.05.2024 11:28\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 13.390 x 74.70\u000A\u0418\u0422\u041E\u0413: 1000.23\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:45:48]POST & json_proto [11:45:48]process_json_proto [11:45:48]json parsed OK: [11:45:48]protocol is kg_v1.0 [11:45:48]action value=print_text [11:45:48]process_action print_text [11:45:48]cmd_print_text [11:45:48]ExternCall_PrintAddStr [11:45:48]wPrintStart [11:45:48]Write to MH i2c: 01 00 00 5B 31 8C [11:45:48]Write i2c OK [11:45:48]MH_I2C_Read... [11:45:48]Read from MH i2c: 01 [11:45:48]MH_I2C_Read... [11:45:48]Read from MH i2c: 01 07 00 [11:45:48]MH_I2C_Read... [11:45:48]Read from MH i2c: 01 07 00 5B 31 00 00 00 00 00 FF 0F A1 [11:45:48]RasterBufferAndPrint [11:45:48]line *****ТОВАРНЫЙ ЧЕК***** [11:45:48]line АЗС-91 [11:45:48]line Партнер нефть [11:45:48]line 02508201610067 [11:45:48]line Кассир : Арстанбеков Н. [11:45:48]line Счет N : (1)508028 [11:45:48]line 18.05.2024 11:28 [11:45:48]line ПРОДАЖА [11:45:48]line ТРК (МРК, ГНК): 11 [11:45:48]line Вид ГСМ : 2710194210 [11:45:48]line ДТ-К-5 [11:45:48]line 13.390 x 74.70 [11:45:48]line ИТОГ: 1000.23 [11:45:48]line Тип оплаты: Талоны: Топливная Карта [11:45:48]line 02750 [11:45:48]line ______________________ [11:45:48]line (подпись) [11:45:48]written 0, free lines is 4095 [11:45:49]Write to MH i2c: 01 00 00 6F 31 A0 [11:45:49]Write i2c OK [11:45:49]MH_I2C_Read... [11:45:49]Read from MH i2c: 01 [11:45:49]MH_I2C_Read... [11:45:49]Read from MH i2c: 01 07 00 [11:45:49]MH_I2C_Read... [11:45:49]Read from MH i2c: 01 07 00 6F 31 00 00 00 00 00 0F 0E C4 [11:45:49]RasterBufferAndPrint [11:45:49]line [11:45:49]line [11:45:49]line [11:45:49]line [11:45:49]line [11:45:49]written 0, free lines is 3600 [11:45:49]MH_Cut [11:45:49]Write to MH i2c: D1 01 00 76 31 01 79 [11:45:49]Write i2c OK [11:45:49]MH_I2C_Read... [11:45:49]Read from MH i2c: D1 [11:45:49]MH_I2C_Read... [11:45:49]Read from MH i2c: D1 01 00 [11:45:49]MH_I2C_Read... [11:45:49]Read from MH i2c: D1 01 00 76 31 00 78 [11:45:49]Write to MH i2c: 01 00 00 77 31 A8 [11:45:49]Write i2c OK [11:45:49]MH_I2C_Read... [11:45:49]*** Cut start [11:45:49]*** Purtial cut [11:45:49]*** CUTSNS_PIN = 0 [11:45:49]*** Stage 1: CUTSNS_PIN = 1 [11:45:51]Read from MH i2c: 01 [11:45:51]MH_I2C_Read... [11:45:51]Read from MH i2c: 01 07 00 [11:45:51]MH_I2C_Read... [11:45:51]*** Stop cut motor [11:45:51]*** Cut end [11:45:51]Read from MH i2c: 01 07 00 77 31 00 00 00 00 00 FF 0F BD [11:45:51]process_action print_text done [11:45:51]requested_data is exist [11:45:51]produce_requested_data [11:45:51]requested_item fm.sn is exist - process it [11:45:51]wFMCommunicate request_size=4 [11:45:51]MH_SAM_APDU [11:45:51]CAPDU: 80 11 00 00 [11:45:51]Write to MH i2c: E2 08 00 78 31 80 11 00 00 00 00 00 00 23 [11:45:51]Write i2c OK [11:45:51]MH_I2C_Read... [11:45:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:45:51]Read from MH i2c: E2 [11:45:51]MH_I2C_Read... [11:45:51]Read from MH i2c: E2 17 00 [11:45:51]MH_I2C_Read... [11:45:51]Read from MH i2c: E2 17 00 78 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 79 [11:45:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [11:45:51]wFMCommunicate OK [11:45:51]requested_item fd.num is exist - process it [11:45:51]SAM_PROTO_GetFieldsCounters [11:45:51]wFMCommunicate request_size=4 [11:45:51]MH_SAM_APDU [11:45:51]CAPDU: 80 13 00 00 [11:45:51]Write to MH i2c: E2 08 00 79 31 80 13 00 00 00 00 00 00 26 [11:45:51]Write i2c OK [11:45:51]MH_I2C_Read... [11:45:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:45:51]Read from MH i2c: E2 [11:45:51]MH_I2C_Read... [11:45:51]Read from MH i2c: E2 62 00 [11:45:51]MH_I2C_Read... [11:45:51]Read from MH i2c: E2 62 00 79 31 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 E8 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 37 00 00 00 5E 04 04 00 37 00 00 00 57 04 04 00 38 00 00 00 19 04 04 00 00 00 00 00 90 00 4A [11:45:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 E8 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 37 00 00 00 5E 04 04 00 37 00 00 00 57 04 04 00 38 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:45:51]wFMCommunicate OK [11:45:51]SAM_PROTO_GetFieldsCounters done [11:45:51]requested_item shift.num is exist - process it [11:45:51]requested_item shift.opened is exist - process it [11:45:51]req_shift_opened [11:45:51]FM_GetShiftState [11:45:51]SAM_PROTO_GetShiftState [11:45:51]wFMCommunicate request_size=4 [11:45:51]MH_SAM_APDU [11:45:51]CAPDU: 80 13 01 00 [11:45:51]Write to MH i2c: E2 08 00 7A 31 80 13 01 00 00 00 00 00 28 [11:45:51]Write i2c OK [11:45:51]MH_I2C_Read... [11:45:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:45:51]Read from MH i2c: E2 [11:45:51]MH_I2C_Read... [11:45:51]Read from MH i2c: E2 0E 00 [11:45:51]MH_I2C_Read... [11:45:51]Read from MH i2c: E2 0E 00 7A 31 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 8F [11:45:51]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [11:45:51]wFMCommunicate OK [11:45:51]SAM_PROTO_GetShiftState done [11:45:51]FM_GetShiftState done [11:45:51]req_shift_opened done [11:45:51]requested_item shift.open_date is exist - process it [11:45:51]req_shift_open_date [11:45:51]req_shift_open_date done [11:45:51]produce_requested_data done [11:45:51]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67816,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [11:45:51]process_action_free print_text [11:45:51]json_value_free [11:45:51]json_value_free done [11:45:51]process_json_proto returns [11:45:51]Send response to host [11:45:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67816,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [11:45:51]free response buf [11:45:51]execute_script done [11:45:51]execute_script returns [11:45:51]free content buf [11:45:51]Sock 9.Close socket [11:45:51]Sock 9.Thread stoped [11:45:53]OFD Sender: No OFD packet to send [11:45:58]OFD Sender: No OFD packet to send [11:46:03]OFD Sender: No OFD packet to send [11:46:08]OFD Sender: No OFD packet to send [11:46:13]OFD Sender: No OFD packet to send [11:46:18]OFD Sender: No OFD packet to send [11:46:23]OFD Sender: No OFD packet to send [11:46:28]OFD Sender: No OFD packet to send [11:46:33]OFD Sender: No OFD packet to send [11:46:38]OFD Sender: No OFD packet to send [11:46:43]OFD Sender: No OFD packet to send [11:46:48]OFD Sender: No OFD packet to send [11:46:53]OFD Sender: No OFD packet to send [11:46:58]OFD Sender: No OFD packet to send [11:47:03]OFD Sender: No OFD packet to send [11:47:08]OFD Sender: No OFD packet to send [11:47:13]OFD Sender: No OFD packet to send [11:47:18]OFD Sender: No OFD packet to send [11:47:23]OFD Sender: No OFD packet to send [11:47:28]OFD Sender: No OFD packet to send [11:47:33]OFD Sender: No OFD packet to send [11:47:38]OFD Sender: No OFD packet to send [11:47:43]OFD Sender: No OFD packet to send [11:47:48]OFD Sender: No OFD packet to send [11:47:53]OFD Sender: No OFD packet to send [11:47:58]OFD Sender: No OFD packet to send [11:48:03]OFD Sender: No OFD packet to send [11:48:08]OFD Sender: No OFD packet to send [11:48:13]OFD Sender: No OFD packet to send [11:48:14]accept exits with 7 [11:48:14]New connection [11:48:14]New thread 3066608996 created [11:48:14]Thread 3066752356 joined [11:48:14]Waiting for new connection... [11:48:14] Sock 7.Parse request [11:48:14]Sock 7.Check first char [11:48:14]Sock 7.First char is OK [11:48:14]request: POST /json_proto HTTP/1.0 [11:48:14]Method: POST [11:48:14]URL: /json_proto [11:48:14]Method is POST - this is cgi request [11:48:14]url: /json_proto [11:48:14]query_string will be loaded in cgi processing [11:48:14]execute_cgi json_proto POST (null) [11:48:14]execute_cgi path=json_proto method=POST [11:48:14]POST find Content-Length [11:48:14]Host: 172.17.41.195:8080 [11:48:14]Content-Length: 674 [11:48:14]Content-Type: application/json [11:48:14] [11:48:14]POST finish read [11:48:14]Found Content-Length = 674 [11:48:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)508032", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 6.700, "sum" : 500.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:48:14]execute_script... [11:48:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)508032", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 6.700, "sum" : 500.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:48:14]POST & json_proto [11:48:14]process_json_proto [11:48:14]json parsed OK: [11:48:14]protocol is kg_v1.0 [11:48:14]action value=close_receipt [11:48:14]process_action close_receipt [11:48:14]cmd_close_receipt [11:48:14]MH_GetDate [11:48:14]Write to MH i2c: F0 00 00 7B 31 9B [11:48:14]Write i2c OK [11:48:14]MH_I2C_Read... [11:48:14]Read from MH i2c: F0 [11:48:14]MH_I2C_Read... [11:48:14]Read from MH i2c: F0 09 00 [11:48:14]MH_I2C_Read... [11:48:14]Read from MH i2c: F0 09 00 7B 31 00 83 95 48 66 FC 21 6F 64 5A [11:48:14]GetLastDocTimeStamp 1716032596 [11:48:14]current date 1716032899 [11:48:14]FM_GetShiftState [11:48:14]SAM_PROTO_GetShiftState [11:48:14]wFMCommunicate request_size=4 [11:48:14]MH_SAM_APDU [11:48:14]CAPDU: 80 13 01 00 [11:48:14]Write to MH i2c: E2 08 00 7C 31 80 13 01 00 00 00 00 00 2A [11:48:14]Write i2c OK [11:48:14]MH_I2C_Read... [11:48:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:48:14]Read from MH i2c: E2 [11:48:14]MH_I2C_Read... [11:48:14]Read from MH i2c: E2 0E 00 [11:48:14]MH_I2C_Read... [11:48:14]Read from MH i2c: E2 0E 00 7C 31 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 91 [11:48:14]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [11:48:14]wFMCommunicate OK [11:48:14]SAM_PROTO_GetShiftState done [11:48:14]FM_GetShiftState done [11:48:14]opened in 1715991483 [11:48:14]opened+sec_in_day 1716077883 [11:48:14]quantity*price = 50049 [11:48:14]sum+1 = 50050 [11:48:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.15 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 56 18.05.2024 11:48 Смена: 359 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67817 ФПД: 219560485108646 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T114819&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67817&fm=219560485108646&tin=02508201610067®Number=0000000000091845&sum=50000 [11:48:15]StoreToDocumentArchive [11:48:15]shift 359 fd 67817 [11:48:15]save to /storage/0359/doc_00067817 [11:48:15]save last doc name /storage/0359/doc_00067817 to /storage/kkm_last_doc_name [11:48:15]save OK [11:48:15]Clear old archive folders... [11:48:15]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:48:15]tlvbuf is B6F27230 [11:48:15]SAM_PROTO_ClearQueue [11:48:15]wFMCommunicate request_size=4 [11:48:15]MH_SAM_APDU [11:48:15]CAPDU: 80 09 00 00 [11:48:15]Write to MH i2c: E2 08 00 89 31 80 09 00 00 00 00 00 00 2C [11:48:15]Write i2c OK [11:48:15]MH_I2C_Read... [11:48:15]Read from MH i2c: E2 [11:48:15]MH_I2C_Read... [11:48:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:48:15]Read from MH i2c: E2 03 00 [11:48:15]MH_I2C_Read... [11:48:15]Read from MH i2c: E2 03 00 89 31 00 90 00 2E [11:48:15]RAPDU: 90 00 [11:48:15]wFMCommunicate OK [11:48:15]SAM_PROTO_ClearQueue done [11:48:15]KKMCreateOFDPacket [11:48:15]OFDProtocolAddRootSTLVToBuf [11:48:15]FM_MakeSignedData [11:48:15]FM_MakeSignedData [11:48:15]SAM_PROTO_SignData [11:48:15]wFMCommunicate request_size=4 [11:48:15]MH_SAM_APDU [11:48:15]CAPDU: 80 0D 01 02 [11:48:15]Write to MH i2c: E2 08 00 8A 31 80 0D 01 02 00 00 00 00 34 [11:48:15]Write i2c OK [11:48:15]MH_I2C_Read... [11:48:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:48:15]Read from MH i2c: E2 [11:48:15]MH_I2C_Read... [11:48:15]Read from MH i2c: E2 03 00 [11:48:15]MH_I2C_Read... [11:48:15]Read from MH i2c: E2 03 00 8A 31 00 90 00 2F [11:48:15]RAPDU: 90 00 [11:48:15]wFMCommunicate OK [11:48:15]wFMCommunicate request_size=255 [11:48:15]MH_SAM_APDU [11:48:15]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2C 1A 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 83 95 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 E9 08 01 00 35 04 06 00 C7 B0 68 B8 [11:48:15]Write to MH i2c: E2 02 01 8B 31 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2C 1A 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 83 95 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 E9 08 01 00 35 04 06 00 C7 B0 68 B8 00 00 13 [11:48:15]Write i2c OK [11:48:15]MH_I2C_Read... [11:48:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:48:16]Read from MH i2c: E2 [11:48:16]MH_I2C_Read... [11:48:16]Read from MH i2c: E2 03 00 [11:48:16]MH_I2C_Read... [11:48:16]Read from MH i2c: E2 03 00 8B 31 00 90 00 30 [11:48:16]RAPDU: 90 00 [11:48:16]wFMCommunicate OK [11:48:16]wFMCommunicate request_size=7 [11:48:16]MH_SAM_APDU [11:48:16]CAPDU: 80 0D 02 02 02 BB A6 [11:48:16]Write to MH i2c: E2 0A 00 8C 31 80 0D 02 02 02 00 BB A6 00 00 9C [11:48:16]Write i2c OK [11:48:16]MH_I2C_Read... [11:48:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:48:16]Read from MH i2c: E2 [11:48:16]MH_I2C_Read... [11:48:16]Read from MH i2c: E2 03 00 [11:48:16]MH_I2C_Read... [11:48:16]Read from MH i2c: E2 03 00 8C 31 00 90 00 31 [11:48:16]RAPDU: 90 00 [11:48:16]wFMCommunicate OK [11:48:16]wFMCommunicate request_size=4 [11:48:16]MH_SAM_APDU [11:48:16]CAPDU: 80 0D 03 02 [11:48:16]Write to MH i2c: E2 08 00 8D 31 80 0D 03 02 00 00 00 00 39 [11:48:16]Write i2c OK [11:48:16]MH_I2C_Read... [11:48:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:48:16]Read from MH i2c: E2 [11:48:16]MH_I2C_Read... [11:48:16]Read from MH i2c: E2 0B 00 [11:48:16]MH_I2C_Read... [11:48:16]Read from MH i2c: E2 0B 00 8D 31 00 9E 16 24 20 C8 B3 61 B1 90 00 BF [11:48:16]RAPDU: 9E 16 24 20 C8 B3 61 B1 90 00 [11:48:16]wFMCommunicate OK [11:48:16]SAM_PROTO_SignData done [11:48:16]FM_MakeSignedData done [11:48:16]CreateOFDProtocolMessage [11:48:16]wFMCommunicate request_size=4 [11:48:16]MH_SAM_APDU [11:48:16]CAPDU: 80 11 00 00 [11:48:16]Write to MH i2c: E2 08 00 8E 31 80 11 00 00 00 00 00 00 39 [11:48:16]Write i2c OK [11:48:16]MH_I2C_Read... [11:48:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:48:16]Read from MH i2c: E2 [11:48:16]MH_I2C_Read... [11:48:16]Read from MH i2c: E2 17 00 [11:48:16]MH_I2C_Read... [11:48:16]Read from MH i2c: E2 17 00 8E 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 8F [11:48:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [11:48:16]wFMCommunicate OK [11:48:16]CreateOFDProtocolMessage done [11:48:16]OFDSenderStorePacket 67817 [11:48:16]StoreOFDPacket docnum=67817 [11:48:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 D7 5D 04 01 A4 BE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2C 1A 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 83 95 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 E9 08 01 00 35 04 06 00 C7 B0 68 B8 BB A6 9E 16 24 20 C8 B3 61 B1 [11:48:16]CheckFolder [11:48:16]dirname=/storage/ofd_packets [11:48:16]CheckFolder done [11:48:16]ProducePacketName [11:48:16]name=ofd_packets/00067817 [11:48:16]NVStorageSaveData ofd_packets/00067817 [11:48:16]File name is /storage/ofd_packets/00067817 [11:48:16]Write 298 bytes [11:48:16]NVStorageSaveData done [11:48:16]OFDSenderStorePacket done [11:48:16]KKMCreateOFDPacket done [11:48:16]NVStorageSaveData kkm_last_timestamp [11:48:16]File name is /storage/kkm_last_timestamp [11:48:16]Write 4 bytes [11:48:16]NVStorageSaveData done [11:48:16]ExternCall_PrintAddStr [11:48:16]wPrintStart [11:48:16]Write to MH i2c: 01 00 00 8F 31 C0 [11:48:16]Write i2c OK [11:48:16]MH_I2C_Read... [11:48:16]Read from MH i2c: 01 [11:48:16]MH_I2C_Read... [11:48:16]Read from MH i2c: 01 07 00 [11:48:16]MH_I2C_Read... [11:48:16]Read from MH i2c: 01 07 00 8F 31 00 00 00 00 00 FF 0F D5 [11:48:16]RasterBufferAndPrint [11:48:16]line Счет N : (1)508032 [11:48:16]line ИНН: 02508201610067 [11:48:16]line Контрольно-Кассовый Чек [11:48:16]line ПРОДАЖА [11:48:16]line ТРК (МРК, ГНК) : 31 [11:48:16]line Товар: 2710194210 [11:48:16]line ДТ-К-5 [11:48:16]line 6.700 * 74.70 [11:48:16]line = 500.49 [11:48:16]line НДС 12% НСП 1% [11:48:16]line > о реализуемом товаре [11:48:16]line ОКРУГЛЕНИЕ: -0.49 [11:48:16]line ИТОГО: 500.00 [11:48:16]line Внесено: 500.00 [11:48:16]line СДАЧА: 0.00 [11:48:16]line НСП 1% : 4.43 [11:48:16]line НДС 12% : 53.15 [11:48:16]line Наличными: 500.00 [11:48:16]line Безнал.: 0.00 [11:48:16]line Место: АЗС № 91 "Партнер Нефть" [11:48:16]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [11:48:16]line СНО: Общий режим [11:48:16]line Чек 56 18.05.2024 11:48 [11:48:16]line Смена: 359 ФФД: 1.0 [11:48:16]line ЗНМ: 0300000119 [11:48:16]line РНМ: 0000000000091845 [11:48:16]line Версия ККМ: 001 [11:48:16]line ФМ: 0000000000871829 [11:48:16]line ФД: 67817 [11:48:16]line ФПД: 219560485108646 [11:48:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T114819&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67817&fm=219560485108646&tin=02508201610067®Number=0000000000091845&sum=50000 [11:48:16]OFD Sender: Processing packet 67817 [packets to send 35, broken 34] [11:48:16]ProducePacketName [11:48:16]name=ofd_packets/00067817 [11:48:16]OFD Sender: To server: pG, [11:48:16]CommunicateWithHost lk.salyk.kg:30040 [11:48:16]ConnectInit lk.salyk.kg [11:48:16]written 0, free lines is 4095 [11:48:16]Connected sock=10 [11:48:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 D7 5D 04 01 A4 BE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2C 1A 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 83 95 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 E9 08 01 00 35 04 06 00 C7 B0 68 B8 BB A6 9E 16 24 20 C8 B3 61 B1 [11:48:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 0F 16 47 00 C9 F6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 E9 08 01 00 F4 03 04 00 59 3D 48 66 B6 04 01 00 00 88 5B 44 65 02 88 12 73 [11:48:16]CommunicateWithHost err = 0 [11:48:16]CheckOFDResponse [11:48:16]1017 (14) - 77093643461234 [11:48:16]1041 (16) - 0000000000871829 [11:48:16]1040 (4) - 67817 [11:48:16]1012 (4) - 18.05.2024 05:32 [11:48:16]1206 (1) - 0 [11:48:16]OFD Sender: Remove packet 67817 [11:48:16]ProducePacketName [11:48:16]name=ofd_packets/00067817 [11:48:16]NVStorageDeleteData [11:48:16]Write to MH i2c: 01 00 00 B9 31 EA [11:48:16]Write i2c OK [11:48:16]MH_I2C_Read... [11:48:16]Read from MH i2c: 01 [11:48:16]MH_I2C_Read... [11:48:16]Read from MH i2c: 01 07 00 [11:48:16]MH_I2C_Read... [11:48:16]Read from MH i2c: 01 07 00 B9 31 00 00 00 00 00 BE 0C BB [11:48:16]RasterBufferAndPrint [11:48:16]line [11:48:16]line [11:48:16]line [11:48:16]line [11:48:16]line [11:48:16]written 0, free lines is 3270 [11:48:16]MH_Cut [11:48:16]Write to MH i2c: D1 01 00 C0 31 01 C3 [11:48:16]Write i2c OK [11:48:16]MH_I2C_Read... [11:48:16]Read from MH i2c: D1 [11:48:16]MH_I2C_Read... [11:48:16]Read from MH i2c: D1 01 00 [11:48:16]MH_I2C_Read... [11:48:16]Read from MH i2c: D1 01 00 C0 31 00 C2 [11:48:16]Write to MH i2c: 01 00 00 C1 31 F2 [11:48:16]Write i2c OK [11:48:16]MH_I2C_Read... [11:48:17]OFD Sender: No OFD packet to send [11:48:17]*** Cut start [11:48:17]*** Purtial cut [11:48:17]*** Stage 1: CUTSNS_PIN = 1 [11:48:18]Read from MH i2c: 01 [11:48:18]MH_I2C_Read... [11:48:18]*** Stop cut motor [11:48:18]*** Cut end [11:48:18]Read from MH i2c: 01 07 00 [11:48:18]MH_I2C_Read... [11:48:18]Read from MH i2c: 01 07 00 C1 31 00 00 00 00 00 FF 0F 07 [11:48:18]process_action close_receipt done [11:48:18]requested_data is exist [11:48:18]produce_requested_data [11:48:18]requested_item fm.sn is exist - process it [11:48:18]wFMCommunicate request_size=4 [11:48:18]MH_SAM_APDU [11:48:18]CAPDU: 80 11 00 00 [11:48:18]Write to MH i2c: E2 08 00 C2 31 80 11 00 00 00 00 00 00 6D [11:48:18]Write i2c OK [11:48:18]MH_I2C_Read... [11:48:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:48:18]Read from MH i2c: E2 [11:48:18]MH_I2C_Read... [11:48:18]Read from MH i2c: E2 17 00 [11:48:18]MH_I2C_Read... [11:48:18]Read from MH i2c: E2 17 00 C2 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 C3 [11:48:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [11:48:18]wFMCommunicate OK [11:48:18]requested_item fd.num is exist - process it [11:48:18]SAM_PROTO_GetFieldsCounters [11:48:18]wFMCommunicate request_size=4 [11:48:18]MH_SAM_APDU [11:48:18]CAPDU: 80 13 00 00 [11:48:18]Write to MH i2c: E2 08 00 C3 31 80 13 00 00 00 00 00 00 70 [11:48:18]Write i2c OK [11:48:18]MH_I2C_Read... [11:48:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:48:18]Read from MH i2c: E2 [11:48:18]MH_I2C_Read... [11:48:18]Read from MH i2c: E2 62 00 [11:48:18]MH_I2C_Read... [11:48:18]Read from MH i2c: E2 62 00 C3 31 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 E9 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 39 00 00 00 19 04 04 00 00 00 00 00 90 00 98 [11:48:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 E9 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 39 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:48:18]wFMCommunicate OK [11:48:18]SAM_PROTO_GetFieldsCounters done [11:48:18]requested_item shift.num is exist - process it [11:48:18]requested_item shift.opened is exist - process it [11:48:18]req_shift_opened [11:48:18]FM_GetShiftState [11:48:18]SAM_PROTO_GetShiftState [11:48:18]wFMCommunicate request_size=4 [11:48:18]MH_SAM_APDU [11:48:18]CAPDU: 80 13 01 00 [11:48:18]Write to MH i2c: E2 08 00 C4 31 80 13 01 00 00 00 00 00 72 [11:48:18]Write i2c OK [11:48:18]MH_I2C_Read... [11:48:18]Read from MH i2c: E2 [11:48:18]MH_I2C_Read... [11:48:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:48:18]Read from MH i2c: E2 0E 00 [11:48:18]MH_I2C_Read... [11:48:18]Read from MH i2c: E2 0E 00 C4 31 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 D9 [11:48:18]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [11:48:18]wFMCommunicate OK [11:48:18]SAM_PROTO_GetShiftState done [11:48:18]FM_GetShiftState done [11:48:18]req_shift_opened done [11:48:18]requested_item shift.open_date is exist - process it [11:48:18]req_shift_open_date [11:48:18]req_shift_open_date done [11:48:18]produce_requested_data done [11:48:18]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67817,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [11:48:18]process_action_free close_receipt [11:48:18]json_value_free [11:48:18]json_value_free done [11:48:18]process_json_proto returns [11:48:18]Send response to host [11:48:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67817,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [11:48:18]free response buf [11:48:18]execute_script done [11:48:18]execute_script returns [11:48:18]free content buf [11:48:18]Sock 7.Close socket [11:48:18]Sock 7.Thread stoped [11:48:22]OFD Sender: No OFD packet to send [11:48:27]OFD Sender: No OFD packet to send [11:48:32]OFD Sender: No OFD packet to send [11:48:37]OFD Sender: No OFD packet to send [11:48:42]OFD Sender: No OFD packet to send [11:48:47]OFD Sender: No OFD packet to send [11:48:52]OFD Sender: No OFD packet to send [11:48:57]accept exits with 9 [11:48:57]New connection [11:48:57]New thread 3066752356 created [11:48:57]Thread 3066608996 joined [11:48:57]Waiting for new connection... [11:48:57] Sock 9.Parse request [11:48:57]Sock 9.Check first char [11:48:57]Sock 9.First char is OK [11:48:57]request: POST /json_proto HTTP/1.0 [11:48:57]Method: POST [11:48:57]URL: /json_proto [11:48:57]Method is POST - this is cgi request [11:48:57]url: /json_proto [11:48:57]query_string will be loaded in cgi processing [11:48:57]execute_cgi json_proto POST (null) [11:48:57]execute_cgi path=json_proto method=POST [11:48:57]POST find Content-Length [11:48:57]Host: 172.17.41.195:8080 [11:48:57]Content-Length: 1174 [11:48:57]Content-Type: application/json [11:48:57] [11:48:57]POST finish read [11:48:57]Found Content-Length = 1174 [11:48:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0440\u0441\u0442\u0430\u043D\u0431\u0435\u043A\u043E\u0432 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)508030\u000A18.05.2024 11:31\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 43\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 66.80\u000A\u0418\u0422\u041E\u0413: 1336.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30116836\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:48:57]execute_script... [11:48:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0440\u0441\u0442\u0430\u043D\u0431\u0435\u043A\u043E\u0432 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)508030\u000A18.05.2024 11:31\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 43\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 66.80\u000A\u0418\u0422\u041E\u0413: 1336.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30116836\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:48:57]POST & json_proto [11:48:57]process_json_proto [11:48:57]json parsed OK: [11:48:57]protocol is kg_v1.0 [11:48:57]action value=print_text [11:48:57]process_action print_text [11:48:57]cmd_print_text [11:48:57]ExternCall_PrintAddStr [11:48:57]wPrintStart [11:48:57]Write to MH i2c: 01 00 00 C5 31 F6 [11:48:57]Write i2c OK [11:48:57]MH_I2C_Read... [11:48:57]Read from MH i2c: 01 [11:48:57]MH_I2C_Read... [11:48:57]Read from MH i2c: 01 07 00 [11:48:57]MH_I2C_Read... [11:48:57]Read from MH i2c: 01 07 00 C5 31 00 00 00 00 00 FF 0F 0B [11:48:57]RasterBufferAndPrint [11:48:57]line *****ТОВАРНЫЙ ЧЕК***** [11:48:57]line АЗС-91 [11:48:57]line Партнер нефть [11:48:57]line 02508201610067 [11:48:57]line Кассир : Арстанбеков Н. [11:48:57]line Счет N : (1)508030 [11:48:57]line 18.05.2024 11:31 [11:48:57]line ПРОДАЖА [11:48:57]line ТРК (МРК, ГНК): 43 [11:48:57]line Вид ГСМ : 2710124130 [11:48:57]line Аи-92-К-5 [11:48:57]line 20.000 x 66.80 [11:48:57]line ИТОГ: 1336.00 [11:48:57]line Тип оплаты: Талоны: ТК ГПНА Online [11:48:57]line 30116836 [11:48:57]line ______________________ [11:48:57]line (подпись) [11:48:57]written 0, free lines is 4095 [11:48:57]Write to MH i2c: 01 00 00 D9 31 0A [11:48:57]Write i2c OK [11:48:57]MH_I2C_Read... [11:48:57]Read from MH i2c: 01 [11:48:57]MH_I2C_Read... [11:48:57]Read from MH i2c: 01 07 00 [11:48:57]MH_I2C_Read... [11:48:57]Read from MH i2c: 01 07 00 D9 31 00 00 00 00 00 11 0E 30 [11:48:57]RasterBufferAndPrint [11:48:57]line [11:48:57]line [11:48:57]line [11:48:57]line [11:48:57]line [11:48:57]written 0, free lines is 3602 [11:48:57]MH_Cut [11:48:57]Write to MH i2c: D1 01 00 E0 31 01 E3 [11:48:57]Write i2c OK [11:48:57]MH_I2C_Read... [11:48:57]Read from MH i2c: D1 [11:48:57]MH_I2C_Read... [11:48:57]Read from MH i2c: D1 01 00 [11:48:57]MH_I2C_Read... [11:48:57]Read from MH i2c: D1 01 00 E0 31 00 E2 [11:48:57]Write to MH i2c: 01 00 00 E1 31 12 [11:48:57]Write i2c OK [11:48:57]MH_I2C_Read... [11:48:57]OFD Sender: No OFD packet to send [11:48:57]*** Cut start [11:48:57]*** Purtial cut [11:48:57]*** CUTSNS_PIN = 0 [11:48:58]*** Stage 1: CUTSNS_PIN = 1 [11:48:59]Read from MH i2c: 01 [11:48:59]MH_I2C_Read... [11:48:59]Read from MH i2c: 01 07 00 [11:48:59]MH_I2C_Read... [11:48:59]*** Stop cut motor [11:48:59]*** Cut end [11:48:59]Read from MH i2c: 01 07 00 E1 31 00 00 00 00 00 FF 0F 27 [11:48:59]process_action print_text done [11:48:59]requested_data is exist [11:48:59]produce_requested_data [11:48:59]requested_item fm.sn is exist - process it [11:48:59]wFMCommunicate request_size=4 [11:48:59]MH_SAM_APDU [11:48:59]CAPDU: 80 11 00 00 [11:48:59]Write to MH i2c: E2 08 00 E2 31 80 11 00 00 00 00 00 00 8D [11:48:59]Write i2c OK [11:48:59]MH_I2C_Read... [11:48:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:48:59]Read from MH i2c: E2 [11:48:59]MH_I2C_Read... [11:48:59]Read from MH i2c: E2 17 00 [11:48:59]MH_I2C_Read... [11:48:59]Read from MH i2c: E2 17 00 E2 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 E3 [11:48:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [11:48:59]wFMCommunicate OK [11:48:59]requested_item fd.num is exist - process it [11:48:59]SAM_PROTO_GetFieldsCounters [11:48:59]wFMCommunicate request_size=4 [11:48:59]MH_SAM_APDU [11:48:59]CAPDU: 80 13 00 00 [11:48:59]Write to MH i2c: E2 08 00 E3 31 80 13 00 00 00 00 00 00 90 [11:48:59]Write i2c OK [11:48:59]MH_I2C_Read... [11:49:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:49:00]Read from MH i2c: E2 [11:49:00]MH_I2C_Read... [11:49:00]Read from MH i2c: E2 62 00 [11:49:00]MH_I2C_Read... [11:49:00]Read from MH i2c: E2 62 00 E3 31 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 E9 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 39 00 00 00 19 04 04 00 00 00 00 00 90 00 B8 [11:49:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 E9 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 39 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:49:00]wFMCommunicate OK [11:49:00]SAM_PROTO_GetFieldsCounters done [11:49:00]requested_item shift.num is exist - process it [11:49:00]requested_item shift.opened is exist - process it [11:49:00]req_shift_opened [11:49:00]FM_GetShiftState [11:49:00]SAM_PROTO_GetShiftState [11:49:00]wFMCommunicate request_size=4 [11:49:00]MH_SAM_APDU [11:49:00]CAPDU: 80 13 01 00 [11:49:00]Write to MH i2c: E2 08 00 E4 31 80 13 01 00 00 00 00 00 92 [11:49:00]Write i2c OK [11:49:00]MH_I2C_Read... [11:49:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:49:00]Read from MH i2c: E2 [11:49:00]MH_I2C_Read... [11:49:00]Read from MH i2c: E2 0E 00 [11:49:00]MH_I2C_Read... [11:49:00]Read from MH i2c: E2 0E 00 E4 31 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 F9 [11:49:00]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [11:49:00]wFMCommunicate OK [11:49:00]SAM_PROTO_GetShiftState done [11:49:00]FM_GetShiftState done [11:49:00]req_shift_opened done [11:49:00]requested_item shift.open_date is exist - process it [11:49:00]req_shift_open_date [11:49:00]req_shift_open_date done [11:49:00]produce_requested_data done [11:49:00]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67817,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [11:49:00]process_action_free print_text [11:49:00]json_value_free [11:49:00]json_value_free done [11:49:00]process_json_proto returns [11:49:00]Send response to host [11:49:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67817,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [11:49:00]free response buf [11:49:00]execute_script done [11:49:00]execute_script returns [11:49:00]free content buf [11:49:00]Sock 9.Close socket [11:49:00]Sock 9.Thread stoped [11:49:02]OFD Sender: No OFD packet to send [11:49:07]OFD Sender: No OFD packet to send [11:49:12]OFD Sender: No OFD packet to send [11:49:17]OFD Sender: No OFD packet to send [11:49:22]OFD Sender: No OFD packet to send [11:49:27]OFD Sender: No OFD packet to send [11:49:32]OFD Sender: No OFD packet to send [11:49:37]OFD Sender: No OFD packet to send [11:49:42]OFD Sender: No OFD packet to send [11:49:47]OFD Sender: No OFD packet to send [11:49:52]OFD Sender: No OFD packet to send [11:49:57]OFD Sender: No OFD packet to send [11:50:02]OFD Sender: No OFD packet to send [11:50:07]OFD Sender: No OFD packet to send [11:50:12]OFD Sender: No OFD packet to send [11:50:17]OFD Sender: No OFD packet to send [11:50:22]OFD Sender: No OFD packet to send [11:50:27]OFD Sender: No OFD packet to send [11:50:32]OFD Sender: No OFD packet to send [11:50:37]OFD Sender: No OFD packet to send [11:50:42]OFD Sender: No OFD packet to send [11:50:47]OFD Sender: No OFD packet to send [11:50:52]OFD Sender: No OFD packet to send [11:50:57]OFD Sender: No OFD packet to send [11:51:02]OFD Sender: No OFD packet to send [11:51:07]OFD Sender: No OFD packet to send [11:51:08]accept exits with 7 [11:51:08]New connection [11:51:08]New thread 3066608996 created [11:51:08]Thread 3066752356 joined [11:51:08]Waiting for new connection... [11:51:08] Sock 7.Parse request [11:51:08]Sock 7.Check first char [11:51:08]Sock 7.First char is OK [11:51:08]request: POST /json_proto HTTP/1.0 [11:51:08]Method: POST [11:51:08]URL: /json_proto [11:51:08]Method is POST - this is cgi request [11:51:08]url: /json_proto [11:51:08]query_string will be loaded in cgi processing [11:51:08]execute_cgi json_proto POST (null) [11:51:08]execute_cgi path=json_proto method=POST [11:51:08]POST find Content-Length [11:51:08]Host: 172.17.41.195:8080 [11:51:08]Content-Length: 1210 [11:51:08]Content-Type: application/json [11:51:08] [11:51:08]POST finish read [11:51:08]Found Content-Length = 1210 [11:51:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0440\u0441\u0442\u0430\u043D\u0431\u0435\u043A\u043E\u0432 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)508029\u000A18.05.2024 11:33\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 130.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 9711.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:51:08]execute_script... [11:51:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0440\u0441\u0442\u0430\u043D\u0431\u0435\u043A\u043E\u0432 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)508029\u000A18.05.2024 11:33\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 130.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 9711.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:51:08]POST & json_proto [11:51:08]process_json_proto [11:51:08]json parsed OK: [11:51:08]protocol is kg_v1.0 [11:51:08]action value=print_text [11:51:08]process_action print_text [11:51:08]cmd_print_text [11:51:08]ExternCall_PrintAddStr [11:51:08]wPrintStart [11:51:08]Write to MH i2c: 01 00 00 E5 31 16 [11:51:08]Write i2c OK [11:51:08]MH_I2C_Read... [11:51:08]Read from MH i2c: 01 [11:51:08]MH_I2C_Read... [11:51:08]Read from MH i2c: 01 07 00 [11:51:08]MH_I2C_Read... [11:51:08]Read from MH i2c: 01 07 00 E5 31 00 00 00 00 00 FF 0F 2B [11:51:08]RasterBufferAndPrint [11:51:08]line *****ТОВАРНЫЙ ЧЕК***** [11:51:08]line АЗС-91 [11:51:08]line Партнер нефть [11:51:08]line 02508201610067 [11:51:08]line Кассир : Арстанбеков Н. [11:51:08]line Счет N : (1)508029 [11:51:08]line 18.05.2024 11:33 [11:51:08]line ПРОДАЖА [11:51:08]line ТРК (МРК, ГНК): 21 [11:51:08]line Вид ГСМ : 2710194210 [11:51:08]line ДТ-К-5 [11:51:08]line 130.000 x 74.70 [11:51:08]line ИТОГ: 9711.00 [11:51:08]line Тип оплаты: Талоны: Топливная Карта [11:51:08]line 02750 [11:51:08]line ______________________ [11:51:08]line (подпись) [11:51:08]written 0, free lines is 4095 [11:51:08]Write to MH i2c: 01 00 00 F9 31 2A [11:51:08]Write i2c OK [11:51:08]MH_I2C_Read... [11:51:08]Read from MH i2c: 01 [11:51:08]MH_I2C_Read... [11:51:08]Read from MH i2c: 01 07 00 [11:51:08]MH_I2C_Read... [11:51:08]Read from MH i2c: 01 07 00 F9 31 00 00 00 00 00 0F 0E 4E [11:51:08]RasterBufferAndPrint [11:51:08]line [11:51:08]line [11:51:08]line [11:51:08]line [11:51:08]line [11:51:08]written 0, free lines is 3600 [11:51:08]MH_Cut [11:51:08]Write to MH i2c: D1 01 00 00 32 01 04 [11:51:08]Write i2c OK [11:51:08]MH_I2C_Read... [11:51:08]Read from MH i2c: D1 [11:51:08]MH_I2C_Read... [11:51:08]Read from MH i2c: D1 01 00 [11:51:08]MH_I2C_Read... [11:51:08]Read from MH i2c: D1 01 00 00 32 00 03 [11:51:08]Write to MH i2c: 01 00 00 01 32 33 [11:51:08]Write i2c OK [11:51:08]MH_I2C_Read... [11:51:09]*** Cut start [11:51:09]*** Purtial cut [11:51:09]*** Stage 1: CUTSNS_PIN = 1 [11:51:09]Read from MH i2c: 01 [11:51:09]MH_I2C_Read... [11:51:09]Read from MH i2c: 01 07 00 [11:51:09]MH_I2C_Read... [11:51:09]*** Stop cut motor [11:51:09]*** Cut end [11:51:09]Read from MH i2c: 01 07 00 01 32 00 00 00 00 00 FF 0F 48 [11:51:09]process_action print_text done [11:51:09]requested_data is exist [11:51:09]produce_requested_data [11:51:09]requested_item fm.sn is exist - process it [11:51:09]wFMCommunicate request_size=4 [11:51:09]MH_SAM_APDU [11:51:09]CAPDU: 80 11 00 00 [11:51:09]Write to MH i2c: E2 08 00 02 32 80 11 00 00 00 00 00 00 AE [11:51:09]Write i2c OK [11:51:09]MH_I2C_Read... [11:51:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:51:09]Read from MH i2c: E2 [11:51:09]MH_I2C_Read... [11:51:09]Read from MH i2c: E2 17 00 [11:51:09]MH_I2C_Read... [11:51:09]Read from MH i2c: E2 17 00 02 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 04 [11:51:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [11:51:09]wFMCommunicate OK [11:51:09]requested_item fd.num is exist - process it [11:51:09]SAM_PROTO_GetFieldsCounters [11:51:09]wFMCommunicate request_size=4 [11:51:09]MH_SAM_APDU [11:51:09]CAPDU: 80 13 00 00 [11:51:09]Write to MH i2c: E2 08 00 03 32 80 13 00 00 00 00 00 00 B1 [11:51:09]Write i2c OK [11:51:09]MH_I2C_Read... [11:51:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:51:09]Read from MH i2c: E2 [11:51:09]MH_I2C_Read... [11:51:09]Read from MH i2c: E2 62 00 [11:51:09]MH_I2C_Read... [11:51:09]Read from MH i2c: E2 62 00 03 32 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 E9 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 39 00 00 00 19 04 04 00 00 00 00 00 90 00 D9 [11:51:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 E9 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 39 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:51:09]wFMCommunicate OK [11:51:09]SAM_PROTO_GetFieldsCounters done [11:51:09]requested_item shift.num is exist - process it [11:51:09]requested_item shift.opened is exist - process it [11:51:09]req_shift_opened [11:51:09]FM_GetShiftState [11:51:09]SAM_PROTO_GetShiftState [11:51:09]wFMCommunicate request_size=4 [11:51:09]MH_SAM_APDU [11:51:09]CAPDU: 80 13 01 00 [11:51:09]Write to MH i2c: E2 08 00 04 32 80 13 01 00 00 00 00 00 B3 [11:51:09]Write i2c OK [11:51:09]MH_I2C_Read... [11:51:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:51:09]Read from MH i2c: E2 [11:51:09]MH_I2C_Read... [11:51:09]Read from MH i2c: E2 0E 00 [11:51:09]MH_I2C_Read... [11:51:09]Read from MH i2c: E2 0E 00 04 32 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 1A [11:51:09]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [11:51:09]wFMCommunicate OK [11:51:09]SAM_PROTO_GetShiftState done [11:51:09]FM_GetShiftState done [11:51:09]req_shift_opened done [11:51:09]requested_item shift.open_date is exist - process it [11:51:09]req_shift_open_date [11:51:09]req_shift_open_date done [11:51:09]produce_requested_data done [11:51:09]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67817,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [11:51:09]process_action_free print_text [11:51:09]json_value_free [11:51:09]json_value_free done [11:51:09]process_json_proto returns [11:51:09]Send response to host [11:51:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67817,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [11:51:09]free response buf [11:51:09]execute_script done [11:51:09]execute_script returns [11:51:09]free content buf [11:51:09]Sock 7.Close socket [11:51:09]Sock 7.Thread stoped [11:51:12]OFD Sender: No OFD packet to send [11:51:17]OFD Sender: No OFD packet to send [11:51:22]OFD Sender: No OFD packet to send [11:51:27]OFD Sender: No OFD packet to send [11:51:32]OFD Sender: No OFD packet to send [11:51:37]OFD Sender: No OFD packet to send [11:51:42]OFD Sender: No OFD packet to send [11:51:47]OFD Sender: No OFD packet to send [11:51:52]OFD Sender: No OFD packet to send [11:51:57]OFD Sender: No OFD packet to send [11:52:02]OFD Sender: No OFD packet to send [11:52:07]OFD Sender: No OFD packet to send [11:52:12]OFD Sender: No OFD packet to send [11:52:17]OFD Sender: No OFD packet to send [11:52:22]OFD Sender: No OFD packet to send [11:52:27]OFD Sender: No OFD packet to send [11:52:32]OFD Sender: No OFD packet to send [11:52:37]OFD Sender: No OFD packet to send [11:52:42]OFD Sender: No OFD packet to send [11:52:47]OFD Sender: No OFD packet to send [11:52:52]OFD Sender: No OFD packet to send [11:52:54]accept exits with 9 [11:52:54]New connection [11:52:54]New thread 3066752356 created [11:52:54]Thread 3066608996 joined [11:52:54]Waiting for new connection... [11:52:54] Sock 9.Parse request [11:52:54]Sock 9.Check first char [11:52:54]Sock 9.First char is OK [11:52:54]request: POST /json_proto HTTP/1.0 [11:52:54]Method: POST [11:52:54]URL: /json_proto [11:52:54]Method is POST - this is cgi request [11:52:54]url: /json_proto [11:52:54]query_string will be loaded in cgi processing [11:52:54]execute_cgi json_proto POST (null) [11:52:54]execute_cgi path=json_proto method=POST [11:52:54]POST find Content-Length [11:52:54]Host: 172.17.41.195:8080 [11:52:54]Content-Length: 796 [11:52:54]Content-Type: application/json [11:52:54] [11:52:54]POST finish read [11:52:54]Found Content-Length = 796 [11:52:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)508035", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.05 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:52:54]execute_script... [11:52:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)508035", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.05 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:52:54]POST & json_proto [11:52:54]process_json_proto [11:52:54]json parsed OK: [11:52:54]protocol is kg_v1.0 [11:52:54]action value=close_receipt [11:52:54]process_action close_receipt [11:52:54]cmd_close_receipt [11:52:54]MH_GetDate [11:52:54]Write to MH i2c: F0 00 00 05 32 26 [11:52:54]Write i2c OK [11:52:54]MH_I2C_Read... [11:52:54]Read from MH i2c: F0 [11:52:54]MH_I2C_Read... [11:52:54]Read from MH i2c: F0 09 00 [11:52:54]MH_I2C_Read... [11:52:54]Read from MH i2c: F0 09 00 05 32 00 9B 96 48 66 FC 21 6F 64 FE [11:52:54]GetLastDocTimeStamp 1716032899 [11:52:54]current date 1716033179 [11:52:54]FM_GetShiftState [11:52:54]SAM_PROTO_GetShiftState [11:52:54]wFMCommunicate request_size=4 [11:52:54]MH_SAM_APDU [11:52:54]CAPDU: 80 13 01 00 [11:52:54]Write to MH i2c: E2 08 00 06 32 80 13 01 00 00 00 00 00 B5 [11:52:54]Write i2c OK [11:52:54]MH_I2C_Read... [11:52:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:52:54]Read from MH i2c: E2 [11:52:54]MH_I2C_Read... [11:52:54]Read from MH i2c: E2 0E 00 [11:52:54]MH_I2C_Read... [11:52:54]Read from MH i2c: E2 0E 00 06 32 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 1C [11:52:54]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [11:52:54]wFMCommunicate OK [11:52:54]SAM_PROTO_GetShiftState done [11:52:54]FM_GetShiftState done [11:52:54]opened in 1715991483 [11:52:54]opened+sec_in_day 1716077883 [11:52:54]quantity*price = 100005 [11:52:54]sum+1 = 100006 [11:52:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.05 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 0.00 Безнал.: 1000.05 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 57 18.05.2024 11:52 Смена: 359 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67818 ФПД: 108094604882253 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T115259&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67818&fm=108094604882253&tin=02508201610067®Number=0000000000091845&sum=100005 [11:52:55]StoreToDocumentArchive [11:52:55]shift 359 fd 67818 [11:52:55]save to /storage/0359/doc_00067818 [11:52:55]save last doc name /storage/0359/doc_00067818 to /storage/kkm_last_doc_name [11:52:55]save OK [11:52:55]Clear old archive folders... [11:52:55]ProcessDocumentItem done err = 0, tmpTLVsize=252 [11:52:55]tlvbuf is 01B26A00 [11:52:55]SAM_PROTO_ClearQueue [11:52:55]wFMCommunicate request_size=4 [11:52:55]MH_SAM_APDU [11:52:55]CAPDU: 80 09 00 00 [11:52:55]Write to MH i2c: E2 08 00 13 32 80 09 00 00 00 00 00 00 B7 [11:52:55]Write i2c OK [11:52:55]MH_I2C_Read... [11:52:55]Read from MH i2c: E2 [11:52:55]MH_I2C_Read... [11:52:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:52:55]Read from MH i2c: E2 03 00 [11:52:55]MH_I2C_Read... [11:52:55]Read from MH i2c: E2 03 00 13 32 00 90 00 B9 [11:52:55]RAPDU: 90 00 [11:52:55]wFMCommunicate OK [11:52:55]SAM_PROTO_ClearQueue done [11:52:55]KKMCreateOFDPacket [11:52:55]OFDProtocolAddRootSTLVToBuf [11:52:55]FM_MakeSignedData [11:52:55]FM_MakeSignedData [11:52:55]SAM_PROTO_SignData [11:52:55]wFMCommunicate request_size=4 [11:52:55]MH_SAM_APDU [11:52:55]CAPDU: 80 0D 01 02 [11:52:55]Write to MH i2c: E2 08 00 14 32 80 0D 01 02 00 00 00 00 BF [11:52:55]Write i2c OK [11:52:55]MH_I2C_Read... [11:52:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:52:55]Read from MH i2c: E2 [11:52:55]MH_I2C_Read... [11:52:55]Read from MH i2c: E2 03 00 [11:52:55]MH_I2C_Read... [11:52:55]Read from MH i2c: E2 03 00 14 32 00 90 00 BA [11:52:55]RAPDU: 90 00 [11:52:55]wFMCommunicate OK [11:52:55]wFMCommunicate request_size=255 [11:52:55]MH_SAM_APDU [11:52:55]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A5 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A5 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 9B 96 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 EA 08 01 00 35 04 06 00 [11:52:55]Write to MH i2c: E2 02 01 15 32 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A5 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A5 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 9B 96 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 EA 08 01 00 35 04 06 00 00 00 79 [11:52:55]Write i2c OK [11:52:55]MH_I2C_Read... [11:52:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:52:56]Read from MH i2c: E2 [11:52:56]MH_I2C_Read... [11:52:56]Read from MH i2c: E2 03 00 [11:52:56]MH_I2C_Read... [11:52:56]Read from MH i2c: E2 03 00 15 32 00 90 00 BB [11:52:56]RAPDU: 90 00 [11:52:56]wFMCommunicate OK [11:52:56]wFMCommunicate request_size=11 [11:52:56]MH_SAM_APDU [11:52:56]CAPDU: 80 0D 02 02 06 62 4F BC 86 B1 4D [11:52:56]Write to MH i2c: E2 0E 00 16 32 80 0D 02 02 06 00 62 4F BC 86 B1 4D 00 00 BF [11:52:56]Write i2c OK [11:52:56]MH_I2C_Read... [11:52:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:52:56]Read from MH i2c: E2 [11:52:56]MH_I2C_Read... [11:52:56]Read from MH i2c: E2 03 00 [11:52:56]MH_I2C_Read... [11:52:56]Read from MH i2c: E2 03 00 16 32 00 90 00 BC [11:52:56]RAPDU: 90 00 [11:52:56]wFMCommunicate OK [11:52:56]wFMCommunicate request_size=4 [11:52:56]MH_SAM_APDU [11:52:56]CAPDU: 80 0D 03 02 [11:52:56]Write to MH i2c: E2 08 00 17 32 80 0D 03 02 00 00 00 00 C4 [11:52:56]Write i2c OK [11:52:56]MH_I2C_Read... [11:52:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:52:56]Read from MH i2c: E2 [11:52:56]MH_I2C_Read... [11:52:56]Read from MH i2c: E2 0B 00 [11:52:56]MH_I2C_Read... [11:52:56]Read from MH i2c: E2 0B 00 17 32 00 BB 33 5A A9 7A FF EE E4 90 00 01 [11:52:56]RAPDU: BB 33 5A A9 7A FF EE E4 90 00 [11:52:56]wFMCommunicate OK [11:52:56]SAM_PROTO_SignData done [11:52:56]FM_MakeSignedData done [11:52:56]CreateOFDProtocolMessage [11:52:56]wFMCommunicate request_size=4 [11:52:56]MH_SAM_APDU [11:52:56]CAPDU: 80 11 00 00 [11:52:56]Write to MH i2c: E2 08 00 18 32 80 11 00 00 00 00 00 00 C4 [11:52:56]Write i2c OK [11:52:56]MH_I2C_Read... [11:52:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:52:56]Read from MH i2c: E2 [11:52:56]MH_I2C_Read... [11:52:56]Read from MH i2c: E2 17 00 [11:52:56]MH_I2C_Read... [11:52:56]Read from MH i2c: E2 17 00 18 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 1A [11:52:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [11:52:56]wFMCommunicate OK [11:52:56]CreateOFDProtocolMessage done [11:52:56]OFDSenderStorePacket 67818 [11:52:56]StoreOFDPacket docnum=67818 [11:52:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 01 00 00 7A 23 08 01 C9 3B 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A5 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A5 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 9B 96 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 EA 08 01 00 35 04 06 00 62 4F BC 86 B1 4D BB 33 5A A9 7A FF EE E4 [11:52:56]CheckFolder [11:52:56]dirname=/storage/ofd_packets [11:52:56]CheckFolder done [11:52:56]ProducePacketName [11:52:56]name=ofd_packets/00067818 [11:52:56]NVStorageSaveData ofd_packets/00067818 [11:52:56]File name is /storage/ofd_packets/00067818 [11:52:56]Write 302 bytes [11:52:56]NVStorageSaveData done [11:52:56]OFDSenderStorePacket done [11:52:56]KKMCreateOFDPacket done [11:52:56]NVStorageSaveData kkm_last_timestamp [11:52:56]File name is /storage/kkm_last_timestamp [11:52:56]Write 4 bytes [11:52:56]NVStorageSaveData done [11:52:56]ExternCall_PrintAddStr [11:52:56]wPrintStart [11:52:56]Write to MH i2c: 01 00 00 19 32 4B [11:52:56]Write i2c OK [11:52:56]MH_I2C_Read... [11:52:56]Read from MH i2c: 01 [11:52:56]MH_I2C_Read... [11:52:56]Read from MH i2c: 01 07 00 [11:52:56]MH_I2C_Read... [11:52:56]Read from MH i2c: 01 07 00 19 32 00 00 00 00 00 FF 0F 60 [11:52:56]RasterBufferAndPrint [11:52:56]line Счет N : (1)508035 [11:52:56]line ИНН: 02508201610067 [11:52:56]line Контрольно-Кассовый Чек [11:52:56]line ПРОДАЖА [11:52:56]line ТРК (МРК, ГНК) : 42 [11:52:56]line Товар: 2710124130 [11:52:56]line Super-92-К-5 [11:52:56]line 14.750 * 67.80 [11:52:56]line = 1000.05 [11:52:56]line НДС 12% НСП 1% [11:52:56]line > о реализуемом товаре [11:52:56]line ИТОГО: 1000.05 [11:52:56]line НСП 1% : 8.85 [11:52:56]line НДС 12% : 106.20 [11:52:56]line Наличными: 0.00 [11:52:56]line Безнал.: 1000.05 [11:52:56]line Место: АЗС № 91 "Партнер Нефть" [11:52:56]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [11:52:56]line СНО: Общий режим [11:52:56]line Чек 57 18.05.2024 11:52 [11:52:56]line Смена: 359 ФФД: 1.0 [11:52:56]line ЗНМ: 0300000119 [11:52:56]line РНМ: 0000000000091845 [11:52:56]line Версия ККМ: 001 [11:52:56]line Платежная система: O! деньги [11:52:56]line ФМ: 0000000000871829 [11:52:56]line ФД: 67818 [11:52:56]line ФПД: 108094604882253 [11:52:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T115259&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67818&fm=108094604882253&tin=02508201610067®Number=0000000000091845&sum=100005 [11:52:56]OFD Sender: Processing packet 67818 [packets to send 35, broken 34] [11:52:56]ProducePacketName [11:52:56]name=ofd_packets/00067818 [11:52:56]OFD Sender: To server: pG, [11:52:56]CommunicateWithHost lk.salyk.kg:30040 [11:52:56]ConnectInit lk.salyk.kg [11:52:56]written 0, free lines is 4095 [11:52:56]Connected sock=10 [11:52:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 01 00 00 7A 23 08 01 C9 3B 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A5 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A5 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 9B 96 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 EA 08 01 00 35 04 06 00 62 4F BC 86 B1 4D BB 33 5A A9 7A FF EE E4 [11:52:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 EF 2D 47 00 F4 97 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 EA 08 01 00 F4 03 04 00 71 3E 48 66 B6 04 01 00 00 4E 3D 58 A1 5E 0A D5 06 [11:52:56]CommunicateWithHost err = 0 [11:52:56]CheckOFDResponse [11:52:56]1017 (14) - 77093643461234 [11:52:56]1041 (16) - 0000000000871829 [11:52:56]1040 (4) - 67818 [11:52:56]1012 (4) - 18.05.2024 05:36 [11:52:56]1206 (1) - 0 [11:52:56]OFD Sender: Remove packet 67818 [11:52:56]ProducePacketName [11:52:56]name=ofd_packets/00067818 [11:52:56]NVStorageDeleteData [11:52:57]Write to MH i2c: 01 00 00 42 32 74 [11:52:57]Write i2c OK [11:52:57]MH_I2C_Read... [11:52:57]Read from MH i2c: 01 [11:52:57]MH_I2C_Read... [11:52:57]Read from MH i2c: 01 07 00 [11:52:57]MH_I2C_Read... [11:52:57]Read from MH i2c: 01 07 00 42 32 00 00 00 00 00 D8 0C 5F [11:52:57]RasterBufferAndPrint [11:52:57]line [11:52:57]line [11:52:57]line [11:52:57]line [11:52:57]line [11:52:57]written 0, free lines is 3296 [11:52:57]MH_Cut [11:52:57]Write to MH i2c: D1 01 00 49 32 01 4D [11:52:57]Write i2c OK [11:52:57]MH_I2C_Read... [11:52:57]Read from MH i2c: D1 [11:52:57]MH_I2C_Read... [11:52:57]Read from MH i2c: D1 01 00 [11:52:57]MH_I2C_Read... [11:52:57]Read from MH i2c: D1 01 00 49 32 00 4C [11:52:57]Write to MH i2c: 01 00 00 4A 32 7C [11:52:57]Write i2c OK [11:52:57]MH_I2C_Read... [11:52:57]OFD Sender: No OFD packet to send [11:52:57]*** Cut start [11:52:57]*** Purtial cut [11:52:57]*** CUTSNS_PIN = 0 [11:52:58]*** Stage 1: CUTSNS_PIN = 1 [11:52:59]Read from MH i2c: 01 [11:52:59]MH_I2C_Read... [11:52:59]*** Stop cut motor [11:52:59]*** Cut end [11:52:59]Read from MH i2c: 01 07 00 [11:52:59]MH_I2C_Read... [11:52:59]Read from MH i2c: 01 07 00 4A 32 00 00 00 00 00 FF 0F 91 [11:52:59]process_action close_receipt done [11:52:59]requested_data is exist [11:52:59]produce_requested_data [11:52:59]requested_item fm.sn is exist - process it [11:52:59]wFMCommunicate request_size=4 [11:52:59]MH_SAM_APDU [11:52:59]CAPDU: 80 11 00 00 [11:52:59]Write to MH i2c: E2 08 00 4B 32 80 11 00 00 00 00 00 00 F7 [11:52:59]Write i2c OK [11:52:59]MH_I2C_Read... [11:52:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:52:59]Read from MH i2c: E2 [11:52:59]MH_I2C_Read... [11:52:59]Read from MH i2c: E2 17 00 [11:52:59]MH_I2C_Read... [11:52:59]Read from MH i2c: E2 17 00 4B 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 4D [11:52:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [11:52:59]wFMCommunicate OK [11:52:59]requested_item fd.num is exist - process it [11:52:59]SAM_PROTO_GetFieldsCounters [11:52:59]wFMCommunicate request_size=4 [11:52:59]MH_SAM_APDU [11:52:59]CAPDU: 80 13 00 00 [11:52:59]Write to MH i2c: E2 08 00 4C 32 80 13 00 00 00 00 00 00 FA [11:52:59]Write i2c OK [11:52:59]MH_I2C_Read... [11:53:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:53:00]Read from MH i2c: E2 [11:53:00]MH_I2C_Read... [11:53:00]Read from MH i2c: E2 62 00 [11:53:00]MH_I2C_Read... [11:53:00]Read from MH i2c: E2 62 00 4C 32 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 EA 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 26 [11:53:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 EA 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:53:00]wFMCommunicate OK [11:53:00]SAM_PROTO_GetFieldsCounters done [11:53:00]requested_item shift.num is exist - process it [11:53:00]requested_item shift.opened is exist - process it [11:53:00]req_shift_opened [11:53:00]FM_GetShiftState [11:53:00]SAM_PROTO_GetShiftState [11:53:00]wFMCommunicate request_size=4 [11:53:00]MH_SAM_APDU [11:53:00]CAPDU: 80 13 01 00 [11:53:00]Write to MH i2c: E2 08 00 4D 32 80 13 01 00 00 00 00 00 FC [11:53:00]Write i2c OK [11:53:00]MH_I2C_Read... [11:53:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:53:00]Read from MH i2c: E2 [11:53:00]MH_I2C_Read... [11:53:00]Read from MH i2c: E2 0E 00 [11:53:00]MH_I2C_Read... [11:53:00]Read from MH i2c: E2 0E 00 4D 32 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 63 [11:53:00]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [11:53:00]wFMCommunicate OK [11:53:00]SAM_PROTO_GetShiftState done [11:53:00]FM_GetShiftState done [11:53:00]req_shift_opened done [11:53:00]requested_item shift.open_date is exist - process it [11:53:00]req_shift_open_date [11:53:00]req_shift_open_date done [11:53:00]produce_requested_data done [11:53:00]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67818,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [11:53:00]process_action_free close_receipt [11:53:00]json_value_free [11:53:00]json_value_free done [11:53:00]process_json_proto returns [11:53:00]Send response to host [11:53:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67818,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [11:53:00]free response buf [11:53:00]execute_script done [11:53:00]execute_script returns [11:53:00]free content buf [11:53:00]Sock 9.Close socket [11:53:00]Sock 9.Thread stoped [11:53:02]OFD Sender: No OFD packet to send [11:53:07]OFD Sender: No OFD packet to send [11:53:12]OFD Sender: No OFD packet to send [11:53:17]OFD Sender: No OFD packet to send [11:53:22]OFD Sender: No OFD packet to send [11:53:27]OFD Sender: No OFD packet to send [11:53:32]OFD Sender: No OFD packet to send [11:53:37]OFD Sender: No OFD packet to send [11:53:42]OFD Sender: No OFD packet to send [11:53:47]OFD Sender: No OFD packet to send [11:53:52]OFD Sender: No OFD packet to send [11:53:57]OFD Sender: No OFD packet to send [11:54:00]accept exits with 7 [11:54:00]New connection [11:54:00]New thread 3066608996 created [11:54:00]Thread 3066752356 joined [11:54:00]Waiting for new connection... [11:54:00] Sock 7.Parse request [11:54:00]Sock 7.Check first char [11:54:00]Sock 7.First char is OK [11:54:00]request: POST /json_proto HTTP/1.0 [11:54:00]Method: POST [11:54:00]URL: /json_proto [11:54:00]Method is POST - this is cgi request [11:54:00]url: /json_proto [11:54:00]query_string will be loaded in cgi processing [11:54:00]execute_cgi json_proto POST (null) [11:54:00]execute_cgi path=json_proto method=POST [11:54:00]POST find Content-Length [11:54:00]Host: 172.17.41.195:8080 [11:54:00]Content-Length: 1209 [11:54:00]Content-Type: application/json [11:54:00] [11:54:00]POST finish read [11:54:00]Found Content-Length = 1209 [11:54:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0440\u0441\u0442\u0430\u043D\u0431\u0435\u043A\u043E\u0432 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)508034\u000A18.05.2024 11:36\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 30.940 x 74.70\u000A\u0418\u0422\u041E\u0413: 2311.22\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:54:00]execute_script... [11:54:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0440\u0441\u0442\u0430\u043D\u0431\u0435\u043A\u043E\u0432 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)508034\u000A18.05.2024 11:36\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 30.940 x 74.70\u000A\u0418\u0422\u041E\u0413: 2311.22\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:54:00]POST & json_proto [11:54:00]process_json_proto [11:54:00]json parsed OK: [11:54:00]protocol is kg_v1.0 [11:54:00]action value=print_text [11:54:00]process_action print_text [11:54:00]cmd_print_text [11:54:00]ExternCall_PrintAddStr [11:54:00]wPrintStart [11:54:00]Write to MH i2c: 01 00 00 4E 32 80 [11:54:00]Write i2c OK [11:54:00]MH_I2C_Read... [11:54:00]Read from MH i2c: 01 [11:54:00]MH_I2C_Read... [11:54:00]Read from MH i2c: 01 07 00 [11:54:00]MH_I2C_Read... [11:54:00]Read from MH i2c: 01 07 00 4E 32 00 00 00 00 00 FF 0F 95 [11:54:00]RasterBufferAndPrint [11:54:00]line *****ТОВАРНЫЙ ЧЕК***** [11:54:00]line АЗС-91 [11:54:00]line Партнер нефть [11:54:00]line 02508201610067 [11:54:00]line Кассир : Арстанбеков Н. [11:54:00]line Счет N : (1)508034 [11:54:00]line 18.05.2024 11:36 [11:54:00]line ПРОДАЖА [11:54:00]line ТРК (МРК, ГНК): 21 [11:54:00]line Вид ГСМ : 2710194210 [11:54:00]line ДТ-К-5 [11:54:00]line 30.940 x 74.70 [11:54:00]line ИТОГ: 2311.22 [11:54:00]line Тип оплаты: Талоны: Топливная Карта [11:54:00]line 02750 [11:54:00]line ______________________ [11:54:00]line (подпись) [11:54:00]written 0, free lines is 4095 [11:54:00]Write to MH i2c: 01 00 00 62 32 94 [11:54:00]Write i2c OK [11:54:00]MH_I2C_Read... [11:54:00]Read from MH i2c: 01 [11:54:00]MH_I2C_Read... [11:54:00]Read from MH i2c: 01 07 00 [11:54:00]MH_I2C_Read... [11:54:00]Read from MH i2c: 01 07 00 62 32 00 00 00 00 00 0F 0E B8 [11:54:00]RasterBufferAndPrint [11:54:00]line [11:54:00]line [11:54:00]line [11:54:00]line [11:54:00]line [11:54:00]written 0, free lines is 3600 [11:54:00]MH_Cut [11:54:00]Write to MH i2c: D1 01 00 69 32 01 6D [11:54:00]Write i2c OK [11:54:00]MH_I2C_Read... [11:54:00]Read from MH i2c: D1 [11:54:00]MH_I2C_Read... [11:54:00]Read from MH i2c: D1 01 00 [11:54:00]MH_I2C_Read... [11:54:00]Read from MH i2c: D1 01 00 69 32 00 6C [11:54:00]Write to MH i2c: 01 00 00 6A 32 9C [11:54:00]Write i2c OK [11:54:00]MH_I2C_Read... [11:54:00]*** Cut start [11:54:00]*** Purtial cut [11:54:00]*** Stage 1: CUTSNS_PIN = 1 [11:54:01]Read from MH i2c: 01 [11:54:01]MH_I2C_Read... [11:54:01]Read from MH i2c: 01 07 00 [11:54:01]MH_I2C_Read... [11:54:01]*** Stop cut motor [11:54:01]*** Cut end [11:54:01]Read from MH i2c: 01 07 00 6A 32 00 00 00 00 00 FF 0F B1 [11:54:01]process_action print_text done [11:54:01]requested_data is exist [11:54:01]produce_requested_data [11:54:01]requested_item fm.sn is exist - process it [11:54:01]wFMCommunicate request_size=4 [11:54:01]MH_SAM_APDU [11:54:01]CAPDU: 80 11 00 00 [11:54:01]Write to MH i2c: E2 08 00 6B 32 80 11 00 00 00 00 00 00 17 [11:54:01]Write i2c OK [11:54:01]MH_I2C_Read... [11:54:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:54:01]Read from MH i2c: E2 [11:54:01]MH_I2C_Read... [11:54:01]Read from MH i2c: E2 17 00 [11:54:01]MH_I2C_Read... [11:54:01]Read from MH i2c: E2 17 00 6B 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 6D [11:54:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [11:54:01]wFMCommunicate OK [11:54:01]requested_item fd.num is exist - process it [11:54:01]SAM_PROTO_GetFieldsCounters [11:54:01]wFMCommunicate request_size=4 [11:54:01]MH_SAM_APDU [11:54:01]CAPDU: 80 13 00 00 [11:54:01]Write to MH i2c: E2 08 00 6C 32 80 13 00 00 00 00 00 00 1A [11:54:01]Write i2c OK [11:54:01]MH_I2C_Read... [11:54:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:54:01]Read from MH i2c: E2 [11:54:01]MH_I2C_Read... [11:54:01]Read from MH i2c: E2 62 00 [11:54:01]MH_I2C_Read... [11:54:01]Read from MH i2c: E2 62 00 6C 32 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 EA 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 46 [11:54:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 EA 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:54:01]wFMCommunicate OK [11:54:01]SAM_PROTO_GetFieldsCounters done [11:54:01]requested_item shift.num is exist - process it [11:54:01]requested_item shift.opened is exist - process it [11:54:01]req_shift_opened [11:54:01]FM_GetShiftState [11:54:01]SAM_PROTO_GetShiftState [11:54:01]wFMCommunicate request_size=4 [11:54:01]MH_SAM_APDU [11:54:01]CAPDU: 80 13 01 00 [11:54:01]Write to MH i2c: E2 08 00 6D 32 80 13 01 00 00 00 00 00 1C [11:54:01]Write i2c OK [11:54:01]MH_I2C_Read... [11:54:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:54:01]Read from MH i2c: E2 [11:54:01]MH_I2C_Read... [11:54:01]Read from MH i2c: E2 0E 00 [11:54:01]MH_I2C_Read... [11:54:01]Read from MH i2c: E2 0E 00 6D 32 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 83 [11:54:01]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [11:54:01]wFMCommunicate OK [11:54:01]SAM_PROTO_GetShiftState done [11:54:01]FM_GetShiftState done [11:54:01]req_shift_opened done [11:54:01]requested_item shift.open_date is exist - process it [11:54:01]req_shift_open_date [11:54:01]req_shift_open_date done [11:54:01]produce_requested_data done [11:54:01]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67818,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [11:54:01]process_action_free print_text [11:54:01]json_value_free [11:54:01]json_value_free done [11:54:01]process_json_proto returns [11:54:01]Send response to host [11:54:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67818,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [11:54:01]free response buf [11:54:01]execute_script done [11:54:01]execute_script returns [11:54:01]free content buf [11:54:01]Sock 7.Close socket [11:54:01]Sock 7.Thread stoped [11:54:02]OFD Sender: No OFD packet to send [11:54:07]OFD Sender: No OFD packet to send [11:54:07]accept exits with 9 [11:54:07]New connection [11:54:07]New thread 3066752356 created [11:54:07]Thread 3066608996 joined [11:54:07]Waiting for new connection... [11:54:07] Sock 9.Parse request [11:54:07]Sock 9.Check first char [11:54:07]Sock 9.First char is OK [11:54:07]request: POST /json_proto HTTP/1.0 [11:54:07]Method: POST [11:54:07]URL: /json_proto [11:54:07]Method is POST - this is cgi request [11:54:07]url: /json_proto [11:54:07]query_string will be loaded in cgi processing [11:54:07]execute_cgi json_proto POST (null) [11:54:07]execute_cgi path=json_proto method=POST [11:54:07]POST find Content-Length [11:54:07]Host: 172.17.41.195:8080 [11:54:07]Content-Length: 1210 [11:54:07]Content-Type: application/json [11:54:07] [11:54:07]POST finish read [11:54:07]Found Content-Length = 1210 [11:54:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0440\u0441\u0442\u0430\u043D\u0431\u0435\u043A\u043E\u0432 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)508031\u000A18.05.2024 11:36\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 117.750 x 74.70\u000A\u0418\u0422\u041E\u0413: 8795.93\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:54:07]execute_script... [11:54:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0440\u0441\u0442\u0430\u043D\u0431\u0435\u043A\u043E\u0432 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)508031\u000A18.05.2024 11:36\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 117.750 x 74.70\u000A\u0418\u0422\u041E\u0413: 8795.93\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:54:07]POST & json_proto [11:54:07]process_json_proto [11:54:07]json parsed OK: [11:54:07]protocol is kg_v1.0 [11:54:07]action value=print_text [11:54:07]process_action print_text [11:54:07]cmd_print_text [11:54:07]ExternCall_PrintAddStr [11:54:07]wPrintStart [11:54:07]Write to MH i2c: 01 00 00 6E 32 A0 [11:54:07]Write i2c OK [11:54:07]MH_I2C_Read... [11:54:07]Read from MH i2c: 01 [11:54:07]MH_I2C_Read... [11:54:07]Read from MH i2c: 01 07 00 [11:54:07]MH_I2C_Read... [11:54:07]Read from MH i2c: 01 07 00 6E 32 00 00 00 00 00 FF 0F B5 [11:54:07]RasterBufferAndPrint [11:54:07]line *****ТОВАРНЫЙ ЧЕК***** [11:54:07]line АЗС-91 [11:54:07]line Партнер нефть [11:54:07]line 02508201610067 [11:54:07]line Кассир : Арстанбеков Н. [11:54:07]line Счет N : (1)508031 [11:54:07]line 18.05.2024 11:36 [11:54:07]line ПРОДАЖА [11:54:07]line ТРК (МРК, ГНК): 11 [11:54:07]line Вид ГСМ : 2710194210 [11:54:07]line ДТ-К-5 [11:54:07]line 117.750 x 74.70 [11:54:07]line ИТОГ: 8795.93 [11:54:07]line Тип оплаты: Талоны: Топливная Карта [11:54:07]line 02750 [11:54:07]line ______________________ [11:54:07]line (подпись) [11:54:07]written 0, free lines is 4095 [11:54:08]Write to MH i2c: 01 00 00 82 32 B4 [11:54:08]Write i2c OK [11:54:08]MH_I2C_Read... [11:54:08]Read from MH i2c: 01 [11:54:08]MH_I2C_Read... [11:54:08]Read from MH i2c: 01 07 00 [11:54:08]MH_I2C_Read... [11:54:08]Read from MH i2c: 01 07 00 82 32 00 00 00 00 00 0F 0E D8 [11:54:08]RasterBufferAndPrint [11:54:08]line [11:54:08]line [11:54:08]line [11:54:08]line [11:54:08]line [11:54:08]written 0, free lines is 3600 [11:54:08]MH_Cut [11:54:08]Write to MH i2c: D1 01 00 89 32 01 8D [11:54:08]Write i2c OK [11:54:08]MH_I2C_Read... [11:54:08]Read from MH i2c: D1 [11:54:08]MH_I2C_Read... [11:54:08]Read from MH i2c: D1 01 00 [11:54:08]MH_I2C_Read... [11:54:08]Read from MH i2c: D1 01 00 89 32 00 8C [11:54:08]Write to MH i2c: 01 00 00 8A 32 BC [11:54:08]Write i2c OK [11:54:08]MH_I2C_Read... [11:54:08]*** Cut start [11:54:08]*** Purtial cut [11:54:08]*** CUTSNS_PIN = 0 [11:54:08]*** Stage 1: CUTSNS_PIN = 1 [11:54:10]Read from MH i2c: 01 [11:54:10]MH_I2C_Read... [11:54:10]Read from MH i2c: 01 07 00 [11:54:10]MH_I2C_Read... [11:54:10]*** Stop cut motor [11:54:10]*** Cut end [11:54:10]Read from MH i2c: 01 07 00 8A 32 00 00 00 00 00 FF 0F D1 [11:54:10]process_action print_text done [11:54:10]requested_data is exist [11:54:10]produce_requested_data [11:54:10]requested_item fm.sn is exist - process it [11:54:10]wFMCommunicate request_size=4 [11:54:10]MH_SAM_APDU [11:54:10]CAPDU: 80 11 00 00 [11:54:10]Write to MH i2c: E2 08 00 8B 32 80 11 00 00 00 00 00 00 37 [11:54:10]Write i2c OK [11:54:10]MH_I2C_Read... [11:54:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:54:10]Read from MH i2c: E2 [11:54:10]MH_I2C_Read... [11:54:10]Read from MH i2c: E2 17 00 [11:54:10]MH_I2C_Read... [11:54:10]Read from MH i2c: E2 17 00 8B 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 8D [11:54:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [11:54:10]wFMCommunicate OK [11:54:10]requested_item fd.num is exist - process it [11:54:10]SAM_PROTO_GetFieldsCounters [11:54:10]wFMCommunicate request_size=4 [11:54:10]MH_SAM_APDU [11:54:10]CAPDU: 80 13 00 00 [11:54:10]Write to MH i2c: E2 08 00 8C 32 80 13 00 00 00 00 00 00 3A [11:54:10]Write i2c OK [11:54:10]MH_I2C_Read... [11:54:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:54:10]Read from MH i2c: E2 [11:54:10]MH_I2C_Read... [11:54:10]Read from MH i2c: E2 62 00 [11:54:10]MH_I2C_Read... [11:54:10]Read from MH i2c: E2 62 00 8C 32 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 EA 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 66 [11:54:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 EA 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:54:10]wFMCommunicate OK [11:54:10]SAM_PROTO_GetFieldsCounters done [11:54:10]requested_item shift.num is exist - process it [11:54:10]requested_item shift.opened is exist - process it [11:54:10]req_shift_opened [11:54:10]FM_GetShiftState [11:54:10]SAM_PROTO_GetShiftState [11:54:10]wFMCommunicate request_size=4 [11:54:10]MH_SAM_APDU [11:54:10]CAPDU: 80 13 01 00 [11:54:10]Write to MH i2c: E2 08 00 8D 32 80 13 01 00 00 00 00 00 3C [11:54:10]Write i2c OK [11:54:10]MH_I2C_Read... [11:54:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:54:10]Read from MH i2c: E2 [11:54:10]MH_I2C_Read... [11:54:10]Read from MH i2c: E2 0E 00 [11:54:10]MH_I2C_Read... [11:54:10]Read from MH i2c: E2 0E 00 8D 32 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 A3 [11:54:10]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [11:54:10]wFMCommunicate OK [11:54:10]SAM_PROTO_GetShiftState done [11:54:10]FM_GetShiftState done [11:54:10]req_shift_opened done [11:54:10]requested_item shift.open_date is exist - process it [11:54:10]req_shift_open_date [11:54:10]req_shift_open_date done [11:54:10]produce_requested_data done [11:54:10]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67818,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [11:54:10]process_action_free print_text [11:54:10]json_value_free [11:54:10]json_value_free done [11:54:10]process_json_proto returns [11:54:10]Send response to host [11:54:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67818,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [11:54:10]free response buf [11:54:10]execute_script done [11:54:10]execute_script returns [11:54:10]free content buf [11:54:10]Sock 9.Close socket [11:54:10]Sock 9.Thread stoped [11:54:12]OFD Sender: No OFD packet to send [11:54:17]OFD Sender: No OFD packet to send [11:54:22]OFD Sender: No OFD packet to send [11:54:27]OFD Sender: No OFD packet to send [11:54:32]OFD Sender: No OFD packet to send [11:54:37]OFD Sender: No OFD packet to send [11:54:42]OFD Sender: No OFD packet to send [11:54:47]OFD Sender: No OFD packet to send [11:54:52]OFD Sender: No OFD packet to send [11:54:57]OFD Sender: No OFD packet to send [11:55:02]OFD Sender: No OFD packet to send [11:55:07]OFD Sender: No OFD packet to send [11:55:12]OFD Sender: No OFD packet to send [11:55:17]OFD Sender: No OFD packet to send [11:55:22]OFD Sender: No OFD packet to send [11:55:27]OFD Sender: No OFD packet to send [11:55:32]OFD Sender: No OFD packet to send [11:55:37]OFD Sender: No OFD packet to send [11:55:42]OFD Sender: No OFD packet to send [11:55:47]OFD Sender: No OFD packet to send [11:55:52]OFD Sender: No OFD packet to send [11:55:57]OFD Sender: No OFD packet to send [11:56:02]OFD Sender: No OFD packet to send [11:56:07]OFD Sender: No OFD packet to send [11:56:12]OFD Sender: No OFD packet to send [11:56:15]accept exits with 7 [11:56:15]New connection [11:56:15]New thread 3066608996 created [11:56:15]Thread 3066752356 joined [11:56:15]Waiting for new connection... [11:56:15] Sock 7.Parse request [11:56:15]Sock 7.Check first char [11:56:15]Sock 7.First char is OK [11:56:15]request: POST /json_proto HTTP/1.0 [11:56:15]Method: POST [11:56:15]URL: /json_proto [11:56:15]Method is POST - this is cgi request [11:56:15]url: /json_proto [11:56:15]query_string will be loaded in cgi processing [11:56:15]execute_cgi json_proto POST (null) [11:56:15]execute_cgi path=json_proto method=POST [11:56:15]POST find Content-Length [11:56:15]Host: 172.17.41.195:8080 [11:56:15]Content-Length: 1211 [11:56:15]Content-Type: application/json [11:56:15] [11:56:15]POST finish read [11:56:15]Found Content-Length = 1211 [11:56:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0440\u0441\u0442\u0430\u043D\u0431\u0435\u043A\u043E\u0432 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)508036\u000A18.05.2024 11:38\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 43\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.480 x 66.80\u000A\u0418\u0422\u041E\u0413: 700.06\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:56:15]execute_script... [11:56:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0440\u0441\u0442\u0430\u043D\u0431\u0435\u043A\u043E\u0432 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)508036\u000A18.05.2024 11:38\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 43\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.480 x 66.80\u000A\u0418\u0422\u041E\u0413: 700.06\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:56:15]POST & json_proto [11:56:15]process_json_proto [11:56:15]json parsed OK: [11:56:15]protocol is kg_v1.0 [11:56:15]action value=print_text [11:56:15]process_action print_text [11:56:15]cmd_print_text [11:56:15]ExternCall_PrintAddStr [11:56:15]wPrintStart [11:56:15]Write to MH i2c: 01 00 00 8E 32 C0 [11:56:15]Write i2c OK [11:56:15]MH_I2C_Read... [11:56:15]Read from MH i2c: 01 [11:56:15]MH_I2C_Read... [11:56:15]Read from MH i2c: 01 07 00 [11:56:15]MH_I2C_Read... [11:56:15]Read from MH i2c: 01 07 00 8E 32 00 00 00 00 00 FF 0F D5 [11:56:15]RasterBufferAndPrint [11:56:15]line *****ТОВАРНЫЙ ЧЕК***** [11:56:15]line АЗС-91 [11:56:15]line Партнер нефть [11:56:15]line 02508201610067 [11:56:15]line Кассир : Арстанбеков Н. [11:56:15]line Счет N : (1)508036 [11:56:15]line 18.05.2024 11:38 [11:56:15]line ПРОДАЖА [11:56:15]line ТРК (МРК, ГНК): 43 [11:56:15]line Вид ГСМ : 2710124130 [11:56:15]line Аи-92-К-5 [11:56:15]line 10.480 x 66.80 [11:56:15]line ИТОГ: 700.06 [11:56:15]line Тип оплаты: Талоны: Топливная Карта [11:56:15]line 02750 [11:56:15]line ______________________ [11:56:15]line (подпись) [11:56:15]written 0, free lines is 4095 [11:56:15]Write to MH i2c: 01 00 00 A2 32 D4 [11:56:15]Write i2c OK [11:56:15]MH_I2C_Read... [11:56:15]Read from MH i2c: 01 [11:56:15]MH_I2C_Read... [11:56:15]Read from MH i2c: 01 07 00 [11:56:15]MH_I2C_Read... [11:56:15]Read from MH i2c: 01 07 00 A2 32 00 00 00 00 00 11 0E FA [11:56:15]RasterBufferAndPrint [11:56:15]line [11:56:15]line [11:56:15]line [11:56:15]line [11:56:15]line [11:56:15]written 0, free lines is 3602 [11:56:15]MH_Cut [11:56:15]Write to MH i2c: D1 01 00 A9 32 01 AD [11:56:15]Write i2c OK [11:56:15]MH_I2C_Read... [11:56:15]Read from MH i2c: D1 [11:56:15]MH_I2C_Read... [11:56:15]Read from MH i2c: D1 01 00 [11:56:15]MH_I2C_Read... [11:56:15]Read from MH i2c: D1 01 00 A9 32 00 AC [11:56:15]Write to MH i2c: 01 00 00 AA 32 DC [11:56:15]Write i2c OK [11:56:15]MH_I2C_Read... [11:56:16]*** Cut start [11:56:16]*** Purtial cut [11:56:16]*** Stage 1: CUTSNS_PIN = 1 [11:56:16]Read from MH i2c: 01 [11:56:16]MH_I2C_Read... [11:56:16]Read from MH i2c: 01 07 00 [11:56:16]MH_I2C_Read... [11:56:16]*** Stop cut motor [11:56:16]*** Cut end [11:56:16]Read from MH i2c: 01 07 00 AA 32 00 00 00 00 00 FF 0F F1 [11:56:16]process_action print_text done [11:56:16]requested_data is exist [11:56:16]produce_requested_data [11:56:16]requested_item fm.sn is exist - process it [11:56:16]wFMCommunicate request_size=4 [11:56:16]MH_SAM_APDU [11:56:16]CAPDU: 80 11 00 00 [11:56:16]Write to MH i2c: E2 08 00 AB 32 80 11 00 00 00 00 00 00 57 [11:56:16]Write i2c OK [11:56:16]MH_I2C_Read... [11:56:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:56:16]Read from MH i2c: E2 [11:56:16]MH_I2C_Read... [11:56:16]Read from MH i2c: E2 17 00 [11:56:16]MH_I2C_Read... [11:56:16]Read from MH i2c: E2 17 00 AB 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 AD [11:56:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [11:56:16]wFMCommunicate OK [11:56:16]requested_item fd.num is exist - process it [11:56:16]SAM_PROTO_GetFieldsCounters [11:56:16]wFMCommunicate request_size=4 [11:56:16]MH_SAM_APDU [11:56:16]CAPDU: 80 13 00 00 [11:56:16]Write to MH i2c: E2 08 00 AC 32 80 13 00 00 00 00 00 00 5A [11:56:16]Write i2c OK [11:56:16]MH_I2C_Read... [11:56:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:56:17]Read from MH i2c: E2 [11:56:17]MH_I2C_Read... [11:56:17]Read from MH i2c: E2 62 00 [11:56:17]MH_I2C_Read... [11:56:17]Read from MH i2c: E2 62 00 AC 32 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 EA 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 86 [11:56:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 EA 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:56:17]wFMCommunicate OK [11:56:17]SAM_PROTO_GetFieldsCounters done [11:56:17]requested_item shift.num is exist - process it [11:56:17]requested_item shift.opened is exist - process it [11:56:17]req_shift_opened [11:56:17]FM_GetShiftState [11:56:17]SAM_PROTO_GetShiftState [11:56:17]wFMCommunicate request_size=4 [11:56:17]MH_SAM_APDU [11:56:17]CAPDU: 80 13 01 00 [11:56:17]Write to MH i2c: E2 08 00 AD 32 80 13 01 00 00 00 00 00 5C [11:56:17]Write i2c OK [11:56:17]MH_I2C_Read... [11:56:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:56:17]Read from MH i2c: E2 [11:56:17]MH_I2C_Read... [11:56:17]Read from MH i2c: E2 0E 00 [11:56:17]MH_I2C_Read... [11:56:17]Read from MH i2c: E2 0E 00 AD 32 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 C3 [11:56:17]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [11:56:17]wFMCommunicate OK [11:56:17]SAM_PROTO_GetShiftState done [11:56:17]FM_GetShiftState done [11:56:17]req_shift_opened done [11:56:17]requested_item shift.open_date is exist - process it [11:56:17]req_shift_open_date [11:56:17]req_shift_open_date done [11:56:17]produce_requested_data done [11:56:17]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67818,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [11:56:17]process_action_free print_text [11:56:17]json_value_free [11:56:17]json_value_free done [11:56:17]process_json_proto returns [11:56:17]Send response to host [11:56:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67818,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [11:56:17]free response buf [11:56:17]execute_script done [11:56:17]execute_script returns [11:56:17]free content buf [11:56:17]Sock 7.Close socket [11:56:17]Sock 7.Thread stoped [11:56:17]OFD Sender: No OFD packet to send [11:56:22]OFD Sender: No OFD packet to send [11:56:27]OFD Sender: No OFD packet to send [11:56:32]OFD Sender: No OFD packet to send [11:56:37]OFD Sender: No OFD packet to send [11:56:42]OFD Sender: No OFD packet to send [11:56:47]OFD Sender: No OFD packet to send [11:56:52]OFD Sender: No OFD packet to send [11:56:57]OFD Sender: No OFD packet to send [11:57:02]OFD Sender: No OFD packet to send [11:57:07]OFD Sender: No OFD packet to send [11:57:12]OFD Sender: No OFD packet to send [11:57:17]OFD Sender: No OFD packet to send [11:57:22]OFD Sender: No OFD packet to send [11:57:27]OFD Sender: No OFD packet to send [11:57:32]OFD Sender: No OFD packet to send [11:57:37]OFD Sender: No OFD packet to send [11:57:42]OFD Sender: No OFD packet to send [11:57:47]OFD Sender: No OFD packet to send [11:57:52]OFD Sender: No OFD packet to send [11:57:57]OFD Sender: No OFD packet to send [11:58:02]OFD Sender: No OFD packet to send [11:58:07]OFD Sender: No OFD packet to send [11:58:12]OFD Sender: No OFD packet to send [11:58:17]OFD Sender: No OFD packet to send [11:58:22]OFD Sender: No OFD packet to send [11:58:27]OFD Sender: No OFD packet to send [11:58:32]OFD Sender: No OFD packet to send [11:58:37]OFD Sender: No OFD packet to send [11:58:42]OFD Sender: No OFD packet to send [11:58:47]OFD Sender: No OFD packet to send [11:58:52]OFD Sender: No OFD packet to send [11:58:57]OFD Sender: No OFD packet to send [11:59:02]OFD Sender: No OFD packet to send [11:59:07]OFD Sender: No OFD packet to send [11:59:12]OFD Sender: No OFD packet to send [11:59:17]OFD Sender: No OFD packet to send [11:59:22]OFD Sender: No OFD packet to send [11:59:27]OFD Sender: No OFD packet to send [11:59:32]OFD Sender: No OFD packet to send [11:59:37]OFD Sender: No OFD packet to send [11:59:42]OFD Sender: No OFD packet to send [11:59:47]OFD Sender: No OFD packet to send [11:59:52]OFD Sender: No OFD packet to send [11:59:57]OFD Sender: No OFD packet to send [12:00:02]OFD Sender: No OFD packet to send [12:00:07]OFD Sender: No OFD packet to send [12:00:12]OFD Sender: No OFD packet to send [12:00:17]OFD Sender: No OFD packet to send [12:00:22]OFD Sender: No OFD packet to send [12:00:27]OFD Sender: No OFD packet to send [12:00:32]OFD Sender: No OFD packet to send [12:00:37]OFD Sender: No OFD packet to send [12:00:39]accept exits with 9 [12:00:39]New connection [12:00:39]New thread 3066752356 created [12:00:39]Thread 3066608996 joined [12:00:39]Waiting for new connection... [12:00:39] Sock 9.Parse request [12:00:39]Sock 9.Check first char [12:00:39]Sock 9.First char is OK [12:00:39]request: POST /json_proto HTTP/1.0 [12:00:39]Method: POST [12:00:39]URL: /json_proto [12:00:39]Method is POST - this is cgi request [12:00:39]url: /json_proto [12:00:39]query_string will be loaded in cgi processing [12:00:39]execute_cgi json_proto POST (null) [12:00:39]execute_cgi path=json_proto method=POST [12:00:39]POST find Content-Length [12:00:39]Host: 172.17.41.195:8080 [12:00:39]Content-Length: 1211 [12:00:39]Content-Type: application/json [12:00:39] [12:00:39]POST finish read [12:00:39]Found Content-Length = 1211 [12:00:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0440\u0441\u0442\u0430\u043D\u0431\u0435\u043A\u043E\u0432 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)508038\u000A18.05.2024 11:43\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 43\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 12.000 x 66.80\u000A\u0418\u0422\u041E\u0413: 801.60\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:00:39]execute_script... [12:00:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0440\u0441\u0442\u0430\u043D\u0431\u0435\u043A\u043E\u0432 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)508038\u000A18.05.2024 11:43\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 43\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 12.000 x 66.80\u000A\u0418\u0422\u041E\u0413: 801.60\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:00:39]POST & json_proto [12:00:39]process_json_proto [12:00:39]json parsed OK: [12:00:39]protocol is kg_v1.0 [12:00:39]action value=print_text [12:00:39]process_action print_text [12:00:39]cmd_print_text [12:00:39]ExternCall_PrintAddStr [12:00:39]wPrintStart [12:00:39]Write to MH i2c: 01 00 00 AE 32 E0 [12:00:39]Write i2c OK [12:00:39]MH_I2C_Read... [12:00:39]Read from MH i2c: 01 [12:00:39]MH_I2C_Read... [12:00:39]Read from MH i2c: 01 07 00 [12:00:39]MH_I2C_Read... [12:00:39]Read from MH i2c: 01 07 00 AE 32 00 00 00 00 00 FF 0F F5 [12:00:39]RasterBufferAndPrint [12:00:39]line *****ТОВАРНЫЙ ЧЕК***** [12:00:39]line АЗС-91 [12:00:39]line Партнер нефть [12:00:39]line 02508201610067 [12:00:39]line Кассир : Арстанбеков Н. [12:00:39]line Счет N : (1)508038 [12:00:39]line 18.05.2024 11:43 [12:00:39]line ПРОДАЖА [12:00:39]line ТРК (МРК, ГНК): 43 [12:00:39]line Вид ГСМ : 2710124130 [12:00:39]line Аи-92-К-5 [12:00:39]line 12.000 x 66.80 [12:00:39]line ИТОГ: 801.60 [12:00:39]line Тип оплаты: Талоны: Топливная Карта [12:00:39]line 02750 [12:00:39]line ______________________ [12:00:39]line (подпись) [12:00:39]written 0, free lines is 4095 [12:00:40]Write to MH i2c: 01 00 00 C2 32 F4 [12:00:40]Write i2c OK [12:00:40]MH_I2C_Read... [12:00:40]Read from MH i2c: 01 [12:00:40]MH_I2C_Read... [12:00:40]Read from MH i2c: 01 07 00 [12:00:40]MH_I2C_Read... [12:00:40]Read from MH i2c: 01 07 00 C2 32 00 00 00 00 00 11 0E 1A [12:00:40]RasterBufferAndPrint [12:00:40]line [12:00:40]line [12:00:40]line [12:00:40]line [12:00:40]line [12:00:40]written 0, free lines is 3602 [12:00:40]MH_Cut [12:00:40]Write to MH i2c: D1 01 00 C9 32 01 CD [12:00:40]Write i2c OK [12:00:40]MH_I2C_Read... [12:00:40]Read from MH i2c: D1 [12:00:40]MH_I2C_Read... [12:00:40]Read from MH i2c: D1 01 00 [12:00:40]MH_I2C_Read... [12:00:40]Read from MH i2c: D1 01 00 C9 32 00 CC [12:00:40]Write to MH i2c: 01 00 00 CA 32 FC [12:00:40]Write i2c OK [12:00:40]MH_I2C_Read... [12:00:40]*** Cut start [12:00:40]*** Purtial cut [12:00:40]*** CUTSNS_PIN = 0 [12:00:40]*** Stage 1: CUTSNS_PIN = 1 [12:00:42]Read from MH i2c: 01 [12:00:42]MH_I2C_Read... [12:00:42]Read from MH i2c: 01 07 00 [12:00:42]MH_I2C_Read... [12:00:42]*** Stop cut motor [12:00:42]*** Cut end [12:00:42]Read from MH i2c: 01 07 00 CA 32 00 00 00 00 00 FF 0F 11 [12:00:42]process_action print_text done [12:00:42]requested_data is exist [12:00:42]produce_requested_data [12:00:42]requested_item fm.sn is exist - process it [12:00:42]wFMCommunicate request_size=4 [12:00:42]MH_SAM_APDU [12:00:42]CAPDU: 80 11 00 00 [12:00:42]Write to MH i2c: E2 08 00 CB 32 80 11 00 00 00 00 00 00 77 [12:00:42]Write i2c OK [12:00:42]MH_I2C_Read... [12:00:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:00:42]Read from MH i2c: E2 [12:00:42]MH_I2C_Read... [12:00:42]Read from MH i2c: E2 17 00 [12:00:42]MH_I2C_Read... [12:00:42]Read from MH i2c: E2 17 00 CB 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 CD [12:00:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [12:00:42]wFMCommunicate OK [12:00:42]requested_item fd.num is exist - process it [12:00:42]SAM_PROTO_GetFieldsCounters [12:00:42]wFMCommunicate request_size=4 [12:00:42]MH_SAM_APDU [12:00:42]CAPDU: 80 13 00 00 [12:00:42]Write to MH i2c: E2 08 00 CC 32 80 13 00 00 00 00 00 00 7A [12:00:42]Write i2c OK [12:00:42]MH_I2C_Read... [12:00:42]OFD Sender: No OFD packet to send [12:00:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:00:42]Read from MH i2c: E2 [12:00:42]MH_I2C_Read... [12:00:42]Read from MH i2c: E2 62 00 [12:00:42]MH_I2C_Read... [12:00:42]Read from MH i2c: E2 62 00 CC 32 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 EA 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 A6 [12:00:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 EA 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:00:42]wFMCommunicate OK [12:00:42]SAM_PROTO_GetFieldsCounters done [12:00:42]requested_item shift.num is exist - process it [12:00:42]requested_item shift.opened is exist - process it [12:00:42]req_shift_opened [12:00:42]FM_GetShiftState [12:00:42]SAM_PROTO_GetShiftState [12:00:42]wFMCommunicate request_size=4 [12:00:42]MH_SAM_APDU [12:00:42]CAPDU: 80 13 01 00 [12:00:42]Write to MH i2c: E2 08 00 CD 32 80 13 01 00 00 00 00 00 7C [12:00:42]Write i2c OK [12:00:42]MH_I2C_Read... [12:00:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:00:42]Read from MH i2c: E2 [12:00:42]MH_I2C_Read... [12:00:42]Read from MH i2c: E2 0E 00 [12:00:42]MH_I2C_Read... [12:00:42]Read from MH i2c: E2 0E 00 CD 32 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 E3 [12:00:42]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [12:00:42]wFMCommunicate OK [12:00:42]SAM_PROTO_GetShiftState done [12:00:42]FM_GetShiftState done [12:00:42]req_shift_opened done [12:00:42]requested_item shift.open_date is exist - process it [12:00:42]req_shift_open_date [12:00:42]req_shift_open_date done [12:00:42]produce_requested_data done [12:00:42]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67818,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [12:00:42]process_action_free print_text [12:00:42]json_value_free [12:00:42]json_value_free done [12:00:42]process_json_proto returns [12:00:42]Send response to host [12:00:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67818,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [12:00:42]free response buf [12:00:42]execute_script done [12:00:42]execute_script returns [12:00:42]free content buf [12:00:42]Sock 9.Close socket [12:00:42]Sock 9.Thread stoped [12:00:47]OFD Sender: No OFD packet to send [12:00:52]OFD Sender: No OFD packet to send [12:00:57]OFD Sender: No OFD packet to send [12:01:02]OFD Sender: No OFD packet to send [12:01:07]OFD Sender: No OFD packet to send [12:01:12]OFD Sender: No OFD packet to send [12:01:17]OFD Sender: No OFD packet to send [12:01:22]OFD Sender: No OFD packet to send [12:01:27]OFD Sender: No OFD packet to send [12:01:32]OFD Sender: No OFD packet to send [12:01:37]OFD Sender: No OFD packet to send [12:01:42]OFD Sender: No OFD packet to send [12:01:47]OFD Sender: No OFD packet to send [12:01:52]OFD Sender: No OFD packet to send [12:01:57]OFD Sender: No OFD packet to send [12:02:02]OFD Sender: No OFD packet to send [12:02:07]OFD Sender: No OFD packet to send [12:02:12]OFD Sender: No OFD packet to send [12:02:16]accept exits with 7 [12:02:16]New connection [12:02:16]New thread 3066608996 created [12:02:16]Thread 3066752356 joined [12:02:16]Waiting for new connection... [12:02:16] Sock 7.Parse request [12:02:16]Sock 7.Check first char [12:02:16]Sock 7.First char is OK [12:02:16]request: POST /json_proto HTTP/1.0 [12:02:16]Method: POST [12:02:16]URL: /json_proto [12:02:16]Method is POST - this is cgi request [12:02:16]url: /json_proto [12:02:16]query_string will be loaded in cgi processing [12:02:16]execute_cgi json_proto POST (null) [12:02:16]execute_cgi path=json_proto method=POST [12:02:16]POST find Content-Length [12:02:16]Host: 172.17.41.195:8080 [12:02:16]Content-Length: 798 [12:02:16]Content-Type: application/json [12:02:16] [12:02:16]POST finish read [12:02:16]Found Content-Length = 798 [12:02:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)508039", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 10.710, "sum" : 800.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 800.04 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:02:16]execute_script... [12:02:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)508039", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 10.710, "sum" : 800.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 800.04 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:02:16]POST & json_proto [12:02:16]process_json_proto [12:02:16]json parsed OK: [12:02:16]protocol is kg_v1.0 [12:02:16]action value=close_receipt [12:02:16]process_action close_receipt [12:02:16]cmd_close_receipt [12:02:16]MH_GetDate [12:02:16]Write to MH i2c: F0 00 00 CE 32 EF [12:02:16]Write i2c OK [12:02:16]MH_I2C_Read... [12:02:16]Read from MH i2c: F0 [12:02:16]MH_I2C_Read... [12:02:16]Read from MH i2c: F0 09 00 [12:02:16]MH_I2C_Read... [12:02:16]Read from MH i2c: F0 09 00 CE 32 00 CD 98 48 66 FC 21 6F 64 FB [12:02:16]GetLastDocTimeStamp 1716033179 [12:02:16]current date 1716033741 [12:02:16]FM_GetShiftState [12:02:16]SAM_PROTO_GetShiftState [12:02:16]wFMCommunicate request_size=4 [12:02:16]MH_SAM_APDU [12:02:16]CAPDU: 80 13 01 00 [12:02:16]Write to MH i2c: E2 08 00 CF 32 80 13 01 00 00 00 00 00 7E [12:02:16]Write i2c OK [12:02:16]MH_I2C_Read... [12:02:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:02:16]Read from MH i2c: E2 [12:02:16]MH_I2C_Read... [12:02:16]Read from MH i2c: E2 0E 00 [12:02:16]MH_I2C_Read... [12:02:16]Read from MH i2c: E2 0E 00 CF 32 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 E5 [12:02:16]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [12:02:16]wFMCommunicate OK [12:02:16]SAM_PROTO_GetShiftState done [12:02:16]FM_GetShiftState done [12:02:16]opened in 1715991483 [12:02:16]opened+sec_in_day 1716077883 [12:02:16]quantity*price = 80003 [12:02:16]sum+1 = 80005 [12:02:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 800.04 НСП 1% : 7.08 НДС 12% : 84.96 Наличными: 0.00 Безнал.: 800.04 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 58 18.05.2024 12:02 Смена: 359 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67819 ФПД: 4628034351237 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T120221&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67819&fm=4628034351237&tin=02508201610067®Number=0000000000091845&sum=80004 [12:02:17]StoreToDocumentArchive [12:02:17]shift 359 fd 67819 [12:02:17]save to /storage/0359/doc_00067819 [12:02:17]save last doc name /storage/0359/doc_00067819 to /storage/kkm_last_doc_name [12:02:17]save OK [12:02:17]Clear old archive folders... [12:02:17]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:02:17]tlvbuf is 01B56FA0 [12:02:17]SAM_PROTO_ClearQueue [12:02:17]wFMCommunicate request_size=4 [12:02:17]MH_SAM_APDU [12:02:17]CAPDU: 80 09 00 00 [12:02:17]Write to MH i2c: E2 08 00 DC 32 80 09 00 00 00 00 00 00 80 [12:02:17]Write i2c OK [12:02:17]MH_I2C_Read... [12:02:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:02:17]Read from MH i2c: E2 [12:02:17]MH_I2C_Read... [12:02:17]Read from MH i2c: E2 03 00 [12:02:17]MH_I2C_Read... [12:02:17]Read from MH i2c: E2 03 00 DC 32 00 90 00 82 [12:02:17]RAPDU: 90 00 [12:02:17]wFMCommunicate OK [12:02:17]SAM_PROTO_ClearQueue done [12:02:17]KKMCreateOFDPacket [12:02:17]OFDProtocolAddRootSTLVToBuf [12:02:17]FM_MakeSignedData [12:02:17]FM_MakeSignedData [12:02:17]SAM_PROTO_SignData [12:02:17]wFMCommunicate request_size=4 [12:02:17]MH_SAM_APDU [12:02:17]CAPDU: 80 0D 01 02 [12:02:17]Write to MH i2c: E2 08 00 DD 32 80 0D 01 02 00 00 00 00 88 [12:02:17]Write i2c OK [12:02:17]MH_I2C_Read... [12:02:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:02:17]Read from MH i2c: E2 [12:02:17]MH_I2C_Read... [12:02:17]Read from MH i2c: E2 03 00 [12:02:17]MH_I2C_Read... [12:02:17]Read from MH i2c: E2 03 00 DD 32 00 90 00 83 [12:02:17]RAPDU: 90 00 [12:02:17]wFMCommunicate OK [12:02:17]wFMCommunicate request_size=255 [12:02:17]MH_SAM_APDU [12:02:17]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D6 29 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 84 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 84 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 CD 98 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 EB 08 01 00 35 04 06 00 04 35 8C 57 [12:02:17]Write to MH i2c: E2 02 01 DE 32 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D6 29 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 84 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 84 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 CD 98 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 EB 08 01 00 35 04 06 00 04 35 8C 57 00 00 47 [12:02:17]Write i2c OK [12:02:17]MH_I2C_Read... [12:02:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:02:17]Read from MH i2c: E2 [12:02:17]MH_I2C_Read... [12:02:17]Read from MH i2c: E2 03 00 [12:02:17]MH_I2C_Read... [12:02:17]Read from MH i2c: E2 03 00 DE 32 00 90 00 84 [12:02:17]RAPDU: 90 00 [12:02:17]wFMCommunicate OK [12:02:17]wFMCommunicate request_size=7 [12:02:17]MH_SAM_APDU [12:02:17]CAPDU: 80 0D 02 02 02 F0 85 [12:02:17]Write to MH i2c: E2 0A 00 DF 32 80 0D 02 02 02 00 F0 85 00 00 04 [12:02:17]Write i2c OK [12:02:17]MH_I2C_Read... [12:02:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:02:17]Read from MH i2c: E2 [12:02:17]MH_I2C_Read... [12:02:17]Read from MH i2c: E2 03 00 [12:02:17]MH_I2C_Read... [12:02:17]Read from MH i2c: E2 03 00 DF 32 00 90 00 85 [12:02:17]RAPDU: 90 00 [12:02:17]wFMCommunicate OK [12:02:17]wFMCommunicate request_size=4 [12:02:17]MH_SAM_APDU [12:02:17]CAPDU: 80 0D 03 02 [12:02:17]Write to MH i2c: E2 08 00 E0 32 80 0D 03 02 00 00 00 00 8D [12:02:17]Write i2c OK [12:02:17]MH_I2C_Read... [12:02:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:02:17]Read from MH i2c: E2 [12:02:17]MH_I2C_Read... [12:02:17]Read from MH i2c: E2 0B 00 [12:02:17]MH_I2C_Read... [12:02:17]Read from MH i2c: E2 0B 00 E0 32 00 50 13 DA CB 8F 70 8E DC 90 00 FF [12:02:17]RAPDU: 50 13 DA CB 8F 70 8E DC 90 00 [12:02:17]wFMCommunicate OK [12:02:17]SAM_PROTO_SignData done [12:02:17]FM_MakeSignedData done [12:02:17]CreateOFDProtocolMessage [12:02:17]wFMCommunicate request_size=4 [12:02:17]MH_SAM_APDU [12:02:17]CAPDU: 80 11 00 00 [12:02:17]Write to MH i2c: E2 08 00 E1 32 80 11 00 00 00 00 00 00 8D [12:02:17]Write i2c OK [12:02:17]MH_I2C_Read... [12:02:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:02:17]Read from MH i2c: E2 [12:02:17]MH_I2C_Read... [12:02:17]Read from MH i2c: E2 17 00 [12:02:17]MH_I2C_Read... [12:02:17]Read from MH i2c: E2 17 00 E1 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 E3 [12:02:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [12:02:17]wFMCommunicate OK [12:02:17]CreateOFDProtocolMessage done [12:02:17]OFDSenderStorePacket 67819 [12:02:17]StoreOFDPacket docnum=67819 [12:02:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 AD 05 04 01 91 68 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D6 29 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 84 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 84 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 CD 98 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 EB 08 01 00 35 04 06 00 04 35 8C 57 F0 85 50 13 DA CB 8F 70 8E DC [12:02:17]CheckFolder [12:02:17]dirname=/storage/ofd_packets [12:02:17]CheckFolder done [12:02:17]ProducePacketName [12:02:17]name=ofd_packets/00067819 [12:02:17]NVStorageSaveData ofd_packets/00067819 [12:02:17]File name is /storage/ofd_packets/00067819 [12:02:17]Write 298 bytes [12:02:17]NVStorageSaveData done [12:02:17]OFDSenderStorePacket done [12:02:17]KKMCreateOFDPacket done [12:02:17]NVStorageSaveData kkm_last_timestamp [12:02:17]File name is /storage/kkm_last_timestamp [12:02:17]Write 4 bytes [12:02:17]NVStorageSaveData done [12:02:17]OFD Sender: Processing packet 67819 [packets to send 35, broken 34] [12:02:17]ProducePacketName [12:02:17]name=ofd_packets/00067819 [12:02:17]OFD Sender: To server: pG, [12:02:17]CommunicateWithHost lk.salyk.kg:30040 [12:02:17]ConnectInit lk.salyk.kg [12:02:17]ExternCall_PrintAddStr [12:02:17]wPrintStart [12:02:17]Write to MH i2c: 01 00 00 E2 32 14 [12:02:17]Write i2c OK [12:02:17]MH_I2C_Read... [12:02:17]Read from MH i2c: 01 [12:02:17]MH_I2C_Read... [12:02:17]Read from MH i2c: 01 07 00 [12:02:17]MH_I2C_Read... [12:02:17]Read from MH i2c: 01 07 00 E2 32 00 00 00 00 00 FF 0F 29 [12:02:17]RasterBufferAndPrint [12:02:17]line Счет N : (1)508039 [12:02:17]line ИНН: 02508201610067 [12:02:17]line Контрольно-Кассовый Чек [12:02:17]line ПРОДАЖА [12:02:17]line ТРК (МРК, ГНК) : 31 [12:02:17]line Товар: 2710194210 [12:02:17]line ДТ-К-5 [12:02:17]line 10.710 * 74.70 [12:02:17]line = 800.04 [12:02:17]line НДС 12% НСП 1% [12:02:17]line > о реализуемом товаре [12:02:17]line ИТОГО: 800.04 [12:02:17]line НСП 1% : 7.08 [12:02:17]line НДС 12% : 84.96 [12:02:17]line Наличными: 0.00 [12:02:17]line Безнал.: 800.04 [12:02:17]line Место: АЗС № 91 "Партнер Нефть" [12:02:17]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [12:02:17]line СНО: Общий режим [12:02:17]line Чек 58 18.05.2024 12:02 [12:02:17]line Смена: 359 ФФД: 1.0 [12:02:17]line ЗНМ: 0300000119 [12:02:17]line РНМ: 0000000000091845 [12:02:17]line Версия ККМ: 001 [12:02:17]line Платежная система: O! деньги [12:02:17]line ФМ: 0000000000871829 [12:02:17]line ФД: 67819 [12:02:17]line ФПД: 4628034351237 [12:02:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T120221&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67819&fm=4628034351237&tin=02508201610067®Number=0000000000091845&sum=80004 [12:02:18]Connected sock=11 [12:02:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 AD 05 04 01 91 68 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D6 29 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 84 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 84 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 CD 98 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 EB 08 01 00 35 04 06 00 04 35 8C 57 F0 85 50 13 DA CB 8F 70 8E DC [12:02:18]written 0, free lines is 4095 [12:02:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 3D 59 47 00 0C 7F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 EB 08 01 00 F4 03 04 00 A2 40 48 66 B6 04 01 00 00 0A E1 2E 2E 23 ED 3C 94 [12:02:18]CommunicateWithHost err = 0 [12:02:18]CheckOFDResponse [12:02:18]1017 (14) - 77093643461234 [12:02:18]1041 (16) - 0000000000871829 [12:02:18]1040 (4) - 67819 [12:02:18]1012 (4) - 18.05.2024 05:46 [12:02:18]1206 (1) - 0 [12:02:18]OFD Sender: Remove packet 67819 [12:02:18]ProducePacketName [12:02:18]name=ofd_packets/00067819 [12:02:18]NVStorageDeleteData [12:02:18]Write to MH i2c: 01 00 00 0B 33 3E [12:02:18]Write i2c OK [12:02:18]MH_I2C_Read... [12:02:18]Read from MH i2c: 01 [12:02:18]MH_I2C_Read... [12:02:18]Read from MH i2c: 01 07 00 [12:02:18]MH_I2C_Read... [12:02:18]Read from MH i2c: 01 07 00 0B 33 00 00 00 00 00 CE 0C 1F [12:02:18]RasterBufferAndPrint [12:02:18]line [12:02:18]line [12:02:18]line [12:02:18]line [12:02:18]line [12:02:18]written 0, free lines is 3284 [12:02:18]MH_Cut [12:02:18]Write to MH i2c: D1 01 00 12 33 01 17 [12:02:18]Write i2c OK [12:02:18]MH_I2C_Read... [12:02:18]Read from MH i2c: D1 [12:02:18]MH_I2C_Read... [12:02:18]Read from MH i2c: D1 01 00 [12:02:18]MH_I2C_Read... [12:02:18]Read from MH i2c: D1 01 00 12 33 00 16 [12:02:18]Write to MH i2c: 01 00 00 13 33 46 [12:02:18]Write i2c OK [12:02:18]MH_I2C_Read... [12:02:18]OFD Sender: No OFD packet to send [12:02:19]*** Cut start [12:02:19]*** Purtial cut [12:02:19]*** Stage 1: CUTSNS_PIN = 1 [12:02:19]Read from MH i2c: 01 [12:02:19]MH_I2C_Read... [12:02:19]*** Stop cut motor [12:02:19]*** Cut end [12:02:19]Read from MH i2c: 01 07 00 [12:02:19]MH_I2C_Read... [12:02:19]Read from MH i2c: 01 07 00 13 33 00 00 00 00 00 FF 0F 5B [12:02:19]process_action close_receipt done [12:02:19]requested_data is exist [12:02:19]produce_requested_data [12:02:19]requested_item fm.sn is exist - process it [12:02:19]wFMCommunicate request_size=4 [12:02:19]MH_SAM_APDU [12:02:19]CAPDU: 80 11 00 00 [12:02:19]Write to MH i2c: E2 08 00 14 33 80 11 00 00 00 00 00 00 C1 [12:02:19]Write i2c OK [12:02:19]MH_I2C_Read... [12:02:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:02:19]Read from MH i2c: E2 [12:02:19]MH_I2C_Read... [12:02:19]Read from MH i2c: E2 17 00 [12:02:19]MH_I2C_Read... [12:02:19]Read from MH i2c: E2 17 00 14 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 17 [12:02:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [12:02:19]wFMCommunicate OK [12:02:19]requested_item fd.num is exist - process it [12:02:19]SAM_PROTO_GetFieldsCounters [12:02:19]wFMCommunicate request_size=4 [12:02:19]MH_SAM_APDU [12:02:19]CAPDU: 80 13 00 00 [12:02:19]Write to MH i2c: E2 08 00 15 33 80 13 00 00 00 00 00 00 C4 [12:02:19]Write i2c OK [12:02:19]MH_I2C_Read... [12:02:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:02:19]Read from MH i2c: E2 [12:02:19]MH_I2C_Read... [12:02:19]Read from MH i2c: E2 62 00 [12:02:19]MH_I2C_Read... [12:02:19]Read from MH i2c: E2 62 00 15 33 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 EB 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 3A 00 00 00 5E 04 04 00 3A 00 00 00 57 04 04 00 3B 00 00 00 19 04 04 00 00 00 00 00 90 00 F4 [12:02:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 EB 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 3A 00 00 00 5E 04 04 00 3A 00 00 00 57 04 04 00 3B 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:02:19]wFMCommunicate OK [12:02:19]SAM_PROTO_GetFieldsCounters done [12:02:19]requested_item shift.num is exist - process it [12:02:19]requested_item shift.opened is exist - process it [12:02:19]req_shift_opened [12:02:19]FM_GetShiftState [12:02:19]SAM_PROTO_GetShiftState [12:02:19]wFMCommunicate request_size=4 [12:02:19]MH_SAM_APDU [12:02:19]CAPDU: 80 13 01 00 [12:02:19]Write to MH i2c: E2 08 00 16 33 80 13 01 00 00 00 00 00 C6 [12:02:19]Write i2c OK [12:02:19]MH_I2C_Read... [12:02:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:02:19]Read from MH i2c: E2 [12:02:19]MH_I2C_Read... [12:02:19]Read from MH i2c: E2 0E 00 [12:02:19]MH_I2C_Read... [12:02:19]Read from MH i2c: E2 0E 00 16 33 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 2D [12:02:19]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [12:02:19]wFMCommunicate OK [12:02:19]SAM_PROTO_GetShiftState done [12:02:19]FM_GetShiftState done [12:02:19]req_shift_opened done [12:02:19]requested_item shift.open_date is exist - process it [12:02:19]req_shift_open_date [12:02:19]req_shift_open_date done [12:02:19]produce_requested_data done [12:02:19]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67819,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [12:02:19]process_action_free close_receipt [12:02:19]json_value_free [12:02:19]json_value_free done [12:02:19]process_json_proto returns [12:02:19]Send response to host [12:02:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67819,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [12:02:19]free response buf [12:02:19]execute_script done [12:02:19]execute_script returns [12:02:19]free content buf [12:02:19]Sock 7.Close socket [12:02:19]Sock 7.Thread stoped [12:02:23]OFD Sender: No OFD packet to send [12:02:28]OFD Sender: No OFD packet to send [12:02:33]OFD Sender: No OFD packet to send [12:02:38]OFD Sender: No OFD packet to send [12:02:43]OFD Sender: No OFD packet to send [12:02:48]OFD Sender: No OFD packet to send [12:02:53]OFD Sender: No OFD packet to send [12:02:58]OFD Sender: No OFD packet to send [12:03:03]OFD Sender: No OFD packet to send [12:03:08]OFD Sender: No OFD packet to send [12:03:13]OFD Sender: No OFD packet to send [12:03:18]OFD Sender: No OFD packet to send [12:03:23]OFD Sender: No OFD packet to send [12:03:28]OFD Sender: No OFD packet to send [12:03:33]OFD Sender: No OFD packet to send [12:03:38]OFD Sender: No OFD packet to send [12:03:43]OFD Sender: No OFD packet to send [12:03:48]OFD Sender: No OFD packet to send [12:03:53]OFD Sender: No OFD packet to send [12:03:58]OFD Sender: No OFD packet to send [12:04:03]OFD Sender: No OFD packet to send [12:04:08]OFD Sender: No OFD packet to send [12:04:13]OFD Sender: No OFD packet to send [12:04:18]OFD Sender: No OFD packet to send [12:04:23]OFD Sender: No OFD packet to send [12:04:28]OFD Sender: No OFD packet to send [12:04:33]OFD Sender: No OFD packet to send [12:04:38]OFD Sender: No OFD packet to send [12:04:43]OFD Sender: No OFD packet to send [12:04:48]OFD Sender: No OFD packet to send [12:04:53]OFD Sender: No OFD packet to send [12:04:56]accept exits with 9 [12:04:56]New connection [12:04:56]New thread 3066752356 created [12:04:56]Thread 3066608996 joined [12:04:56]Waiting for new connection... [12:04:56] Sock 9.Parse request [12:04:56]Sock 9.Check first char [12:04:56]Sock 9.First char is OK [12:04:56]request: POST /json_proto HTTP/1.0 [12:04:56]Method: POST [12:04:56]URL: /json_proto [12:04:56]Method is POST - this is cgi request [12:04:56]url: /json_proto [12:04:56]query_string will be loaded in cgi processing [12:04:56]execute_cgi json_proto POST (null) [12:04:56]execute_cgi path=json_proto method=POST [12:04:56]POST find Content-Length [12:04:56]Host: 172.17.41.195:8080 [12:04:56]Content-Length: 215 [12:04:56]Content-Type: application/json [12:04:56] [12:04:56]POST finish read [12:04:56]Found Content-Length = 215 [12:04:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:04:56]execute_script... [12:04:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:04:56]POST & json_proto [12:04:56]process_json_proto [12:04:56]json parsed OK: [12:04:56]protocol is kg_v1.0 [12:04:56]action value=get_value [12:04:56]process_action get_value [12:04:56]cmd_get_value [12:04:56]process_action get_value done [12:04:56]requested_data is exist [12:04:56]produce_requested_data [12:04:56]requested_item kkm.sn is exist - process it [12:04:56]requested_item kkm.ver is exist - process it [12:04:56]requested_item fm.sn is exist - process it [12:04:56]wFMCommunicate request_size=4 [12:04:56]MH_SAM_APDU [12:04:56]CAPDU: 80 11 00 00 [12:04:56]Write to MH i2c: E2 08 00 17 33 80 11 00 00 00 00 00 00 C4 [12:04:56]Write i2c OK [12:04:56]MH_I2C_Read... [12:04:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:04:56]Read from MH i2c: E2 [12:04:56]MH_I2C_Read... [12:04:56]Read from MH i2c: E2 17 00 [12:04:56]MH_I2C_Read... [12:04:56]Read from MH i2c: E2 17 00 17 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 1A [12:04:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [12:04:56]wFMCommunicate OK [12:04:56]requested_item fd.num is exist - process it [12:04:56]SAM_PROTO_GetFieldsCounters [12:04:56]wFMCommunicate request_size=4 [12:04:56]MH_SAM_APDU [12:04:56]CAPDU: 80 13 00 00 [12:04:56]Write to MH i2c: E2 08 00 18 33 80 13 00 00 00 00 00 00 C7 [12:04:56]Write i2c OK [12:04:56]MH_I2C_Read... [12:04:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:04:57]Read from MH i2c: E2 [12:04:57]MH_I2C_Read... [12:04:57]Read from MH i2c: E2 62 00 [12:04:57]MH_I2C_Read... [12:04:57]Read from MH i2c: E2 62 00 18 33 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 EB 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 3A 00 00 00 5E 04 04 00 3A 00 00 00 57 04 04 00 3B 00 00 00 19 04 04 00 00 00 00 00 90 00 F7 [12:04:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 EB 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 3A 00 00 00 5E 04 04 00 3A 00 00 00 57 04 04 00 3B 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:04:57]wFMCommunicate OK [12:04:57]SAM_PROTO_GetFieldsCounters done [12:04:57]requested_item shift.num is exist - process it [12:04:57]requested_item shift.opened is exist - process it [12:04:57]req_shift_opened [12:04:57]FM_GetShiftState [12:04:57]SAM_PROTO_GetShiftState [12:04:57]wFMCommunicate request_size=4 [12:04:57]MH_SAM_APDU [12:04:57]CAPDU: 80 13 01 00 [12:04:57]Write to MH i2c: E2 08 00 19 33 80 13 01 00 00 00 00 00 C9 [12:04:57]Write i2c OK [12:04:57]MH_I2C_Read... [12:04:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:04:57]Read from MH i2c: E2 [12:04:57]MH_I2C_Read... [12:04:57]Read from MH i2c: E2 0E 00 [12:04:57]MH_I2C_Read... [12:04:57]Read from MH i2c: E2 0E 00 19 33 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 30 [12:04:57]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [12:04:57]wFMCommunicate OK [12:04:57]SAM_PROTO_GetShiftState done [12:04:57]FM_GetShiftState done [12:04:57]req_shift_opened done [12:04:57]requested_item shift.open_date is exist - process it [12:04:57]req_shift_open_date [12:04:57]req_shift_open_date done [12:04:57]produce_requested_data done [12:04:57]produce_requested_data return {"kkm.sn":"0300000119","kkm.ver":"001","fm.sn":"0000000000871829","fd.num":67819,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [12:04:57]process_action_free get_value [12:04:57]json_value_free [12:04:57]json_value_free done [12:04:57]process_json_proto returns [12:04:57]Send response to host [12:04:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000119","kkm.ver":"001","fm.sn":"0000000000871829","fd.num":67819,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [12:04:57]free response buf [12:04:57]execute_script done [12:04:57]execute_script returns [12:04:57]free content buf [12:04:57]Sock 9.Close socket [12:04:57]Sock 9.Thread stoped [12:04:57]accept exits with 7 [12:04:57]New connection [12:04:57]New thread 3066608996 created [12:04:57]Thread 3066752356 joined [12:04:57]Waiting for new connection... [12:04:57] Sock 7.Parse request [12:04:57]Sock 7.Check first char [12:04:57]Sock 7.First char is OK [12:04:57]request: POST /json_proto HTTP/1.0 [12:04:57]Method: POST [12:04:57]URL: /json_proto [12:04:57]Method is POST - this is cgi request [12:04:57]url: /json_proto [12:04:57]query_string will be loaded in cgi processing [12:04:57]execute_cgi json_proto POST (null) [12:04:57]execute_cgi path=json_proto method=POST [12:04:57]POST find Content-Length [12:04:57]Host: 172.17.41.195:8080 [12:04:57]Content-Length: 331 [12:04:57]Content-Type: application/json [12:04:57] [12:04:57]POST finish read [12:04:57]Found Content-Length = 331 [12:04:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [12:04:57]execute_script... [12:04:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [12:04:57]POST & json_proto [12:04:57]process_json_proto [12:04:57]json parsed OK: [12:04:57]protocol is kg_v1.0 [12:04:57]action value=get_value [12:04:57]process_action get_value [12:04:57]cmd_get_value [12:04:57]process_action get_value done [12:04:57]requested_data is exist [12:04:57]produce_requested_data [12:04:57]requested_item fm.sale.total is exist - process it [12:04:57]SAM_PROTO_GetFMData [12:04:57]wFMCommunicate request_size=4 [12:04:57]MH_SAM_APDU [12:04:57]CAPDU: 80 13 03 00 [12:04:57]Write to MH i2c: E2 08 00 1A 33 80 13 03 00 00 00 00 00 CC [12:04:57]Write i2c OK [12:04:57]MH_I2C_Read... [12:04:57]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [12:04:57]Read from MH i2c: E2 [12:04:57]MH_I2C_Read... [12:04:57]Read from MH i2c: E2 FD 00 [12:04:57]MH_I2C_Read... [12:04:57]Read from MH i2c: E2 FD 00 1A 33 00 C6 04 85 04 C2 04 6E 04 04 00 1D 06 01 00 69 04 A3 00 6F 04 04 00 73 05 01 00 B1 04 05 00 3C 30 EC 1D 03 70 04 05 00 80 93 D8 C0 02 72 04 04 00 BC 9C 13 5D 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 F7 2B BF 54 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 BB D9 0F 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9D 00 6F 04 04 00 AA 00 00 00 B1 04 04 00 00 23 C3 DC 70 04 04 00 00 23 C3 DC 72 04 00 00 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 DD 9D 71 17 EF 03 09 90 00 8D [12:04:57]RAPDU: C6 04 85 04 C2 04 6E 04 04 00 1D 06 01 00 69 04 A3 00 6F 04 04 00 73 05 01 00 B1 04 05 00 3C 30 EC 1D 03 70 04 05 00 80 93 D8 C0 02 72 04 04 00 BC 9C 13 5D 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 F7 2B BF 54 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 BB D9 0F 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9D 00 6F 04 04 00 AA 00 00 00 B1 04 04 00 00 23 C3 DC 70 04 04 00 00 23 C3 DC 72 04 00 00 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 DD 9D 71 17 EF 03 09 90 00 [12:04:57]wFMCommunicate OK [12:04:57]wFMCommunicate request_size=4 [12:04:57]MH_SAM_APDU [12:04:57]CAPDU: 80 17 00 00 [12:04:57]Write to MH i2c: E2 08 00 1B 33 80 17 00 00 00 00 00 00 CE [12:04:57]Write i2c OK [12:04:57]MH_I2C_Read... [12:04:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:04:57]Read from MH i2c: E2 [12:04:57]MH_I2C_Read... [12:04:57]Read from MH i2c: E2 FD 00 [12:04:57]MH_I2C_Read... [12:04:57]Read from MH i2c: E2 FD 00 1B 33 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 70 22 F4 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 90 00 09 [12:04:57]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 70 22 F4 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 90 00 [12:04:57]wFMCommunicate OK [12:04:57]wFMCommunicate request_size=4 [12:04:57]MH_SAM_APDU [12:04:57]CAPDU: 80 17 00 00 [12:04:57]Write to MH i2c: E2 08 00 1C 33 80 17 00 00 00 00 00 00 CF [12:04:57]Write i2c OK [12:04:57]MH_I2C_Read... [12:04:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:04:58]Read from MH i2c: E2 [12:04:58]MH_I2C_Read... [12:04:58]Read from MH i2c: E2 FD 00 [12:04:58]MH_I2C_Read... [12:04:58]Read from MH i2c: E2 FD 00 1C 33 00 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 90 00 F6 [12:04:58]RAPDU: 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 90 00 [12:04:58]wFMCommunicate OK [12:04:58]wFMCommunicate request_size=4 [12:04:58]MH_SAM_APDU [12:04:58]CAPDU: 80 17 00 00 [12:04:58]Write to MH i2c: E2 08 00 1D 33 80 17 00 00 00 00 00 00 D0 [12:04:58]Write i2c OK [12:04:58]MH_I2C_Read... [12:04:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:04:58]Read from MH i2c: E2 [12:04:58]MH_I2C_Read... [12:04:58]Read from MH i2c: E2 FD 00 [12:04:58]MH_I2C_Read... [12:04:58]Read from MH i2c: E2 FD 00 1D 33 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 4B [12:04:58]RAPDU: EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 [12:04:58]wFMCommunicate OK [12:04:58]wFMCommunicate request_size=4 [12:04:58]MH_SAM_APDU [12:04:58]CAPDU: 80 17 00 00 [12:04:58]Write to MH i2c: E2 08 00 1E 33 80 17 00 00 00 00 00 00 D1 [12:04:58]Write i2c OK [12:04:58]MH_I2C_Read... [12:04:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 224! [12:04:58]Read from MH i2c: E2 [12:04:58]MH_I2C_Read... [12:04:58]Read from MH i2c: E2 E3 00 [12:04:58]MH_I2C_Read... [12:04:58]Read from MH i2c: E2 E3 00 1E 33 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 B0 [12:04:58]RAPDU: 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [12:04:58]wFMCommunicate OK [12:04:58]SAM_PROTO_GetFMData done [12:04:58]requested_item fm.sale_refund.total is exist - process it [12:04:58]requested_item fm.buy.total is exist - process it [12:04:58]requested_item shift.sale.total is exist - process it [12:04:58]SAM_PROTO_GetShiftData [12:04:58]wFMCommunicate request_size=4 [12:04:58]MH_SAM_APDU [12:04:58]CAPDU: 80 13 02 00 [12:04:58]Write to MH i2c: E2 08 00 1F 33 80 13 02 00 00 00 00 00 D0 [12:04:58]Write i2c OK [12:04:58]MH_I2C_Read... [12:04:58]OFD Sender: No OFD packet to send [12:04:59]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [12:04:59]Read from MH i2c: E2 [12:04:59]MH_I2C_Read... [12:04:59]Read from MH i2c: E2 FD 00 [12:04:59]MH_I2C_Read... [12:04:59]Read from MH i2c: E2 FD 00 1F 33 00 AE 04 AA 04 AA 04 6E 04 04 00 3A 00 00 00 69 04 9B 00 6F 04 04 00 3A 00 00 00 B1 04 03 00 B0 3F 5D 70 04 03 00 C4 9E 15 72 04 03 00 EC A0 47 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 53 E7 09 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 41 D3 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 F2 [12:04:59]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 3A 00 00 00 69 04 9B 00 6F 04 04 00 3A 00 00 00 B1 04 03 00 B0 3F 5D 70 04 03 00 C4 9E 15 72 04 03 00 EC A0 47 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 53 E7 09 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 41 D3 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [12:04:59]wFMCommunicate OK [12:04:59]wFMCommunicate request_size=4 [12:04:59]MH_SAM_APDU [12:04:59]CAPDU: 80 17 00 00 [12:04:59]Write to MH i2c: E2 08 00 20 33 80 17 00 00 00 00 00 00 D3 [12:04:59]Write i2c OK [12:04:59]MH_I2C_Read... [12:04:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:04:59]Read from MH i2c: E2 [12:04:59]MH_I2C_Read... [12:04:59]Read from MH i2c: E2 FD 00 [12:04:59]MH_I2C_Read... [12:04:59]Read from MH i2c: E2 FD 00 20 33 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 F5 [12:04:59]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [12:04:59]wFMCommunicate OK [12:04:59]wFMCommunicate request_size=4 [12:04:59]MH_SAM_APDU [12:04:59]CAPDU: 80 17 00 00 [12:04:59]Write to MH i2c: E2 08 00 21 33 80 17 00 00 00 00 00 00 D4 [12:04:59]Write i2c OK [12:04:59]MH_I2C_Read... [12:04:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:04:59]Read from MH i2c: E2 [12:04:59]MH_I2C_Read... [12:04:59]Read from MH i2c: E2 FD 00 [12:04:59]MH_I2C_Read... [12:04:59]Read from MH i2c: E2 FD 00 21 33 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 8B [12:04:59]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [12:04:59]wFMCommunicate OK [12:04:59]wFMCommunicate request_size=4 [12:04:59]MH_SAM_APDU [12:04:59]CAPDU: 80 17 00 00 [12:04:59]Write to MH i2c: E2 08 00 22 33 80 17 00 00 00 00 00 00 D5 [12:04:59]Write i2c OK [12:04:59]MH_I2C_Read... [12:05:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:05:00]Read from MH i2c: E2 [12:05:00]MH_I2C_Read... [12:05:00]Read from MH i2c: E2 FD 00 [12:05:00]MH_I2C_Read... [12:05:00]Read from MH i2c: E2 FD 00 22 33 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 47 [12:05:00]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [12:05:00]wFMCommunicate OK [12:05:00]wFMCommunicate request_size=4 [12:05:00]MH_SAM_APDU [12:05:00]CAPDU: 80 17 00 00 [12:05:00]Write to MH i2c: E2 08 00 23 33 80 17 00 00 00 00 00 00 D6 [12:05:00]Write i2c OK [12:05:00]MH_I2C_Read... [12:05:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [12:05:00]Read from MH i2c: E2 [12:05:00]MH_I2C_Read... [12:05:00]Read from MH i2c: E2 CB 00 [12:05:00]MH_I2C_Read... [12:05:00]Read from MH i2c: E2 CB 00 23 33 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 BF [12:05:00]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [12:05:00]wFMCommunicate OK [12:05:00]SAM_PROTO_GetShiftData done [12:05:00]requested_item shift.sale.total_cash is exist - process it [12:05:00]requested_item shift.sale_refund.total is exist - process it [12:05:00]requested_item shift.sale_refund.total_cash is exist - process it [12:05:00]requested_item shift.buy.total is exist - process it [12:05:00]requested_item shift.buy.total_cash is exist - process it [12:05:00]produce_requested_data done [12:05:00]produce_requested_data return {"fm.sale.total":133869199.96,"fm.sale_refund.total":37037760.00,"fm.buy.total":0.00,"shift.sale.total":61111.52,"shift.sale.total_cash":14169.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [12:05:00]process_action_free get_value [12:05:00]json_value_free [12:05:00]json_value_free done [12:05:00]process_json_proto returns [12:05:00]Send response to host [12:05:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":133869199.96,"fm.sale_refund.total":37037760.00,"fm.buy.total":0.00,"shift.sale.total":61111.52,"shift.sale.total_cash":14169.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [12:05:00]free response buf [12:05:00]execute_script done [12:05:00]execute_script returns [12:05:00]free content buf [12:05:00]Sock 7.Close socket [12:05:00]Sock 7.Thread stoped [12:05:04]OFD Sender: No OFD packet to send [12:05:09]OFD Sender: No OFD packet to send [12:05:14]OFD Sender: No OFD packet to send [12:05:19]OFD Sender: No OFD packet to send [12:05:24]OFD Sender: No OFD packet to send [12:05:29]OFD Sender: No OFD packet to send [12:05:34]OFD Sender: No OFD packet to send [12:05:39]OFD Sender: No OFD packet to send [12:05:44]OFD Sender: No OFD packet to send [12:05:49]OFD Sender: No OFD packet to send [12:05:54]OFD Sender: No OFD packet to send [12:05:59]OFD Sender: No OFD packet to send [12:06:04]OFD Sender: No OFD packet to send [12:06:09]OFD Sender: No OFD packet to send [12:06:14]OFD Sender: No OFD packet to send [12:06:16]accept exits with 9 [12:06:16]New connection [12:06:16]New thread 3066752356 created [12:06:16]Thread 3066608996 joined [12:06:16]Waiting for new connection... [12:06:16] Sock 9.Parse request [12:06:16]Sock 9.Check first char [12:06:16]Sock 9.First char is OK [12:06:16]request: POST /json_proto HTTP/1.0 [12:06:16]Method: POST [12:06:16]URL: /json_proto [12:06:16]Method is POST - this is cgi request [12:06:16]url: /json_proto [12:06:16]query_string will be loaded in cgi processing [12:06:16]execute_cgi json_proto POST (null) [12:06:16]execute_cgi path=json_proto method=POST [12:06:16]POST find Content-Length [12:06:16]Host: 172.17.41.195:8080 [12:06:16]Content-Length: 800 [12:06:16]Content-Type: application/json [12:06:16] [12:06:16]POST finish read [12:06:16]Found Content-Length = 800 [12:06:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)508041", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.80, "quantity" : 7.490, "sum" : 500.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.33 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:06:16]execute_script... [12:06:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)508041", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.80, "quantity" : 7.490, "sum" : 500.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.33 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:06:16]POST & json_proto [12:06:16]process_json_proto [12:06:16]json parsed OK: [12:06:16]protocol is kg_v1.0 [12:06:16]action value=close_receipt [12:06:16]process_action close_receipt [12:06:16]cmd_close_receipt [12:06:16]MH_GetDate [12:06:16]Write to MH i2c: F0 00 00 24 33 46 [12:06:16]Write i2c OK [12:06:16]MH_I2C_Read... [12:06:16]Read from MH i2c: F0 [12:06:16]MH_I2C_Read... [12:06:16]Read from MH i2c: F0 09 00 [12:06:16]MH_I2C_Read... [12:06:16]Read from MH i2c: F0 09 00 24 33 00 BD 99 48 66 FC 21 6F 64 43 [12:06:16]GetLastDocTimeStamp 1716033741 [12:06:16]current date 1716033981 [12:06:16]FM_GetShiftState [12:06:16]SAM_PROTO_GetShiftState [12:06:16]wFMCommunicate request_size=4 [12:06:16]MH_SAM_APDU [12:06:16]CAPDU: 80 13 01 00 [12:06:16]Write to MH i2c: E2 08 00 25 33 80 13 01 00 00 00 00 00 D5 [12:06:16]Write i2c OK [12:06:16]MH_I2C_Read... [12:06:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:06:16]Read from MH i2c: E2 [12:06:16]MH_I2C_Read... [12:06:16]Read from MH i2c: E2 0E 00 [12:06:16]MH_I2C_Read... [12:06:16]Read from MH i2c: E2 0E 00 25 33 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 3C [12:06:16]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [12:06:16]wFMCommunicate OK [12:06:16]SAM_PROTO_GetShiftState done [12:06:16]FM_GetShiftState done [12:06:16]opened in 1715991483 [12:06:16]opened+sec_in_day 1716077883 [12:06:16]quantity*price = 50033 [12:06:16]sum+1 = 50034 [12:06:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.33 НСП 1% : 4.43 НДС 12% : 53.13 Наличными: 0.00 Безнал.: 500.33 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 59 18.05.2024 12:06 Смена: 359 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67820 ФПД: 64935677307100 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T120621&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67820&fm=64935677307100&tin=02508201610067®Number=0000000000091845&sum=50033 [12:06:17]StoreToDocumentArchive [12:06:17]shift 359 fd 67820 [12:06:17]save to /storage/0359/doc_00067820 [12:06:17]save last doc name /storage/0359/doc_00067820 to /storage/kkm_last_doc_name [12:06:17]save OK [12:06:17]Clear old archive folders... [12:06:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:06:17]tlvbuf is 01BC06D0 [12:06:17]SAM_PROTO_ClearQueue [12:06:17]wFMCommunicate request_size=4 [12:06:17]MH_SAM_APDU [12:06:17]CAPDU: 80 09 00 00 [12:06:17]Write to MH i2c: E2 08 00 32 33 80 09 00 00 00 00 00 00 D7 [12:06:17]Write i2c OK [12:06:17]MH_I2C_Read... [12:06:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:06:17]Read from MH i2c: E2 [12:06:17]MH_I2C_Read... [12:06:17]Read from MH i2c: E2 03 00 [12:06:17]MH_I2C_Read... [12:06:17]Read from MH i2c: E2 03 00 32 33 00 90 00 D9 [12:06:17]RAPDU: 90 00 [12:06:17]wFMCommunicate OK [12:06:17]SAM_PROTO_ClearQueue done [12:06:17]KKMCreateOFDPacket [12:06:17]OFDProtocolAddRootSTLVToBuf [12:06:17]FM_MakeSignedData [12:06:17]FM_MakeSignedData [12:06:17]SAM_PROTO_SignData [12:06:17]wFMCommunicate request_size=4 [12:06:17]MH_SAM_APDU [12:06:17]CAPDU: 80 0D 01 02 [12:06:17]Write to MH i2c: E2 08 00 33 33 80 0D 01 02 00 00 00 00 DF [12:06:17]Write i2c OK [12:06:17]MH_I2C_Read... [12:06:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:06:17]Read from MH i2c: E2 [12:06:17]MH_I2C_Read... [12:06:17]Read from MH i2c: E2 03 00 [12:06:17]MH_I2C_Read... [12:06:17]Read from MH i2c: E2 03 00 33 33 00 90 00 DA [12:06:17]RAPDU: 90 00 [12:06:17]wFMCommunicate OK [12:06:17]wFMCommunicate request_size=255 [12:06:17]MH_SAM_APDU [12:06:17]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 42 1D 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 71 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 71 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 BD 99 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 EC 08 01 00 35 04 06 00 3B [12:06:17]Write to MH i2c: E2 02 01 34 33 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 42 1D 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 71 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 71 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 BD 99 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 EC 08 01 00 35 04 06 00 3B 00 00 83 [12:06:17]Write i2c OK [12:06:17]MH_I2C_Read... [12:06:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:06:17]Read from MH i2c: E2 [12:06:17]MH_I2C_Read... [12:06:17]Read from MH i2c: E2 03 00 [12:06:17]MH_I2C_Read... [12:06:17]Read from MH i2c: E2 03 00 34 33 00 90 00 DB [12:06:17]RAPDU: 90 00 [12:06:17]wFMCommunicate OK [12:06:17]wFMCommunicate request_size=10 [12:06:17]MH_SAM_APDU [12:06:17]CAPDU: 80 0D 02 02 05 0F 03 FA A8 DC [12:06:17]Write to MH i2c: E2 0D 00 35 33 80 0D 02 02 05 00 0F 03 FA A8 DC 00 00 7C [12:06:17]Write i2c OK [12:06:17]MH_I2C_Read... [12:06:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:06:17]Read from MH i2c: E2 [12:06:17]MH_I2C_Read... [12:06:17]Read from MH i2c: E2 03 00 [12:06:17]MH_I2C_Read... [12:06:17]Read from MH i2c: E2 03 00 35 33 00 90 00 DC [12:06:17]RAPDU: 90 00 [12:06:17]wFMCommunicate OK [12:06:17]wFMCommunicate request_size=4 [12:06:17]MH_SAM_APDU [12:06:17]CAPDU: 80 0D 03 02 [12:06:17]Write to MH i2c: E2 08 00 36 33 80 0D 03 02 00 00 00 00 E4 [12:06:17]Write i2c OK [12:06:17]MH_I2C_Read... [12:06:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:06:17]Read from MH i2c: E2 [12:06:17]MH_I2C_Read... [12:06:17]Read from MH i2c: E2 0B 00 [12:06:17]MH_I2C_Read... [12:06:17]Read from MH i2c: E2 0B 00 36 33 00 94 64 53 D8 22 73 93 4A 90 00 7A [12:06:17]RAPDU: 94 64 53 D8 22 73 93 4A 90 00 [12:06:17]wFMCommunicate OK [12:06:17]SAM_PROTO_SignData done [12:06:17]FM_MakeSignedData done [12:06:17]CreateOFDProtocolMessage [12:06:17]wFMCommunicate request_size=4 [12:06:17]MH_SAM_APDU [12:06:17]CAPDU: 80 11 00 00 [12:06:17]Write to MH i2c: E2 08 00 37 33 80 11 00 00 00 00 00 00 E4 [12:06:17]Write i2c OK [12:06:17]MH_I2C_Read... [12:06:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:06:18]Read from MH i2c: E2 [12:06:18]MH_I2C_Read... [12:06:18]Read from MH i2c: E2 17 00 [12:06:18]MH_I2C_Read... [12:06:18]Read from MH i2c: E2 17 00 37 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 3A [12:06:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [12:06:18]wFMCommunicate OK [12:06:18]CreateOFDProtocolMessage done [12:06:18]OFDSenderStorePacket 67820 [12:06:18]StoreOFDPacket docnum=67820 [12:06:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 66 51 07 01 F1 CB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 42 1D 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 71 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 71 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 BD 99 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 EC 08 01 00 35 04 06 00 3B 0F 03 FA A8 DC 94 64 53 D8 22 73 93 4A [12:06:18]CheckFolder [12:06:18]dirname=/storage/ofd_packets [12:06:18]CheckFolder done [12:06:18]ProducePacketName [12:06:18]name=ofd_packets/00067820 [12:06:18]NVStorageSaveData ofd_packets/00067820 [12:06:18]File name is /storage/ofd_packets/00067820 [12:06:18]Write 301 bytes [12:06:18]NVStorageSaveData done [12:06:18]OFDSenderStorePacket done [12:06:18]KKMCreateOFDPacket done [12:06:18]NVStorageSaveData kkm_last_timestamp [12:06:18]File name is /storage/kkm_last_timestamp [12:06:18]Write 4 bytes [12:06:18]NVStorageSaveData done [12:06:18]ExternCall_PrintAddStr [12:06:18]wPrintStart [12:06:18]Write to MH i2c: 01 00 00 38 33 6B [12:06:18]Write i2c OK [12:06:18]MH_I2C_Read... [12:06:18]Read from MH i2c: 01 [12:06:18]MH_I2C_Read... [12:06:18]Read from MH i2c: 01 07 00 [12:06:18]MH_I2C_Read... [12:06:18]Read from MH i2c: 01 07 00 38 33 00 00 00 00 00 FF 0F 80 [12:06:18]RasterBufferAndPrint [12:06:18]line Счет N : (1)508041 [12:06:18]line ИНН: 02508201610067 [12:06:18]line Контрольно-Кассовый Чек [12:06:18]line ПРОДАЖА [12:06:18]line ТРК (МРК, ГНК) : 23 [12:06:18]line Товар: 2710124130 [12:06:18]line Аи-92-К-5 [12:06:18]line 7.490 * 66.80 [12:06:18]line = 500.33 [12:06:18]line НДС 12% НСП 1% [12:06:18]line > о реализуемом товаре [12:06:18]line ИТОГО: 500.33 [12:06:18]line НСП 1% : 4.43 [12:06:18]line НДС 12% : 53.13 [12:06:18]line Наличными: 0.00 [12:06:18]line Безнал.: 500.33 [12:06:18]line Место: АЗС № 91 "Партнер Нефть" [12:06:18]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [12:06:18]line СНО: Общий режим [12:06:18]line Чек 59 18.05.2024 12:06 [12:06:18]line Смена: 359 ФФД: 1.0 [12:06:18]line ЗНМ: 0300000119 [12:06:18]line РНМ: 0000000000091845 [12:06:18]line Версия ККМ: 001 [12:06:18]line Платежная система: O! деньги [12:06:18]line ФМ: 0000000000871829 [12:06:18]line ФД: 67820 [12:06:18]line ФПД: 64935677307100 [12:06:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T120621&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67820&fm=64935677307100&tin=02508201610067®Number=0000000000091845&sum=50033 [12:06:18]written 0, free lines is 4095 [12:06:18]OFD Sender: Processing packet 67820 [packets to send 35, broken 34] [12:06:18]ProducePacketName [12:06:18]name=ofd_packets/00067820 [12:06:18]OFD Sender: To server: pG, [12:06:18]CommunicateWithHost lk.salyk.kg:30040 [12:06:18]ConnectInit lk.salyk.kg [12:06:18]Connected sock=10 [12:06:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 66 51 07 01 F1 CB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 42 1D 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 71 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 71 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 BD 99 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 EC 08 01 00 35 04 06 00 3B 0F 03 FA A8 DC 94 64 53 D8 22 73 93 4A [12:06:18]Write to MH i2c: 01 00 00 61 33 94 [12:06:18]Write i2c OK [12:06:18]MH_I2C_Read... [12:06:18]Read from MH i2c: 01 [12:06:18]MH_I2C_Read... [12:06:18]Read from MH i2c: 01 07 00 [12:06:18]MH_I2C_Read... [12:06:18]Read from MH i2c: 01 07 00 61 33 00 00 00 00 00 DE 0C 85 [12:06:18]RasterBufferAndPrint [12:06:18]line [12:06:18]line [12:06:18]line [12:06:18]line [12:06:18]line [12:06:18]written 0, free lines is 3300 [12:06:18]MH_Cut [12:06:18]Write to MH i2c: D1 01 00 68 33 01 6D [12:06:18]Write i2c OK [12:06:18]MH_I2C_Read... [12:06:18]Read from MH i2c: D1 [12:06:18]MH_I2C_Read... [12:06:18]Read from MH i2c: D1 01 00 [12:06:18]MH_I2C_Read... [12:06:18]Read from MH i2c: D1 01 00 68 33 00 6C [12:06:18]Write to MH i2c: 01 00 00 69 33 9C [12:06:18]Write i2c OK [12:06:18]MH_I2C_Read... [12:06:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 C1 D4 47 00 F3 44 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 EC 08 01 00 F4 03 04 00 93 41 48 66 B6 04 01 00 00 34 44 58 47 57 BB ED A4 [12:06:18]CommunicateWithHost err = 0 [12:06:18]CheckOFDResponse [12:06:18]1017 (14) - 77093643461234 [12:06:18]1041 (16) - 0000000000871829 [12:06:18]1040 (4) - 67820 [12:06:18]1012 (4) - 18.05.2024 05:50 [12:06:18]1206 (1) - 0 [12:06:18]OFD Sender: Remove packet 67820 [12:06:18]ProducePacketName [12:06:18]name=ofd_packets/00067820 [12:06:18]NVStorageDeleteData [12:06:19]OFD Sender: No OFD packet to send [12:06:19]*** Cut start [12:06:19]*** Purtial cut [12:06:19]*** CUTSNS_PIN = 0 [12:06:19]*** Stage 1: CUTSNS_PIN = 1 [12:06:21]Read from MH i2c: 01 [12:06:21]MH_I2C_Read... [12:06:21]*** Stop cut motor [12:06:21]*** Cut end [12:06:21]Read from MH i2c: 01 07 00 [12:06:21]MH_I2C_Read... [12:06:21]Read from MH i2c: 01 07 00 69 33 00 00 00 00 00 FF 0F B1 [12:06:21]process_action close_receipt done [12:06:21]requested_data is exist [12:06:21]produce_requested_data [12:06:21]requested_item fm.sn is exist - process it [12:06:21]wFMCommunicate request_size=4 [12:06:21]MH_SAM_APDU [12:06:21]CAPDU: 80 11 00 00 [12:06:21]Write to MH i2c: E2 08 00 6A 33 80 11 00 00 00 00 00 00 17 [12:06:21]Write i2c OK [12:06:21]MH_I2C_Read... [12:06:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:06:21]Read from MH i2c: E2 [12:06:21]MH_I2C_Read... [12:06:21]Read from MH i2c: E2 17 00 [12:06:21]MH_I2C_Read... [12:06:21]Read from MH i2c: E2 17 00 6A 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 6D [12:06:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [12:06:21]wFMCommunicate OK [12:06:21]requested_item fd.num is exist - process it [12:06:21]SAM_PROTO_GetFieldsCounters [12:06:21]wFMCommunicate request_size=4 [12:06:21]MH_SAM_APDU [12:06:21]CAPDU: 80 13 00 00 [12:06:21]Write to MH i2c: E2 08 00 6B 33 80 13 00 00 00 00 00 00 1A [12:06:21]Write i2c OK [12:06:21]MH_I2C_Read... [12:06:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:06:21]Read from MH i2c: E2 [12:06:21]MH_I2C_Read... [12:06:21]Read from MH i2c: E2 62 00 [12:06:21]MH_I2C_Read... [12:06:21]Read from MH i2c: E2 62 00 6B 33 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 EC 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 3B 00 00 00 5E 04 04 00 3B 00 00 00 57 04 04 00 3C 00 00 00 19 04 04 00 00 00 00 00 90 00 4E [12:06:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 EC 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 3B 00 00 00 5E 04 04 00 3B 00 00 00 57 04 04 00 3C 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:06:21]wFMCommunicate OK [12:06:21]SAM_PROTO_GetFieldsCounters done [12:06:21]requested_item shift.num is exist - process it [12:06:21]requested_item shift.opened is exist - process it [12:06:21]req_shift_opened [12:06:21]FM_GetShiftState [12:06:21]SAM_PROTO_GetShiftState [12:06:21]wFMCommunicate request_size=4 [12:06:21]MH_SAM_APDU [12:06:21]CAPDU: 80 13 01 00 [12:06:21]Write to MH i2c: E2 08 00 6C 33 80 13 01 00 00 00 00 00 1C [12:06:21]Write i2c OK [12:06:21]MH_I2C_Read... [12:06:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:06:21]Read from MH i2c: E2 [12:06:21]MH_I2C_Read... [12:06:21]Read from MH i2c: E2 0E 00 [12:06:21]MH_I2C_Read... [12:06:21]Read from MH i2c: E2 0E 00 6C 33 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 83 [12:06:21]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [12:06:21]wFMCommunicate OK [12:06:21]SAM_PROTO_GetShiftState done [12:06:21]FM_GetShiftState done [12:06:21]req_shift_opened done [12:06:21]requested_item shift.open_date is exist - process it [12:06:21]req_shift_open_date [12:06:21]req_shift_open_date done [12:06:21]produce_requested_data done [12:06:21]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67820,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [12:06:21]process_action_free close_receipt [12:06:21]json_value_free [12:06:21]json_value_free done [12:06:21]process_json_proto returns [12:06:21]Send response to host [12:06:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67820,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [12:06:21]free response buf [12:06:21]execute_script done [12:06:21]execute_script returns [12:06:21]free content buf [12:06:21]Sock 9.Close socket [12:06:21]Sock 9.Thread stoped [12:06:24]OFD Sender: No OFD packet to send [12:06:29]OFD Sender: No OFD packet to send [12:06:34]OFD Sender: No OFD packet to send [12:06:39]OFD Sender: No OFD packet to send [12:06:44]OFD Sender: No OFD packet to send [12:06:49]OFD Sender: No OFD packet to send [12:06:54]OFD Sender: No OFD packet to send [12:06:59]OFD Sender: No OFD packet to send [12:07:04]OFD Sender: No OFD packet to send [12:07:09]OFD Sender: No OFD packet to send [12:07:13]accept exits with 7 [12:07:13]New connection [12:07:13]New thread 3066608996 created [12:07:13]Thread 3066752356 joined [12:07:13]Waiting for new connection... [12:07:13] Sock 7.Parse request [12:07:13]Sock 7.Check first char [12:07:13]Sock 7.First char is OK [12:07:13]request: POST /json_proto HTTP/1.0 [12:07:13]Method: POST [12:07:13]URL: /json_proto [12:07:13]Method is POST - this is cgi request [12:07:13]url: /json_proto [12:07:13]query_string will be loaded in cgi processing [12:07:13]execute_cgi json_proto POST (null) [12:07:13]execute_cgi path=json_proto method=POST [12:07:13]POST find Content-Length [12:07:13]Host: 172.17.41.195:8080 [12:07:13]Content-Length: 800 [12:07:13]Content-Type: application/json [12:07:13] [12:07:13]POST finish read [12:07:13]Found Content-Length = 800 [12:07:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)508042", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 13.390, "sum" : 1000.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.23 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:07:13]execute_script... [12:07:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)508042", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 13.390, "sum" : 1000.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.23 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:07:13]POST & json_proto [12:07:13]process_json_proto [12:07:13]json parsed OK: [12:07:13]protocol is kg_v1.0 [12:07:13]action value=close_receipt [12:07:13]process_action close_receipt [12:07:13]cmd_close_receipt [12:07:13]MH_GetDate [12:07:13]Write to MH i2c: F0 00 00 6D 33 8F [12:07:13]Write i2c OK [12:07:13]MH_I2C_Read... [12:07:13]Read from MH i2c: F0 [12:07:13]MH_I2C_Read... [12:07:13]Read from MH i2c: F0 09 00 [12:07:13]MH_I2C_Read... [12:07:13]Read from MH i2c: F0 09 00 6D 33 00 F7 99 48 66 FC 21 6F 64 C6 [12:07:13]GetLastDocTimeStamp 1716033981 [12:07:13]current date 1716034039 [12:07:13]FM_GetShiftState [12:07:13]SAM_PROTO_GetShiftState [12:07:13]wFMCommunicate request_size=4 [12:07:13]MH_SAM_APDU [12:07:13]CAPDU: 80 13 01 00 [12:07:13]Write to MH i2c: E2 08 00 6E 33 80 13 01 00 00 00 00 00 1E [12:07:13]Write i2c OK [12:07:13]MH_I2C_Read... [12:07:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:07:13]Read from MH i2c: E2 [12:07:13]MH_I2C_Read... [12:07:13]Read from MH i2c: E2 0E 00 [12:07:13]MH_I2C_Read... [12:07:13]Read from MH i2c: E2 0E 00 6E 33 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 85 [12:07:13]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [12:07:13]wFMCommunicate OK [12:07:13]SAM_PROTO_GetShiftState done [12:07:13]FM_GetShiftState done [12:07:13]opened in 1715991483 [12:07:13]opened+sec_in_day 1716077883 [12:07:13]quantity*price = 100023 [12:07:13]sum+1 = 100024 [12:07:13]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.23 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.23 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 60 18.05.2024 12:07 Смена: 359 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67821 ФПД: 159121756039327 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T120719&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67821&fm=159121756039327&tin=02508201610067®Number=0000000000091845&sum=100023 [12:07:15]StoreToDocumentArchive [12:07:15]shift 359 fd 67821 [12:07:15]save to /storage/0359/doc_00067821 [12:07:15]save last doc name /storage/0359/doc_00067821 to /storage/kkm_last_doc_name [12:07:15]save OK [12:07:15]Clear old archive folders... [12:07:15]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:07:15]tlvbuf is 01B5E220 [12:07:15]SAM_PROTO_ClearQueue [12:07:15]wFMCommunicate request_size=4 [12:07:15]MH_SAM_APDU [12:07:15]CAPDU: 80 09 00 00 [12:07:15]Write to MH i2c: E2 08 00 7B 33 80 09 00 00 00 00 00 00 20 [12:07:15]Write i2c OK [12:07:15]MH_I2C_Read... [12:07:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:07:15]Read from MH i2c: E2 [12:07:15]MH_I2C_Read... [12:07:15]Read from MH i2c: E2 03 00 [12:07:15]MH_I2C_Read... [12:07:15]Read from MH i2c: E2 03 00 7B 33 00 90 00 22 [12:07:15]RAPDU: 90 00 [12:07:15]wFMCommunicate OK [12:07:15]SAM_PROTO_ClearQueue done [12:07:15]KKMCreateOFDPacket [12:07:15]OFDProtocolAddRootSTLVToBuf [12:07:15]FM_MakeSignedData [12:07:15]FM_MakeSignedData [12:07:15]SAM_PROTO_SignData [12:07:15]wFMCommunicate request_size=4 [12:07:15]MH_SAM_APDU [12:07:15]CAPDU: 80 0D 01 02 [12:07:15]Write to MH i2c: E2 08 00 7C 33 80 0D 01 02 00 00 00 00 28 [12:07:15]Write i2c OK [12:07:15]MH_I2C_Read... [12:07:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:07:15]Read from MH i2c: E2 [12:07:15]MH_I2C_Read... [12:07:15]Read from MH i2c: E2 03 00 [12:07:15]MH_I2C_Read... [12:07:15]Read from MH i2c: E2 03 00 7C 33 00 90 00 23 [12:07:15]RAPDU: 90 00 [12:07:15]wFMCommunicate OK [12:07:15]wFMCommunicate request_size=255 [12:07:15]MH_SAM_APDU [12:07:15]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4E 34 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 B7 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B7 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B7 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 F7 99 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 ED 08 01 00 35 04 06 00 90 B8 6B BE [12:07:15]Write to MH i2c: E2 02 01 7D 33 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4E 34 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 B7 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B7 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B7 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 F7 99 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 ED 08 01 00 35 04 06 00 90 B8 6B BE 00 00 79 [12:07:15]Write i2c OK [12:07:15]MH_I2C_Read... [12:07:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:07:15]Read from MH i2c: E2 [12:07:15]MH_I2C_Read... [12:07:15]Read from MH i2c: E2 03 00 [12:07:15]MH_I2C_Read... [12:07:15]Read from MH i2c: E2 03 00 7D 33 00 90 00 24 [12:07:15]RAPDU: 90 00 [12:07:15]wFMCommunicate OK [12:07:15]wFMCommunicate request_size=7 [12:07:15]MH_SAM_APDU [12:07:15]CAPDU: 80 0D 02 02 02 A8 9F [12:07:15]Write to MH i2c: E2 0A 00 7E 33 80 0D 02 02 02 00 A8 9F 00 00 76 [12:07:15]Write i2c OK [12:07:15]MH_I2C_Read... [12:07:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:07:15]Read from MH i2c: E2 [12:07:15]MH_I2C_Read... [12:07:15]Read from MH i2c: E2 03 00 [12:07:15]MH_I2C_Read... [12:07:15]Read from MH i2c: E2 03 00 7E 33 00 90 00 25 [12:07:15]RAPDU: 90 00 [12:07:15]wFMCommunicate OK [12:07:15]wFMCommunicate request_size=4 [12:07:15]MH_SAM_APDU [12:07:15]CAPDU: 80 0D 03 02 [12:07:15]Write to MH i2c: E2 08 00 7F 33 80 0D 03 02 00 00 00 00 2D [12:07:15]Write i2c OK [12:07:15]MH_I2C_Read... [12:07:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:07:15]Read from MH i2c: E2 [12:07:15]MH_I2C_Read... [12:07:15]Read from MH i2c: E2 0B 00 [12:07:15]MH_I2C_Read... [12:07:15]Read from MH i2c: E2 0B 00 7F 33 00 B9 61 75 B1 E5 A5 21 4A 90 00 63 [12:07:15]RAPDU: B9 61 75 B1 E5 A5 21 4A 90 00 [12:07:15]wFMCommunicate OK [12:07:15]SAM_PROTO_SignData done [12:07:15]FM_MakeSignedData done [12:07:15]CreateOFDProtocolMessage [12:07:15]wFMCommunicate request_size=4 [12:07:15]MH_SAM_APDU [12:07:15]CAPDU: 80 11 00 00 [12:07:15]Write to MH i2c: E2 08 00 80 33 80 11 00 00 00 00 00 00 2D [12:07:15]Write i2c OK [12:07:15]MH_I2C_Read... [12:07:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:07:15]Read from MH i2c: E2 [12:07:15]MH_I2C_Read... [12:07:15]Read from MH i2c: E2 17 00 [12:07:15]MH_I2C_Read... [12:07:15]Read from MH i2c: E2 17 00 80 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 83 [12:07:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [12:07:15]wFMCommunicate OK [12:07:15]CreateOFDProtocolMessage done [12:07:15]OFDSenderStorePacket 67821 [12:07:15]StoreOFDPacket docnum=67821 [12:07:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 C4 BE 04 01 AB B8 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4E 34 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 B7 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B7 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B7 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 F7 99 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 ED 08 01 00 35 04 06 00 90 B8 6B BE A8 9F B9 61 75 B1 E5 A5 21 4A [12:07:15]CheckFolder [12:07:15]dirname=/storage/ofd_packets [12:07:15]CheckFolder done [12:07:15]ProducePacketName [12:07:15]name=ofd_packets/00067821 [12:07:15]NVStorageSaveData ofd_packets/00067821 [12:07:15]File name is /storage/ofd_packets/00067821 [12:07:15]Write 298 bytes [12:07:15]NVStorageSaveData done [12:07:15]OFDSenderStorePacket done [12:07:15]KKMCreateOFDPacket done [12:07:15]NVStorageSaveData kkm_last_timestamp [12:07:15]File name is /storage/kkm_last_timestamp [12:07:15]Write 4 bytes [12:07:15]NVStorageSaveData done [12:07:15]ExternCall_PrintAddStr [12:07:15]wPrintStart [12:07:15]Write to MH i2c: 01 00 00 81 33 B4 [12:07:15]Write i2c OK [12:07:15]MH_I2C_Read... [12:07:15]Read from MH i2c: 01 [12:07:15]MH_I2C_Read... [12:07:15]Read from MH i2c: 01 07 00 [12:07:15]MH_I2C_Read... [12:07:15]Read from MH i2c: 01 07 00 81 33 00 00 00 00 00 FF 0F C9 [12:07:15]RasterBufferAndPrint [12:07:15]line Счет N : (1)508042 [12:07:15]line ИНН: 02508201610067 [12:07:15]line Контрольно-Кассовый Чек [12:07:15]line ПРОДАЖА [12:07:15]line ТРК (МРК, ГНК) : 11 [12:07:15]line Товар: 2710194210 [12:07:15]line ДТ-К-5 [12:07:15]line 13.390 * 74.70 [12:07:15]line = 1000.23 [12:07:15]line НДС 12% НСП 1% [12:07:15]line > о реализуемом товаре [12:07:15]line ИТОГО: 1000.23 [12:07:15]line НСП 1% : 8.85 [12:07:15]line НДС 12% : 106.22 [12:07:15]line Наличными: 0.00 [12:07:15]line Безнал.: 1000.23 [12:07:15]line Место: АЗС № 91 "Партнер Нефть" [12:07:15]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [12:07:15]line СНО: Общий режим [12:07:15]line Чек 60 18.05.2024 12:07 [12:07:15]line Смена: 359 ФФД: 1.0 [12:07:15]line ЗНМ: 0300000119 [12:07:15]line РНМ: 0000000000091845 [12:07:15]line Версия ККМ: 001 [12:07:15]line Платежная система: O! деньги [12:07:15]line ФМ: 0000000000871829 [12:07:15]line ФД: 67821 [12:07:15]line ФПД: 159121756039327 [12:07:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T120719&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67821&fm=159121756039327&tin=02508201610067®Number=0000000000091845&sum=100023 [12:07:15]OFD Sender: Processing packet 67821 [packets to send 35, broken 34] [12:07:15]ProducePacketName [12:07:15]name=ofd_packets/00067821 [12:07:15]OFD Sender: To server: pG, [12:07:15]CommunicateWithHost lk.salyk.kg:30040 [12:07:15]ConnectInit lk.salyk.kg [12:07:15]written 0, free lines is 4095 [12:07:15]Connected sock=10 [12:07:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 C4 BE 04 01 AB B8 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4E 34 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 B7 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B7 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B7 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 F7 99 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 ED 08 01 00 35 04 06 00 90 B8 6B BE A8 9F B9 61 75 B1 E5 A5 21 4A [12:07:15]recv_with_timeout no data received [12:07:15]CommunicateWithHost answer receiving error [12:07:15]CommunicateWithHost err = -3 [12:07:15]OFD Sender: Server communicate error [12:07:16]Write to MH i2c: 01 00 00 AA 33 DD [12:07:16]Write i2c OK [12:07:16]MH_I2C_Read... [12:07:16]Read from MH i2c: 01 [12:07:16]MH_I2C_Read... [12:07:16]Read from MH i2c: 01 07 00 [12:07:16]MH_I2C_Read... [12:07:16]Read from MH i2c: 01 07 00 AA 33 00 00 00 00 00 D4 0C C4 [12:07:16]RasterBufferAndPrint [12:07:16]line [12:07:16]line [12:07:16]line [12:07:16]line [12:07:16]line [12:07:16]written 0, free lines is 3290 [12:07:16]MH_Cut [12:07:16]Write to MH i2c: D1 01 00 B1 33 01 B6 [12:07:16]Write i2c OK [12:07:16]MH_I2C_Read... [12:07:16]Read from MH i2c: D1 [12:07:16]MH_I2C_Read... [12:07:16]Read from MH i2c: D1 01 00 [12:07:16]MH_I2C_Read... [12:07:16]Read from MH i2c: D1 01 00 B1 33 00 B5 [12:07:16]Write to MH i2c: 01 00 00 B2 33 E5 [12:07:16]Write i2c OK [12:07:16]MH_I2C_Read... [12:07:17]*** Cut start [12:07:17]*** Purtial cut [12:07:17]*** Stage 1: CUTSNS_PIN = 1 [12:07:17]Read from MH i2c: 01 [12:07:17]MH_I2C_Read... [12:07:17]*** Stop cut motor [12:07:17]*** Cut end [12:07:17]Read from MH i2c: 01 07 00 [12:07:17]MH_I2C_Read... [12:07:17]Read from MH i2c: 01 07 00 B2 33 00 00 00 00 00 FF 0F FA [12:07:17]process_action close_receipt done [12:07:17]requested_data is exist [12:07:17]produce_requested_data [12:07:17]requested_item fm.sn is exist - process it [12:07:17]wFMCommunicate request_size=4 [12:07:17]MH_SAM_APDU [12:07:17]CAPDU: 80 11 00 00 [12:07:17]Write to MH i2c: E2 08 00 B3 33 80 11 00 00 00 00 00 00 60 [12:07:17]Write i2c OK [12:07:17]MH_I2C_Read... [12:07:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:07:17]Read from MH i2c: E2 [12:07:17]MH_I2C_Read... [12:07:17]Read from MH i2c: E2 17 00 [12:07:17]MH_I2C_Read... [12:07:17]Read from MH i2c: E2 17 00 B3 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 B6 [12:07:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [12:07:17]wFMCommunicate OK [12:07:17]requested_item fd.num is exist - process it [12:07:17]SAM_PROTO_GetFieldsCounters [12:07:17]wFMCommunicate request_size=4 [12:07:17]MH_SAM_APDU [12:07:17]CAPDU: 80 13 00 00 [12:07:17]Write to MH i2c: E2 08 00 B4 33 80 13 00 00 00 00 00 00 63 [12:07:17]Write i2c OK [12:07:17]MH_I2C_Read... [12:07:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:07:17]Read from MH i2c: E2 [12:07:17]MH_I2C_Read... [12:07:17]Read from MH i2c: E2 62 00 [12:07:17]MH_I2C_Read... [12:07:17]Read from MH i2c: E2 62 00 B4 33 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 ED 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 3C 00 00 00 5E 04 04 00 3C 00 00 00 57 04 04 00 3D 00 00 00 19 04 04 00 00 00 00 00 90 00 9B [12:07:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 ED 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 3C 00 00 00 5E 04 04 00 3C 00 00 00 57 04 04 00 3D 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:07:17]wFMCommunicate OK [12:07:17]SAM_PROTO_GetFieldsCounters done [12:07:17]requested_item shift.num is exist - process it [12:07:17]requested_item shift.opened is exist - process it [12:07:17]req_shift_opened [12:07:17]FM_GetShiftState [12:07:17]SAM_PROTO_GetShiftState [12:07:17]wFMCommunicate request_size=4 [12:07:17]MH_SAM_APDU [12:07:17]CAPDU: 80 13 01 00 [12:07:17]Write to MH i2c: E2 08 00 B5 33 80 13 01 00 00 00 00 00 65 [12:07:17]Write i2c OK [12:07:17]MH_I2C_Read... [12:07:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:07:17]Read from MH i2c: E2 [12:07:17]MH_I2C_Read... [12:07:17]Read from MH i2c: E2 0E 00 [12:07:17]MH_I2C_Read... [12:07:17]Read from MH i2c: E2 0E 00 B5 33 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 CC [12:07:17]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [12:07:17]wFMCommunicate OK [12:07:17]SAM_PROTO_GetShiftState done [12:07:17]FM_GetShiftState done [12:07:17]req_shift_opened done [12:07:17]requested_item shift.open_date is exist - process it [12:07:17]req_shift_open_date [12:07:17]req_shift_open_date done [12:07:17]produce_requested_data done [12:07:17]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67821,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [12:07:17]process_action_free close_receipt [12:07:17]json_value_free [12:07:17]json_value_free done [12:07:17]process_json_proto returns [12:07:17]Send response to host [12:07:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67821,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [12:07:17]free response buf [12:07:17]execute_script done [12:07:17]execute_script returns [12:07:17]free content buf [12:07:17]Sock 7.Close socket [12:07:17]Sock 7.Thread stoped [12:07:20]OFD Sender: Processing packet 67821 [packets to send 35, broken 34] [12:07:20]ProducePacketName [12:07:20]name=ofd_packets/00067821 [12:07:20]OFD Sender: To server: pG, [12:07:20]CommunicateWithHost lk.salyk.kg:30040 [12:07:20]ConnectInit lk.salyk.kg [12:07:21]Connected sock=7 [12:07:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 C4 BE 04 01 AB B8 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4E 34 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 B7 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B7 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B7 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 F7 99 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 ED 08 01 00 35 04 06 00 90 B8 6B BE A8 9F B9 61 75 B1 E5 A5 21 4A [12:07:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 9D 8D 47 00 57 3B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 ED 08 01 00 F4 03 04 00 D1 41 48 66 B6 04 01 00 00 FD 41 8E 6F C8 9B E8 2D [12:07:21]CommunicateWithHost err = 0 [12:07:21]CheckOFDResponse [12:07:21]1017 (14) - 77093643461234 [12:07:21]1041 (16) - 0000000000871829 [12:07:21]1040 (4) - 67821 [12:07:21]1012 (4) - 18.05.2024 05:51 [12:07:21]1206 (1) - 0 [12:07:21]OFD Sender: Remove packet 67821 [12:07:21]ProducePacketName [12:07:21]name=ofd_packets/00067821 [12:07:21]NVStorageDeleteData [12:07:21]OFD Sender: No OFD packet to send [12:07:26]OFD Sender: No OFD packet to send [12:07:31]OFD Sender: No OFD packet to send [12:07:36]OFD Sender: No OFD packet to send [12:07:41]OFD Sender: No OFD packet to send [12:07:46]OFD Sender: No OFD packet to send [12:07:51]OFD Sender: No OFD packet to send [12:07:56]OFD Sender: No OFD packet to send [12:07:57]accept exits with 9 [12:07:57]New connection [12:07:57]New thread 3066752356 created [12:07:57]Thread 3066608996 joined [12:07:57]Waiting for new connection... [12:07:57] Sock 9.Parse request [12:07:57]Sock 9.Check first char [12:07:57]Sock 9.First char is OK [12:07:57]request: POST /json_proto HTTP/1.0 [12:07:57]Method: POST [12:07:57]URL: /json_proto [12:07:57]Method is POST - this is cgi request [12:07:57]url: /json_proto [12:07:57]query_string will be loaded in cgi processing [12:07:57]execute_cgi json_proto POST (null) [12:07:57]execute_cgi path=json_proto method=POST [12:07:57]POST find Content-Length [12:07:57]Host: 172.17.41.195:8080 [12:07:57]Content-Length: 800 [12:07:57]Content-Type: application/json [12:07:57] [12:07:57]POST finish read [12:07:57]Found Content-Length = 800 [12:07:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)508040", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 66.940, "sum" : 5000.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 5000.42 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:07:57]execute_script... [12:07:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)508040", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 66.940, "sum" : 5000.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 5000.42 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:07:57]POST & json_proto [12:07:57]process_json_proto [12:07:57]json parsed OK: [12:07:57]protocol is kg_v1.0 [12:07:57]action value=close_receipt [12:07:57]process_action close_receipt [12:07:57]cmd_close_receipt [12:07:57]MH_GetDate [12:07:57]Write to MH i2c: F0 00 00 B6 33 D8 [12:07:57]Write i2c OK [12:07:57]MH_I2C_Read... [12:07:57]Read from MH i2c: F0 [12:07:57]MH_I2C_Read... [12:07:57]Read from MH i2c: F0 09 00 [12:07:57]MH_I2C_Read... [12:07:57]Read from MH i2c: F0 09 00 B6 33 00 22 9A 48 66 FC 21 6F 64 3B [12:07:57]GetLastDocTimeStamp 1716034039 [12:07:57]current date 1716034082 [12:07:57]FM_GetShiftState [12:07:57]SAM_PROTO_GetShiftState [12:07:57]wFMCommunicate request_size=4 [12:07:57]MH_SAM_APDU [12:07:57]CAPDU: 80 13 01 00 [12:07:57]Write to MH i2c: E2 08 00 B7 33 80 13 01 00 00 00 00 00 67 [12:07:57]Write i2c OK [12:07:57]MH_I2C_Read... [12:07:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:07:57]Read from MH i2c: E2 [12:07:57]MH_I2C_Read... [12:07:57]Read from MH i2c: E2 0E 00 [12:07:57]MH_I2C_Read... [12:07:57]Read from MH i2c: E2 0E 00 B7 33 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 CE [12:07:57]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [12:07:57]wFMCommunicate OK [12:07:57]SAM_PROTO_GetShiftState done [12:07:57]FM_GetShiftState done [12:07:57]opened in 1715991483 [12:07:57]opened+sec_in_day 1716077883 [12:07:57]quantity*price = 500041 [12:07:57]sum+1 = 500043 [12:07:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 5000.42 НСП 1% : 44.25 НДС 12% : 531.02 Наличными: 0.00 Безнал.: 5000.42 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 61 18.05.2024 12:08 Смена: 359 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67822 ФПД: 12956256756347 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T120802&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67822&fm=12956256756347&tin=02508201610067®Number=0000000000091845&sum=500042 [12:07:58]StoreToDocumentArchive [12:07:58]shift 359 fd 67822 [12:07:58]save to /storage/0359/doc_00067822 [12:07:58]save last doc name /storage/0359/doc_00067822 to /storage/kkm_last_doc_name [12:07:58]save OK [12:07:58]Clear old archive folders... [12:07:58]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:07:58]tlvbuf is 01B5DEA0 [12:07:58]SAM_PROTO_ClearQueue [12:07:58]wFMCommunicate request_size=4 [12:07:58]MH_SAM_APDU [12:07:58]CAPDU: 80 09 00 00 [12:07:58]Write to MH i2c: E2 08 00 C4 33 80 09 00 00 00 00 00 00 69 [12:07:58]Write i2c OK [12:07:58]MH_I2C_Read... [12:07:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:07:58]Read from MH i2c: E2 [12:07:58]MH_I2C_Read... [12:07:58]Read from MH i2c: E2 03 00 [12:07:58]MH_I2C_Read... [12:07:58]Read from MH i2c: E2 03 00 C4 33 00 90 00 6B [12:07:58]RAPDU: 90 00 [12:07:58]wFMCommunicate OK [12:07:58]SAM_PROTO_ClearQueue done [12:07:58]KKMCreateOFDPacket [12:07:58]OFDProtocolAddRootSTLVToBuf [12:07:58]FM_MakeSignedData [12:07:58]FM_MakeSignedData [12:07:58]SAM_PROTO_SignData [12:07:58]wFMCommunicate request_size=4 [12:07:58]MH_SAM_APDU [12:07:58]CAPDU: 80 0D 01 02 [12:07:58]Write to MH i2c: E2 08 00 C5 33 80 0D 01 02 00 00 00 00 71 [12:07:58]Write i2c OK [12:07:58]MH_I2C_Read... [12:07:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:07:58]Read from MH i2c: E2 [12:07:58]MH_I2C_Read... [12:07:58]Read from MH i2c: E2 03 00 [12:07:58]MH_I2C_Read... [12:07:58]Read from MH i2c: E2 03 00 C5 33 00 90 00 6C [12:07:58]RAPDU: 90 00 [12:07:58]wFMCommunicate OK [12:07:58]wFMCommunicate request_size=255 [12:07:58]MH_SAM_APDU [12:07:58]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7C 05 01 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 4A A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4A A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E CF 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4A A1 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 22 9A 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 EE 08 01 00 35 04 06 00 0B C8 9D 14 [12:07:58]Write to MH i2c: E2 02 01 C6 33 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7C 05 01 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 4A A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4A A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E CF 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4A A1 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 22 9A 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 EE 08 01 00 35 04 06 00 0B C8 9D 14 00 00 97 [12:07:58]Write i2c OK [12:07:58]MH_I2C_Read... [12:07:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:07:59]Read from MH i2c: E2 [12:07:59]MH_I2C_Read... [12:07:59]Read from MH i2c: E2 03 00 [12:07:59]MH_I2C_Read... [12:07:59]Read from MH i2c: E2 03 00 C6 33 00 90 00 6D [12:07:59]RAPDU: 90 00 [12:07:59]wFMCommunicate OK [12:07:59]wFMCommunicate request_size=7 [12:07:59]MH_SAM_APDU [12:07:59]CAPDU: 80 0D 02 02 02 E2 7B [12:07:59]Write to MH i2c: E2 0A 00 C7 33 80 0D 02 02 02 00 E2 7B 00 00 D5 [12:07:59]Write i2c OK [12:07:59]MH_I2C_Read... [12:07:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:07:59]Read from MH i2c: E2 [12:07:59]MH_I2C_Read... [12:07:59]Read from MH i2c: E2 03 00 [12:07:59]MH_I2C_Read... [12:07:59]Read from MH i2c: E2 03 00 C7 33 00 90 00 6E [12:07:59]RAPDU: 90 00 [12:07:59]wFMCommunicate OK [12:07:59]wFMCommunicate request_size=4 [12:07:59]MH_SAM_APDU [12:07:59]CAPDU: 80 0D 03 02 [12:07:59]Write to MH i2c: E2 08 00 C8 33 80 0D 03 02 00 00 00 00 76 [12:07:59]Write i2c OK [12:07:59]MH_I2C_Read... [12:07:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:07:59]Read from MH i2c: E2 [12:07:59]MH_I2C_Read... [12:07:59]Read from MH i2c: E2 0B 00 [12:07:59]MH_I2C_Read... [12:07:59]Read from MH i2c: E2 0B 00 C8 33 00 BA 60 6D AA 29 EA F8 F0 90 00 A3 [12:07:59]RAPDU: BA 60 6D AA 29 EA F8 F0 90 00 [12:07:59]wFMCommunicate OK [12:07:59]SAM_PROTO_SignData done [12:07:59]FM_MakeSignedData done [12:07:59]CreateOFDProtocolMessage [12:07:59]wFMCommunicate request_size=4 [12:07:59]MH_SAM_APDU [12:07:59]CAPDU: 80 11 00 00 [12:07:59]Write to MH i2c: E2 08 00 C9 33 80 11 00 00 00 00 00 00 76 [12:07:59]Write i2c OK [12:07:59]MH_I2C_Read... [12:07:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:07:59]Read from MH i2c: E2 [12:07:59]MH_I2C_Read... [12:07:59]Read from MH i2c: E2 17 00 [12:07:59]MH_I2C_Read... [12:07:59]Read from MH i2c: E2 17 00 C9 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 CC [12:07:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [12:07:59]wFMCommunicate OK [12:07:59]CreateOFDProtocolMessage done [12:07:59]OFDSenderStorePacket 67822 [12:07:59]StoreOFDPacket docnum=67822 [12:07:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 51 DD 04 01 07 8C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7C 05 01 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 4A A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4A A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E CF 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4A A1 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 22 9A 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 EE 08 01 00 35 04 06 00 0B C8 9D 14 E2 7B BA 60 6D AA 29 EA F8 F0 [12:07:59]CheckFolder [12:07:59]dirname=/storage/ofd_packets [12:07:59]CheckFolder done [12:07:59]ProducePacketName [12:07:59]name=ofd_packets/00067822 [12:07:59]NVStorageSaveData ofd_packets/00067822 [12:07:59]File name is /storage/ofd_packets/00067822 [12:07:59]Write 298 bytes [12:07:59]NVStorageSaveData done [12:07:59]OFDSenderStorePacket done [12:07:59]KKMCreateOFDPacket done [12:07:59]NVStorageSaveData kkm_last_timestamp [12:07:59]File name is /storage/kkm_last_timestamp [12:07:59]Write 4 bytes [12:07:59]NVStorageSaveData done [12:07:59]ExternCall_PrintAddStr [12:07:59]wPrintStart [12:07:59]Write to MH i2c: 01 00 00 CA 33 FD [12:07:59]Write i2c OK [12:07:59]MH_I2C_Read... [12:07:59]Read from MH i2c: 01 [12:07:59]MH_I2C_Read... [12:07:59]Read from MH i2c: 01 07 00 [12:07:59]MH_I2C_Read... [12:07:59]Read from MH i2c: 01 07 00 CA 33 00 00 00 00 00 FF 0F 12 [12:07:59]RasterBufferAndPrint [12:07:59]line Счет N : (1)508040 [12:07:59]line ИНН: 02508201610067 [12:07:59]line Контрольно-Кассовый Чек [12:07:59]line ПРОДАЖА [12:07:59]line ТРК (МРК, ГНК) : 31 [12:07:59]line Товар: 2710194210 [12:07:59]line ДТ-К-5 [12:07:59]line 66.940 * 74.70 [12:07:59]line = 5000.42 [12:07:59]line НДС 12% НСП 1% [12:07:59]line > о реализуемом товаре [12:07:59]line ИТОГО: 5000.42 [12:07:59]line НСП 1% : 44.25 [12:07:59]line НДС 12% : 531.02 [12:07:59]line Наличными: 0.00 [12:07:59]line Безнал.: 5000.42 [12:07:59]line Место: АЗС № 91 "Партнер Нефть" [12:07:59]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [12:07:59]line СНО: Общий режим [12:07:59]line Чек 61 18.05.2024 12:08 [12:07:59]line Смена: 359 ФФД: 1.0 [12:07:59]line ЗНМ: 0300000119 [12:07:59]line РНМ: 0000000000091845 [12:07:59]line Версия ККМ: 001 [12:07:59]line Платежная система: O! деньги [12:07:59]line ФМ: 0000000000871829 [12:07:59]line ФД: 67822 [12:07:59]line ФПД: 12956256756347 [12:07:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T120802&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67822&fm=12956256756347&tin=02508201610067®Number=0000000000091845&sum=500042 [12:07:59]OFD Sender: Processing packet 67822 [packets to send 35, broken 34] [12:07:59]ProducePacketName [12:07:59]name=ofd_packets/00067822 [12:07:59]OFD Sender: To server: pG, [12:07:59]CommunicateWithHost lk.salyk.kg:30040 [12:07:59]ConnectInit lk.salyk.kg [12:07:59]written 0, free lines is 4095 [12:07:59]Connected sock=10 [12:07:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 51 DD 04 01 07 8C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7C 05 01 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 4A A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4A A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E CF 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4A A1 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 22 9A 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 EE 08 01 00 35 04 06 00 0B C8 9D 14 E2 7B BA 60 6D AA 29 EA F8 F0 [12:07:59]recv_with_timeout no data received [12:07:59]CommunicateWithHost answer receiving error [12:07:59]CommunicateWithHost err = -3 [12:07:59]OFD Sender: Server communicate error [12:07:59]Write to MH i2c: 01 00 00 F3 33 26 [12:07:59]Write i2c OK [12:07:59]MH_I2C_Read... [12:07:59]Read from MH i2c: 01 [12:07:59]MH_I2C_Read... [12:07:59]Read from MH i2c: 01 07 00 [12:07:59]MH_I2C_Read... [12:07:59]Read from MH i2c: 01 07 00 F3 33 00 00 00 00 00 D7 0C 10 [12:07:59]RasterBufferAndPrint [12:07:59]line [12:07:59]line [12:07:59]line [12:07:59]line [12:07:59]line [12:07:59]written 0, free lines is 3295 [12:07:59]MH_Cut [12:07:59]Write to MH i2c: D1 01 00 FA 33 01 FF [12:07:59]Write i2c OK [12:07:59]MH_I2C_Read... [12:07:59]Read from MH i2c: D1 [12:07:59]MH_I2C_Read... [12:07:59]Read from MH i2c: D1 01 00 [12:07:59]MH_I2C_Read... [12:07:59]Read from MH i2c: D1 01 00 FA 33 00 FE [12:07:59]Write to MH i2c: 01 00 00 FB 33 2E [12:07:59]Write i2c OK [12:07:59]MH_I2C_Read... [12:08:00]*** Cut start [12:08:00]*** Purtial cut [12:08:00]*** CUTSNS_PIN = 0 [12:08:01]*** Stage 1: CUTSNS_PIN = 1 [12:08:02]Read from MH i2c: 01 [12:08:02]MH_I2C_Read... [12:08:02]*** Stop cut motor [12:08:02]*** Cut end [12:08:02]Read from MH i2c: 01 07 00 [12:08:02]MH_I2C_Read... [12:08:02]Read from MH i2c: 01 07 00 FB 33 00 00 00 00 00 FF 0F 43 [12:08:02]process_action close_receipt done [12:08:02]requested_data is exist [12:08:02]produce_requested_data [12:08:02]requested_item fm.sn is exist - process it [12:08:02]wFMCommunicate request_size=4 [12:08:02]MH_SAM_APDU [12:08:02]CAPDU: 80 11 00 00 [12:08:02]Write to MH i2c: E2 08 00 FC 33 80 11 00 00 00 00 00 00 A9 [12:08:02]Write i2c OK [12:08:02]MH_I2C_Read... [12:08:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:08:02]Read from MH i2c: E2 [12:08:02]MH_I2C_Read... [12:08:02]Read from MH i2c: E2 17 00 [12:08:02]MH_I2C_Read... [12:08:02]Read from MH i2c: E2 17 00 FC 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 FF [12:08:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [12:08:02]wFMCommunicate OK [12:08:02]requested_item fd.num is exist - process it [12:08:02]SAM_PROTO_GetFieldsCounters [12:08:02]wFMCommunicate request_size=4 [12:08:02]MH_SAM_APDU [12:08:02]CAPDU: 80 13 00 00 [12:08:02]Write to MH i2c: E2 08 00 FD 33 80 13 00 00 00 00 00 00 AC [12:08:02]Write i2c OK [12:08:02]MH_I2C_Read... [12:08:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:08:03]Read from MH i2c: E2 [12:08:03]MH_I2C_Read... [12:08:03]Read from MH i2c: E2 62 00 [12:08:03]MH_I2C_Read... [12:08:03]Read from MH i2c: E2 62 00 FD 33 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 EE 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 3D 00 00 00 5E 04 04 00 3D 00 00 00 57 04 04 00 3E 00 00 00 19 04 04 00 00 00 00 00 90 00 E8 [12:08:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 EE 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 3D 00 00 00 5E 04 04 00 3D 00 00 00 57 04 04 00 3E 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:08:03]wFMCommunicate OK [12:08:03]SAM_PROTO_GetFieldsCounters done [12:08:03]requested_item shift.num is exist - process it [12:08:03]requested_item shift.opened is exist - process it [12:08:03]req_shift_opened [12:08:03]FM_GetShiftState [12:08:03]SAM_PROTO_GetShiftState [12:08:03]wFMCommunicate request_size=4 [12:08:03]MH_SAM_APDU [12:08:03]CAPDU: 80 13 01 00 [12:08:03]Write to MH i2c: E2 08 00 FE 33 80 13 01 00 00 00 00 00 AE [12:08:03]Write i2c OK [12:08:03]MH_I2C_Read... [12:08:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:08:03]Read from MH i2c: E2 [12:08:03]MH_I2C_Read... [12:08:03]Read from MH i2c: E2 0E 00 [12:08:03]MH_I2C_Read... [12:08:03]Read from MH i2c: E2 0E 00 FE 33 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 15 [12:08:03]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [12:08:03]wFMCommunicate OK [12:08:03]SAM_PROTO_GetShiftState done [12:08:03]FM_GetShiftState done [12:08:03]req_shift_opened done [12:08:03]requested_item shift.open_date is exist - process it [12:08:03]req_shift_open_date [12:08:03]req_shift_open_date done [12:08:03]produce_requested_data done [12:08:03]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67822,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [12:08:03]process_action_free close_receipt [12:08:03]json_value_free [12:08:03]json_value_free done [12:08:03]process_json_proto returns [12:08:03]Send response to host [12:08:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67822,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [12:08:03]free response buf [12:08:03]execute_script done [12:08:03]execute_script returns [12:08:03]free content buf [12:08:03]Sock 9.Close socket [12:08:03]Sock 9.Thread stoped [12:08:04]OFD Sender: Processing packet 67822 [packets to send 35, broken 34] [12:08:04]ProducePacketName [12:08:04]name=ofd_packets/00067822 [12:08:04]OFD Sender: To server: pG, [12:08:04]CommunicateWithHost lk.salyk.kg:30040 [12:08:04]ConnectInit lk.salyk.kg [12:08:04]Connected sock=9 [12:08:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 51 DD 04 01 07 8C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7C 05 01 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 4A A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4A A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E CF 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4A A1 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 22 9A 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 EE 08 01 00 35 04 06 00 0B C8 9D 14 E2 7B BA 60 6D AA 29 EA F8 F0 [12:08:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 44 BF 47 00 4E 09 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 EE 08 01 00 F4 03 04 00 FD 41 48 66 B6 04 01 00 00 42 48 19 19 B3 71 80 B7 [12:08:04]CommunicateWithHost err = 0 [12:08:04]CheckOFDResponse [12:08:04]1017 (14) - 77093643461234 [12:08:04]1041 (16) - 0000000000871829 [12:08:04]1040 (4) - 67822 [12:08:04]1012 (4) - 18.05.2024 05:51 [12:08:04]1206 (1) - 0 [12:08:04]OFD Sender: Remove packet 67822 [12:08:04]ProducePacketName [12:08:04]name=ofd_packets/00067822 [12:08:04]NVStorageDeleteData [12:08:05]OFD Sender: No OFD packet to send [12:08:10]OFD Sender: No OFD packet to send [12:08:15]OFD Sender: No OFD packet to send [12:08:20]OFD Sender: No OFD packet to send [12:08:25]OFD Sender: No OFD packet to send [12:08:27]accept exits with 7 [12:08:27]New connection [12:08:27]New thread 3066608996 created [12:08:27]Thread 3066752356 joined [12:08:27]Waiting for new connection... [12:08:27] Sock 7.Parse request [12:08:27]Sock 7.Check first char [12:08:27]Sock 7.First char is OK [12:08:27]request: POST /json_proto HTTP/1.0 [12:08:27]Method: POST [12:08:27]URL: /json_proto [12:08:27]Method is POST - this is cgi request [12:08:27]url: /json_proto [12:08:27]query_string will be loaded in cgi processing [12:08:27]execute_cgi json_proto POST (null) [12:08:27]execute_cgi path=json_proto method=POST [12:08:27]POST find Content-Length [12:08:27]Host: 172.17.41.195:8080 [12:08:27]Content-Length: 1209 [12:08:27]Content-Type: application/json [12:08:27] [12:08:27]POST finish read [12:08:27]Found Content-Length = 1209 [12:08:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0440\u0441\u0442\u0430\u043D\u0431\u0435\u043A\u043E\u0432 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)508043\u000A18.05.2024 11:50\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 41\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 15.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 1120.50\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:08:27]execute_script... [12:08:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0440\u0441\u0442\u0430\u043D\u0431\u0435\u043A\u043E\u0432 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)508043\u000A18.05.2024 11:50\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 41\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 15.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 1120.50\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:08:27]POST & json_proto [12:08:27]process_json_proto [12:08:27]json parsed OK: [12:08:27]protocol is kg_v1.0 [12:08:27]action value=print_text [12:08:27]process_action print_text [12:08:27]cmd_print_text [12:08:27]ExternCall_PrintAddStr [12:08:27]wPrintStart [12:08:27]Write to MH i2c: 01 00 00 FF 33 32 [12:08:27]Write i2c OK [12:08:27]MH_I2C_Read... [12:08:27]Read from MH i2c: 01 [12:08:27]MH_I2C_Read... [12:08:27]Read from MH i2c: 01 07 00 [12:08:27]MH_I2C_Read... [12:08:27]Read from MH i2c: 01 07 00 FF 33 00 00 00 00 00 FF 0F 47 [12:08:27]RasterBufferAndPrint [12:08:27]line *****ТОВАРНЫЙ ЧЕК***** [12:08:27]line АЗС-91 [12:08:27]line Партнер нефть [12:08:27]line 02508201610067 [12:08:27]line Кассир : Арстанбеков Н. [12:08:27]line Счет N : (1)508043 [12:08:27]line 18.05.2024 11:50 [12:08:27]line ПРОДАЖА [12:08:27]line ТРК (МРК, ГНК): 41 [12:08:27]line Вид ГСМ : 2710194210 [12:08:27]line ДТ-К-5 [12:08:27]line 15.000 x 74.70 [12:08:27]line ИТОГ: 1120.50 [12:08:27]line Тип оплаты: Талоны: Топливная Карта [12:08:27]line 02750 [12:08:27]line ______________________ [12:08:27]line (подпись) [12:08:27]written 0, free lines is 4095 [12:08:28]Write to MH i2c: 01 00 00 13 34 47 [12:08:28]Write i2c OK [12:08:28]MH_I2C_Read... [12:08:28]Read from MH i2c: 01 [12:08:28]MH_I2C_Read... [12:08:28]Read from MH i2c: 01 07 00 [12:08:28]MH_I2C_Read... [12:08:28]Read from MH i2c: 01 07 00 13 34 00 00 00 00 00 0E 0E 6A [12:08:28]RasterBufferAndPrint [12:08:28]line [12:08:28]line [12:08:28]line [12:08:28]line [12:08:28]line [12:08:28]written 0, free lines is 3599 [12:08:28]MH_Cut [12:08:28]Write to MH i2c: D1 01 00 1A 34 01 20 [12:08:28]Write i2c OK [12:08:28]MH_I2C_Read... [12:08:28]Read from MH i2c: D1 [12:08:28]MH_I2C_Read... [12:08:28]Read from MH i2c: D1 01 00 [12:08:28]MH_I2C_Read... [12:08:28]Read from MH i2c: D1 01 00 1A 34 00 1F [12:08:28]Write to MH i2c: 01 00 00 1B 34 4F [12:08:28]Write i2c OK [12:08:28]MH_I2C_Read... [12:08:28]*** Cut start [12:08:28]*** Purtial cut [12:08:28]*** Stage 1: CUTSNS_PIN = 1 [12:08:29]Read from MH i2c: 01 [12:08:29]MH_I2C_Read... [12:08:29]*** Stop cut motor [12:08:29]*** Cut end [12:08:29]Read from MH i2c: 01 07 00 [12:08:29]MH_I2C_Read... [12:08:29]Read from MH i2c: 01 07 00 1B 34 00 00 00 00 00 FF 0F 64 [12:08:29]process_action print_text done [12:08:29]requested_data is exist [12:08:29]produce_requested_data [12:08:29]requested_item fm.sn is exist - process it [12:08:29]wFMCommunicate request_size=4 [12:08:29]MH_SAM_APDU [12:08:29]CAPDU: 80 11 00 00 [12:08:29]Write to MH i2c: E2 08 00 1C 34 80 11 00 00 00 00 00 00 CA [12:08:29]Write i2c OK [12:08:29]MH_I2C_Read... [12:08:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:08:29]Read from MH i2c: E2 [12:08:29]MH_I2C_Read... [12:08:29]Read from MH i2c: E2 17 00 [12:08:29]MH_I2C_Read... [12:08:29]Read from MH i2c: E2 17 00 1C 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 20 [12:08:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [12:08:29]wFMCommunicate OK [12:08:29]requested_item fd.num is exist - process it [12:08:29]SAM_PROTO_GetFieldsCounters [12:08:29]wFMCommunicate request_size=4 [12:08:29]MH_SAM_APDU [12:08:29]CAPDU: 80 13 00 00 [12:08:29]Write to MH i2c: E2 08 00 1D 34 80 13 00 00 00 00 00 00 CD [12:08:29]Write i2c OK [12:08:29]MH_I2C_Read... [12:08:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:08:29]Read from MH i2c: E2 [12:08:29]MH_I2C_Read... [12:08:29]Read from MH i2c: E2 62 00 [12:08:29]MH_I2C_Read... [12:08:29]Read from MH i2c: E2 62 00 1D 34 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 EE 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 3D 00 00 00 5E 04 04 00 3D 00 00 00 57 04 04 00 3E 00 00 00 19 04 04 00 00 00 00 00 90 00 09 [12:08:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 EE 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 3D 00 00 00 5E 04 04 00 3D 00 00 00 57 04 04 00 3E 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:08:29]wFMCommunicate OK [12:08:29]SAM_PROTO_GetFieldsCounters done [12:08:29]requested_item shift.num is exist - process it [12:08:29]requested_item shift.opened is exist - process it [12:08:29]req_shift_opened [12:08:29]FM_GetShiftState [12:08:29]SAM_PROTO_GetShiftState [12:08:29]wFMCommunicate request_size=4 [12:08:29]MH_SAM_APDU [12:08:29]CAPDU: 80 13 01 00 [12:08:29]Write to MH i2c: E2 08 00 1E 34 80 13 01 00 00 00 00 00 CF [12:08:29]Write i2c OK [12:08:29]MH_I2C_Read... [12:08:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:08:29]Read from MH i2c: E2 [12:08:29]MH_I2C_Read... [12:08:29]Read from MH i2c: E2 0E 00 [12:08:29]MH_I2C_Read... [12:08:29]Read from MH i2c: E2 0E 00 1E 34 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 36 [12:08:29]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [12:08:29]wFMCommunicate OK [12:08:29]SAM_PROTO_GetShiftState done [12:08:29]FM_GetShiftState done [12:08:29]req_shift_opened done [12:08:29]requested_item shift.open_date is exist - process it [12:08:29]req_shift_open_date [12:08:29]req_shift_open_date done [12:08:29]produce_requested_data done [12:08:29]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67822,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [12:08:29]process_action_free print_text [12:08:29]json_value_free [12:08:29]json_value_free done [12:08:29]process_json_proto returns [12:08:29]Send response to host [12:08:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67822,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [12:08:29]free response buf [12:08:29]execute_script done [12:08:29]execute_script returns [12:08:29]free content buf [12:08:29]Sock 7.Close socket [12:08:29]Sock 7.Thread stoped [12:08:30]OFD Sender: No OFD packet to send [12:08:35]OFD Sender: No OFD packet to send [12:08:40]OFD Sender: No OFD packet to send [12:08:45]OFD Sender: No OFD packet to send [12:08:50]OFD Sender: No OFD packet to send [12:08:55]OFD Sender: No OFD packet to send [12:09:00]OFD Sender: No OFD packet to send [12:09:05]OFD Sender: No OFD packet to send [12:09:10]OFD Sender: No OFD packet to send [12:09:15]OFD Sender: No OFD packet to send [12:09:20]OFD Sender: No OFD packet to send [12:09:25]OFD Sender: No OFD packet to send [12:09:30]OFD Sender: No OFD packet to send [12:09:35]OFD Sender: No OFD packet to send [12:09:40]OFD Sender: No OFD packet to send [12:09:43]accept exits with 9 [12:09:43]New connection [12:09:43]New thread 3066752356 created [12:09:43]Thread 3066608996 joined [12:09:43]Waiting for new connection... [12:09:43] Sock 9.Parse request [12:09:43]Sock 9.Check first char [12:09:43]Sock 9.First char is OK [12:09:43]request: POST /json_proto HTTP/1.0 [12:09:43]Method: POST [12:09:43]URL: /json_proto [12:09:43]Method is POST - this is cgi request [12:09:43]url: /json_proto [12:09:43]query_string will be loaded in cgi processing [12:09:43]execute_cgi json_proto POST (null) [12:09:43]execute_cgi path=json_proto method=POST [12:09:43]POST find Content-Length [12:09:43]Host: 172.17.41.195:8080 [12:09:43]Content-Length: 1210 [12:09:43]Content-Type: application/json [12:09:43] [12:09:43]POST finish read [12:09:43]Found Content-Length = 1210 [12:09:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0440\u0441\u0442\u0430\u043D\u0431\u0435\u043A\u043E\u0432 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)508044\u000A18.05.2024 11:52\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 23\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 8.990 x 66.80\u000A\u0418\u0422\u041E\u0413: 600.53\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:09:43]execute_script... [12:09:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0440\u0441\u0442\u0430\u043D\u0431\u0435\u043A\u043E\u0432 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)508044\u000A18.05.2024 11:52\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 23\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 8.990 x 66.80\u000A\u0418\u0422\u041E\u0413: 600.53\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:09:43]POST & json_proto [12:09:43]process_json_proto [12:09:43]json parsed OK: [12:09:43]protocol is kg_v1.0 [12:09:43]action value=print_text [12:09:43]process_action print_text [12:09:43]cmd_print_text [12:09:43]ExternCall_PrintAddStr [12:09:43]wPrintStart [12:09:43]Write to MH i2c: 01 00 00 1F 34 53 [12:09:43]Write i2c OK [12:09:43]MH_I2C_Read... [12:09:43]Read from MH i2c: 01 [12:09:43]MH_I2C_Read... [12:09:43]Read from MH i2c: 01 07 00 [12:09:43]MH_I2C_Read... [12:09:43]Read from MH i2c: 01 07 00 1F 34 00 00 00 00 00 FF 0F 68 [12:09:43]RasterBufferAndPrint [12:09:43]line *****ТОВАРНЫЙ ЧЕК***** [12:09:43]line АЗС-91 [12:09:43]line Партнер нефть [12:09:43]line 02508201610067 [12:09:43]line Кассир : Арстанбеков Н. [12:09:43]line Счет N : (1)508044 [12:09:43]line 18.05.2024 11:52 [12:09:43]line ПРОДАЖА [12:09:43]line ТРК (МРК, ГНК): 23 [12:09:43]line Вид ГСМ : 2710124130 [12:09:43]line Аи-92-К-5 [12:09:43]line 8.990 x 66.80 [12:09:43]line ИТОГ: 600.53 [12:09:43]line Тип оплаты: Талоны: Топливная Карта [12:09:43]line 02750 [12:09:43]line ______________________ [12:09:43]line (подпись) [12:09:43]written 0, free lines is 4095 [12:09:43]Write to MH i2c: 01 00 00 33 34 67 [12:09:43]Write i2c OK [12:09:43]MH_I2C_Read... [12:09:43]Read from MH i2c: 01 [12:09:43]MH_I2C_Read... [12:09:43]Read from MH i2c: 01 07 00 [12:09:43]MH_I2C_Read... [12:09:43]Read from MH i2c: 01 07 00 33 34 00 00 00 00 00 11 0E 8D [12:09:43]RasterBufferAndPrint [12:09:43]line [12:09:43]line [12:09:43]line [12:09:43]line [12:09:43]line [12:09:43]written 0, free lines is 3602 [12:09:43]MH_Cut [12:09:43]Write to MH i2c: D1 01 00 3A 34 01 40 [12:09:43]Write i2c OK [12:09:43]MH_I2C_Read... [12:09:43]Read from MH i2c: D1 [12:09:43]MH_I2C_Read... [12:09:43]Read from MH i2c: D1 01 00 [12:09:43]MH_I2C_Read... [12:09:43]Read from MH i2c: D1 01 00 3A 34 00 3F [12:09:43]Write to MH i2c: 01 00 00 3B 34 6F [12:09:43]Write i2c OK [12:09:43]MH_I2C_Read... [12:09:43]*** Cut start [12:09:43]*** Purtial cut [12:09:43]*** Stage 1: CUTSNS_PIN = 1 [12:09:44]Read from MH i2c: 01 [12:09:44]MH_I2C_Read... [12:09:44]*** Stop cut motor [12:09:44]*** Cut end [12:09:44]Read from MH i2c: 01 07 00 [12:09:44]MH_I2C_Read... [12:09:44]Read from MH i2c: 01 07 00 3B 34 00 00 00 00 00 FF 0F 84 [12:09:44]process_action print_text done [12:09:44]requested_data is exist [12:09:44]produce_requested_data [12:09:44]requested_item fm.sn is exist - process it [12:09:44]wFMCommunicate request_size=4 [12:09:44]MH_SAM_APDU [12:09:44]CAPDU: 80 11 00 00 [12:09:44]Write to MH i2c: E2 08 00 3C 34 80 11 00 00 00 00 00 00 EA [12:09:44]Write i2c OK [12:09:44]MH_I2C_Read... [12:09:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:09:44]Read from MH i2c: E2 [12:09:44]MH_I2C_Read... [12:09:44]Read from MH i2c: E2 17 00 [12:09:44]MH_I2C_Read... [12:09:44]Read from MH i2c: E2 17 00 3C 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 40 [12:09:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [12:09:44]wFMCommunicate OK [12:09:44]requested_item fd.num is exist - process it [12:09:44]SAM_PROTO_GetFieldsCounters [12:09:44]wFMCommunicate request_size=4 [12:09:44]MH_SAM_APDU [12:09:44]CAPDU: 80 13 00 00 [12:09:44]Write to MH i2c: E2 08 00 3D 34 80 13 00 00 00 00 00 00 ED [12:09:44]Write i2c OK [12:09:44]MH_I2C_Read... [12:09:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:09:44]Read from MH i2c: E2 [12:09:44]MH_I2C_Read... [12:09:44]Read from MH i2c: E2 62 00 [12:09:44]MH_I2C_Read... [12:09:44]Read from MH i2c: E2 62 00 3D 34 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 EE 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 3D 00 00 00 5E 04 04 00 3D 00 00 00 57 04 04 00 3E 00 00 00 19 04 04 00 00 00 00 00 90 00 29 [12:09:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 EE 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 3D 00 00 00 5E 04 04 00 3D 00 00 00 57 04 04 00 3E 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:09:44]wFMCommunicate OK [12:09:44]SAM_PROTO_GetFieldsCounters done [12:09:44]requested_item shift.num is exist - process it [12:09:44]requested_item shift.opened is exist - process it [12:09:44]req_shift_opened [12:09:44]FM_GetShiftState [12:09:44]SAM_PROTO_GetShiftState [12:09:44]wFMCommunicate request_size=4 [12:09:44]MH_SAM_APDU [12:09:44]CAPDU: 80 13 01 00 [12:09:44]Write to MH i2c: E2 08 00 3E 34 80 13 01 00 00 00 00 00 EF [12:09:44]Write i2c OK [12:09:44]MH_I2C_Read... [12:09:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:09:44]Read from MH i2c: E2 [12:09:44]MH_I2C_Read... [12:09:44]Read from MH i2c: E2 0E 00 [12:09:44]MH_I2C_Read... [12:09:44]Read from MH i2c: E2 0E 00 3E 34 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 56 [12:09:44]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [12:09:44]wFMCommunicate OK [12:09:44]SAM_PROTO_GetShiftState done [12:09:44]FM_GetShiftState done [12:09:44]req_shift_opened done [12:09:44]requested_item shift.open_date is exist - process it [12:09:44]req_shift_open_date [12:09:44]req_shift_open_date done [12:09:44]produce_requested_data done [12:09:44]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67822,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [12:09:44]process_action_free print_text [12:09:44]json_value_free [12:09:44]json_value_free done [12:09:44]process_json_proto returns [12:09:44]Send response to host [12:09:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67822,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [12:09:44]free response buf [12:09:44]execute_script done [12:09:44]execute_script returns [12:09:44]free content buf [12:09:44]Sock 9.Close socket [12:09:44]Sock 9.Thread stoped [12:09:45]OFD Sender: No OFD packet to send [12:09:50]OFD Sender: No OFD packet to send [12:09:55]OFD Sender: No OFD packet to send [12:10:00]OFD Sender: No OFD packet to send [12:10:05]OFD Sender: No OFD packet to send [12:10:10]OFD Sender: No OFD packet to send [12:10:15]OFD Sender: No OFD packet to send [12:10:20]OFD Sender: No OFD packet to send [12:10:25]OFD Sender: No OFD packet to send [12:10:30]OFD Sender: No OFD packet to send [12:10:35]OFD Sender: No OFD packet to send [12:10:40]OFD Sender: No OFD packet to send [12:10:45]OFD Sender: No OFD packet to send [12:10:50]OFD Sender: No OFD packet to send [12:10:55]OFD Sender: No OFD packet to send [12:11:00]OFD Sender: No OFD packet to send [12:11:05]OFD Sender: No OFD packet to send [12:11:10]OFD Sender: No OFD packet to send [12:11:15]OFD Sender: No OFD packet to send [12:11:20]OFD Sender: No OFD packet to send [12:11:25]OFD Sender: No OFD packet to send [12:11:30]OFD Sender: No OFD packet to send [12:11:35]OFD Sender: No OFD packet to send [12:11:40]OFD Sender: No OFD packet to send [12:11:45]OFD Sender: No OFD packet to send [12:11:50]OFD Sender: No OFD packet to send [12:11:55]OFD Sender: No OFD packet to send [12:12:00]OFD Sender: No OFD packet to send [12:12:05]OFD Sender: No OFD packet to send [12:12:10]OFD Sender: No OFD packet to send [12:12:15]OFD Sender: No OFD packet to send [12:12:20]OFD Sender: No OFD packet to send [12:12:25]OFD Sender: No OFD packet to send [12:12:30]OFD Sender: No OFD packet to send [12:12:35]OFD Sender: No OFD packet to send [12:12:40]OFD Sender: No OFD packet to send [12:12:45]OFD Sender: No OFD packet to send [12:12:50]OFD Sender: No OFD packet to send [12:12:55]OFD Sender: No OFD packet to send [12:13:00]OFD Sender: No OFD packet to send [12:13:05]OFD Sender: No OFD packet to send [12:13:10]OFD Sender: No OFD packet to send [12:13:15]OFD Sender: No OFD packet to send [12:13:20]OFD Sender: No OFD packet to send [12:13:25]OFD Sender: No OFD packet to send [12:13:30]OFD Sender: No OFD packet to send [12:13:35]OFD Sender: No OFD packet to send [12:13:40]OFD Sender: No OFD packet to send [12:13:45]OFD Sender: No OFD packet to send [12:13:50]OFD Sender: No OFD packet to send [12:13:55]OFD Sender: No OFD packet to send [12:14:00]OFD Sender: No OFD packet to send [12:14:05]OFD Sender: No OFD packet to send [12:14:10]OFD Sender: No OFD packet to send [12:14:15]OFD Sender: No OFD packet to send [12:14:20]OFD Sender: No OFD packet to send [12:14:25]OFD Sender: No OFD packet to send [12:14:30]OFD Sender: No OFD packet to send [12:14:35]OFD Sender: No OFD packet to send [12:14:40]OFD Sender: No OFD packet to send [12:14:45]OFD Sender: No OFD packet to send [12:14:50]OFD Sender: No OFD packet to send [12:14:55]OFD Sender: No OFD packet to send [12:15:00]OFD Sender: No OFD packet to send [12:15:05]OFD Sender: No OFD packet to send [12:15:10]OFD Sender: No OFD packet to send [12:15:15]OFD Sender: No OFD packet to send [12:15:20]OFD Sender: No OFD packet to send [12:15:25]OFD Sender: No OFD packet to send [12:15:30]OFD Sender: No OFD packet to send [12:15:35]OFD Sender: No OFD packet to send [12:15:40]OFD Sender: No OFD packet to send [12:15:45]OFD Sender: No OFD packet to send [12:15:50]OFD Sender: No OFD packet to send [12:15:55]OFD Sender: No OFD packet to send [12:16:00]OFD Sender: No OFD packet to send [12:16:05]OFD Sender: No OFD packet to send [12:16:10]OFD Sender: No OFD packet to send [12:16:15]OFD Sender: No OFD packet to send [12:16:20]OFD Sender: No OFD packet to send [12:16:25]OFD Sender: No OFD packet to send [12:16:30]OFD Sender: No OFD packet to send [12:16:35]OFD Sender: No OFD packet to send [12:16:40]OFD Sender: No OFD packet to send [12:16:45]OFD Sender: No OFD packet to send [12:16:50]OFD Sender: No OFD packet to send [12:16:55]OFD Sender: No OFD packet to send [12:17:00]OFD Sender: No OFD packet to send [12:17:05]OFD Sender: No OFD packet to send [12:17:10]OFD Sender: No OFD packet to send [12:17:15]OFD Sender: No OFD packet to send [12:17:20]OFD Sender: No OFD packet to send [12:17:25]OFD Sender: No OFD packet to send [12:17:30]OFD Sender: No OFD packet to send [12:17:35]OFD Sender: No OFD packet to send [12:17:40]OFD Sender: No OFD packet to send [12:17:45]OFD Sender: No OFD packet to send [12:17:50]OFD Sender: No OFD packet to send [12:17:55]OFD Sender: No OFD packet to send [12:18:00]OFD Sender: No OFD packet to send [12:18:05]OFD Sender: No OFD packet to send [12:18:10]OFD Sender: No OFD packet to send [12:18:15]OFD Sender: No OFD packet to send [12:18:20]OFD Sender: No OFD packet to send [12:18:23]accept exits with 7 [12:18:23]New connection [12:18:23]New thread 3066608996 created [12:18:23]Thread 3066752356 joined [12:18:23]Waiting for new connection... [12:18:23] Sock 7.Parse request [12:18:23]Sock 7.Check first char [12:18:23]Sock 7.First char is OK [12:18:23]request: POST /json_proto HTTP/1.0 [12:18:23]Method: POST [12:18:23]URL: /json_proto [12:18:23]Method is POST - this is cgi request [12:18:23]url: /json_proto [12:18:23]query_string will be loaded in cgi processing [12:18:23]execute_cgi json_proto POST (null) [12:18:23]execute_cgi path=json_proto method=POST [12:18:23]POST find Content-Length [12:18:23]Host: 172.17.41.195:8080 [12:18:23]Content-Length: 800 [12:18:23]Content-Type: application/json [12:18:23] [12:18:23]POST finish read [12:18:23]Found Content-Length = 800 [12:18:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)508046", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 13.390, "sum" : 1000.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.23 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:18:23]execute_script... [12:18:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)508046", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 13.390, "sum" : 1000.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.23 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:18:23]POST & json_proto [12:18:23]process_json_proto [12:18:23]json parsed OK: [12:18:23]protocol is kg_v1.0 [12:18:23]action value=close_receipt [12:18:23]process_action close_receipt [12:18:23]cmd_close_receipt [12:18:23]MH_GetDate [12:18:23]Write to MH i2c: F0 00 00 3F 34 62 [12:18:23]Write i2c OK [12:18:23]MH_I2C_Read... [12:18:23]Read from MH i2c: F0 [12:18:23]MH_I2C_Read... [12:18:23]Read from MH i2c: F0 09 00 [12:18:23]MH_I2C_Read... [12:18:23]Read from MH i2c: F0 09 00 3F 34 00 94 9C 48 66 FC 21 6F 64 39 [12:18:23]GetLastDocTimeStamp 1716034082 [12:18:23]current date 1716034708 [12:18:23]FM_GetShiftState [12:18:23]SAM_PROTO_GetShiftState [12:18:23]wFMCommunicate request_size=4 [12:18:23]MH_SAM_APDU [12:18:23]CAPDU: 80 13 01 00 [12:18:23]Write to MH i2c: E2 08 00 40 34 80 13 01 00 00 00 00 00 F1 [12:18:23]Write i2c OK [12:18:23]MH_I2C_Read... [12:18:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:18:23]Read from MH i2c: E2 [12:18:23]MH_I2C_Read... [12:18:23]Read from MH i2c: E2 0E 00 [12:18:23]MH_I2C_Read... [12:18:23]Read from MH i2c: E2 0E 00 40 34 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 58 [12:18:23]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [12:18:23]wFMCommunicate OK [12:18:23]SAM_PROTO_GetShiftState done [12:18:23]FM_GetShiftState done [12:18:23]opened in 1715991483 [12:18:23]opened+sec_in_day 1716077883 [12:18:23]quantity*price = 100023 [12:18:23]sum+1 = 100024 [12:18:23]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.23 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.23 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 62 18.05.2024 12:18 Смена: 359 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67823 ФПД: 86151170469174 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T121828&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67823&fm=86151170469174&tin=02508201610067®Number=0000000000091845&sum=100023 [12:18:24]StoreToDocumentArchive [12:18:24]shift 359 fd 67823 [12:18:24]save to /storage/0359/doc_00067823 [12:18:24]save last doc name /storage/0359/doc_00067823 to /storage/kkm_last_doc_name [12:18:24]save OK [12:18:24]Clear old archive folders... [12:18:24]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:18:24]tlvbuf is 01B49FE0 [12:18:24]SAM_PROTO_ClearQueue [12:18:24]wFMCommunicate request_size=4 [12:18:24]MH_SAM_APDU [12:18:24]CAPDU: 80 09 00 00 [12:18:24]Write to MH i2c: E2 08 00 4D 34 80 09 00 00 00 00 00 00 F3 [12:18:24]Write i2c OK [12:18:24]MH_I2C_Read... [12:18:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:18:24]Read from MH i2c: E2 [12:18:24]MH_I2C_Read... [12:18:24]Read from MH i2c: E2 03 00 [12:18:24]MH_I2C_Read... [12:18:24]Read from MH i2c: E2 03 00 4D 34 00 90 00 F5 [12:18:24]RAPDU: 90 00 [12:18:24]wFMCommunicate OK [12:18:24]SAM_PROTO_ClearQueue done [12:18:24]KKMCreateOFDPacket [12:18:24]OFDProtocolAddRootSTLVToBuf [12:18:24]FM_MakeSignedData [12:18:24]FM_MakeSignedData [12:18:24]SAM_PROTO_SignData [12:18:24]wFMCommunicate request_size=4 [12:18:24]MH_SAM_APDU [12:18:24]CAPDU: 80 0D 01 02 [12:18:24]Write to MH i2c: E2 08 00 4E 34 80 0D 01 02 00 00 00 00 FB [12:18:24]Write i2c OK [12:18:24]MH_I2C_Read... [12:18:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:18:24]Read from MH i2c: E2 [12:18:24]MH_I2C_Read... [12:18:24]Read from MH i2c: E2 03 00 [12:18:24]MH_I2C_Read... [12:18:24]Read from MH i2c: E2 03 00 4E 34 00 90 00 F6 [12:18:24]RAPDU: 90 00 [12:18:24]wFMCommunicate OK [12:18:24]wFMCommunicate request_size=255 [12:18:24]MH_SAM_APDU [12:18:24]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4E 34 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 B7 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B7 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B7 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 94 9C 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 EF 08 01 00 35 04 06 00 4E 5A A1 E9 [12:18:24]Write to MH i2c: E2 02 01 4F 34 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4E 34 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 B7 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B7 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B7 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 94 9C 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 EF 08 01 00 35 04 06 00 4E 5A A1 E9 00 00 B1 [12:18:24]Write i2c OK [12:18:24]MH_I2C_Read... [12:18:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:18:25]Read from MH i2c: E2 [12:18:25]MH_I2C_Read... [12:18:25]Read from MH i2c: E2 03 00 [12:18:25]MH_I2C_Read... [12:18:25]Read from MH i2c: E2 03 00 4F 34 00 90 00 F7 [12:18:25]RAPDU: 90 00 [12:18:25]wFMCommunicate OK [12:18:25]wFMCommunicate request_size=7 [12:18:25]MH_SAM_APDU [12:18:25]CAPDU: 80 0D 02 02 02 AD 36 [12:18:25]Write to MH i2c: E2 0A 00 50 34 80 0D 02 02 02 00 AD 36 00 00 E5 [12:18:25]Write i2c OK [12:18:25]MH_I2C_Read... [12:18:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:18:25]Read from MH i2c: E2 [12:18:25]MH_I2C_Read... [12:18:25]Read from MH i2c: E2 03 00 [12:18:25]MH_I2C_Read... [12:18:25]Read from MH i2c: E2 03 00 50 34 00 90 00 F8 [12:18:25]RAPDU: 90 00 [12:18:25]wFMCommunicate OK [12:18:25]wFMCommunicate request_size=4 [12:18:25]MH_SAM_APDU [12:18:25]CAPDU: 80 0D 03 02 [12:18:25]Write to MH i2c: E2 08 00 51 34 80 0D 03 02 00 00 00 00 00 [12:18:25]Write i2c OK [12:18:25]MH_I2C_Read... [12:18:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:18:25]Read from MH i2c: E2 [12:18:25]MH_I2C_Read... [12:18:25]Read from MH i2c: E2 0B 00 [12:18:25]MH_I2C_Read... [12:18:25]Read from MH i2c: E2 0B 00 51 34 00 AB 78 30 5D 16 3D C7 39 90 00 04 [12:18:25]RAPDU: AB 78 30 5D 16 3D C7 39 90 00 [12:18:25]wFMCommunicate OK [12:18:25]SAM_PROTO_SignData done [12:18:25]FM_MakeSignedData done [12:18:25]CreateOFDProtocolMessage [12:18:25]wFMCommunicate request_size=4 [12:18:25]MH_SAM_APDU [12:18:25]CAPDU: 80 11 00 00 [12:18:25]Write to MH i2c: E2 08 00 52 34 80 11 00 00 00 00 00 00 00 [12:18:25]Write i2c OK [12:18:25]MH_I2C_Read... [12:18:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:18:25]Read from MH i2c: E2 [12:18:25]MH_I2C_Read... [12:18:25]Read from MH i2c: E2 17 00 [12:18:25]MH_I2C_Read... [12:18:25]Read from MH i2c: E2 17 00 52 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 56 [12:18:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [12:18:25]wFMCommunicate OK [12:18:25]CreateOFDProtocolMessage done [12:18:25]OFDSenderStorePacket 67823 [12:18:25]StoreOFDPacket docnum=67823 [12:18:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 45 17 04 01 47 55 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4E 34 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 B7 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B7 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B7 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 94 9C 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 EF 08 01 00 35 04 06 00 4E 5A A1 E9 AD 36 AB 78 30 5D 16 3D C7 39 [12:18:25]CheckFolder [12:18:25]dirname=/storage/ofd_packets [12:18:25]CheckFolder done [12:18:25]ProducePacketName [12:18:25]name=ofd_packets/00067823 [12:18:25]NVStorageSaveData ofd_packets/00067823 [12:18:25]File name is /storage/ofd_packets/00067823 [12:18:25]Write 298 bytes [12:18:25]NVStorageSaveData done [12:18:25]OFDSenderStorePacket done [12:18:25]KKMCreateOFDPacket done [12:18:25]NVStorageSaveData kkm_last_timestamp [12:18:25]File name is /storage/kkm_last_timestamp [12:18:25]Write 4 bytes [12:18:25]NVStorageSaveData done [12:18:25]ExternCall_PrintAddStr [12:18:25]wPrintStart [12:18:25]Write to MH i2c: 01 00 00 53 34 87 [12:18:25]Write i2c OK [12:18:25]MH_I2C_Read... [12:18:25]Read from MH i2c: 01 [12:18:25]MH_I2C_Read... [12:18:25]Read from MH i2c: 01 07 00 [12:18:25]MH_I2C_Read... [12:18:25]Read from MH i2c: 01 07 00 53 34 00 00 00 00 00 FF 0F 9C [12:18:25]RasterBufferAndPrint [12:18:25]line Счет N : (1)508046 [12:18:25]line ИНН: 02508201610067 [12:18:25]line Контрольно-Кассовый Чек [12:18:25]line ПРОДАЖА [12:18:25]line ТРК (МРК, ГНК) : 31 [12:18:25]line Товар: 2710194210 [12:18:25]line ДТ-К-5 [12:18:25]line 13.390 * 74.70 [12:18:25]line = 1000.23 [12:18:25]line НДС 12% НСП 1% [12:18:25]line > о реализуемом товаре [12:18:25]line ИТОГО: 1000.23 [12:18:25]line НСП 1% : 8.85 [12:18:25]line НДС 12% : 106.22 [12:18:25]line Наличными: 0.00 [12:18:25]line Безнал.: 1000.23 [12:18:25]line Место: АЗС № 91 "Партнер Нефть" [12:18:25]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [12:18:25]line СНО: Общий режим [12:18:25]line Чек 62 18.05.2024 12:18 [12:18:25]line Смена: 359 ФФД: 1.0 [12:18:25]line ЗНМ: 0300000119 [12:18:25]line РНМ: 0000000000091845 [12:18:25]line Версия ККМ: 001 [12:18:25]line Платежная система: O! деньги [12:18:25]line ФМ: 0000000000871829 [12:18:25]line ФД: 67823 [12:18:25]line ФПД: 86151170469174 [12:18:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T121828&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67823&fm=86151170469174&tin=02508201610067®Number=0000000000091845&sum=100023 [12:18:25]OFD Sender: Processing packet 67823 [packets to send 35, broken 34] [12:18:25]ProducePacketName [12:18:25]name=ofd_packets/00067823 [12:18:25]OFD Sender: To server: pG, [12:18:25]CommunicateWithHost lk.salyk.kg:30040 [12:18:25]ConnectInit lk.salyk.kg [12:18:25]written 0, free lines is 4095 [12:18:25]Connected sock=10 [12:18:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 45 17 04 01 47 55 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4E 34 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 B7 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B7 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B7 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 94 9C 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 EF 08 01 00 35 04 06 00 4E 5A A1 E9 AD 36 AB 78 30 5D 16 3D C7 39 [12:18:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 13 1D 47 00 49 EC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 EF 08 01 00 F4 03 04 00 6A 44 48 66 B6 04 01 00 00 1D E4 4C CE F0 BA AF 01 [12:18:25]CommunicateWithHost err = 0 [12:18:25]CheckOFDResponse [12:18:25]1017 (14) - 77093643461234 [12:18:25]1041 (16) - 0000000000871829 [12:18:25]1040 (4) - 67823 [12:18:25]1012 (4) - 18.05.2024 06:02 [12:18:25]1206 (1) - 0 [12:18:25]OFD Sender: Remove packet 67823 [12:18:25]ProducePacketName [12:18:25]name=ofd_packets/00067823 [12:18:25]NVStorageDeleteData [12:18:25]Write to MH i2c: 01 00 00 7C 34 B0 [12:18:25]Write i2c OK [12:18:25]MH_I2C_Read... [12:18:25]Read from MH i2c: 01 [12:18:25]MH_I2C_Read... [12:18:25]Read from MH i2c: 01 07 00 [12:18:25]MH_I2C_Read... [12:18:25]Read from MH i2c: 01 07 00 7C 34 00 00 00 00 00 D8 0C 9B [12:18:25]RasterBufferAndPrint [12:18:25]line [12:18:25]line [12:18:25]line [12:18:25]line [12:18:25]line [12:18:25]written 0, free lines is 3296 [12:18:25]MH_Cut [12:18:25]Write to MH i2c: D1 01 00 83 34 01 89 [12:18:25]Write i2c OK [12:18:25]MH_I2C_Read... [12:18:25]Read from MH i2c: D1 [12:18:25]MH_I2C_Read... [12:18:25]Read from MH i2c: D1 01 00 [12:18:25]MH_I2C_Read... [12:18:25]Read from MH i2c: D1 01 00 83 34 00 88 [12:18:25]Write to MH i2c: 01 00 00 84 34 B8 [12:18:25]Write i2c OK [12:18:25]MH_I2C_Read... [12:18:26]OFD Sender: No OFD packet to send [12:18:26]*** Cut start [12:18:26]*** Purtial cut [12:18:26]*** Stage 1: CUTSNS_PIN = 1 [12:18:27]Read from MH i2c: 01 [12:18:27]MH_I2C_Read... [12:18:27]*** Stop cut motor [12:18:27]*** Cut end [12:18:27]Read from MH i2c: 01 07 00 [12:18:27]MH_I2C_Read... [12:18:27]Read from MH i2c: 01 07 00 84 34 00 00 00 00 00 FF 0F CD [12:18:27]process_action close_receipt done [12:18:27]requested_data is exist [12:18:27]produce_requested_data [12:18:27]requested_item fm.sn is exist - process it [12:18:27]wFMCommunicate request_size=4 [12:18:27]MH_SAM_APDU [12:18:27]CAPDU: 80 11 00 00 [12:18:27]Write to MH i2c: E2 08 00 85 34 80 11 00 00 00 00 00 00 33 [12:18:27]Write i2c OK [12:18:27]MH_I2C_Read... [12:18:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:18:27]Read from MH i2c: E2 [12:18:27]MH_I2C_Read... [12:18:27]Read from MH i2c: E2 17 00 [12:18:27]MH_I2C_Read... [12:18:27]Read from MH i2c: E2 17 00 85 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 89 [12:18:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [12:18:27]wFMCommunicate OK [12:18:27]requested_item fd.num is exist - process it [12:18:27]SAM_PROTO_GetFieldsCounters [12:18:27]wFMCommunicate request_size=4 [12:18:27]MH_SAM_APDU [12:18:27]CAPDU: 80 13 00 00 [12:18:27]Write to MH i2c: E2 08 00 86 34 80 13 00 00 00 00 00 00 36 [12:18:27]Write i2c OK [12:18:27]MH_I2C_Read... [12:18:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:18:27]Read from MH i2c: E2 [12:18:27]MH_I2C_Read... [12:18:27]Read from MH i2c: E2 62 00 [12:18:27]MH_I2C_Read... [12:18:27]Read from MH i2c: E2 62 00 86 34 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 EF 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 3E 00 00 00 5E 04 04 00 3E 00 00 00 57 04 04 00 3F 00 00 00 19 04 04 00 00 00 00 00 90 00 76 [12:18:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 EF 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 3E 00 00 00 5E 04 04 00 3E 00 00 00 57 04 04 00 3F 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:18:27]wFMCommunicate OK [12:18:27]SAM_PROTO_GetFieldsCounters done [12:18:27]requested_item shift.num is exist - process it [12:18:27]requested_item shift.opened is exist - process it [12:18:27]req_shift_opened [12:18:27]FM_GetShiftState [12:18:27]SAM_PROTO_GetShiftState [12:18:27]wFMCommunicate request_size=4 [12:18:27]MH_SAM_APDU [12:18:27]CAPDU: 80 13 01 00 [12:18:27]Write to MH i2c: E2 08 00 87 34 80 13 01 00 00 00 00 00 38 [12:18:27]Write i2c OK [12:18:27]MH_I2C_Read... [12:18:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:18:27]Read from MH i2c: E2 [12:18:27]MH_I2C_Read... [12:18:27]Read from MH i2c: E2 0E 00 [12:18:27]MH_I2C_Read... [12:18:27]Read from MH i2c: E2 0E 00 87 34 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 9F [12:18:27]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [12:18:27]wFMCommunicate OK [12:18:27]SAM_PROTO_GetShiftState done [12:18:27]FM_GetShiftState done [12:18:27]req_shift_opened done [12:18:27]requested_item shift.open_date is exist - process it [12:18:27]req_shift_open_date [12:18:27]req_shift_open_date done [12:18:27]produce_requested_data done [12:18:27]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67823,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [12:18:27]process_action_free close_receipt [12:18:27]json_value_free [12:18:27]json_value_free done [12:18:27]process_json_proto returns [12:18:27]Send response to host [12:18:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67823,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [12:18:27]free response buf [12:18:27]execute_script done [12:18:27]execute_script returns [12:18:27]free content buf [12:18:27]Sock 7.Close socket [12:18:27]Sock 7.Thread stoped [12:18:31]OFD Sender: No OFD packet to send [12:18:36]OFD Sender: No OFD packet to send [12:18:41]OFD Sender: No OFD packet to send [12:18:46]OFD Sender: No OFD packet to send [12:18:51]OFD Sender: No OFD packet to send [12:18:56]OFD Sender: No OFD packet to send [12:19:01]accept exits with 9 [12:19:01]New connection [12:19:01]New thread 3066752356 created [12:19:01]Thread 3066608996 joined [12:19:01]Waiting for new connection... [12:19:01] Sock 9.Parse request [12:19:01]Sock 9.Check first char [12:19:01]Sock 9.First char is OK [12:19:01]request: POST /json_proto HTTP/1.0 [12:19:01]Method: POST [12:19:01]URL: /json_proto [12:19:01]Method is POST - this is cgi request [12:19:01]url: /json_proto [12:19:01]query_string will be loaded in cgi processing [12:19:01]execute_cgi json_proto POST (null) [12:19:01]execute_cgi path=json_proto method=POST [12:19:01]POST find Content-Length [12:19:01]Host: 172.17.41.195:8080 [12:19:01]Content-Length: 1212 [12:19:01]Content-Type: application/json [12:19:01] [12:19:01]POST finish read [12:19:01]Found Content-Length = 1212 [12:19:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0440\u0441\u0442\u0430\u043D\u0431\u0435\u043A\u043E\u0432 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)508045\u000A18.05.2024 12:01\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 43\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.970 x 66.80\u000A\u0418\u0422\u041E\u0413: 1400.80\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:19:01]execute_script... [12:19:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0440\u0441\u0442\u0430\u043D\u0431\u0435\u043A\u043E\u0432 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)508045\u000A18.05.2024 12:01\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 43\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.970 x 66.80\u000A\u0418\u0422\u041E\u0413: 1400.80\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:19:01]POST & json_proto [12:19:01]process_json_proto [12:19:01]json parsed OK: [12:19:01]protocol is kg_v1.0 [12:19:01]action value=print_text [12:19:01]process_action print_text [12:19:01]cmd_print_text [12:19:01]ExternCall_PrintAddStr [12:19:01]wPrintStart [12:19:01]Write to MH i2c: 01 00 00 88 34 BC [12:19:01]Write i2c OK [12:19:01]MH_I2C_Read... [12:19:01]Read from MH i2c: 01 [12:19:01]MH_I2C_Read... [12:19:01]Read from MH i2c: 01 07 00 [12:19:01]MH_I2C_Read... [12:19:01]Read from MH i2c: 01 07 00 88 34 00 00 00 00 00 FF 0F D1 [12:19:01]RasterBufferAndPrint [12:19:01]line *****ТОВАРНЫЙ ЧЕК***** [12:19:01]line АЗС-91 [12:19:01]line Партнер нефть [12:19:01]line 02508201610067 [12:19:01]line Кассир : Арстанбеков Н. [12:19:01]line Счет N : (1)508045 [12:19:01]line 18.05.2024 12:01 [12:19:01]line ПРОДАЖА [12:19:01]line ТРК (МРК, ГНК): 43 [12:19:01]line Вид ГСМ : 2710124130 [12:19:01]line Аи-92-К-5 [12:19:01]line 20.970 x 66.80 [12:19:01]line ИТОГ: 1400.80 [12:19:01]line Тип оплаты: Талоны: Топливная Карта [12:19:01]line 02750 [12:19:01]line ______________________ [12:19:01]line (подпись) [12:19:01]written 0, free lines is 4095 [12:19:01]Write to MH i2c: 01 00 00 9C 34 D0 [12:19:01]Write i2c OK [12:19:01]MH_I2C_Read... [12:19:01]Read from MH i2c: 01 [12:19:01]MH_I2C_Read... [12:19:01]Read from MH i2c: 01 07 00 [12:19:01]MH_I2C_Read... [12:19:01]Read from MH i2c: 01 07 00 9C 34 00 00 00 00 00 11 0E F6 [12:19:01]RasterBufferAndPrint [12:19:01]line [12:19:01]line [12:19:01]line [12:19:01]line [12:19:01]line [12:19:01]written 0, free lines is 3603 [12:19:01]MH_Cut [12:19:01]Write to MH i2c: D1 01 00 A3 34 01 A9 [12:19:01]Write i2c OK [12:19:01]MH_I2C_Read... [12:19:01]Read from MH i2c: D1 [12:19:01]MH_I2C_Read... [12:19:01]Read from MH i2c: D1 01 00 [12:19:01]MH_I2C_Read... [12:19:01]Read from MH i2c: D1 01 00 A3 34 00 A8 [12:19:01]Write to MH i2c: 01 00 00 A4 34 D8 [12:19:01]Write i2c OK [12:19:01]MH_I2C_Read... [12:19:01]OFD Sender: No OFD packet to send [12:19:01]*** Cut start [12:19:01]*** Purtial cut [12:19:01]*** Stage 1: CUTSNS_PIN = 1 [12:19:02]Read from MH i2c: 01 [12:19:02]MH_I2C_Read... [12:19:02]Read from MH i2c: 01 07 00 [12:19:02]MH_I2C_Read... [12:19:02]*** Stop cut motor [12:19:02]*** Cut end [12:19:02]Read from MH i2c: 01 07 00 A4 34 00 00 00 00 00 FF 0F ED [12:19:02]process_action print_text done [12:19:02]requested_data is exist [12:19:02]produce_requested_data [12:19:02]requested_item fm.sn is exist - process it [12:19:02]wFMCommunicate request_size=4 [12:19:02]MH_SAM_APDU [12:19:02]CAPDU: 80 11 00 00 [12:19:02]Write to MH i2c: E2 08 00 A5 34 80 11 00 00 00 00 00 00 53 [12:19:02]Write i2c OK [12:19:02]MH_I2C_Read... [12:19:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:19:02]Read from MH i2c: E2 [12:19:02]MH_I2C_Read... [12:19:02]Read from MH i2c: E2 17 00 [12:19:02]MH_I2C_Read... [12:19:02]Read from MH i2c: E2 17 00 A5 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 A9 [12:19:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [12:19:02]wFMCommunicate OK [12:19:02]requested_item fd.num is exist - process it [12:19:02]SAM_PROTO_GetFieldsCounters [12:19:02]wFMCommunicate request_size=4 [12:19:02]MH_SAM_APDU [12:19:02]CAPDU: 80 13 00 00 [12:19:02]Write to MH i2c: E2 08 00 A6 34 80 13 00 00 00 00 00 00 56 [12:19:02]Write i2c OK [12:19:02]MH_I2C_Read... [12:19:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:19:02]Read from MH i2c: E2 [12:19:02]MH_I2C_Read... [12:19:02]Read from MH i2c: E2 62 00 [12:19:02]MH_I2C_Read... [12:19:02]Read from MH i2c: E2 62 00 A6 34 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 EF 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 3E 00 00 00 5E 04 04 00 3E 00 00 00 57 04 04 00 3F 00 00 00 19 04 04 00 00 00 00 00 90 00 96 [12:19:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 EF 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 3E 00 00 00 5E 04 04 00 3E 00 00 00 57 04 04 00 3F 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:19:02]wFMCommunicate OK [12:19:02]SAM_PROTO_GetFieldsCounters done [12:19:02]requested_item shift.num is exist - process it [12:19:02]requested_item shift.opened is exist - process it [12:19:02]req_shift_opened [12:19:02]FM_GetShiftState [12:19:02]SAM_PROTO_GetShiftState [12:19:02]wFMCommunicate request_size=4 [12:19:02]MH_SAM_APDU [12:19:02]CAPDU: 80 13 01 00 [12:19:02]Write to MH i2c: E2 08 00 A7 34 80 13 01 00 00 00 00 00 58 [12:19:02]Write i2c OK [12:19:02]MH_I2C_Read... [12:19:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:19:02]Read from MH i2c: E2 [12:19:02]MH_I2C_Read... [12:19:02]Read from MH i2c: E2 0E 00 [12:19:02]MH_I2C_Read... [12:19:02]Read from MH i2c: E2 0E 00 A7 34 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 BF [12:19:02]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [12:19:02]wFMCommunicate OK [12:19:02]SAM_PROTO_GetShiftState done [12:19:02]FM_GetShiftState done [12:19:02]req_shift_opened done [12:19:02]requested_item shift.open_date is exist - process it [12:19:02]req_shift_open_date [12:19:02]req_shift_open_date done [12:19:02]produce_requested_data done [12:19:02]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67823,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [12:19:02]process_action_free print_text [12:19:02]json_value_free [12:19:02]json_value_free done [12:19:02]process_json_proto returns [12:19:02]Send response to host [12:19:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67823,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [12:19:02]free response buf [12:19:02]execute_script done [12:19:02]execute_script returns [12:19:02]free content buf [12:19:02]Sock 9.Close socket [12:19:02]Sock 9.Thread stoped [12:19:06]OFD Sender: No OFD packet to send [12:19:11]OFD Sender: No OFD packet to send [12:19:16]OFD Sender: No OFD packet to send [12:19:21]OFD Sender: No OFD packet to send [12:19:26]OFD Sender: No OFD packet to send [12:19:31]OFD Sender: No OFD packet to send [12:19:36]OFD Sender: No OFD packet to send [12:19:41]OFD Sender: No OFD packet to send [12:19:46]OFD Sender: No OFD packet to send [12:19:51]OFD Sender: No OFD packet to send [12:19:56]OFD Sender: No OFD packet to send [12:20:01]OFD Sender: No OFD packet to send [12:20:06]OFD Sender: No OFD packet to send [12:20:11]OFD Sender: No OFD packet to send [12:20:16]OFD Sender: No OFD packet to send [12:20:21]OFD Sender: No OFD packet to send [12:20:26]OFD Sender: No OFD packet to send [12:20:31]OFD Sender: No OFD packet to send [12:20:36]OFD Sender: No OFD packet to send [12:20:41]OFD Sender: No OFD packet to send [12:20:46]OFD Sender: No OFD packet to send [12:20:51]OFD Sender: No OFD packet to send [12:20:56]OFD Sender: No OFD packet to send [12:21:01]OFD Sender: No OFD packet to send [12:21:06]OFD Sender: No OFD packet to send [12:21:11]OFD Sender: No OFD packet to send [12:21:16]OFD Sender: No OFD packet to send [12:21:21]OFD Sender: No OFD packet to send [12:21:26]OFD Sender: No OFD packet to send [12:21:31]OFD Sender: No OFD packet to send [12:21:36]OFD Sender: No OFD packet to send [12:21:41]OFD Sender: No OFD packet to send [12:21:46]OFD Sender: No OFD packet to send [12:21:51]OFD Sender: No OFD packet to send [12:21:56]OFD Sender: No OFD packet to send [12:22:01]OFD Sender: No OFD packet to send [12:22:06]OFD Sender: No OFD packet to send [12:22:11]OFD Sender: No OFD packet to send [12:22:16]OFD Sender: No OFD packet to send [12:22:21]OFD Sender: No OFD packet to send [12:22:26]OFD Sender: No OFD packet to send [12:22:31]OFD Sender: No OFD packet to send [12:22:36]OFD Sender: No OFD packet to send [12:22:41]OFD Sender: No OFD packet to send [12:22:46]OFD Sender: No OFD packet to send [12:22:51]OFD Sender: No OFD packet to send [12:22:56]OFD Sender: No OFD packet to send [12:23:01]OFD Sender: No OFD packet to send [12:23:06]OFD Sender: No OFD packet to send [12:23:11]OFD Sender: No OFD packet to send [12:23:16]OFD Sender: No OFD packet to send [12:23:21]OFD Sender: No OFD packet to send [12:23:26]OFD Sender: No OFD packet to send [12:23:31]OFD Sender: No OFD packet to send [12:23:36]OFD Sender: No OFD packet to send [12:23:41]OFD Sender: No OFD packet to send [12:23:46]OFD Sender: No OFD packet to send [12:23:51]OFD Sender: No OFD packet to send [12:23:56]OFD Sender: No OFD packet to send [12:23:58]accept exits with 7 [12:23:58]New connection [12:23:58]New thread 3066608996 created [12:23:58]Thread 3066752356 joined [12:23:58]Waiting for new connection... [12:23:58] Sock 7.Parse request [12:23:58]Sock 7.Check first char [12:23:58]Sock 7.First char is OK [12:23:58]request: POST /json_proto HTTP/1.0 [12:23:58]Method: POST [12:23:58]URL: /json_proto [12:23:58]Method is POST - this is cgi request [12:23:58]url: /json_proto [12:23:58]query_string will be loaded in cgi processing [12:23:58]execute_cgi json_proto POST (null) [12:23:58]execute_cgi path=json_proto method=POST [12:23:58]POST find Content-Length [12:23:58]Host: 172.17.41.195:8080 [12:23:58]Content-Length: 1210 [12:23:58]Content-Type: application/json [12:23:58] [12:23:58]POST finish read [12:23:58]Found Content-Length = 1210 [12:23:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0440\u0441\u0442\u0430\u043D\u0431\u0435\u043A\u043E\u0432 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)508047\u000A18.05.2024 12:06\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 43\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 5.990 x 66.80\u000A\u0418\u0422\u041E\u0413: 400.13\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:23:58]execute_script... [12:23:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0440\u0441\u0442\u0430\u043D\u0431\u0435\u043A\u043E\u0432 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)508047\u000A18.05.2024 12:06\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 43\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 5.990 x 66.80\u000A\u0418\u0422\u041E\u0413: 400.13\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:23:58]POST & json_proto [12:23:58]process_json_proto [12:23:58]json parsed OK: [12:23:58]protocol is kg_v1.0 [12:23:58]action value=print_text [12:23:58]process_action print_text [12:23:58]cmd_print_text [12:23:58]ExternCall_PrintAddStr [12:23:58]wPrintStart [12:23:58]Write to MH i2c: 01 00 00 A8 34 DC [12:23:58]Write i2c OK [12:23:58]MH_I2C_Read... [12:23:58]Read from MH i2c: 01 [12:23:58]MH_I2C_Read... [12:23:58]Read from MH i2c: 01 07 00 [12:23:58]MH_I2C_Read... [12:23:58]Read from MH i2c: 01 07 00 A8 34 00 00 00 00 00 FF 0F F1 [12:23:58]RasterBufferAndPrint [12:23:58]line *****ТОВАРНЫЙ ЧЕК***** [12:23:58]line АЗС-91 [12:23:58]line Партнер нефть [12:23:58]line 02508201610067 [12:23:58]line Кассир : Арстанбеков Н. [12:23:58]line Счет N : (1)508047 [12:23:58]line 18.05.2024 12:06 [12:23:58]line ПРОДАЖА [12:23:58]line ТРК (МРК, ГНК): 43 [12:23:58]line Вид ГСМ : 2710124130 [12:23:58]line Аи-92-К-5 [12:23:58]line 5.990 x 66.80 [12:23:58]line ИТОГ: 400.13 [12:23:58]line Тип оплаты: Талоны: Топливная Карта [12:23:58]line 02750 [12:23:58]line ______________________ [12:23:58]line (подпись) [12:23:58]written 0, free lines is 4095 [12:23:58]Write to MH i2c: 01 00 00 BC 34 F0 [12:23:58]Write i2c OK [12:23:58]MH_I2C_Read... [12:23:58]Read from MH i2c: 01 [12:23:58]MH_I2C_Read... [12:23:58]Read from MH i2c: 01 07 00 [12:23:58]MH_I2C_Read... [12:23:58]Read from MH i2c: 01 07 00 BC 34 00 00 00 00 00 10 0E 15 [12:23:58]RasterBufferAndPrint [12:23:58]line [12:23:58]line [12:23:58]line [12:23:58]line [12:23:58]line [12:23:58]written 0, free lines is 3601 [12:23:58]MH_Cut [12:23:58]Write to MH i2c: D1 01 00 C3 34 01 C9 [12:23:58]Write i2c OK [12:23:58]MH_I2C_Read... [12:23:58]Read from MH i2c: D1 [12:23:58]MH_I2C_Read... [12:23:58]Read from MH i2c: D1 01 00 [12:23:58]MH_I2C_Read... [12:23:58]Read from MH i2c: D1 01 00 C3 34 00 C8 [12:23:58]Write to MH i2c: 01 00 00 C4 34 F8 [12:23:58]Write i2c OK [12:23:58]MH_I2C_Read... [12:23:59]*** Cut start [12:23:59]*** Purtial cut [12:23:59]*** Stage 1: CUTSNS_PIN = 1 [12:23:59]Read from MH i2c: 01 [12:23:59]MH_I2C_Read... [12:23:59]Read from MH i2c: 01 07 00 [12:23:59]MH_I2C_Read... [12:23:59]*** Stop cut motor [12:23:59]*** Cut end [12:23:59]Read from MH i2c: 01 07 00 C4 34 00 00 00 00 00 FF 0F 0D [12:23:59]process_action print_text done [12:23:59]requested_data is exist [12:23:59]produce_requested_data [12:23:59]requested_item fm.sn is exist - process it [12:23:59]wFMCommunicate request_size=4 [12:23:59]MH_SAM_APDU [12:23:59]CAPDU: 80 11 00 00 [12:23:59]Write to MH i2c: E2 08 00 C5 34 80 11 00 00 00 00 00 00 73 [12:23:59]Write i2c OK [12:23:59]MH_I2C_Read... [12:23:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:23:59]Read from MH i2c: E2 [12:23:59]MH_I2C_Read... [12:23:59]Read from MH i2c: E2 17 00 [12:23:59]MH_I2C_Read... [12:23:59]Read from MH i2c: E2 17 00 C5 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 C9 [12:23:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [12:23:59]wFMCommunicate OK [12:23:59]requested_item fd.num is exist - process it [12:23:59]SAM_PROTO_GetFieldsCounters [12:23:59]wFMCommunicate request_size=4 [12:23:59]MH_SAM_APDU [12:23:59]CAPDU: 80 13 00 00 [12:23:59]Write to MH i2c: E2 08 00 C6 34 80 13 00 00 00 00 00 00 76 [12:23:59]Write i2c OK [12:23:59]MH_I2C_Read... [12:23:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:23:59]Read from MH i2c: E2 [12:23:59]MH_I2C_Read... [12:23:59]Read from MH i2c: E2 62 00 [12:23:59]MH_I2C_Read... [12:23:59]Read from MH i2c: E2 62 00 C6 34 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 EF 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 3E 00 00 00 5E 04 04 00 3E 00 00 00 57 04 04 00 3F 00 00 00 19 04 04 00 00 00 00 00 90 00 B6 [12:23:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 EF 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 3E 00 00 00 5E 04 04 00 3E 00 00 00 57 04 04 00 3F 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:23:59]wFMCommunicate OK [12:23:59]SAM_PROTO_GetFieldsCounters done [12:23:59]requested_item shift.num is exist - process it [12:23:59]requested_item shift.opened is exist - process it [12:23:59]req_shift_opened [12:23:59]FM_GetShiftState [12:23:59]SAM_PROTO_GetShiftState [12:23:59]wFMCommunicate request_size=4 [12:23:59]MH_SAM_APDU [12:23:59]CAPDU: 80 13 01 00 [12:23:59]Write to MH i2c: E2 08 00 C7 34 80 13 01 00 00 00 00 00 78 [12:23:59]Write i2c OK [12:23:59]MH_I2C_Read... [12:23:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:23:59]Read from MH i2c: E2 [12:23:59]MH_I2C_Read... [12:23:59]Read from MH i2c: E2 0E 00 [12:23:59]MH_I2C_Read... [12:23:59]Read from MH i2c: E2 0E 00 C7 34 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 DF [12:23:59]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [12:23:59]wFMCommunicate OK [12:23:59]SAM_PROTO_GetShiftState done [12:23:59]FM_GetShiftState done [12:23:59]req_shift_opened done [12:23:59]requested_item shift.open_date is exist - process it [12:23:59]req_shift_open_date [12:23:59]req_shift_open_date done [12:23:59]produce_requested_data done [12:23:59]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67823,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [12:23:59]process_action_free print_text [12:23:59]json_value_free [12:23:59]json_value_free done [12:23:59]process_json_proto returns [12:23:59]Send response to host [12:23:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67823,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [12:23:59]free response buf [12:23:59]execute_script done [12:23:59]execute_script returns [12:23:59]free content buf [12:23:59]Sock 7.Close socket [12:23:59]Sock 7.Thread stoped [12:24:01]OFD Sender: No OFD packet to send [12:24:06]OFD Sender: No OFD packet to send [12:24:11]OFD Sender: No OFD packet to send [12:24:16]OFD Sender: No OFD packet to send [12:24:21]OFD Sender: No OFD packet to send [12:24:26]OFD Sender: No OFD packet to send [12:24:31]OFD Sender: No OFD packet to send [12:24:36]OFD Sender: No OFD packet to send [12:24:41]OFD Sender: No OFD packet to send [12:24:46]OFD Sender: No OFD packet to send [12:24:51]OFD Sender: No OFD packet to send [12:24:56]OFD Sender: No OFD packet to send [12:25:01]OFD Sender: No OFD packet to send [12:25:06]OFD Sender: No OFD packet to send [12:25:11]OFD Sender: No OFD packet to send [12:25:16]OFD Sender: No OFD packet to send [12:25:21]OFD Sender: No OFD packet to send [12:25:26]OFD Sender: No OFD packet to send [12:25:31]OFD Sender: No OFD packet to send [12:25:36]OFD Sender: No OFD packet to send [12:25:41]OFD Sender: No OFD packet to send [12:25:46]OFD Sender: No OFD packet to send [12:25:51]OFD Sender: No OFD packet to send [12:25:56]OFD Sender: No OFD packet to send [12:26:01]OFD Sender: No OFD packet to send [12:26:06]OFD Sender: No OFD packet to send [12:26:11]OFD Sender: No OFD packet to send [12:26:16]OFD Sender: No OFD packet to send [12:26:21]OFD Sender: No OFD packet to send [12:26:26]OFD Sender: No OFD packet to send [12:26:31]OFD Sender: No OFD packet to send [12:26:36]OFD Sender: No OFD packet to send [12:26:41]OFD Sender: No OFD packet to send [12:26:46]OFD Sender: No OFD packet to send [12:26:51]OFD Sender: No OFD packet to send [12:26:56]OFD Sender: No OFD packet to send [12:27:01]OFD Sender: No OFD packet to send [12:27:06]OFD Sender: No OFD packet to send [12:27:11]OFD Sender: No OFD packet to send [12:27:16]OFD Sender: No OFD packet to send [12:27:21]OFD Sender: No OFD packet to send [12:27:26]OFD Sender: No OFD packet to send [12:27:31]OFD Sender: No OFD packet to send [12:27:36]OFD Sender: No OFD packet to send [12:27:41]OFD Sender: No OFD packet to send [12:27:46]accept exits with 9 [12:27:46]New connection [12:27:46]New thread 3066752356 created [12:27:46]Thread 3066608996 joined [12:27:46]Waiting for new connection... [12:27:46] Sock 9.Parse request [12:27:46]Sock 9.Check first char [12:27:46]Sock 9.First char is OK [12:27:46]request: POST /json_proto HTTP/1.0 [12:27:46]Method: POST [12:27:46]URL: /json_proto [12:27:46]Method is POST - this is cgi request [12:27:46]url: /json_proto [12:27:46]query_string will be loaded in cgi processing [12:27:46]execute_cgi json_proto POST (null) [12:27:46]execute_cgi path=json_proto method=POST [12:27:46]POST find Content-Length [12:27:46]Host: 172.17.41.195:8080 [12:27:46]Content-Length: 796 [12:27:46]Content-Type: application/json [12:27:46] [12:27:46]POST finish read [12:27:46]Found Content-Length = 796 [12:27:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)508048", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.05 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:27:46]execute_script... [12:27:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)508048", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.05 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:27:46]POST & json_proto [12:27:46]process_json_proto [12:27:46]json parsed OK: [12:27:46]protocol is kg_v1.0 [12:27:46]action value=close_receipt [12:27:46]process_action close_receipt [12:27:46]cmd_close_receipt [12:27:46]MH_GetDate [12:27:46]Write to MH i2c: F0 00 00 C8 34 EB [12:27:46]Write i2c OK [12:27:46]MH_I2C_Read... [12:27:46]Read from MH i2c: F0 [12:27:46]MH_I2C_Read... [12:27:46]Read from MH i2c: F0 09 00 [12:27:46]MH_I2C_Read... [12:27:46]Read from MH i2c: F0 09 00 C8 34 00 C7 9E 48 66 FC 21 6F 64 F7 [12:27:46]GetLastDocTimeStamp 1716034708 [12:27:46]current date 1716035271 [12:27:46]FM_GetShiftState [12:27:46]SAM_PROTO_GetShiftState [12:27:46]wFMCommunicate request_size=4 [12:27:46]MH_SAM_APDU [12:27:46]CAPDU: 80 13 01 00 [12:27:46]Write to MH i2c: E2 08 00 C9 34 80 13 01 00 00 00 00 00 7A [12:27:46]Write i2c OK [12:27:46]MH_I2C_Read... [12:27:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:27:46]Read from MH i2c: E2 [12:27:46]MH_I2C_Read... [12:27:46]Read from MH i2c: E2 0E 00 [12:27:46]MH_I2C_Read... [12:27:46]Read from MH i2c: E2 0E 00 C9 34 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 E1 [12:27:46]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [12:27:46]wFMCommunicate OK [12:27:46]SAM_PROTO_GetShiftState done [12:27:46]FM_GetShiftState done [12:27:46]opened in 1715991483 [12:27:46]opened+sec_in_day 1716077883 [12:27:46]quantity*price = 100005 [12:27:46]sum+1 = 100006 [12:27:46]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.05 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 0.00 Безнал.: 1000.05 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 63 18.05.2024 12:27 Смена: 359 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67824 ФПД: 108020116333297 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T122751&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67824&fm=108020116333297&tin=02508201610067®Number=0000000000091845&sum=100005 [12:27:47]StoreToDocumentArchive [12:27:47]shift 359 fd 67824 [12:27:47]save to /storage/0359/doc_00067824 [12:27:47]save last doc name /storage/0359/doc_00067824 to /storage/kkm_last_doc_name [12:27:47]save OK [12:27:47]Clear old archive folders... [12:27:47]ProcessDocumentItem done err = 0, tmpTLVsize=252 [12:27:47]tlvbuf is B6F27A50 [12:27:47]SAM_PROTO_ClearQueue [12:27:47]wFMCommunicate request_size=4 [12:27:47]MH_SAM_APDU [12:27:47]CAPDU: 80 09 00 00 [12:27:47]Write to MH i2c: E2 08 00 D6 34 80 09 00 00 00 00 00 00 7C [12:27:47]Write i2c OK [12:27:47]MH_I2C_Read... [12:27:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:27:47]Read from MH i2c: E2 [12:27:47]MH_I2C_Read... [12:27:47]Read from MH i2c: E2 03 00 [12:27:47]MH_I2C_Read... [12:27:47]Read from MH i2c: E2 03 00 D6 34 00 90 00 7E [12:27:47]RAPDU: 90 00 [12:27:47]wFMCommunicate OK [12:27:47]SAM_PROTO_ClearQueue done [12:27:47]KKMCreateOFDPacket [12:27:47]OFDProtocolAddRootSTLVToBuf [12:27:47]FM_MakeSignedData [12:27:47]FM_MakeSignedData [12:27:47]SAM_PROTO_SignData [12:27:47]wFMCommunicate request_size=4 [12:27:47]MH_SAM_APDU [12:27:47]CAPDU: 80 0D 01 02 [12:27:47]Write to MH i2c: E2 08 00 D7 34 80 0D 01 02 00 00 00 00 84 [12:27:47]Write i2c OK [12:27:47]MH_I2C_Read... [12:27:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:27:47]Read from MH i2c: E2 [12:27:47]MH_I2C_Read... [12:27:47]Read from MH i2c: E2 03 00 [12:27:47]MH_I2C_Read... [12:27:47]Read from MH i2c: E2 03 00 D7 34 00 90 00 7F [12:27:47]RAPDU: 90 00 [12:27:47]wFMCommunicate OK [12:27:47]wFMCommunicate request_size=255 [12:27:47]MH_SAM_APDU [12:27:47]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A5 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A5 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 C7 9E 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 F0 08 01 00 35 04 06 00 [12:27:47]Write to MH i2c: E2 02 01 D8 34 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A5 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A5 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 C7 9E 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 F0 08 01 00 35 04 06 00 00 00 7E [12:27:47]Write i2c OK [12:27:47]MH_I2C_Read... [12:27:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:27:47]Read from MH i2c: E2 [12:27:47]MH_I2C_Read... [12:27:47]Read from MH i2c: E2 03 00 [12:27:47]MH_I2C_Read... [12:27:47]Read from MH i2c: E2 03 00 D8 34 00 90 00 80 [12:27:47]RAPDU: 90 00 [12:27:47]wFMCommunicate OK [12:27:47]wFMCommunicate request_size=11 [12:27:47]MH_SAM_APDU [12:27:47]CAPDU: 80 0D 02 02 06 62 3E 64 A9 A2 F1 [12:27:47]Write to MH i2c: E2 0E 00 D9 34 80 0D 02 02 06 00 62 3E 64 A9 A2 F1 00 00 D3 [12:27:47]Write i2c OK [12:27:47]MH_I2C_Read... [12:27:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:27:47]Read from MH i2c: E2 [12:27:47]MH_I2C_Read... [12:27:47]Read from MH i2c: E2 03 00 [12:27:47]MH_I2C_Read... [12:27:47]Read from MH i2c: E2 03 00 D9 34 00 90 00 81 [12:27:47]RAPDU: 90 00 [12:27:47]wFMCommunicate OK [12:27:47]wFMCommunicate request_size=4 [12:27:47]MH_SAM_APDU [12:27:47]CAPDU: 80 0D 03 02 [12:27:47]Write to MH i2c: E2 08 00 DA 34 80 0D 03 02 00 00 00 00 89 [12:27:47]Write i2c OK [12:27:47]MH_I2C_Read... [12:27:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:27:47]Read from MH i2c: E2 [12:27:47]MH_I2C_Read... [12:27:47]Read from MH i2c: E2 0B 00 [12:27:47]MH_I2C_Read... [12:27:47]Read from MH i2c: E2 0B 00 DA 34 00 56 5B A2 10 08 C8 62 0B 90 00 2A [12:27:47]RAPDU: 56 5B A2 10 08 C8 62 0B 90 00 [12:27:47]wFMCommunicate OK [12:27:47]SAM_PROTO_SignData done [12:27:47]FM_MakeSignedData done [12:27:47]CreateOFDProtocolMessage [12:27:47]wFMCommunicate request_size=4 [12:27:47]MH_SAM_APDU [12:27:47]CAPDU: 80 11 00 00 [12:27:47]Write to MH i2c: E2 08 00 DB 34 80 11 00 00 00 00 00 00 89 [12:27:47]Write i2c OK [12:27:47]MH_I2C_Read... [12:27:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:27:47]Read from MH i2c: E2 [12:27:47]MH_I2C_Read... [12:27:47]Read from MH i2c: E2 17 00 [12:27:47]MH_I2C_Read... [12:27:47]Read from MH i2c: E2 17 00 DB 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 DF [12:27:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [12:27:47]wFMCommunicate OK [12:27:47]CreateOFDProtocolMessage done [12:27:47]OFDSenderStorePacket 67824 [12:27:47]StoreOFDPacket docnum=67824 [12:27:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 01 00 00 22 F9 08 01 98 85 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A5 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A5 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 C7 9E 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 F0 08 01 00 35 04 06 00 62 3E 64 A9 A2 F1 56 5B A2 10 08 C8 62 0B [12:27:47]CheckFolder [12:27:47]dirname=/storage/ofd_packets [12:27:47]CheckFolder done [12:27:47]ProducePacketName [12:27:47]name=ofd_packets/00067824 [12:27:47]NVStorageSaveData ofd_packets/00067824 [12:27:47]File name is /storage/ofd_packets/00067824 [12:27:47]Write 302 bytes [12:27:47]NVStorageSaveData done [12:27:47]OFDSenderStorePacket done [12:27:47]KKMCreateOFDPacket done [12:27:47]NVStorageSaveData kkm_last_timestamp [12:27:47]File name is /storage/kkm_last_timestamp [12:27:47]Write 4 bytes [12:27:47]NVStorageSaveData done [12:27:47]ExternCall_PrintAddStr [12:27:47]wPrintStart [12:27:47]Write to MH i2c: 01 00 00 DC 34 10 [12:27:47]Write i2c OK [12:27:47]MH_I2C_Read... [12:27:47]Read from MH i2c: 01 [12:27:47]MH_I2C_Read... [12:27:47]Read from MH i2c: 01 07 00 [12:27:47]MH_I2C_Read... [12:27:47]Read from MH i2c: 01 07 00 DC 34 00 00 00 00 00 FF 0F 25 [12:27:47]RasterBufferAndPrint [12:27:47]line Счет N : (1)508048 [12:27:47]line ИНН: 02508201610067 [12:27:47]line Контрольно-Кассовый Чек [12:27:47]line ПРОДАЖА [12:27:47]line ТРК (МРК, ГНК) : 32 [12:27:47]line Товар: 2710124130 [12:27:47]line Super-92-К-5 [12:27:47]line 14.750 * 67.80 [12:27:47]line = 1000.05 [12:27:47]line НДС 12% НСП 1% [12:27:47]line > о реализуемом товаре [12:27:47]line ИТОГО: 1000.05 [12:27:47]line НСП 1% : 8.85 [12:27:47]line НДС 12% : 106.20 [12:27:47]line Наличными: 0.00 [12:27:47]line Безнал.: 1000.05 [12:27:47]line Место: АЗС № 91 "Партнер Нефть" [12:27:47]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [12:27:47]line СНО: Общий режим [12:27:47]line Чек 63 18.05.2024 12:27 [12:27:47]line Смена: 359 ФФД: 1.0 [12:27:47]line ЗНМ: 0300000119 [12:27:47]line РНМ: 0000000000091845 [12:27:47]line Версия ККМ: 001 [12:27:47]line Платежная система: O! деньги [12:27:47]line ФМ: 0000000000871829 [12:27:47]line ФД: 67824 [12:27:47]line ФПД: 108020116333297 [12:27:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T122751&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67824&fm=108020116333297&tin=02508201610067®Number=0000000000091845&sum=100005 [12:27:48]OFD Sender: Processing packet 67824 [packets to send 35, broken 34] [12:27:48]ProducePacketName [12:27:48]name=ofd_packets/00067824 [12:27:48]OFD Sender: To server: pG, [12:27:48]CommunicateWithHost lk.salyk.kg:30040 [12:27:48]ConnectInit lk.salyk.kg [12:27:48]written 0, free lines is 4095 [12:27:48]Connected sock=10 [12:27:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 01 00 00 22 F9 08 01 98 85 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A5 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A5 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 C7 9E 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 F0 08 01 00 35 04 06 00 62 3E 64 A9 A2 F1 56 5B A2 10 08 C8 62 0B [12:27:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 E9 50 47 00 2B 26 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 F0 08 01 00 F4 03 04 00 9D 46 48 66 B6 04 01 00 00 94 75 C5 9E CF 8B F0 08 [12:27:48]CommunicateWithHost err = 0 [12:27:48]CheckOFDResponse [12:27:48]1017 (14) - 77093643461234 [12:27:48]1041 (16) - 0000000000871829 [12:27:48]1040 (4) - 67824 [12:27:48]1012 (4) - 18.05.2024 06:11 [12:27:48]1206 (1) - 0 [12:27:48]OFD Sender: Remove packet 67824 [12:27:48]ProducePacketName [12:27:48]name=ofd_packets/00067824 [12:27:48]NVStorageDeleteData [12:27:48]Write to MH i2c: 01 00 00 05 35 3A [12:27:48]Write i2c OK [12:27:48]MH_I2C_Read... [12:27:48]Read from MH i2c: 01 [12:27:48]MH_I2C_Read... [12:27:48]Read from MH i2c: 01 07 00 [12:27:48]MH_I2C_Read... [12:27:48]Read from MH i2c: 01 07 00 05 35 00 00 00 00 00 D7 0C 24 [12:27:48]RasterBufferAndPrint [12:27:48]line [12:27:48]line [12:27:48]line [12:27:48]line [12:27:48]line [12:27:48]written 0, free lines is 3295 [12:27:48]MH_Cut [12:27:48]Write to MH i2c: D1 01 00 0C 35 01 13 [12:27:48]Write i2c OK [12:27:48]MH_I2C_Read... [12:27:48]Read from MH i2c: D1 [12:27:48]MH_I2C_Read... [12:27:48]Read from MH i2c: D1 01 00 [12:27:48]MH_I2C_Read... [12:27:48]Read from MH i2c: D1 01 00 0C 35 00 12 [12:27:48]Write to MH i2c: 01 00 00 0D 35 42 [12:27:48]Write i2c OK [12:27:48]MH_I2C_Read... [12:27:49]OFD Sender: No OFD packet to send [12:27:49]*** Cut start [12:27:49]*** Purtial cut [12:27:49]*** Stage 1: CUTSNS_PIN = 1 [12:27:49]Read from MH i2c: 01 [12:27:49]MH_I2C_Read... [12:27:49]*** Stop cut motor [12:27:49]*** Cut end [12:27:49]Read from MH i2c: 01 07 00 [12:27:49]MH_I2C_Read... [12:27:49]Read from MH i2c: 01 07 00 0D 35 00 00 00 00 00 FF 0F 57 [12:27:49]process_action close_receipt done [12:27:49]requested_data is exist [12:27:49]produce_requested_data [12:27:49]requested_item fm.sn is exist - process it [12:27:49]wFMCommunicate request_size=4 [12:27:49]MH_SAM_APDU [12:27:49]CAPDU: 80 11 00 00 [12:27:49]Write to MH i2c: E2 08 00 0E 35 80 11 00 00 00 00 00 00 BD [12:27:49]Write i2c OK [12:27:49]MH_I2C_Read... [12:27:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:27:49]Read from MH i2c: E2 [12:27:49]MH_I2C_Read... [12:27:49]Read from MH i2c: E2 17 00 [12:27:49]MH_I2C_Read... [12:27:49]Read from MH i2c: E2 17 00 0E 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 13 [12:27:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [12:27:49]wFMCommunicate OK [12:27:49]requested_item fd.num is exist - process it [12:27:49]SAM_PROTO_GetFieldsCounters [12:27:49]wFMCommunicate request_size=4 [12:27:49]MH_SAM_APDU [12:27:49]CAPDU: 80 13 00 00 [12:27:49]Write to MH i2c: E2 08 00 0F 35 80 13 00 00 00 00 00 00 C0 [12:27:49]Write i2c OK [12:27:49]MH_I2C_Read... [12:27:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:27:50]Read from MH i2c: E2 [12:27:50]MH_I2C_Read... [12:27:50]Read from MH i2c: E2 62 00 [12:27:50]MH_I2C_Read... [12:27:50]Read from MH i2c: E2 62 00 0F 35 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 F0 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 04 [12:27:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 F0 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:27:50]wFMCommunicate OK [12:27:50]SAM_PROTO_GetFieldsCounters done [12:27:50]requested_item shift.num is exist - process it [12:27:50]requested_item shift.opened is exist - process it [12:27:50]req_shift_opened [12:27:50]FM_GetShiftState [12:27:50]SAM_PROTO_GetShiftState [12:27:50]wFMCommunicate request_size=4 [12:27:50]MH_SAM_APDU [12:27:50]CAPDU: 80 13 01 00 [12:27:50]Write to MH i2c: E2 08 00 10 35 80 13 01 00 00 00 00 00 C2 [12:27:50]Write i2c OK [12:27:50]MH_I2C_Read... [12:27:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:27:50]Read from MH i2c: E2 [12:27:50]MH_I2C_Read... [12:27:50]Read from MH i2c: E2 0E 00 [12:27:50]MH_I2C_Read... [12:27:50]Read from MH i2c: E2 0E 00 10 35 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 29 [12:27:50]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [12:27:50]wFMCommunicate OK [12:27:50]SAM_PROTO_GetShiftState done [12:27:50]FM_GetShiftState done [12:27:50]req_shift_opened done [12:27:50]requested_item shift.open_date is exist - process it [12:27:50]req_shift_open_date [12:27:50]req_shift_open_date done [12:27:50]produce_requested_data done [12:27:50]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67824,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [12:27:50]process_action_free close_receipt [12:27:50]json_value_free [12:27:50]json_value_free done [12:27:50]process_json_proto returns [12:27:50]Send response to host [12:27:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67824,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [12:27:50]free response buf [12:27:50]execute_script done [12:27:50]execute_script returns [12:27:50]free content buf [12:27:50]Sock 9.Close socket [12:27:50]Sock 9.Thread stoped [12:27:54]OFD Sender: No OFD packet to send [12:27:59]OFD Sender: No OFD packet to send [12:28:04]OFD Sender: No OFD packet to send [12:28:09]OFD Sender: No OFD packet to send [12:28:14]OFD Sender: No OFD packet to send [12:28:19]OFD Sender: No OFD packet to send [12:28:24]OFD Sender: No OFD packet to send [12:28:29]OFD Sender: No OFD packet to send [12:28:34]OFD Sender: No OFD packet to send [12:28:39]OFD Sender: No OFD packet to send [12:28:44]OFD Sender: No OFD packet to send [12:28:49]OFD Sender: No OFD packet to send [12:28:54]OFD Sender: No OFD packet to send [12:28:59]OFD Sender: No OFD packet to send [12:29:04]OFD Sender: No OFD packet to send [12:29:09]OFD Sender: No OFD packet to send [12:29:14]OFD Sender: No OFD packet to send [12:29:19]OFD Sender: No OFD packet to send [12:29:24]OFD Sender: No OFD packet to send [12:29:29]OFD Sender: No OFD packet to send [12:29:34]OFD Sender: No OFD packet to send [12:29:39]OFD Sender: No OFD packet to send [12:29:44]OFD Sender: No OFD packet to send [12:29:49]OFD Sender: No OFD packet to send [12:29:54]OFD Sender: No OFD packet to send [12:29:59]OFD Sender: No OFD packet to send [12:30:04]OFD Sender: No OFD packet to send [12:30:09]OFD Sender: No OFD packet to send [12:30:14]OFD Sender: No OFD packet to send [12:30:19]OFD Sender: No OFD packet to send [12:30:24]OFD Sender: No OFD packet to send [12:30:29]OFD Sender: No OFD packet to send [12:30:34]OFD Sender: No OFD packet to send [12:30:39]OFD Sender: No OFD packet to send [12:30:44]OFD Sender: No OFD packet to send [12:30:49]OFD Sender: No OFD packet to send [12:30:54]OFD Sender: No OFD packet to send [12:30:59]OFD Sender: No OFD packet to send [12:31:04]OFD Sender: No OFD packet to send [12:31:09]OFD Sender: No OFD packet to send [12:31:14]OFD Sender: No OFD packet to send [12:31:19]OFD Sender: No OFD packet to send [12:31:24]OFD Sender: No OFD packet to send [12:31:29]OFD Sender: No OFD packet to send [12:31:34]OFD Sender: No OFD packet to send [12:31:39]OFD Sender: No OFD packet to send [12:31:44]OFD Sender: No OFD packet to send [12:31:49]accept exits with 7 [12:31:49]New connection [12:31:49]New thread 3066608996 created [12:31:49]Thread 3066752356 joined [12:31:49]Waiting for new connection... [12:31:49] Sock 7.Parse request [12:31:49]Sock 7.Check first char [12:31:49]Sock 7.First char is OK [12:31:49]request: POST /json_proto HTTP/1.0 [12:31:49]Method: POST [12:31:49]URL: /json_proto [12:31:49]Method is POST - this is cgi request [12:31:49]url: /json_proto [12:31:49]query_string will be loaded in cgi processing [12:31:49]execute_cgi json_proto POST (null) [12:31:49]execute_cgi path=json_proto method=POST [12:31:49]POST find Content-Length [12:31:49]Host: 172.17.41.195:8080 [12:31:49]Content-Length: 800 [12:31:49]Content-Type: application/json [12:31:49] [12:31:49]POST finish read [12:31:49]Found Content-Length = 800 [12:31:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)508049", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 13.390, "sum" : 1000.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.23 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:31:49]execute_script... [12:31:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)508049", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 13.390, "sum" : 1000.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.23 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:31:49]POST & json_proto [12:31:49]process_json_proto [12:31:49]json parsed OK: [12:31:49]protocol is kg_v1.0 [12:31:49]action value=close_receipt [12:31:49]process_action close_receipt [12:31:49]cmd_close_receipt [12:31:49]MH_GetDate [12:31:49]Write to MH i2c: F0 00 00 11 35 35 [12:31:49]Write i2c OK [12:31:49]MH_I2C_Read... [12:31:49]Read from MH i2c: F0 [12:31:49]MH_I2C_Read... [12:31:49]Read from MH i2c: F0 09 00 [12:31:49]MH_I2C_Read... [12:31:49]Read from MH i2c: F0 09 00 11 35 00 BA 9F 48 66 FC 21 6F 64 35 [12:31:49]GetLastDocTimeStamp 1716035271 [12:31:49]current date 1716035514 [12:31:49]FM_GetShiftState [12:31:49]SAM_PROTO_GetShiftState [12:31:49]wFMCommunicate request_size=4 [12:31:49]MH_SAM_APDU [12:31:49]CAPDU: 80 13 01 00 [12:31:49]Write to MH i2c: E2 08 00 12 35 80 13 01 00 00 00 00 00 C4 [12:31:49]Write i2c OK [12:31:49]MH_I2C_Read... [12:31:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:31:49]Read from MH i2c: E2 [12:31:49]MH_I2C_Read... [12:31:49]Read from MH i2c: E2 0E 00 [12:31:49]MH_I2C_Read... [12:31:49]Read from MH i2c: E2 0E 00 12 35 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 2B [12:31:49]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [12:31:49]wFMCommunicate OK [12:31:49]SAM_PROTO_GetShiftState done [12:31:49]FM_GetShiftState done [12:31:49]opened in 1715991483 [12:31:49]opened+sec_in_day 1716077883 [12:31:49]quantity*price = 100023 [12:31:49]sum+1 = 100024 [12:31:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.23 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.23 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 64 18.05.2024 12:31 Смена: 359 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67825 ФПД: 196006775509160 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T123154&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67825&fm=196006775509160&tin=02508201610067®Number=0000000000091845&sum=100023 [12:31:50]StoreToDocumentArchive [12:31:50]shift 359 fd 67825 [12:31:50]save to /storage/0359/doc_00067825 [12:31:50]save last doc name /storage/0359/doc_00067825 to /storage/kkm_last_doc_name [12:31:50]save OK [12:31:50]Clear old archive folders... [12:31:50]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:31:50]tlvbuf is 01B26D40 [12:31:50]SAM_PROTO_ClearQueue [12:31:50]wFMCommunicate request_size=4 [12:31:50]MH_SAM_APDU [12:31:50]CAPDU: 80 09 00 00 [12:31:50]Write to MH i2c: E2 08 00 1F 35 80 09 00 00 00 00 00 00 C6 [12:31:50]Write i2c OK [12:31:50]MH_I2C_Read... [12:31:50]Read from MH i2c: E2 [12:31:50]MH_I2C_Read... [12:31:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:31:50]Read from MH i2c: E2 03 00 [12:31:50]MH_I2C_Read... [12:31:50]Read from MH i2c: E2 03 00 1F 35 00 90 00 C8 [12:31:50]RAPDU: 90 00 [12:31:50]wFMCommunicate OK [12:31:50]SAM_PROTO_ClearQueue done [12:31:50]KKMCreateOFDPacket [12:31:50]OFDProtocolAddRootSTLVToBuf [12:31:50]FM_MakeSignedData [12:31:50]FM_MakeSignedData [12:31:50]SAM_PROTO_SignData [12:31:50]wFMCommunicate request_size=4 [12:31:50]MH_SAM_APDU [12:31:50]CAPDU: 80 0D 01 02 [12:31:50]Write to MH i2c: E2 08 00 20 35 80 0D 01 02 00 00 00 00 CE [12:31:50]Write i2c OK [12:31:50]MH_I2C_Read... [12:31:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:31:50]Read from MH i2c: E2 [12:31:50]MH_I2C_Read... [12:31:50]Read from MH i2c: E2 03 00 [12:31:50]MH_I2C_Read... [12:31:50]Read from MH i2c: E2 03 00 20 35 00 90 00 C9 [12:31:50]RAPDU: 90 00 [12:31:50]wFMCommunicate OK [12:31:50]wFMCommunicate request_size=255 [12:31:50]MH_SAM_APDU [12:31:50]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4E 34 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 B7 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B7 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B7 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 BA 9F 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 F1 08 01 00 35 04 06 00 B2 44 62 3A [12:31:50]Write to MH i2c: E2 02 01 21 35 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4E 34 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 B7 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B7 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B7 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 BA 9F 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 F1 08 01 00 35 04 06 00 B2 44 62 3A 00 00 11 [12:31:50]Write i2c OK [12:31:50]MH_I2C_Read... [12:31:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:31:50]Read from MH i2c: E2 [12:31:50]MH_I2C_Read... [12:31:50]Read from MH i2c: E2 03 00 [12:31:50]MH_I2C_Read... [12:31:50]Read from MH i2c: E2 03 00 21 35 00 90 00 CA [12:31:50]RAPDU: 90 00 [12:31:50]wFMCommunicate OK [12:31:50]wFMCommunicate request_size=7 [12:31:50]MH_SAM_APDU [12:31:50]CAPDU: 80 0D 02 02 02 50 A8 [12:31:50]Write to MH i2c: E2 0A 00 22 35 80 0D 02 02 02 00 50 A8 00 00 CD [12:31:50]Write i2c OK [12:31:50]MH_I2C_Read... [12:31:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:31:50]Read from MH i2c: E2 [12:31:50]MH_I2C_Read... [12:31:50]Read from MH i2c: E2 03 00 [12:31:50]MH_I2C_Read... [12:31:50]Read from MH i2c: E2 03 00 22 35 00 90 00 CB [12:31:50]RAPDU: 90 00 [12:31:50]wFMCommunicate OK [12:31:50]wFMCommunicate request_size=4 [12:31:50]MH_SAM_APDU [12:31:50]CAPDU: 80 0D 03 02 [12:31:50]Write to MH i2c: E2 08 00 23 35 80 0D 03 02 00 00 00 00 D3 [12:31:50]Write i2c OK [12:31:50]MH_I2C_Read... [12:31:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:31:50]Read from MH i2c: E2 [12:31:50]MH_I2C_Read... [12:31:50]Read from MH i2c: E2 0B 00 [12:31:50]MH_I2C_Read... [12:31:50]Read from MH i2c: E2 0B 00 23 35 00 B8 4D B4 4D 58 CD 91 F9 90 00 89 [12:31:50]RAPDU: B8 4D B4 4D 58 CD 91 F9 90 00 [12:31:50]wFMCommunicate OK [12:31:50]SAM_PROTO_SignData done [12:31:50]FM_MakeSignedData done [12:31:50]CreateOFDProtocolMessage [12:31:50]wFMCommunicate request_size=4 [12:31:50]MH_SAM_APDU [12:31:50]CAPDU: 80 11 00 00 [12:31:50]Write to MH i2c: E2 08 00 24 35 80 11 00 00 00 00 00 00 D3 [12:31:50]Write i2c OK [12:31:50]MH_I2C_Read... [12:31:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:31:50]Read from MH i2c: E2 [12:31:50]MH_I2C_Read... [12:31:50]Read from MH i2c: E2 17 00 [12:31:50]MH_I2C_Read... [12:31:50]Read from MH i2c: E2 17 00 24 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 29 [12:31:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [12:31:50]wFMCommunicate OK [12:31:50]CreateOFDProtocolMessage done [12:31:50]OFDSenderStorePacket 67825 [12:31:50]StoreOFDPacket docnum=67825 [12:31:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 2B C2 04 01 E3 74 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4E 34 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 B7 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B7 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B7 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 BA 9F 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 F1 08 01 00 35 04 06 00 B2 44 62 3A 50 A8 B8 4D B4 4D 58 CD 91 F9 [12:31:50]CheckFolder [12:31:50]dirname=/storage/ofd_packets [12:31:50]CheckFolder done [12:31:50]ProducePacketName [12:31:50]name=ofd_packets/00067825 [12:31:50]NVStorageSaveData ofd_packets/00067825 [12:31:50]File name is /storage/ofd_packets/00067825 [12:31:50]Write 298 bytes [12:31:50]NVStorageSaveData done [12:31:50]OFDSenderStorePacket done [12:31:50]KKMCreateOFDPacket done [12:31:50]NVStorageSaveData kkm_last_timestamp [12:31:50]File name is /storage/kkm_last_timestamp [12:31:50]Write 4 bytes [12:31:50]NVStorageSaveData done [12:31:50]ExternCall_PrintAddStr [12:31:50]wPrintStart [12:31:50]Write to MH i2c: 01 00 00 25 35 5A [12:31:50]Write i2c OK [12:31:50]MH_I2C_Read... [12:31:50]Read from MH i2c: 01 [12:31:50]MH_I2C_Read... [12:31:50]Read from MH i2c: 01 07 00 [12:31:50]MH_I2C_Read... [12:31:50]Read from MH i2c: 01 07 00 25 35 00 00 00 00 00 FF 0F 6F [12:31:50]RasterBufferAndPrint [12:31:50]line Счет N : (1)508049 [12:31:50]line ИНН: 02508201610067 [12:31:50]line Контрольно-Кассовый Чек [12:31:50]line ПРОДАЖА [12:31:50]line ТРК (МРК, ГНК) : 41 [12:31:50]line Товар: 2710194210 [12:31:50]line ДТ-К-5 [12:31:50]line 13.390 * 74.70 [12:31:50]line = 1000.23 [12:31:50]line НДС 12% НСП 1% [12:31:50]line > о реализуемом товаре [12:31:50]line ИТОГО: 1000.23 [12:31:50]line НСП 1% : 8.85 [12:31:50]line НДС 12% : 106.22 [12:31:50]line Наличными: 0.00 [12:31:50]line Безнал.: 1000.23 [12:31:50]line Место: АЗС № 91 "Партнер Нефть" [12:31:50]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [12:31:50]line СНО: Общий режим [12:31:50]line Чек 64 18.05.2024 12:31 [12:31:50]line Смена: 359 ФФД: 1.0 [12:31:50]line ЗНМ: 0300000119 [12:31:50]line РНМ: 0000000000091845 [12:31:50]line Версия ККМ: 001 [12:31:50]line Платежная система: O! деньги [12:31:50]line ФМ: 0000000000871829 [12:31:50]line ФД: 67825 [12:31:50]line ФПД: 196006775509160 [12:31:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T123154&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67825&fm=196006775509160&tin=02508201610067®Number=0000000000091845&sum=100023 [12:31:51]OFD Sender: Processing packet 67825 [packets to send 35, broken 34] [12:31:51]ProducePacketName [12:31:51]name=ofd_packets/00067825 [12:31:51]OFD Sender: To server: pG, [12:31:51]CommunicateWithHost lk.salyk.kg:30040 [12:31:51]ConnectInit lk.salyk.kg [12:31:51]written 0, free lines is 4095 [12:31:51]Connected sock=9 [12:31:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 2B C2 04 01 E3 74 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4E 34 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 B7 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B7 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B7 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 BA 9F 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 F1 08 01 00 35 04 06 00 B2 44 62 3A 50 A8 B8 4D B4 4D 58 CD 91 F9 [12:31:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 3A F7 47 00 B5 CA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 F1 08 01 00 F4 03 04 00 90 47 48 66 B6 04 01 00 00 EA D2 FF D0 78 4C F1 0E [12:31:51]CommunicateWithHost err = 0 [12:31:51]CheckOFDResponse [12:31:51]1017 (14) - 77093643461234 [12:31:51]1041 (16) - 0000000000871829 [12:31:51]1040 (4) - 67825 [12:31:51]1012 (4) - 18.05.2024 06:15 [12:31:51]1206 (1) - 0 [12:31:51]OFD Sender: Remove packet 67825 [12:31:51]ProducePacketName [12:31:51]name=ofd_packets/00067825 [12:31:51]NVStorageDeleteData [12:31:51]Write to MH i2c: 01 00 00 4E 35 83 [12:31:51]Write i2c OK [12:31:51]MH_I2C_Read... [12:31:51]Read from MH i2c: 01 [12:31:51]MH_I2C_Read... [12:31:51]Read from MH i2c: 01 07 00 [12:31:51]MH_I2C_Read... [12:31:51]Read from MH i2c: 01 07 00 4E 35 00 00 00 00 00 F6 0C 8C [12:31:51]RasterBufferAndPrint [12:31:51]line [12:31:51]line [12:31:51]line [12:31:51]line [12:31:51]line [12:31:51]written 0, free lines is 3324 [12:31:51]MH_Cut [12:31:51]Write to MH i2c: D1 01 00 55 35 01 5C [12:31:51]Write i2c OK [12:31:51]MH_I2C_Read... [12:31:51]Read from MH i2c: D1 [12:31:51]MH_I2C_Read... [12:31:51]Read from MH i2c: D1 01 00 [12:31:51]MH_I2C_Read... [12:31:51]Read from MH i2c: D1 01 00 55 35 00 5B [12:31:51]Write to MH i2c: 01 00 00 56 35 8B [12:31:51]Write i2c OK [12:31:51]MH_I2C_Read... [12:31:52]OFD Sender: No OFD packet to send [12:31:52]*** Cut start [12:31:52]*** Purtial cut [12:31:52]*** Stage 1: CUTSNS_PIN = 1 [12:31:52]Read from MH i2c: 01 [12:31:52]MH_I2C_Read... [12:31:52]*** Stop cut motor [12:31:52]*** Cut end [12:31:52]Read from MH i2c: 01 07 00 [12:31:52]MH_I2C_Read... [12:31:52]Read from MH i2c: 01 07 00 56 35 00 00 00 00 00 FF 0F A0 [12:31:52]process_action close_receipt done [12:31:52]requested_data is exist [12:31:52]produce_requested_data [12:31:52]requested_item fm.sn is exist - process it [12:31:52]wFMCommunicate request_size=4 [12:31:52]MH_SAM_APDU [12:31:52]CAPDU: 80 11 00 00 [12:31:52]Write to MH i2c: E2 08 00 57 35 80 11 00 00 00 00 00 00 06 [12:31:52]Write i2c OK [12:31:52]MH_I2C_Read... [12:31:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:31:52]Read from MH i2c: E2 [12:31:52]MH_I2C_Read... [12:31:52]Read from MH i2c: E2 17 00 [12:31:52]MH_I2C_Read... [12:31:52]Read from MH i2c: E2 17 00 57 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 5C [12:31:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [12:31:52]wFMCommunicate OK [12:31:52]requested_item fd.num is exist - process it [12:31:52]SAM_PROTO_GetFieldsCounters [12:31:52]wFMCommunicate request_size=4 [12:31:52]MH_SAM_APDU [12:31:52]CAPDU: 80 13 00 00 [12:31:52]Write to MH i2c: E2 08 00 58 35 80 13 00 00 00 00 00 00 09 [12:31:52]Write i2c OK [12:31:52]MH_I2C_Read... [12:31:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:31:52]Read from MH i2c: E2 [12:31:52]MH_I2C_Read... [12:31:52]Read from MH i2c: E2 62 00 [12:31:52]MH_I2C_Read... [12:31:52]Read from MH i2c: E2 62 00 58 35 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 F1 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 51 [12:31:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 F1 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:31:52]wFMCommunicate OK [12:31:52]SAM_PROTO_GetFieldsCounters done [12:31:52]requested_item shift.num is exist - process it [12:31:52]requested_item shift.opened is exist - process it [12:31:52]req_shift_opened [12:31:52]FM_GetShiftState [12:31:52]SAM_PROTO_GetShiftState [12:31:52]wFMCommunicate request_size=4 [12:31:52]MH_SAM_APDU [12:31:52]CAPDU: 80 13 01 00 [12:31:52]Write to MH i2c: E2 08 00 59 35 80 13 01 00 00 00 00 00 0B [12:31:52]Write i2c OK [12:31:52]MH_I2C_Read... [12:31:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:31:53]Read from MH i2c: E2 [12:31:53]MH_I2C_Read... [12:31:53]Read from MH i2c: E2 0E 00 [12:31:53]MH_I2C_Read... [12:31:53]Read from MH i2c: E2 0E 00 59 35 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 72 [12:31:53]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [12:31:53]wFMCommunicate OK [12:31:53]SAM_PROTO_GetShiftState done [12:31:53]FM_GetShiftState done [12:31:53]req_shift_opened done [12:31:53]requested_item shift.open_date is exist - process it [12:31:53]req_shift_open_date [12:31:53]req_shift_open_date done [12:31:53]produce_requested_data done [12:31:53]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67825,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [12:31:53]process_action_free close_receipt [12:31:53]json_value_free [12:31:53]json_value_free done [12:31:53]process_json_proto returns [12:31:53]Send response to host [12:31:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67825,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [12:31:53]free response buf [12:31:53]execute_script done [12:31:53]execute_script returns [12:31:53]free content buf [12:31:53]Sock 7.Close socket [12:31:53]Sock 7.Thread stoped [12:31:57]OFD Sender: No OFD packet to send [12:32:02]OFD Sender: No OFD packet to send [12:32:07]OFD Sender: No OFD packet to send [12:32:12]OFD Sender: No OFD packet to send [12:32:17]OFD Sender: No OFD packet to send [12:32:22]OFD Sender: No OFD packet to send [12:32:27]OFD Sender: No OFD packet to send [12:32:32]OFD Sender: No OFD packet to send [12:32:37]OFD Sender: No OFD packet to send [12:32:42]OFD Sender: No OFD packet to send [12:32:47]OFD Sender: No OFD packet to send [12:32:52]OFD Sender: No OFD packet to send [12:32:57]OFD Sender: No OFD packet to send [12:33:02]OFD Sender: No OFD packet to send [12:33:07]OFD Sender: No OFD packet to send [12:33:12]OFD Sender: No OFD packet to send [12:33:14]accept exits with 10 [12:33:14]New connection [12:33:14]New thread 3066752356 created [12:33:14]Thread 3066608996 joined [12:33:14]Waiting for new connection... [12:33:14] Sock 10.Parse request [12:33:14]Sock 10.Check first char [12:33:14]Sock 10.First char is OK [12:33:14]request: POST /json_proto HTTP/1.0 [12:33:14]Method: POST [12:33:14]URL: /json_proto [12:33:14]Method is POST - this is cgi request [12:33:14]url: /json_proto [12:33:14]query_string will be loaded in cgi processing [12:33:14]execute_cgi json_proto POST (null) [12:33:14]execute_cgi path=json_proto method=POST [12:33:14]POST find Content-Length [12:33:14]Host: 172.17.41.195:8080 [12:33:14]Content-Length: 1209 [12:33:14]Content-Type: application/json [12:33:14] [12:33:14]POST finish read [12:33:14]Found Content-Length = 1209 [12:33:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0440\u0441\u0442\u0430\u043D\u0431\u0435\u043A\u043E\u0432 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)508050\u000A18.05.2024 12:15\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 20.090 x 74.70\u000A\u0418\u0422\u041E\u0413: 1500.72\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:33:14]execute_script... [12:33:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0440\u0441\u0442\u0430\u043D\u0431\u0435\u043A\u043E\u0432 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)508050\u000A18.05.2024 12:15\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 20.090 x 74.70\u000A\u0418\u0422\u041E\u0413: 1500.72\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:33:14]POST & json_proto [12:33:14]process_json_proto [12:33:14]json parsed OK: [12:33:14]protocol is kg_v1.0 [12:33:14]action value=print_text [12:33:14]process_action print_text [12:33:14]cmd_print_text [12:33:14]ExternCall_PrintAddStr [12:33:14]wPrintStart [12:33:14]Write to MH i2c: 01 00 00 5A 35 8F [12:33:14]Write i2c OK [12:33:14]MH_I2C_Read... [12:33:14]Read from MH i2c: 01 [12:33:14]MH_I2C_Read... [12:33:14]Read from MH i2c: 01 07 00 [12:33:14]MH_I2C_Read... [12:33:14]Read from MH i2c: 01 07 00 5A 35 00 00 00 00 00 FF 0F A4 [12:33:14]RasterBufferAndPrint [12:33:14]line *****ТОВАРНЫЙ ЧЕК***** [12:33:14]line АЗС-91 [12:33:14]line Партнер нефть [12:33:14]line 02508201610067 [12:33:14]line Кассир : Арстанбеков Н. [12:33:14]line Счет N : (1)508050 [12:33:14]line 18.05.2024 12:15 [12:33:14]line ПРОДАЖА [12:33:14]line ТРК (МРК, ГНК): 21 [12:33:14]line Вид ГСМ : 2710194210 [12:33:14]line ДТ-К-5 [12:33:14]line 20.090 x 74.70 [12:33:14]line ИТОГ: 1500.72 [12:33:14]line Тип оплаты: Талоны: Топливная Карта [12:33:14]line 02750 [12:33:14]line ______________________ [12:33:14]line (подпись) [12:33:14]written 0, free lines is 4095 [12:33:14]Write to MH i2c: 01 00 00 6E 35 A3 [12:33:14]Write i2c OK [12:33:14]MH_I2C_Read... [12:33:14]Read from MH i2c: 01 [12:33:14]MH_I2C_Read... [12:33:14]Read from MH i2c: 01 07 00 [12:33:14]MH_I2C_Read... [12:33:14]Read from MH i2c: 01 07 00 6E 35 00 00 00 00 00 10 0E C8 [12:33:14]RasterBufferAndPrint [12:33:14]line [12:33:14]line [12:33:14]line [12:33:14]line [12:33:14]line [12:33:14]written 0, free lines is 3601 [12:33:14]MH_Cut [12:33:14]Write to MH i2c: D1 01 00 75 35 01 7C [12:33:14]Write i2c OK [12:33:14]MH_I2C_Read... [12:33:14]Read from MH i2c: D1 [12:33:14]MH_I2C_Read... [12:33:14]Read from MH i2c: D1 01 00 [12:33:14]MH_I2C_Read... [12:33:14]Read from MH i2c: D1 01 00 75 35 00 7B [12:33:14]Write to MH i2c: 01 00 00 76 35 AB [12:33:14]Write i2c OK [12:33:14]MH_I2C_Read... [12:33:14]*** Cut start [12:33:14]*** Purtial cut [12:33:14]*** Stage 1: CUTSNS_PIN = 1 [12:33:15]Read from MH i2c: 01 [12:33:15]MH_I2C_Read... [12:33:15]*** Stop cut motor [12:33:15]*** Cut end [12:33:15]Read from MH i2c: 01 07 00 [12:33:15]MH_I2C_Read... [12:33:15]Read from MH i2c: 01 07 00 76 35 00 00 00 00 00 FF 0F C0 [12:33:15]process_action print_text done [12:33:15]requested_data is exist [12:33:15]produce_requested_data [12:33:15]requested_item fm.sn is exist - process it [12:33:15]wFMCommunicate request_size=4 [12:33:15]MH_SAM_APDU [12:33:15]CAPDU: 80 11 00 00 [12:33:15]Write to MH i2c: E2 08 00 77 35 80 11 00 00 00 00 00 00 26 [12:33:15]Write i2c OK [12:33:15]MH_I2C_Read... [12:33:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:33:15]Read from MH i2c: E2 [12:33:15]MH_I2C_Read... [12:33:15]Read from MH i2c: E2 17 00 [12:33:15]MH_I2C_Read... [12:33:15]Read from MH i2c: E2 17 00 77 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 7C [12:33:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [12:33:15]wFMCommunicate OK [12:33:15]requested_item fd.num is exist - process it [12:33:15]SAM_PROTO_GetFieldsCounters [12:33:15]wFMCommunicate request_size=4 [12:33:15]MH_SAM_APDU [12:33:15]CAPDU: 80 13 00 00 [12:33:15]Write to MH i2c: E2 08 00 78 35 80 13 00 00 00 00 00 00 29 [12:33:15]Write i2c OK [12:33:15]MH_I2C_Read... [12:33:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:33:15]Read from MH i2c: E2 [12:33:15]MH_I2C_Read... [12:33:15]Read from MH i2c: E2 62 00 [12:33:15]MH_I2C_Read... [12:33:15]Read from MH i2c: E2 62 00 78 35 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 F1 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 71 [12:33:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 F1 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:33:15]wFMCommunicate OK [12:33:15]SAM_PROTO_GetFieldsCounters done [12:33:15]requested_item shift.num is exist - process it [12:33:15]requested_item shift.opened is exist - process it [12:33:15]req_shift_opened [12:33:15]FM_GetShiftState [12:33:15]SAM_PROTO_GetShiftState [12:33:15]wFMCommunicate request_size=4 [12:33:15]MH_SAM_APDU [12:33:15]CAPDU: 80 13 01 00 [12:33:15]Write to MH i2c: E2 08 00 79 35 80 13 01 00 00 00 00 00 2B [12:33:15]Write i2c OK [12:33:15]MH_I2C_Read... [12:33:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:33:15]Read from MH i2c: E2 [12:33:15]MH_I2C_Read... [12:33:15]Read from MH i2c: E2 0E 00 [12:33:15]MH_I2C_Read... [12:33:15]Read from MH i2c: E2 0E 00 79 35 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 92 [12:33:15]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [12:33:15]wFMCommunicate OK [12:33:15]SAM_PROTO_GetShiftState done [12:33:15]FM_GetShiftState done [12:33:15]req_shift_opened done [12:33:15]requested_item shift.open_date is exist - process it [12:33:15]req_shift_open_date [12:33:15]req_shift_open_date done [12:33:15]produce_requested_data done [12:33:15]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67825,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [12:33:15]process_action_free print_text [12:33:15]json_value_free [12:33:15]json_value_free done [12:33:15]process_json_proto returns [12:33:15]Send response to host [12:33:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67825,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [12:33:15]free response buf [12:33:15]execute_script done [12:33:15]execute_script returns [12:33:15]free content buf [12:33:15]Sock 10.Close socket [12:33:15]Sock 10.Thread stoped [12:33:17]OFD Sender: No OFD packet to send [12:33:20]accept exits with 7 [12:33:20]New connection [12:33:20]New thread 3066608996 created [12:33:20]Thread 3066752356 joined [12:33:20]Waiting for new connection... [12:33:20] Sock 7.Parse request [12:33:20]Sock 7.Check first char [12:33:20]Sock 7.First char is OK [12:33:20]request: POST /json_proto HTTP/1.0 [12:33:20]Method: POST [12:33:20]URL: /json_proto [12:33:20]Method is POST - this is cgi request [12:33:20]url: /json_proto [12:33:20]query_string will be loaded in cgi processing [12:33:20]execute_cgi json_proto POST (null) [12:33:20]execute_cgi path=json_proto method=POST [12:33:20]POST find Content-Length [12:33:20]Host: 172.17.41.195:8080 [12:33:20]Content-Length: 1217 [12:33:20]Content-Type: application/json [12:33:20] [12:33:20]POST finish read [12:33:20]Found Content-Length = 1217 [12:33:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0440\u0441\u0442\u0430\u043D\u0431\u0435\u043A\u043E\u0432 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)508051\u000A18.05.2024 12:15\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 20.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 1494.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3779451\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:33:20]execute_script... [12:33:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0440\u0441\u0442\u0430\u043D\u0431\u0435\u043A\u043E\u0432 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)508051\u000A18.05.2024 12:15\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 20.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 1494.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3779451\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:33:20]POST & json_proto [12:33:20]process_json_proto [12:33:20]json parsed OK: [12:33:20]protocol is kg_v1.0 [12:33:20]action value=print_text [12:33:20]process_action print_text [12:33:20]cmd_print_text [12:33:20]ExternCall_PrintAddStr [12:33:20]wPrintStart [12:33:20]Write to MH i2c: 01 00 00 7A 35 AF [12:33:20]Write i2c OK [12:33:20]MH_I2C_Read... [12:33:20]Read from MH i2c: 01 [12:33:20]MH_I2C_Read... [12:33:20]Read from MH i2c: 01 07 00 [12:33:20]MH_I2C_Read... [12:33:20]Read from MH i2c: 01 07 00 7A 35 00 00 00 00 00 FF 0F C4 [12:33:20]RasterBufferAndPrint [12:33:20]line *****ТОВАРНЫЙ ЧЕК***** [12:33:20]line АЗС-91 [12:33:20]line Партнер нефть [12:33:20]line 02508201610067 [12:33:20]line Кассир : Арстанбеков Н. [12:33:20]line Счет N : (1)508051 [12:33:20]line 18.05.2024 12:15 [12:33:20]line ПРОДАЖА [12:33:20]line ТРК (МРК, ГНК): 11 [12:33:20]line Вид ГСМ : 2710194210 [12:33:20]line ДТ-К-5 [12:33:20]line 20.000 x 74.70 [12:33:20]line ИТОГ: 1494.00 [12:33:20]line Тип оплаты: Талоны: Топливные Талоны [12:33:20]line 3779451 [12:33:20]line ______________________ [12:33:20]line (подпись) [12:33:20]written 0, free lines is 4095 [12:33:20]Write to MH i2c: 01 00 00 8E 35 C3 [12:33:20]Write i2c OK [12:33:20]MH_I2C_Read... [12:33:20]Read from MH i2c: 01 [12:33:20]MH_I2C_Read... [12:33:20]Read from MH i2c: 01 07 00 [12:33:20]MH_I2C_Read... [12:33:20]Read from MH i2c: 01 07 00 8E 35 00 00 00 00 00 0F 0E E7 [12:33:20]RasterBufferAndPrint [12:33:20]line [12:33:20]line [12:33:20]line [12:33:20]line [12:33:20]line [12:33:20]written 0, free lines is 3601 [12:33:20]MH_Cut [12:33:20]Write to MH i2c: D1 01 00 95 35 01 9C [12:33:20]Write i2c OK [12:33:20]MH_I2C_Read... [12:33:20]Read from MH i2c: D1 [12:33:20]MH_I2C_Read... [12:33:20]Read from MH i2c: D1 01 00 [12:33:20]MH_I2C_Read... [12:33:20]Read from MH i2c: D1 01 00 95 35 00 9B [12:33:20]Write to MH i2c: 01 00 00 96 35 CB [12:33:20]Write i2c OK [12:33:20]MH_I2C_Read... [12:33:20]*** Cut start [12:33:20]*** Purtial cut [12:33:20]*** Stage 1: CUTSNS_PIN = 1 [12:33:21]Read from MH i2c: 01 [12:33:21]MH_I2C_Read... [12:33:21]*** Stop cut motor [12:33:21]*** Cut end [12:33:21]Read from MH i2c: 01 07 00 [12:33:21]MH_I2C_Read... [12:33:21]Read from MH i2c: 01 07 00 96 35 00 00 00 00 00 FF 0F E0 [12:33:21]process_action print_text done [12:33:21]requested_data is exist [12:33:21]produce_requested_data [12:33:21]requested_item fm.sn is exist - process it [12:33:21]wFMCommunicate request_size=4 [12:33:21]MH_SAM_APDU [12:33:21]CAPDU: 80 11 00 00 [12:33:21]Write to MH i2c: E2 08 00 97 35 80 11 00 00 00 00 00 00 46 [12:33:21]Write i2c OK [12:33:21]MH_I2C_Read... [12:33:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:33:21]Read from MH i2c: E2 [12:33:21]MH_I2C_Read... [12:33:21]Read from MH i2c: E2 17 00 [12:33:21]MH_I2C_Read... [12:33:21]Read from MH i2c: E2 17 00 97 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 9C [12:33:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [12:33:21]wFMCommunicate OK [12:33:21]requested_item fd.num is exist - process it [12:33:21]SAM_PROTO_GetFieldsCounters [12:33:21]wFMCommunicate request_size=4 [12:33:21]MH_SAM_APDU [12:33:21]CAPDU: 80 13 00 00 [12:33:21]Write to MH i2c: E2 08 00 98 35 80 13 00 00 00 00 00 00 49 [12:33:21]Write i2c OK [12:33:21]MH_I2C_Read... [12:33:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:33:21]Read from MH i2c: E2 [12:33:21]MH_I2C_Read... [12:33:21]Read from MH i2c: E2 62 00 [12:33:21]MH_I2C_Read... [12:33:21]Read from MH i2c: E2 62 00 98 35 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 F1 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 91 [12:33:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 F1 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:33:21]wFMCommunicate OK [12:33:21]SAM_PROTO_GetFieldsCounters done [12:33:21]requested_item shift.num is exist - process it [12:33:21]requested_item shift.opened is exist - process it [12:33:21]req_shift_opened [12:33:21]FM_GetShiftState [12:33:21]SAM_PROTO_GetShiftState [12:33:21]wFMCommunicate request_size=4 [12:33:21]MH_SAM_APDU [12:33:21]CAPDU: 80 13 01 00 [12:33:21]Write to MH i2c: E2 08 00 99 35 80 13 01 00 00 00 00 00 4B [12:33:21]Write i2c OK [12:33:21]MH_I2C_Read... [12:33:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:33:21]Read from MH i2c: E2 [12:33:21]MH_I2C_Read... [12:33:21]Read from MH i2c: E2 0E 00 [12:33:21]MH_I2C_Read... [12:33:21]Read from MH i2c: E2 0E 00 99 35 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 B2 [12:33:21]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [12:33:21]wFMCommunicate OK [12:33:21]SAM_PROTO_GetShiftState done [12:33:21]FM_GetShiftState done [12:33:21]req_shift_opened done [12:33:21]requested_item shift.open_date is exist - process it [12:33:21]req_shift_open_date [12:33:21]req_shift_open_date done [12:33:21]produce_requested_data done [12:33:21]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67825,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [12:33:21]process_action_free print_text [12:33:21]json_value_free [12:33:21]json_value_free done [12:33:21]process_json_proto returns [12:33:21]Send response to host [12:33:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67825,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [12:33:21]free response buf [12:33:21]execute_script done [12:33:21]execute_script returns [12:33:21]free content buf [12:33:21]Sock 7.Close socket [12:33:21]Sock 7.Thread stoped [12:33:22]OFD Sender: No OFD packet to send [12:33:27]OFD Sender: No OFD packet to send [12:33:32]OFD Sender: No OFD packet to send [12:33:37]OFD Sender: No OFD packet to send [12:33:42]OFD Sender: No OFD packet to send [12:33:47]OFD Sender: No OFD packet to send [12:33:52]OFD Sender: No OFD packet to send [12:33:57]OFD Sender: No OFD packet to send [12:34:02]OFD Sender: No OFD packet to send [12:34:07]OFD Sender: No OFD packet to send [12:34:12]OFD Sender: No OFD packet to send [12:34:17]OFD Sender: No OFD packet to send [12:34:22]OFD Sender: No OFD packet to send [12:34:27]OFD Sender: No OFD packet to send [12:34:32]OFD Sender: No OFD packet to send [12:34:37]OFD Sender: No OFD packet to send [12:34:42]OFD Sender: No OFD packet to send [12:34:47]OFD Sender: No OFD packet to send [12:34:52]OFD Sender: No OFD packet to send [12:34:57]OFD Sender: No OFD packet to send [12:35:02]OFD Sender: No OFD packet to send [12:35:07]OFD Sender: No OFD packet to send [12:35:12]OFD Sender: No OFD packet to send [12:35:17]OFD Sender: No OFD packet to send [12:35:22]OFD Sender: No OFD packet to send [12:35:27]OFD Sender: No OFD packet to send [12:35:32]OFD Sender: No OFD packet to send [12:35:37]OFD Sender: No OFD packet to send [12:35:42]OFD Sender: No OFD packet to send [12:35:47]OFD Sender: No OFD packet to send [12:35:52]OFD Sender: No OFD packet to send [12:35:57]OFD Sender: No OFD packet to send [12:36:02]OFD Sender: No OFD packet to send [12:36:07]OFD Sender: No OFD packet to send [12:36:12]OFD Sender: No OFD packet to send [12:36:17]OFD Sender: No OFD packet to send [12:36:22]OFD Sender: No OFD packet to send [12:36:27]OFD Sender: No OFD packet to send [12:36:32]OFD Sender: No OFD packet to send [12:36:37]OFD Sender: No OFD packet to send [12:36:42]OFD Sender: No OFD packet to send [12:36:47]OFD Sender: No OFD packet to send [12:36:52]OFD Sender: No OFD packet to send [12:36:57]OFD Sender: No OFD packet to send [12:37:02]OFD Sender: No OFD packet to send [12:37:07]OFD Sender: No OFD packet to send [12:37:12]OFD Sender: No OFD packet to send [12:37:17]OFD Sender: No OFD packet to send [12:37:22]OFD Sender: No OFD packet to send [12:37:27]OFD Sender: No OFD packet to send [12:37:32]OFD Sender: No OFD packet to send [12:37:37]OFD Sender: No OFD packet to send [12:37:42]OFD Sender: No OFD packet to send [12:37:47]OFD Sender: No OFD packet to send [12:37:52]OFD Sender: No OFD packet to send [12:37:57]OFD Sender: No OFD packet to send [12:38:02]OFD Sender: No OFD packet to send [12:38:07]OFD Sender: No OFD packet to send [12:38:12]OFD Sender: No OFD packet to send [12:38:17]OFD Sender: No OFD packet to send [12:38:22]OFD Sender: No OFD packet to send [12:38:27]OFD Sender: No OFD packet to send [12:38:32]OFD Sender: No OFD packet to send [12:38:37]OFD Sender: No OFD packet to send [12:38:42]OFD Sender: No OFD packet to send [12:38:47]OFD Sender: No OFD packet to send [12:38:52]OFD Sender: No OFD packet to send [12:38:57]OFD Sender: No OFD packet to send [12:39:02]OFD Sender: No OFD packet to send [12:39:07]OFD Sender: No OFD packet to send [12:39:12]OFD Sender: No OFD packet to send [12:39:17]OFD Sender: No OFD packet to send [12:39:22]OFD Sender: No OFD packet to send [12:39:27]OFD Sender: No OFD packet to send [12:39:32]OFD Sender: No OFD packet to send [12:39:37]OFD Sender: No OFD packet to send [12:39:42]OFD Sender: No OFD packet to send [12:39:47]OFD Sender: No OFD packet to send [12:39:52]OFD Sender: No OFD packet to send [12:39:57]OFD Sender: No OFD packet to send [12:40:02]OFD Sender: No OFD packet to send [12:40:07]OFD Sender: No OFD packet to send [12:40:12]OFD Sender: No OFD packet to send [12:40:17]OFD Sender: No OFD packet to send [12:40:22]OFD Sender: No OFD packet to send [12:40:27]OFD Sender: No OFD packet to send [12:40:32]OFD Sender: No OFD packet to send [12:40:37]OFD Sender: No OFD packet to send [12:40:42]OFD Sender: No OFD packet to send [12:40:47]OFD Sender: No OFD packet to send [12:40:52]OFD Sender: No OFD packet to send [12:40:57]OFD Sender: No OFD packet to send [12:41:02]accept exits with 9 [12:41:02]New connection [12:41:02]New thread 3066752356 created [12:41:02]Thread 3066608996 joined [12:41:02]Waiting for new connection... [12:41:02] Sock 9.Parse request [12:41:02]Sock 9.Check first char [12:41:02]Sock 9.First char is OK [12:41:02]request: POST /json_proto HTTP/1.0 [12:41:02]Method: POST [12:41:02]URL: /json_proto [12:41:02]Method is POST - this is cgi request [12:41:02]url: /json_proto [12:41:02]query_string will be loaded in cgi processing [12:41:02]execute_cgi json_proto POST (null) [12:41:02]execute_cgi path=json_proto method=POST [12:41:02]POST find Content-Length [12:41:02]Host: 172.17.41.195:8080 [12:41:02]Content-Length: 1210 [12:41:02]Content-Type: application/json [12:41:02] [12:41:02]POST finish read [12:41:02]Found Content-Length = 1210 [12:41:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0440\u0441\u0442\u0430\u043D\u0431\u0435\u043A\u043E\u0432 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)508052\u000A18.05.2024 12:23\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 100.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 7470.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A64300\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:41:02]execute_script... [12:41:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0440\u0441\u0442\u0430\u043D\u0431\u0435\u043A\u043E\u0432 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)508052\u000A18.05.2024 12:23\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 100.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 7470.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A64300\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:41:02]POST & json_proto [12:41:02]process_json_proto [12:41:02]json parsed OK: [12:41:02]protocol is kg_v1.0 [12:41:02]action value=print_text [12:41:02]process_action print_text [12:41:02]cmd_print_text [12:41:02]ExternCall_PrintAddStr [12:41:02]wPrintStart [12:41:02]Write to MH i2c: 01 00 00 9A 35 CF [12:41:02]Write i2c OK [12:41:02]MH_I2C_Read... [12:41:02]Read from MH i2c: 01 [12:41:02]MH_I2C_Read... [12:41:02]Read from MH i2c: 01 07 00 [12:41:02]MH_I2C_Read... [12:41:02]Read from MH i2c: 01 07 00 9A 35 00 00 00 00 00 FF 0F E4 [12:41:02]RasterBufferAndPrint [12:41:02]line *****ТОВАРНЫЙ ЧЕК***** [12:41:02]line АЗС-91 [12:41:02]line Партнер нефть [12:41:02]line 02508201610067 [12:41:02]line Кассир : Арстанбеков Н. [12:41:02]line Счет N : (1)508052 [12:41:02]line 18.05.2024 12:23 [12:41:02]line ПРОДАЖА [12:41:02]line ТРК (МРК, ГНК): 11 [12:41:02]line Вид ГСМ : 2710194210 [12:41:02]line ДТ-К-5 [12:41:02]line 100.000 x 74.70 [12:41:02]line ИТОГ: 7470.00 [12:41:02]line Тип оплаты: Талоны: Топливная Карта [12:41:02]line 64300 [12:41:02]line ______________________ [12:41:02]line (подпись) [12:41:02]written 0, free lines is 4095 [12:41:02]Write to MH i2c: 01 00 00 AE 35 E3 [12:41:02]Write i2c OK [12:41:02]MH_I2C_Read... [12:41:02]Read from MH i2c: 01 [12:41:02]MH_I2C_Read... [12:41:02]Read from MH i2c: 01 07 00 [12:41:02]MH_I2C_Read... [12:41:02]Read from MH i2c: 01 07 00 AE 35 00 00 00 00 00 10 0E 08 [12:41:02]RasterBufferAndPrint [12:41:02]line [12:41:02]line [12:41:02]line [12:41:02]line [12:41:02]line [12:41:02]written 0, free lines is 3602 [12:41:02]MH_Cut [12:41:02]Write to MH i2c: D1 01 00 B5 35 01 BC [12:41:02]Write i2c OK [12:41:02]MH_I2C_Read... [12:41:02]Read from MH i2c: D1 [12:41:02]MH_I2C_Read... [12:41:02]Read from MH i2c: D1 01 00 [12:41:02]MH_I2C_Read... [12:41:02]Read from MH i2c: D1 01 00 B5 35 00 BB [12:41:02]Write to MH i2c: 01 00 00 B6 35 EB [12:41:02]Write i2c OK [12:41:02]MH_I2C_Read... [12:41:02]OFD Sender: No OFD packet to send [12:41:02]*** Cut start [12:41:02]*** Purtial cut [12:41:02]*** Stage 1: CUTSNS_PIN = 1 [12:41:03]Read from MH i2c: 01 [12:41:03]MH_I2C_Read... [12:41:03]*** Stop cut motor [12:41:03]*** Cut end [12:41:03]Read from MH i2c: 01 07 00 [12:41:03]MH_I2C_Read... [12:41:03]Read from MH i2c: 01 07 00 B6 35 00 00 00 00 00 FF 0F 00 [12:41:03]process_action print_text done [12:41:03]requested_data is exist [12:41:03]produce_requested_data [12:41:03]requested_item fm.sn is exist - process it [12:41:03]wFMCommunicate request_size=4 [12:41:03]MH_SAM_APDU [12:41:03]CAPDU: 80 11 00 00 [12:41:03]Write to MH i2c: E2 08 00 B7 35 80 11 00 00 00 00 00 00 66 [12:41:03]Write i2c OK [12:41:03]MH_I2C_Read... [12:41:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:41:03]Read from MH i2c: E2 [12:41:03]MH_I2C_Read... [12:41:03]Read from MH i2c: E2 17 00 [12:41:03]MH_I2C_Read... [12:41:03]Read from MH i2c: E2 17 00 B7 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 BC [12:41:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [12:41:03]wFMCommunicate OK [12:41:03]requested_item fd.num is exist - process it [12:41:03]SAM_PROTO_GetFieldsCounters [12:41:03]wFMCommunicate request_size=4 [12:41:03]MH_SAM_APDU [12:41:03]CAPDU: 80 13 00 00 [12:41:03]Write to MH i2c: E2 08 00 B8 35 80 13 00 00 00 00 00 00 69 [12:41:03]Write i2c OK [12:41:03]MH_I2C_Read... [12:41:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:41:03]Read from MH i2c: E2 [12:41:03]MH_I2C_Read... [12:41:03]Read from MH i2c: E2 62 00 [12:41:03]MH_I2C_Read... [12:41:03]Read from MH i2c: E2 62 00 B8 35 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 F1 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 B1 [12:41:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 F1 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:41:03]wFMCommunicate OK [12:41:03]SAM_PROTO_GetFieldsCounters done [12:41:03]requested_item shift.num is exist - process it [12:41:03]requested_item shift.opened is exist - process it [12:41:03]req_shift_opened [12:41:03]FM_GetShiftState [12:41:03]SAM_PROTO_GetShiftState [12:41:03]wFMCommunicate request_size=4 [12:41:03]MH_SAM_APDU [12:41:03]CAPDU: 80 13 01 00 [12:41:03]Write to MH i2c: E2 08 00 B9 35 80 13 01 00 00 00 00 00 6B [12:41:03]Write i2c OK [12:41:03]MH_I2C_Read... [12:41:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:41:03]Read from MH i2c: E2 [12:41:03]MH_I2C_Read... [12:41:03]Read from MH i2c: E2 0E 00 [12:41:03]MH_I2C_Read... [12:41:03]Read from MH i2c: E2 0E 00 B9 35 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 D2 [12:41:03]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [12:41:03]wFMCommunicate OK [12:41:03]SAM_PROTO_GetShiftState done [12:41:03]FM_GetShiftState done [12:41:03]req_shift_opened done [12:41:03]requested_item shift.open_date is exist - process it [12:41:03]req_shift_open_date [12:41:03]req_shift_open_date done [12:41:03]produce_requested_data done [12:41:03]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67825,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [12:41:03]process_action_free print_text [12:41:03]json_value_free [12:41:03]json_value_free done [12:41:03]process_json_proto returns [12:41:03]Send response to host [12:41:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67825,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [12:41:03]free response buf [12:41:03]execute_script done [12:41:03]execute_script returns [12:41:03]free content buf [12:41:03]Sock 9.Close socket [12:41:03]Sock 9.Thread stoped [12:41:07]OFD Sender: No OFD packet to send [12:41:12]OFD Sender: No OFD packet to send [12:41:17]OFD Sender: No OFD packet to send [12:41:22]OFD Sender: No OFD packet to send [12:41:27]OFD Sender: No OFD packet to send [12:41:32]OFD Sender: No OFD packet to send [12:41:37]OFD Sender: No OFD packet to send [12:41:42]OFD Sender: No OFD packet to send [12:41:47]OFD Sender: No OFD packet to send [12:41:52]OFD Sender: No OFD packet to send [12:41:57]OFD Sender: No OFD packet to send [12:42:02]OFD Sender: No OFD packet to send [12:42:07]OFD Sender: No OFD packet to send [12:42:12]OFD Sender: No OFD packet to send [12:42:17]OFD Sender: No OFD packet to send [12:42:22]OFD Sender: No OFD packet to send [12:42:27]OFD Sender: No OFD packet to send [12:42:32]OFD Sender: No OFD packet to send [12:42:37]OFD Sender: No OFD packet to send [12:42:42]OFD Sender: No OFD packet to send [12:42:47]OFD Sender: No OFD packet to send [12:42:52]OFD Sender: No OFD packet to send [12:42:57]OFD Sender: No OFD packet to send [12:43:02]OFD Sender: No OFD packet to send [12:43:07]OFD Sender: No OFD packet to send [12:43:12]OFD Sender: No OFD packet to send [12:43:17]OFD Sender: No OFD packet to send [12:43:22]OFD Sender: No OFD packet to send [12:43:27]OFD Sender: No OFD packet to send [12:43:32]OFD Sender: No OFD packet to send [12:43:37]OFD Sender: No OFD packet to send [12:43:42]OFD Sender: No OFD packet to send [12:43:47]OFD Sender: No OFD packet to send [12:43:52]OFD Sender: No OFD packet to send [12:43:57]OFD Sender: No OFD packet to send [12:44:02]OFD Sender: No OFD packet to send [12:44:07]OFD Sender: No OFD packet to send [12:44:12]OFD Sender: No OFD packet to send [12:44:17]OFD Sender: No OFD packet to send [12:44:22]OFD Sender: No OFD packet to send [12:44:27]OFD Sender: No OFD packet to send [12:44:32]OFD Sender: No OFD packet to send [12:44:37]OFD Sender: No OFD packet to send [12:44:42]OFD Sender: No OFD packet to send [12:44:47]OFD Sender: No OFD packet to send [12:44:52]OFD Sender: No OFD packet to send [12:44:57]OFD Sender: No OFD packet to send [12:45:02]OFD Sender: No OFD packet to send [12:45:07]OFD Sender: No OFD packet to send [12:45:12]OFD Sender: No OFD packet to send [12:45:17]OFD Sender: No OFD packet to send [12:45:22]OFD Sender: No OFD packet to send [12:45:25]accept exits with 7 [12:45:25]New connection [12:45:25]New thread 3066608996 created [12:45:25]Thread 3066752356 joined [12:45:25]Waiting for new connection... [12:45:25] Sock 7.Parse request [12:45:25]Sock 7.Check first char [12:45:25]Sock 7.First char is OK [12:45:25]request: POST /json_proto HTTP/1.0 [12:45:25]Method: POST [12:45:25]URL: /json_proto [12:45:25]Method is POST - this is cgi request [12:45:25]url: /json_proto [12:45:25]query_string will be loaded in cgi processing [12:45:25]execute_cgi json_proto POST (null) [12:45:25]execute_cgi path=json_proto method=POST [12:45:25]POST find Content-Length [12:45:25]Host: 172.17.41.195:8080 [12:45:25]Content-Length: 797 [12:45:25]Content-Type: application/json [12:45:25] [12:45:25]POST finish read [12:45:25]Found Content-Length = 797 [12:45:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)508053", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 6.700, "sum" : 500.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.49 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:45:25]execute_script... [12:45:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)508053", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 6.700, "sum" : 500.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.49 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:45:25]POST & json_proto [12:45:25]process_json_proto [12:45:25]json parsed OK: [12:45:25]protocol is kg_v1.0 [12:45:25]action value=close_receipt [12:45:25]process_action close_receipt [12:45:25]cmd_close_receipt [12:45:25]MH_GetDate [12:45:25]Write to MH i2c: F0 00 00 BA 35 DE [12:45:25]Write i2c OK [12:45:25]MH_I2C_Read... [12:45:25]Read from MH i2c: F0 [12:45:25]MH_I2C_Read... [12:45:25]Read from MH i2c: F0 09 00 [12:45:25]MH_I2C_Read... [12:45:25]Read from MH i2c: F0 09 00 BA 35 00 EB A2 48 66 FC 21 6F 64 12 [12:45:25]GetLastDocTimeStamp 1716035514 [12:45:25]current date 1716036331 [12:45:25]FM_GetShiftState [12:45:25]SAM_PROTO_GetShiftState [12:45:25]wFMCommunicate request_size=4 [12:45:25]MH_SAM_APDU [12:45:25]CAPDU: 80 13 01 00 [12:45:25]Write to MH i2c: E2 08 00 BB 35 80 13 01 00 00 00 00 00 6D [12:45:25]Write i2c OK [12:45:25]MH_I2C_Read... [12:45:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:45:25]Read from MH i2c: E2 [12:45:25]MH_I2C_Read... [12:45:25]Read from MH i2c: E2 0E 00 [12:45:25]MH_I2C_Read... [12:45:25]Read from MH i2c: E2 0E 00 BB 35 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 D4 [12:45:25]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [12:45:25]wFMCommunicate OK [12:45:25]SAM_PROTO_GetShiftState done [12:45:25]FM_GetShiftState done [12:45:25]opened in 1715991483 [12:45:25]opened+sec_in_day 1716077883 [12:45:25]quantity*price = 50049 [12:45:25]sum+1 = 50050 [12:45:25]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.49 НСП 1% : 4.43 НДС 12% : 53.15 Наличными: 0.00 Безнал.: 500.49 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 65 18.05.2024 12:45 Смена: 359 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67826 ФПД: 60195102639142 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T124531&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67826&fm=60195102639142&tin=02508201610067®Number=0000000000091845&sum=50049 [12:45:26]StoreToDocumentArchive [12:45:26]shift 359 fd 67826 [12:45:26]save to /storage/0359/doc_00067826 [12:45:26]save last doc name /storage/0359/doc_00067826 to /storage/kkm_last_doc_name [12:45:26]save OK [12:45:26]Clear old archive folders... [12:45:26]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:45:26]tlvbuf is 01B5DD90 [12:45:26]SAM_PROTO_ClearQueue [12:45:26]wFMCommunicate request_size=4 [12:45:26]MH_SAM_APDU [12:45:26]CAPDU: 80 09 00 00 [12:45:26]Write to MH i2c: E2 08 00 C8 35 80 09 00 00 00 00 00 00 6F [12:45:26]Write i2c OK [12:45:26]MH_I2C_Read... [12:45:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:45:27]Read from MH i2c: E2 [12:45:27]MH_I2C_Read... [12:45:27]Read from MH i2c: E2 03 00 [12:45:27]MH_I2C_Read... [12:45:27]Read from MH i2c: E2 03 00 C8 35 00 90 00 71 [12:45:27]RAPDU: 90 00 [12:45:27]wFMCommunicate OK [12:45:27]SAM_PROTO_ClearQueue done [12:45:27]KKMCreateOFDPacket [12:45:27]OFDProtocolAddRootSTLVToBuf [12:45:27]FM_MakeSignedData [12:45:27]FM_MakeSignedData [12:45:27]SAM_PROTO_SignData [12:45:27]wFMCommunicate request_size=4 [12:45:27]MH_SAM_APDU [12:45:27]CAPDU: 80 0D 01 02 [12:45:27]Write to MH i2c: E2 08 00 C9 35 80 0D 01 02 00 00 00 00 77 [12:45:27]Write i2c OK [12:45:27]MH_I2C_Read... [12:45:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:45:27]Read from MH i2c: E2 [12:45:27]MH_I2C_Read... [12:45:27]Read from MH i2c: E2 03 00 [12:45:27]MH_I2C_Read... [12:45:27]Read from MH i2c: E2 03 00 C9 35 00 90 00 72 [12:45:27]RAPDU: 90 00 [12:45:27]wFMCommunicate OK [12:45:27]wFMCommunicate request_size=255 [12:45:27]MH_SAM_APDU [12:45:27]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2C 1A 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 81 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 81 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 EB A2 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 F2 08 01 00 35 04 06 00 36 BF 43 B5 [12:45:27]Write to MH i2c: E2 02 01 CA 35 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2C 1A 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 81 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 81 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 EB A2 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 F2 08 01 00 35 04 06 00 36 BF 43 B5 00 00 95 [12:45:27]Write i2c OK [12:45:27]MH_I2C_Read... [12:45:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:45:27]Read from MH i2c: E2 [12:45:27]MH_I2C_Read... [12:45:27]Read from MH i2c: E2 03 00 [12:45:27]MH_I2C_Read... [12:45:27]Read from MH i2c: E2 03 00 CA 35 00 90 00 73 [12:45:27]RAPDU: 90 00 [12:45:27]wFMCommunicate OK [12:45:27]wFMCommunicate request_size=7 [12:45:27]MH_SAM_APDU [12:45:27]CAPDU: 80 0D 02 02 02 C4 26 [12:45:27]Write to MH i2c: E2 0A 00 CB 35 80 0D 02 02 02 00 C4 26 00 00 68 [12:45:27]Write i2c OK [12:45:27]MH_I2C_Read... [12:45:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:45:27]Read from MH i2c: E2 [12:45:27]MH_I2C_Read... [12:45:27]Read from MH i2c: E2 03 00 [12:45:27]MH_I2C_Read... [12:45:27]Read from MH i2c: E2 03 00 CB 35 00 90 00 74 [12:45:27]RAPDU: 90 00 [12:45:27]wFMCommunicate OK [12:45:27]wFMCommunicate request_size=4 [12:45:27]MH_SAM_APDU [12:45:27]CAPDU: 80 0D 03 02 [12:45:27]Write to MH i2c: E2 08 00 CC 35 80 0D 03 02 00 00 00 00 7C [12:45:27]Write i2c OK [12:45:27]MH_I2C_Read... [12:45:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:45:27]Read from MH i2c: E2 [12:45:27]MH_I2C_Read... [12:45:27]Read from MH i2c: E2 0B 00 [12:45:27]MH_I2C_Read... [12:45:27]Read from MH i2c: E2 0B 00 CC 35 00 8A 03 2F B4 5C 0F 35 CE 90 00 5B [12:45:27]RAPDU: 8A 03 2F B4 5C 0F 35 CE 90 00 [12:45:27]wFMCommunicate OK [12:45:27]SAM_PROTO_SignData done [12:45:27]FM_MakeSignedData done [12:45:27]CreateOFDProtocolMessage [12:45:27]wFMCommunicate request_size=4 [12:45:27]MH_SAM_APDU [12:45:27]CAPDU: 80 11 00 00 [12:45:27]Write to MH i2c: E2 08 00 CD 35 80 11 00 00 00 00 00 00 7C [12:45:27]Write i2c OK [12:45:27]MH_I2C_Read... [12:45:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:45:27]Read from MH i2c: E2 [12:45:27]MH_I2C_Read... [12:45:27]Read from MH i2c: E2 17 00 [12:45:27]MH_I2C_Read... [12:45:27]Read from MH i2c: E2 17 00 CD 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 D2 [12:45:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [12:45:27]wFMCommunicate OK [12:45:27]CreateOFDProtocolMessage done [12:45:27]OFDSenderStorePacket 67826 [12:45:27]StoreOFDPacket docnum=67826 [12:45:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 18 83 04 01 A0 B0 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2C 1A 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 81 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 81 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 EB A2 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 F2 08 01 00 35 04 06 00 36 BF 43 B5 C4 26 8A 03 2F B4 5C 0F 35 CE [12:45:27]CheckFolder [12:45:27]dirname=/storage/ofd_packets [12:45:27]CheckFolder done [12:45:27]ProducePacketName [12:45:27]name=ofd_packets/00067826 [12:45:27]NVStorageSaveData ofd_packets/00067826 [12:45:27]File name is /storage/ofd_packets/00067826 [12:45:27]Write 298 bytes [12:45:27]NVStorageSaveData done [12:45:27]OFDSenderStorePacket done [12:45:27]KKMCreateOFDPacket done [12:45:27]NVStorageSaveData kkm_last_timestamp [12:45:27]File name is /storage/kkm_last_timestamp [12:45:27]Write 4 bytes [12:45:27]NVStorageSaveData done [12:45:27]ExternCall_PrintAddStr [12:45:27]wPrintStart [12:45:27]Write to MH i2c: 01 00 00 CE 35 03 [12:45:27]Write i2c OK [12:45:27]MH_I2C_Read... [12:45:27]Read from MH i2c: 01 [12:45:27]MH_I2C_Read... [12:45:27]Read from MH i2c: 01 07 00 [12:45:27]MH_I2C_Read... [12:45:27]Read from MH i2c: 01 07 00 CE 35 00 00 00 00 00 FF 0F 18 [12:45:27]RasterBufferAndPrint [12:45:27]line Счет N : (1)508053 [12:45:27]line ИНН: 02508201610067 [12:45:27]line Контрольно-Кассовый Чек [12:45:27]line ПРОДАЖА [12:45:27]line ТРК (МРК, ГНК) : 31 [12:45:27]line Товар: 2710194210 [12:45:27]line ДТ-К-5 [12:45:27]line 6.700 * 74.70 [12:45:27]line = 500.49 [12:45:27]line НДС 12% НСП 1% [12:45:27]line > о реализуемом товаре [12:45:27]line ИТОГО: 500.49 [12:45:27]line НСП 1% : 4.43 [12:45:27]line НДС 12% : 53.15 [12:45:27]line Наличными: 0.00 [12:45:27]line Безнал.: 500.49 [12:45:27]line Место: АЗС № 91 "Партнер Нефть" [12:45:27]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [12:45:27]line СНО: Общий режим [12:45:27]line Чек 65 18.05.2024 12:45 [12:45:27]line Смена: 359 ФФД: 1.0 [12:45:27]line ЗНМ: 0300000119 [12:45:27]line РНМ: 0000000000091845 [12:45:27]line Версия ККМ: 001 [12:45:27]line Платежная система: O! деньги [12:45:27]line ФМ: 0000000000871829 [12:45:27]line ФД: 67826 [12:45:27]line ФПД: 60195102639142 [12:45:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T124531&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67826&fm=60195102639142&tin=02508201610067®Number=0000000000091845&sum=50049 [12:45:27]OFD Sender: Processing packet 67826 [packets to send 35, broken 34] [12:45:27]ProducePacketName [12:45:27]name=ofd_packets/00067826 [12:45:27]OFD Sender: To server: pG, [12:45:27]CommunicateWithHost lk.salyk.kg:30040 [12:45:27]ConnectInit lk.salyk.kg [12:45:27]written 0, free lines is 4095 [12:45:27]Connected sock=10 [12:45:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 18 83 04 01 A0 B0 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2C 1A 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 81 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 81 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 EB A2 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 F2 08 01 00 35 04 06 00 36 BF 43 B5 C4 26 8A 03 2F B4 5C 0F 35 CE [12:45:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 10 35 47 00 94 4A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 F2 08 01 00 F4 03 04 00 C0 4A 48 66 B6 04 01 00 00 0B 9C F3 69 A1 EB 9B 9A [12:45:28]CommunicateWithHost err = 0 [12:45:28]CheckOFDResponse [12:45:28]1017 (14) - 77093643461234 [12:45:28]1041 (16) - 0000000000871829 [12:45:28]1040 (4) - 67826 [12:45:28]1012 (4) - 18.05.2024 06:29 [12:45:28]1206 (1) - 0 [12:45:28]OFD Sender: Remove packet 67826 [12:45:28]ProducePacketName [12:45:28]name=ofd_packets/00067826 [12:45:28]NVStorageDeleteData [12:45:28]Write to MH i2c: 01 00 00 F7 35 2C [12:45:28]Write i2c OK [12:45:28]MH_I2C_Read... [12:45:28]Read from MH i2c: 01 [12:45:28]MH_I2C_Read... [12:45:28]Read from MH i2c: 01 07 00 [12:45:28]MH_I2C_Read... [12:45:28]Read from MH i2c: 01 07 00 F7 35 00 00 00 00 00 D7 0C 16 [12:45:28]RasterBufferAndPrint [12:45:28]line [12:45:28]line [12:45:28]line [12:45:28]line [12:45:28]line [12:45:28]written 0, free lines is 3292 [12:45:28]MH_Cut [12:45:28]Write to MH i2c: D1 01 00 FE 35 01 05 [12:45:28]Write i2c OK [12:45:28]MH_I2C_Read... [12:45:28]Read from MH i2c: D1 [12:45:28]MH_I2C_Read... [12:45:28]Read from MH i2c: D1 01 00 [12:45:28]MH_I2C_Read... [12:45:28]Read from MH i2c: D1 01 00 FE 35 00 04 [12:45:28]Write to MH i2c: 01 00 00 FF 35 34 [12:45:28]Write i2c OK [12:45:28]MH_I2C_Read... [12:45:28]OFD Sender: No OFD packet to send [12:45:29]*** Cut start [12:45:29]*** Purtial cut [12:45:29]*** Stage 1: CUTSNS_PIN = 1 [12:45:29]Read from MH i2c: 01 [12:45:29]MH_I2C_Read... [12:45:29]*** Stop cut motor [12:45:29]*** Cut end [12:45:29]Read from MH i2c: 01 07 00 [12:45:29]MH_I2C_Read... [12:45:29]Read from MH i2c: 01 07 00 FF 35 00 00 00 00 00 FF 0F 49 [12:45:29]process_action close_receipt done [12:45:29]requested_data is exist [12:45:29]produce_requested_data [12:45:29]requested_item fm.sn is exist - process it [12:45:29]wFMCommunicate request_size=4 [12:45:29]MH_SAM_APDU [12:45:29]CAPDU: 80 11 00 00 [12:45:29]Write to MH i2c: E2 08 00 00 36 80 11 00 00 00 00 00 00 B0 [12:45:29]Write i2c OK [12:45:29]MH_I2C_Read... [12:45:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:45:29]Read from MH i2c: E2 [12:45:29]MH_I2C_Read... [12:45:29]Read from MH i2c: E2 17 00 [12:45:29]MH_I2C_Read... [12:45:29]Read from MH i2c: E2 17 00 00 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 06 [12:45:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [12:45:29]wFMCommunicate OK [12:45:29]requested_item fd.num is exist - process it [12:45:29]SAM_PROTO_GetFieldsCounters [12:45:29]wFMCommunicate request_size=4 [12:45:29]MH_SAM_APDU [12:45:29]CAPDU: 80 13 00 00 [12:45:29]Write to MH i2c: E2 08 00 01 36 80 13 00 00 00 00 00 00 B3 [12:45:29]Write i2c OK [12:45:29]MH_I2C_Read... [12:45:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:45:29]Read from MH i2c: E2 [12:45:29]MH_I2C_Read... [12:45:29]Read from MH i2c: E2 62 00 [12:45:29]MH_I2C_Read... [12:45:29]Read from MH i2c: E2 62 00 01 36 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 F2 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 FF [12:45:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 F2 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:45:29]wFMCommunicate OK [12:45:29]SAM_PROTO_GetFieldsCounters done [12:45:29]requested_item shift.num is exist - process it [12:45:29]requested_item shift.opened is exist - process it [12:45:29]req_shift_opened [12:45:29]FM_GetShiftState [12:45:29]SAM_PROTO_GetShiftState [12:45:29]wFMCommunicate request_size=4 [12:45:29]MH_SAM_APDU [12:45:29]CAPDU: 80 13 01 00 [12:45:29]Write to MH i2c: E2 08 00 02 36 80 13 01 00 00 00 00 00 B5 [12:45:29]Write i2c OK [12:45:29]MH_I2C_Read... [12:45:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:45:29]Read from MH i2c: E2 [12:45:29]MH_I2C_Read... [12:45:29]Read from MH i2c: E2 0E 00 [12:45:29]MH_I2C_Read... [12:45:29]Read from MH i2c: E2 0E 00 02 36 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 1C [12:45:29]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [12:45:29]wFMCommunicate OK [12:45:29]SAM_PROTO_GetShiftState done [12:45:29]FM_GetShiftState done [12:45:29]req_shift_opened done [12:45:29]requested_item shift.open_date is exist - process it [12:45:29]req_shift_open_date [12:45:29]req_shift_open_date done [12:45:29]produce_requested_data done [12:45:29]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67826,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [12:45:29]process_action_free close_receipt [12:45:29]json_value_free [12:45:29]json_value_free done [12:45:29]process_json_proto returns [12:45:29]Send response to host [12:45:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67826,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [12:45:29]free response buf [12:45:29]execute_script done [12:45:29]execute_script returns [12:45:29]free content buf [12:45:29]Sock 7.Close socket [12:45:29]Sock 7.Thread stoped [12:45:33]OFD Sender: No OFD packet to send [12:45:38]OFD Sender: No OFD packet to send [12:45:43]OFD Sender: No OFD packet to send [12:45:48]OFD Sender: No OFD packet to send [12:45:53]OFD Sender: No OFD packet to send [12:45:58]OFD Sender: No OFD packet to send [12:46:03]OFD Sender: No OFD packet to send [12:46:08]OFD Sender: No OFD packet to send [12:46:13]OFD Sender: No OFD packet to send [12:46:18]OFD Sender: No OFD packet to send [12:46:23]OFD Sender: No OFD packet to send [12:46:28]OFD Sender: No OFD packet to send [12:46:33]OFD Sender: No OFD packet to send [12:46:38]OFD Sender: No OFD packet to send [12:46:43]OFD Sender: No OFD packet to send [12:46:48]OFD Sender: No OFD packet to send [12:46:53]OFD Sender: No OFD packet to send [12:46:58]OFD Sender: No OFD packet to send [12:47:03]OFD Sender: No OFD packet to send [12:47:08]OFD Sender: No OFD packet to send [12:47:13]OFD Sender: No OFD packet to send [12:47:18]OFD Sender: No OFD packet to send [12:47:23]OFD Sender: No OFD packet to send [12:47:28]OFD Sender: No OFD packet to send [12:47:33]OFD Sender: No OFD packet to send [12:47:38]OFD Sender: No OFD packet to send [12:47:43]OFD Sender: No OFD packet to send [12:47:48]OFD Sender: No OFD packet to send [12:47:53]OFD Sender: No OFD packet to send [12:47:58]OFD Sender: No OFD packet to send [12:48:03]OFD Sender: No OFD packet to send [12:48:08]OFD Sender: No OFD packet to send [12:48:13]OFD Sender: No OFD packet to send [12:48:18]OFD Sender: No OFD packet to send [12:48:23]OFD Sender: No OFD packet to send [12:48:28]OFD Sender: No OFD packet to send [12:48:33]OFD Sender: No OFD packet to send [12:48:38]OFD Sender: No OFD packet to send [12:48:43]OFD Sender: No OFD packet to send [12:48:48]OFD Sender: No OFD packet to send [12:48:53]OFD Sender: No OFD packet to send [12:48:58]OFD Sender: No OFD packet to send [12:48:58]accept exits with 9 [12:48:58]New connection [12:48:58]New thread 3066752356 created [12:48:58]Thread 3066608996 joined [12:48:58]Waiting for new connection... [12:48:58] Sock 9.Parse request [12:48:58]Sock 9.Check first char [12:48:58]Sock 9.First char is OK [12:48:58]request: POST /json_proto HTTP/1.0 [12:48:58]Method: POST [12:48:58]URL: /json_proto [12:48:58]Method is POST - this is cgi request [12:48:58]url: /json_proto [12:48:58]query_string will be loaded in cgi processing [12:48:58]execute_cgi json_proto POST (null) [12:48:58]execute_cgi path=json_proto method=POST [12:48:58]POST find Content-Length [12:48:58]Host: 172.17.41.195:8080 [12:48:58]Content-Length: 1207 [12:48:58]Content-Type: application/json [12:48:58] [12:48:58]POST finish read [12:48:58]Found Content-Length = 1207 [12:48:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0440\u0441\u0442\u0430\u043D\u0431\u0435\u043A\u043E\u0432 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)508055\u000A18.05.2024 12:31\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 5.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 373.50\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:48:58]execute_script... [12:48:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0440\u0441\u0442\u0430\u043D\u0431\u0435\u043A\u043E\u0432 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)508055\u000A18.05.2024 12:31\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 5.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 373.50\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:48:58]POST & json_proto [12:48:58]process_json_proto [12:48:58]json parsed OK: [12:48:58]protocol is kg_v1.0 [12:48:58]action value=print_text [12:48:58]process_action print_text [12:48:58]cmd_print_text [12:48:58]ExternCall_PrintAddStr [12:48:58]wPrintStart [12:48:58]Write to MH i2c: 01 00 00 03 36 39 [12:48:58]Write i2c OK [12:48:58]MH_I2C_Read... [12:48:58]Read from MH i2c: 01 [12:48:58]MH_I2C_Read... [12:48:58]Read from MH i2c: 01 07 00 [12:48:58]MH_I2C_Read... [12:48:58]Read from MH i2c: 01 07 00 03 36 00 00 00 00 00 FF 0F 4E [12:48:58]RasterBufferAndPrint [12:48:58]line *****ТОВАРНЫЙ ЧЕК***** [12:48:58]line АЗС-91 [12:48:58]line Партнер нефть [12:48:58]line 02508201610067 [12:48:58]line Кассир : Арстанбеков Н. [12:48:58]line Счет N : (1)508055 [12:48:58]line 18.05.2024 12:31 [12:48:58]line ПРОДАЖА [12:48:58]line ТРК (МРК, ГНК): 31 [12:48:58]line Вид ГСМ : 2710194210 [12:48:58]line ДТ-К-5 [12:48:58]line 5.000 x 74.70 [12:48:58]line ИТОГ: 373.50 [12:48:58]line Тип оплаты: Талоны: Топливная Карта [12:48:58]line 02750 [12:48:58]line ______________________ [12:48:58]line (подпись) [12:48:58]written 0, free lines is 4095 [12:48:59]Write to MH i2c: 01 00 00 17 36 4D [12:48:59]Write i2c OK [12:48:59]MH_I2C_Read... [12:48:59]Read from MH i2c: 01 [12:48:59]MH_I2C_Read... [12:48:59]Read from MH i2c: 01 07 00 [12:48:59]MH_I2C_Read... [12:48:59]Read from MH i2c: 01 07 00 17 36 00 00 00 00 00 0E 0E 70 [12:48:59]RasterBufferAndPrint [12:48:59]line [12:48:59]line [12:48:59]line [12:48:59]line [12:48:59]line [12:48:59]written 0, free lines is 3600 [12:48:59]MH_Cut [12:48:59]Write to MH i2c: D1 01 00 1E 36 01 26 [12:48:59]Write i2c OK [12:48:59]MH_I2C_Read... [12:48:59]Read from MH i2c: D1 [12:48:59]MH_I2C_Read... [12:48:59]Read from MH i2c: D1 01 00 [12:48:59]MH_I2C_Read... [12:48:59]Read from MH i2c: D1 01 00 1E 36 00 25 [12:48:59]Write to MH i2c: 01 00 00 1F 36 55 [12:48:59]Write i2c OK [12:48:59]MH_I2C_Read... [12:48:59]*** Cut start [12:48:59]*** Purtial cut [12:48:59]*** Stage 1: CUTSNS_PIN = 1 [12:49:00]Read from MH i2c: 01 [12:49:00]MH_I2C_Read... [12:49:00]*** Stop cut motor [12:49:00]*** Cut end [12:49:00]Read from MH i2c: 01 07 00 [12:49:00]MH_I2C_Read... [12:49:00]Read from MH i2c: 01 07 00 1F 36 00 00 00 00 00 FF 0F 6A [12:49:00]process_action print_text done [12:49:00]requested_data is exist [12:49:00]produce_requested_data [12:49:00]requested_item fm.sn is exist - process it [12:49:00]wFMCommunicate request_size=4 [12:49:00]MH_SAM_APDU [12:49:00]CAPDU: 80 11 00 00 [12:49:00]Write to MH i2c: E2 08 00 20 36 80 11 00 00 00 00 00 00 D0 [12:49:00]Write i2c OK [12:49:00]MH_I2C_Read... [12:49:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:49:00]Read from MH i2c: E2 [12:49:00]MH_I2C_Read... [12:49:00]Read from MH i2c: E2 17 00 [12:49:00]MH_I2C_Read... [12:49:00]Read from MH i2c: E2 17 00 20 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 26 [12:49:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [12:49:00]wFMCommunicate OK [12:49:00]requested_item fd.num is exist - process it [12:49:00]SAM_PROTO_GetFieldsCounters [12:49:00]wFMCommunicate request_size=4 [12:49:00]MH_SAM_APDU [12:49:00]CAPDU: 80 13 00 00 [12:49:00]Write to MH i2c: E2 08 00 21 36 80 13 00 00 00 00 00 00 D3 [12:49:00]Write i2c OK [12:49:00]MH_I2C_Read... [12:49:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:49:00]Read from MH i2c: E2 [12:49:00]MH_I2C_Read... [12:49:00]Read from MH i2c: E2 62 00 [12:49:00]MH_I2C_Read... [12:49:00]Read from MH i2c: E2 62 00 21 36 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 F2 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 1F [12:49:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 F2 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:49:00]wFMCommunicate OK [12:49:00]SAM_PROTO_GetFieldsCounters done [12:49:00]requested_item shift.num is exist - process it [12:49:00]requested_item shift.opened is exist - process it [12:49:00]req_shift_opened [12:49:00]FM_GetShiftState [12:49:00]SAM_PROTO_GetShiftState [12:49:00]wFMCommunicate request_size=4 [12:49:00]MH_SAM_APDU [12:49:00]CAPDU: 80 13 01 00 [12:49:00]Write to MH i2c: E2 08 00 22 36 80 13 01 00 00 00 00 00 D5 [12:49:00]Write i2c OK [12:49:00]MH_I2C_Read... [12:49:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:49:00]Read from MH i2c: E2 [12:49:00]MH_I2C_Read... [12:49:00]Read from MH i2c: E2 0E 00 [12:49:00]MH_I2C_Read... [12:49:00]Read from MH i2c: E2 0E 00 22 36 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 3C [12:49:00]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [12:49:00]wFMCommunicate OK [12:49:00]SAM_PROTO_GetShiftState done [12:49:00]FM_GetShiftState done [12:49:00]req_shift_opened done [12:49:00]requested_item shift.open_date is exist - process it [12:49:00]req_shift_open_date [12:49:00]req_shift_open_date done [12:49:00]produce_requested_data done [12:49:00]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67826,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [12:49:00]process_action_free print_text [12:49:00]json_value_free [12:49:00]json_value_free done [12:49:00]process_json_proto returns [12:49:00]Send response to host [12:49:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67826,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [12:49:00]free response buf [12:49:00]execute_script done [12:49:00]execute_script returns [12:49:00]free content buf [12:49:00]Sock 9.Close socket [12:49:00]Sock 9.Thread stoped [12:49:03]OFD Sender: No OFD packet to send [12:49:08]OFD Sender: No OFD packet to send [12:49:13]OFD Sender: No OFD packet to send [12:49:18]OFD Sender: No OFD packet to send [12:49:23]OFD Sender: No OFD packet to send [12:49:28]OFD Sender: No OFD packet to send [12:49:33]OFD Sender: No OFD packet to send [12:49:38]OFD Sender: No OFD packet to send [12:49:43]OFD Sender: No OFD packet to send [12:49:48]OFD Sender: No OFD packet to send [12:49:53]OFD Sender: No OFD packet to send [12:49:55]accept exits with 7 [12:49:55]New connection [12:49:55]New thread 3066608996 created [12:49:55]Thread 3066752356 joined [12:49:55]Waiting for new connection... [12:49:55] Sock 7.Parse request [12:49:55]Sock 7.Check first char [12:49:55]Sock 7.First char is OK [12:49:55]request: POST /json_proto HTTP/1.0 [12:49:55]Method: POST [12:49:55]URL: /json_proto [12:49:55]Method is POST - this is cgi request [12:49:55]url: /json_proto [12:49:55]query_string will be loaded in cgi processing [12:49:55]execute_cgi json_proto POST (null) [12:49:55]execute_cgi path=json_proto method=POST [12:49:55]POST find Content-Length [12:49:55]Host: 172.17.41.195:8080 [12:49:55]Content-Length: 1209 [12:49:55]Content-Type: application/json [12:49:55] [12:49:55]POST finish read [12:49:55]Found Content-Length = 1209 [12:49:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0440\u0441\u0442\u0430\u043D\u0431\u0435\u043A\u043E\u0432 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)508054\u000A18.05.2024 12:32\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 20.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 1494.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:49:55]execute_script... [12:49:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0440\u0441\u0442\u0430\u043D\u0431\u0435\u043A\u043E\u0432 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)508054\u000A18.05.2024 12:32\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 20.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 1494.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:49:55]POST & json_proto [12:49:55]process_json_proto [12:49:55]json parsed OK: [12:49:55]protocol is kg_v1.0 [12:49:55]action value=print_text [12:49:55]process_action print_text [12:49:55]cmd_print_text [12:49:55]ExternCall_PrintAddStr [12:49:55]wPrintStart [12:49:55]Write to MH i2c: 01 00 00 23 36 59 [12:49:55]Write i2c OK [12:49:55]MH_I2C_Read... [12:49:55]Read from MH i2c: 01 [12:49:55]MH_I2C_Read... [12:49:55]Read from MH i2c: 01 07 00 [12:49:55]MH_I2C_Read... [12:49:55]Read from MH i2c: 01 07 00 23 36 00 00 00 00 00 FF 0F 6E [12:49:55]RasterBufferAndPrint [12:49:55]line *****ТОВАРНЫЙ ЧЕК***** [12:49:55]line АЗС-91 [12:49:55]line Партнер нефть [12:49:55]line 02508201610067 [12:49:55]line Кассир : Арстанбеков Н. [12:49:55]line Счет N : (1)508054 [12:49:55]line 18.05.2024 12:32 [12:49:55]line ПРОДАЖА [12:49:55]line ТРК (МРК, ГНК): 11 [12:49:55]line Вид ГСМ : 2710194210 [12:49:55]line ДТ-К-5 [12:49:55]line 20.000 x 74.70 [12:49:55]line ИТОГ: 1494.00 [12:49:55]line Тип оплаты: Талоны: Топливная Карта [12:49:55]line 02750 [12:49:55]line ______________________ [12:49:55]line (подпись) [12:49:55]written 0, free lines is 4095 [12:49:55]Write to MH i2c: 01 00 00 37 36 6D [12:49:55]Write i2c OK [12:49:55]MH_I2C_Read... [12:49:55]Read from MH i2c: 01 [12:49:55]MH_I2C_Read... [12:49:55]Read from MH i2c: 01 07 00 [12:49:55]MH_I2C_Read... [12:49:55]Read from MH i2c: 01 07 00 37 36 00 00 00 00 00 10 0E 92 [12:49:55]RasterBufferAndPrint [12:49:55]line [12:49:55]line [12:49:55]line [12:49:55]line [12:49:55]line [12:49:55]written 0, free lines is 3601 [12:49:55]MH_Cut [12:49:55]Write to MH i2c: D1 01 00 3E 36 01 46 [12:49:55]Write i2c OK [12:49:55]MH_I2C_Read... [12:49:55]Read from MH i2c: D1 [12:49:55]MH_I2C_Read... [12:49:55]Read from MH i2c: D1 01 00 [12:49:55]MH_I2C_Read... [12:49:55]Read from MH i2c: D1 01 00 3E 36 00 45 [12:49:55]Write to MH i2c: 01 00 00 3F 36 75 [12:49:55]Write i2c OK [12:49:55]MH_I2C_Read... [12:49:55]*** Cut start [12:49:55]*** Purtial cut [12:49:55]*** Stage 1: CUTSNS_PIN = 1 [12:49:56]Read from MH i2c: 01 [12:49:56]MH_I2C_Read... [12:49:56]*** Stop cut motor [12:49:56]*** Cut end [12:49:56]Read from MH i2c: 01 07 00 [12:49:56]MH_I2C_Read... [12:49:56]Read from MH i2c: 01 07 00 3F 36 00 00 00 00 00 FF 0F 8A [12:49:56]process_action print_text done [12:49:56]requested_data is exist [12:49:56]produce_requested_data [12:49:56]requested_item fm.sn is exist - process it [12:49:56]wFMCommunicate request_size=4 [12:49:56]MH_SAM_APDU [12:49:56]CAPDU: 80 11 00 00 [12:49:56]Write to MH i2c: E2 08 00 40 36 80 11 00 00 00 00 00 00 F0 [12:49:56]Write i2c OK [12:49:56]MH_I2C_Read... [12:49:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:49:56]Read from MH i2c: E2 [12:49:56]MH_I2C_Read... [12:49:56]Read from MH i2c: E2 17 00 [12:49:56]MH_I2C_Read... [12:49:56]Read from MH i2c: E2 17 00 40 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 46 [12:49:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [12:49:56]wFMCommunicate OK [12:49:56]requested_item fd.num is exist - process it [12:49:56]SAM_PROTO_GetFieldsCounters [12:49:56]wFMCommunicate request_size=4 [12:49:56]MH_SAM_APDU [12:49:56]CAPDU: 80 13 00 00 [12:49:56]Write to MH i2c: E2 08 00 41 36 80 13 00 00 00 00 00 00 F3 [12:49:56]Write i2c OK [12:49:56]MH_I2C_Read... [12:49:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:49:56]Read from MH i2c: E2 [12:49:56]MH_I2C_Read... [12:49:56]Read from MH i2c: E2 62 00 [12:49:56]MH_I2C_Read... [12:49:56]Read from MH i2c: E2 62 00 41 36 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 F2 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 3F [12:49:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 F2 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:49:56]wFMCommunicate OK [12:49:56]SAM_PROTO_GetFieldsCounters done [12:49:56]requested_item shift.num is exist - process it [12:49:56]requested_item shift.opened is exist - process it [12:49:56]req_shift_opened [12:49:56]FM_GetShiftState [12:49:56]SAM_PROTO_GetShiftState [12:49:56]wFMCommunicate request_size=4 [12:49:56]MH_SAM_APDU [12:49:56]CAPDU: 80 13 01 00 [12:49:56]Write to MH i2c: E2 08 00 42 36 80 13 01 00 00 00 00 00 F5 [12:49:56]Write i2c OK [12:49:56]MH_I2C_Read... [12:49:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:49:56]Read from MH i2c: E2 [12:49:56]MH_I2C_Read... [12:49:56]Read from MH i2c: E2 0E 00 [12:49:56]MH_I2C_Read... [12:49:56]Read from MH i2c: E2 0E 00 42 36 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 5C [12:49:56]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [12:49:56]wFMCommunicate OK [12:49:56]SAM_PROTO_GetShiftState done [12:49:56]FM_GetShiftState done [12:49:56]req_shift_opened done [12:49:56]requested_item shift.open_date is exist - process it [12:49:56]req_shift_open_date [12:49:56]req_shift_open_date done [12:49:56]produce_requested_data done [12:49:56]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67826,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [12:49:56]process_action_free print_text [12:49:56]json_value_free [12:49:56]json_value_free done [12:49:56]process_json_proto returns [12:49:56]Send response to host [12:49:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67826,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [12:49:56]free response buf [12:49:56]execute_script done [12:49:56]execute_script returns [12:49:56]free content buf [12:49:56]Sock 7.Close socket [12:49:56]Sock 7.Thread stoped [12:49:58]OFD Sender: No OFD packet to send [12:50:03]OFD Sender: No OFD packet to send [12:50:08]OFD Sender: No OFD packet to send [12:50:13]OFD Sender: No OFD packet to send [12:50:18]OFD Sender: No OFD packet to send [12:50:23]OFD Sender: No OFD packet to send [12:50:28]OFD Sender: No OFD packet to send [12:50:33]OFD Sender: No OFD packet to send [12:50:38]OFD Sender: No OFD packet to send [12:50:43]OFD Sender: No OFD packet to send [12:50:48]OFD Sender: No OFD packet to send [12:50:53]OFD Sender: No OFD packet to send [12:50:58]OFD Sender: No OFD packet to send [12:51:03]OFD Sender: No OFD packet to send [12:51:08]OFD Sender: No OFD packet to send [12:51:13]OFD Sender: No OFD packet to send [12:51:18]OFD Sender: No OFD packet to send [12:51:23]OFD Sender: No OFD packet to send [12:51:28]OFD Sender: No OFD packet to send [12:51:33]OFD Sender: No OFD packet to send [12:51:38]OFD Sender: No OFD packet to send [12:51:43]OFD Sender: No OFD packet to send [12:51:48]OFD Sender: No OFD packet to send [12:51:53]OFD Sender: No OFD packet to send [12:51:59]OFD Sender: No OFD packet to send [12:52:04]OFD Sender: No OFD packet to send [12:52:09]OFD Sender: No OFD packet to send [12:52:14]OFD Sender: No OFD packet to send [12:52:19]OFD Sender: No OFD packet to send [12:52:24]OFD Sender: No OFD packet to send [12:52:29]OFD Sender: No OFD packet to send [12:52:34]OFD Sender: No OFD packet to send [12:52:39]OFD Sender: No OFD packet to send [12:52:44]OFD Sender: No OFD packet to send [12:52:49]OFD Sender: No OFD packet to send [12:52:54]OFD Sender: No OFD packet to send [12:52:59]OFD Sender: No OFD packet to send [12:53:04]OFD Sender: No OFD packet to send [12:53:09]OFD Sender: No OFD packet to send [12:53:14]OFD Sender: No OFD packet to send [12:53:19]OFD Sender: No OFD packet to send [12:53:24]OFD Sender: No OFD packet to send [12:53:29]OFD Sender: No OFD packet to send [12:53:34]OFD Sender: No OFD packet to send [12:53:39]OFD Sender: No OFD packet to send [12:53:44]OFD Sender: No OFD packet to send [12:53:49]OFD Sender: No OFD packet to send [12:53:54]OFD Sender: No OFD packet to send [12:53:59]OFD Sender: No OFD packet to send [12:54:04]OFD Sender: No OFD packet to send [12:54:09]OFD Sender: No OFD packet to send [12:54:14]OFD Sender: No OFD packet to send [12:54:19]OFD Sender: No OFD packet to send [12:54:24]OFD Sender: No OFD packet to send [12:54:29]OFD Sender: No OFD packet to send [12:54:34]OFD Sender: No OFD packet to send [12:54:39]OFD Sender: No OFD packet to send [12:54:44]OFD Sender: No OFD packet to send [12:54:49]OFD Sender: No OFD packet to send [12:54:54]OFD Sender: No OFD packet to send [12:54:59]OFD Sender: No OFD packet to send [12:55:04]OFD Sender: No OFD packet to send [12:55:09]OFD Sender: No OFD packet to send [12:55:14]OFD Sender: No OFD packet to send [12:55:19]OFD Sender: No OFD packet to send [12:55:24]OFD Sender: No OFD packet to send [12:55:29]OFD Sender: No OFD packet to send [12:55:34]OFD Sender: No OFD packet to send [12:55:39]OFD Sender: No OFD packet to send [12:55:44]OFD Sender: No OFD packet to send [12:55:49]OFD Sender: No OFD packet to send [12:55:54]OFD Sender: No OFD packet to send [12:55:59]OFD Sender: No OFD packet to send [12:56:04]OFD Sender: No OFD packet to send [12:56:09]OFD Sender: No OFD packet to send [12:56:14]OFD Sender: No OFD packet to send [12:56:19]OFD Sender: No OFD packet to send [12:56:24]OFD Sender: No OFD packet to send [12:56:29]OFD Sender: No OFD packet to send [12:56:34]OFD Sender: No OFD packet to send [12:56:39]OFD Sender: No OFD packet to send [12:56:44]OFD Sender: No OFD packet to send [12:56:49]OFD Sender: No OFD packet to send [12:56:54]OFD Sender: No OFD packet to send [12:56:59]OFD Sender: No OFD packet to send [12:57:04]OFD Sender: No OFD packet to send [15:42:05]ConnectInit Can't connect to host [15:42:06]OFD Sender: Processing packet 67827 [packets to send 42, broken 34] [15:42:06]ProducePacketName [15:42:06]name=ofd_packets/00067827 [15:42:06]OFD Sender: To server: pG, [15:42:06]CommunicateWithHost lk.salyk.kg:30040 [15:42:06]ConnectInit lk.salyk.kg [15:42:08]Connected sock=7 [15:42:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 01 00 00 3D 16 08 01 64 00 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 D8 08 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 08 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 1C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D8 08 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 37 A9 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 F3 08 01 00 35 04 06 00 82 13 34 E7 31 45 BF F8 59 76 B4 03 37 9B [15:42:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 54 8D 47 00 72 2B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 F3 08 01 00 F4 03 04 00 24 74 48 66 B6 04 01 00 00 FB 5C 27 ED 48 47 6B 58 [15:42:08]CommunicateWithHost err = 0 [15:42:08]CheckOFDResponse [15:42:08]1017 (14) - 77093643461234 [15:42:08]1041 (16) - 0000000000871829 [15:42:08]1040 (4) - 67827 [15:42:08]1012 (4) - 18.05.2024 09:25 [15:42:08]1206 (1) - 0 [15:42:08]OFD Sender: Remove packet 67827 [15:42:08]ProducePacketName [15:42:08]name=ofd_packets/00067827 [15:42:08]NVStorageDeleteData [15:42:09]OFD Sender: Processing packet 67828 [packets to send 41, broken 34] [15:42:09]ProducePacketName [15:42:09]name=ofd_packets/00067828 [15:42:09]OFD Sender: To server: pG, [15:42:09]CommunicateWithHost lk.salyk.kg:30040 [15:42:09]ConnectInit lk.salyk.kg [15:42:09]Connected sock=7 [15:42:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 01 00 00 E1 BD 08 01 59 59 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 19 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 19 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 F6 A9 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 F4 08 01 00 35 04 06 00 47 81 F8 BF 6F 4F C5 0C E3 86 9C 54 EC 17 [15:42:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 98 22 47 00 1F BB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 F4 08 01 00 F4 03 04 00 25 74 48 66 B6 04 01 00 00 BE 20 47 6E DC 83 59 69 [15:42:09]CommunicateWithHost err = 0 [15:42:09]CheckOFDResponse [15:42:09]1017 (14) - 77093643461234 [15:42:09]1041 (16) - 0000000000871829 [15:42:09]1040 (4) - 67828 [15:42:09]1012 (4) - 18.05.2024 09:25 [15:42:09]1206 (1) - 0 [15:42:09]OFD Sender: Remove packet 67828 [15:42:09]ProducePacketName [15:42:09]name=ofd_packets/00067828 [15:42:09]NVStorageDeleteData [15:42:10]OFD Sender: Processing packet 67829 [packets to send 40, broken 34] [15:42:10]ProducePacketName [15:42:10]name=ofd_packets/00067829 [15:42:10]OFD Sender: To server: pG, [15:42:10]CommunicateWithHost lk.salyk.kg:30040 [15:42:10]ConnectInit lk.salyk.kg [15:42:10]Connected sock=7 [15:42:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 B8 32 07 01 F8 52 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 84 3A 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E2 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E2 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 E9 AA 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 F5 08 01 00 35 04 06 00 ED 17 80 8D FE 25 CA 87 50 70 48 B7 56 B1 [15:42:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 FE 59 47 00 D3 16 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 F5 08 01 00 F4 03 04 00 26 74 48 66 B6 04 01 00 00 FD 0F D5 61 77 D5 00 9F [15:42:10]CommunicateWithHost err = 0 [15:42:10]CheckOFDResponse [15:42:10]1017 (14) - 77093643461234 [15:42:10]1041 (16) - 0000000000871829 [15:42:10]1040 (4) - 67829 [15:42:10]1012 (4) - 18.05.2024 09:25 [15:42:10]1206 (1) - 0 [15:42:10]OFD Sender: Remove packet 67829 [15:42:10]ProducePacketName [15:42:10]name=ofd_packets/00067829 [15:42:10]NVStorageDeleteData [15:42:10]OFD Sender: Processing packet 67830 [packets to send 39, broken 34] [15:42:10]ProducePacketName [15:42:10]name=ofd_packets/00067830 [15:42:10]OFD Sender: To server: pG, [15:42:10]CommunicateWithHost lk.salyk.kg:30040 [15:42:10]ConnectInit lk.salyk.kg [15:42:11]Connected sock=7 [15:42:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 01 00 00 51 91 08 01 F1 DD 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 18 2E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 84 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 84 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 8C B0 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 F6 08 01 00 35 04 06 00 AB 24 36 BF 9E 7E 98 FE 62 2B 0A CA CD AE [15:42:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 73 14 47 00 B5 40 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 F6 08 01 00 F4 03 04 00 26 74 48 66 B6 04 01 00 00 A0 7D 51 9F 5F E6 CA 35 [15:42:11]CommunicateWithHost err = 0 [15:42:11]CheckOFDResponse [15:42:11]1017 (14) - 77093643461234 [15:42:11]1041 (16) - 0000000000871829 [15:42:11]1040 (4) - 67830 [15:42:11]1012 (4) - 18.05.2024 09:25 [15:42:11]1206 (1) - 0 [15:42:11]OFD Sender: Remove packet 67830 [15:42:11]ProducePacketName [15:42:11]name=ofd_packets/00067830 [15:42:11]NVStorageDeleteData [15:42:11]OFD Sender: Processing packet 67831 [packets to send 38, broken 34] [15:42:11]ProducePacketName [15:42:11]name=ofd_packets/00067831 [15:42:11]OFD Sender: To server: pG, [15:42:11]CommunicateWithHost lk.salyk.kg:30040 [15:42:11]ConnectInit lk.salyk.kg [15:42:11]Connected sock=7 [15:42:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 16 17 07 01 B5 66 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 94 11 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 6C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6C 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 E6 BA 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 F7 08 01 00 35 04 06 00 3C 95 09 00 AE 38 A8 D2 F8 9A B3 81 EC 3D [15:42:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 D6 47 47 00 99 63 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 F7 08 01 00 F4 03 04 00 27 74 48 66 B6 04 01 00 00 9E F3 A0 01 03 71 44 18 [15:42:12]CommunicateWithHost err = 0 [15:42:12]CheckOFDResponse [15:42:12]1017 (14) - 77093643461234 [15:42:12]1041 (16) - 0000000000871829 [15:42:12]1040 (4) - 67831 [15:42:12]1012 (4) - 18.05.2024 09:25 [15:42:12]1206 (1) - 0 [15:42:12]OFD Sender: Remove packet 67831 [15:42:12]ProducePacketName [15:42:12]name=ofd_packets/00067831 [15:42:12]NVStorageDeleteData [15:42:12]OFD Sender: Processing packet 67832 [packets to send 37, broken 34] [15:42:12]ProducePacketName [15:42:12]name=ofd_packets/00067832 [15:42:12]OFD Sender: To server: pG, [15:42:12]CommunicateWithHost lk.salyk.kg:30040 [15:42:12]ConnectInit lk.salyk.kg [15:42:12]Connected sock=7 [15:42:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 01 00 00 C8 C1 08 01 D5 2B 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A5 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A5 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 AA BD 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 F8 08 01 00 35 04 06 00 40 4A D7 7C 1E FB C4 F0 77 A0 99 B9 73 46 [15:42:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 30 6E 47 00 0A 79 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 F8 08 01 00 F4 03 04 00 28 74 48 66 B6 04 01 00 00 21 C6 42 F8 CA D8 1A 13 [15:42:12]CommunicateWithHost err = 0 [15:42:12]CheckOFDResponse [15:42:12]1017 (14) - 77093643461234 [15:42:12]1041 (16) - 0000000000871829 [15:42:12]1040 (4) - 67832 [15:42:12]1012 (4) - 18.05.2024 09:26 [15:42:12]1206 (1) - 0 [15:42:12]OFD Sender: Remove packet 67832 [15:42:12]ProducePacketName [15:42:12]name=ofd_packets/00067832 [15:42:12]NVStorageDeleteData [15:42:13]OFD Sender: Processing packet 67833 [packets to send 36, broken 34] [15:42:13]ProducePacketName [15:42:13]name=ofd_packets/00067833 [15:42:13]OFD Sender: To server: pG, [15:42:13]CommunicateWithHost lk.salyk.kg:30040 [15:42:13]ConnectInit lk.salyk.kg [15:42:13]Connected sock=7 [15:42:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 6E 17 07 01 6E F1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FE 74 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 82 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 82 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 82 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 BC C3 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 F9 08 01 00 35 04 06 00 45 DB B5 84 05 68 CB 0C E0 5B 08 54 E2 9B [15:42:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 89 12 47 00 A1 CA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 F9 08 01 00 F4 03 04 00 29 74 48 66 B6 04 01 00 00 1A EB 53 E3 23 3F B2 0A [15:42:13]CommunicateWithHost err = 0 [15:42:13]CheckOFDResponse [15:42:13]1017 (14) - 77093643461234 [15:42:13]1041 (16) - 0000000000871829 [15:42:13]1040 (4) - 67833 [15:42:13]1012 (4) - 18.05.2024 09:26 [15:42:13]1206 (1) - 0 [15:42:13]OFD Sender: Remove packet 67833 [15:42:13]ProducePacketName [15:42:13]name=ofd_packets/00067833 [15:42:13]NVStorageDeleteData [15:42:14]OFD Sender: Processing packet 67834 [packets to send 35, broken 34] [15:42:14]ProducePacketName [15:42:14]name=ofd_packets/00067834 [15:42:14]OFD Sender: To server: pG, [15:42:14]CommunicateWithHost lk.salyk.kg:30040 [15:42:14]ConnectInit lk.salyk.kg [15:42:14]Connected sock=7 [15:42:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 01 00 00 E3 C2 08 01 94 AE 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 63 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 63 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 BB C5 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 FA 08 01 00 35 04 06 00 11 E8 46 77 35 7B A8 46 10 11 DD 38 01 3D [15:42:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 22 D3 47 00 78 49 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 FA 08 01 00 F4 03 04 00 2A 74 48 66 B6 04 01 00 00 88 D7 06 95 F0 8F FC 4D [15:42:14]CommunicateWithHost err = 0 [15:42:14]CheckOFDResponse [15:42:14]1017 (14) - 77093643461234 [15:42:14]1041 (16) - 0000000000871829 [15:42:14]1040 (4) - 67834 [15:42:14]1012 (4) - 18.05.2024 09:26 [15:42:14]1206 (1) - 0 [15:42:14]OFD Sender: Remove packet 67834 [15:42:14]ProducePacketName [15:42:14]name=ofd_packets/00067834 [15:42:14]NVStorageDeleteData [15:42:14]OFD Sender: No OFD packet to send [15:42:19]OFD Sender: No OFD packet to send [15:42:24]OFD Sender: No OFD packet to send [15:42:29]OFD Sender: No OFD packet to send [15:42:34]OFD Sender: No OFD packet to send [15:42:39]OFD Sender: No OFD packet to send [15:42:44]OFD Sender: No OFD packet to send [15:42:49]OFD Sender: No OFD packet to send [15:42:54]OFD Sender: No OFD packet to send [15:42:59]OFD Sender: No OFD packet to send [15:43:04]OFD Sender: No OFD packet to send [15:43:09]OFD Sender: No OFD packet to send [15:43:13]accept exits with 9 [15:43:13]New connection [15:43:13]New thread 3067202916 created [15:43:13]Thread 3067059556 joined [15:43:13]Waiting for new connection... [15:43:13] Sock 9.Parse request [15:43:13]Sock 9.Check first char [15:43:13]Sock 9.First char is OK [15:43:13]request: POST /json_proto HTTP/1.0 [15:43:13]Method: POST [15:43:13]URL: /json_proto [15:43:13]Method is POST - this is cgi request [15:43:13]url: /json_proto [15:43:13]query_string will be loaded in cgi processing [15:43:13]execute_cgi json_proto POST (null) [15:43:13]execute_cgi path=json_proto method=POST [15:43:13]POST find Content-Length [15:43:13]Host: 172.17.41.195:8080 [15:43:13]Content-Length: 1210 [15:43:13]Content-Type: application/json [15:43:13] [15:43:13]POST finish read [15:43:13]Found Content-Length = 1210 [15:43:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0440\u0441\u0442\u0430\u043D\u0431\u0435\u043A\u043E\u0432 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)508083\u000A18.05.2024 15:25\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 33\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 7.490 x 66.80\u000A\u0418\u0422\u041E\u0413: 500.33\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:43:13]execute_script... [15:43:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0440\u0441\u0442\u0430\u043D\u0431\u0435\u043A\u043E\u0432 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)508083\u000A18.05.2024 15:25\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 33\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 7.490 x 66.80\u000A\u0418\u0422\u041E\u0413: 500.33\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:43:13]POST & json_proto [15:43:13]process_json_proto [15:43:13]json parsed OK: [15:43:13]protocol is kg_v1.0 [15:43:13]action value=print_text [15:43:13]process_action print_text [15:43:13]cmd_print_text [15:43:13]ExternCall_PrintAddStr [15:43:13]wPrintStart [15:43:13]Write to MH i2c: 01 00 00 D0 04 D4 [15:43:13]Write i2c OK [15:43:13]MH_I2C_Read... [15:43:13]Read from MH i2c: 01 [15:43:13]MH_I2C_Read... [15:43:13]Read from MH i2c: 01 07 00 [15:43:13]MH_I2C_Read... [15:43:13]Read from MH i2c: 01 07 00 D0 04 00 00 00 00 00 FF 0F E9 [15:43:13]RasterBufferAndPrint [15:43:13]line *****ТОВАРНЫЙ ЧЕК***** [15:43:13]line АЗС-91 [15:43:13]line Партнер нефть [15:43:13]line 02508201610067 [15:43:13]line Кассир : Арстанбеков Н. [15:43:13]line Счет N : (1)508083 [15:43:13]line 18.05.2024 15:25 [15:43:13]line ПРОДАЖА [15:43:13]line ТРК (МРК, ГНК): 33 [15:43:13]line Вид ГСМ : 2710124130 [15:43:13]line Аи-92-К-5 [15:43:13]line 7.490 x 66.80 [15:43:13]line ИТОГ: 500.33 [15:43:13]line Тип оплаты: Талоны: Топливная Карта [15:43:13]line 02750 [15:43:13]line ______________________ [15:43:13]line (подпись) [15:43:13]written 0, free lines is 4095 [15:43:13]Write to MH i2c: 01 00 00 E4 04 E8 [15:43:13]Write i2c OK [15:43:13]MH_I2C_Read... [15:43:13]Read from MH i2c: 01 [15:43:13]MH_I2C_Read... [15:43:13]Read from MH i2c: 01 07 00 [15:43:13]MH_I2C_Read... [15:43:13]Read from MH i2c: 01 07 00 E4 04 00 00 00 00 00 10 0E 0D [15:43:13]RasterBufferAndPrint [15:43:13]line [15:43:13]line [15:43:13]line [15:43:13]line [15:43:13]line [15:43:13]written 0, free lines is 3602 [15:43:13]MH_Cut [15:43:13]Write to MH i2c: D1 01 00 EB 04 01 C1 [15:43:13]Write i2c OK [15:43:13]MH_I2C_Read... [15:43:13]Read from MH i2c: D1 [15:43:13]MH_I2C_Read... [15:43:13]Read from MH i2c: D1 01 00 [15:43:13]MH_I2C_Read... [15:43:13]Read from MH i2c: D1 01 00 EB 04 00 C0 [15:43:13]Write to MH i2c: 01 00 00 EC 04 F0 [15:43:13]Write i2c OK [15:43:13]MH_I2C_Read... [15:43:14]*** Cut start [15:43:14]*** Purtial cut [15:43:14]*** CUTSNS_PIN = 0 [15:43:14]*** Stage 1: CUTSNS_PIN = 1 [15:43:14]OFD Sender: No OFD packet to send [15:43:16]Read from MH i2c: 01 [15:43:16]MH_I2C_Read... [15:43:16]Read from MH i2c: 01 07 00 [15:43:16]MH_I2C_Read... [15:43:16]*** Stop cut motor [15:43:16]*** Cut end [15:43:16]Read from MH i2c: 01 07 00 EC 04 00 00 00 00 00 FF 0F 05 [15:43:16]process_action print_text done [15:43:16]requested_data is exist [15:43:16]produce_requested_data [15:43:16]requested_item fm.sn is exist - process it [15:43:16]wFMCommunicate request_size=4 [15:43:16]MH_SAM_APDU [15:43:16]CAPDU: 80 11 00 00 [15:43:16]Write to MH i2c: E2 08 00 ED 04 80 11 00 00 00 00 00 00 6B [15:43:16]Write i2c OK [15:43:16]MH_I2C_Read... [15:43:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:43:16]Read from MH i2c: E2 [15:43:16]MH_I2C_Read... [15:43:16]Read from MH i2c: E2 17 00 [15:43:16]MH_I2C_Read... [15:43:16]Read from MH i2c: E2 17 00 ED 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 C1 [15:43:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [15:43:16]wFMCommunicate OK [15:43:16]requested_item fd.num is exist - process it [15:43:16]SAM_PROTO_GetFieldsCounters [15:43:16]wFMCommunicate request_size=4 [15:43:16]MH_SAM_APDU [15:43:16]CAPDU: 80 13 00 00 [15:43:16]Write to MH i2c: E2 08 00 EE 04 80 13 00 00 00 00 00 00 6E [15:43:16]Write i2c OK [15:43:16]MH_I2C_Read... [15:43:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:43:16]Read from MH i2c: E2 [15:43:16]MH_I2C_Read... [15:43:16]Read from MH i2c: E2 62 00 [15:43:16]MH_I2C_Read... [15:43:16]Read from MH i2c: E2 62 00 EE 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 FA 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 DA [15:43:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 FA 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:43:16]wFMCommunicate OK [15:43:16]SAM_PROTO_GetFieldsCounters done [15:43:16]requested_item shift.num is exist - process it [15:43:16]requested_item shift.opened is exist - process it [15:43:16]req_shift_opened [15:43:16]FM_GetShiftState [15:43:16]SAM_PROTO_GetShiftState [15:43:16]wFMCommunicate request_size=4 [15:43:16]MH_SAM_APDU [15:43:16]CAPDU: 80 13 01 00 [15:43:16]Write to MH i2c: E2 08 00 EF 04 80 13 01 00 00 00 00 00 70 [15:43:16]Write i2c OK [15:43:16]MH_I2C_Read... [15:43:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:43:16]Read from MH i2c: E2 [15:43:16]MH_I2C_Read... [15:43:16]Read from MH i2c: E2 0E 00 [15:43:16]MH_I2C_Read... [15:43:16]Read from MH i2c: E2 0E 00 EF 04 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 D7 [15:43:16]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [15:43:16]wFMCommunicate OK [15:43:16]SAM_PROTO_GetShiftState done [15:43:16]FM_GetShiftState done [15:43:16]req_shift_opened done [15:43:16]requested_item shift.open_date is exist - process it [15:43:16]req_shift_open_date [15:43:16]req_shift_open_date done [15:43:16]produce_requested_data done [15:43:16]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67834,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [15:43:16]process_action_free print_text [15:43:16]json_value_free [15:43:16]json_value_free done [15:43:16]process_json_proto returns [15:43:16]Send response to host [15:43:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67834,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [15:43:16]free response buf [15:43:16]execute_script done [15:43:16]execute_script returns [15:43:16]free content buf [15:43:16]Sock 9.Close socket [15:43:16]Sock 9.Thread stoped [15:43:20]OFD Sender: No OFD packet to send [15:43:25]OFD Sender: No OFD packet to send [15:43:30]OFD Sender: No OFD packet to send [15:43:30]accept exits with 7 [15:43:30]New connection [15:43:30]New thread 3067059556 created [15:43:30]Thread 3067202916 joined [15:43:30]Waiting for new connection... [15:43:30] Sock 7.Parse request [15:43:30]Sock 7.Check first char [15:43:30]Sock 7.First char is OK [15:43:30]request: POST /json_proto HTTP/1.0 [15:43:30]Method: POST [15:43:30]URL: /json_proto [15:43:30]Method is POST - this is cgi request [15:43:30]url: /json_proto [15:43:30]query_string will be loaded in cgi processing [15:43:30]execute_cgi json_proto POST (null) [15:43:30]execute_cgi path=json_proto method=POST [15:43:30]POST find Content-Length [15:43:30]Host: 172.17.41.195:8080 [15:43:30]Content-Length: 1209 [15:43:30]Content-Type: application/json [15:43:30] [15:43:30]POST finish read [15:43:30]Found Content-Length = 1209 [15:43:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0440\u0441\u0442\u0430\u043D\u0431\u0435\u043A\u043E\u0432 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)508084\u000A18.05.2024 15:25\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 41\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 13.390 x 74.70\u000A\u0418\u0422\u041E\u0413: 1000.23\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:43:30]execute_script... [15:43:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0440\u0441\u0442\u0430\u043D\u0431\u0435\u043A\u043E\u0432 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)508084\u000A18.05.2024 15:25\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 41\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 13.390 x 74.70\u000A\u0418\u0422\u041E\u0413: 1000.23\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:43:30]POST & json_proto [15:43:30]process_json_proto [15:43:30]json parsed OK: [15:43:30]protocol is kg_v1.0 [15:43:30]action value=print_text [15:43:30]process_action print_text [15:43:30]cmd_print_text [15:43:30]ExternCall_PrintAddStr [15:43:30]wPrintStart [15:43:30]Write to MH i2c: 01 00 00 F0 04 F4 [15:43:30]Write i2c OK [15:43:30]MH_I2C_Read... [15:43:30]Read from MH i2c: 01 [15:43:30]MH_I2C_Read... [15:43:30]Read from MH i2c: 01 07 00 [15:43:30]MH_I2C_Read... [15:43:30]Read from MH i2c: 01 07 00 F0 04 00 00 00 00 00 FF 0F 09 [15:43:30]RasterBufferAndPrint [15:43:30]line *****ТОВАРНЫЙ ЧЕК***** [15:43:30]line АЗС-91 [15:43:30]line Партнер нефть [15:43:30]line 02508201610067 [15:43:30]line Кассир : Арстанбеков Н. [15:43:30]line Счет N : (1)508084 [15:43:30]line 18.05.2024 15:25 [15:43:30]line ПРОДАЖА [15:43:30]line ТРК (МРК, ГНК): 41 [15:43:30]line Вид ГСМ : 2710194210 [15:43:30]line ДТ-К-5 [15:43:30]line 13.390 x 74.70 [15:43:30]line ИТОГ: 1000.23 [15:43:30]line Тип оплаты: Талоны: Топливная Карта [15:43:30]line 02750 [15:43:30]line ______________________ [15:43:30]line (подпись) [15:43:30]written 0, free lines is 4095 [15:43:31]Write to MH i2c: 01 00 00 04 05 09 [15:43:31]Write i2c OK [15:43:31]MH_I2C_Read... [15:43:31]Read from MH i2c: 01 [15:43:31]MH_I2C_Read... [15:43:31]Read from MH i2c: 01 07 00 [15:43:31]MH_I2C_Read... [15:43:31]Read from MH i2c: 01 07 00 04 05 00 00 00 00 00 0F 0E 2D [15:43:31]RasterBufferAndPrint [15:43:31]line [15:43:31]line [15:43:31]line [15:43:31]line [15:43:31]line [15:43:31]written 0, free lines is 3600 [15:43:31]MH_Cut [15:43:31]Write to MH i2c: D1 01 00 0B 05 01 E2 [15:43:31]Write i2c OK [15:43:31]MH_I2C_Read... [15:43:31]Read from MH i2c: D1 [15:43:31]MH_I2C_Read... [15:43:31]Read from MH i2c: D1 01 00 [15:43:31]MH_I2C_Read... [15:43:31]Read from MH i2c: D1 01 00 0B 05 00 E1 [15:43:31]Write to MH i2c: 01 00 00 0C 05 11 [15:43:31]Write i2c OK [15:43:31]MH_I2C_Read... [15:43:31]*** Cut start [15:43:31]*** Purtial cut [15:43:31]*** Stage 1: CUTSNS_PIN = 1 [15:43:32]Read from MH i2c: 01 [15:43:32]MH_I2C_Read... [15:43:32]*** Stop cut motor [15:43:32]*** Cut end [15:43:32]Read from MH i2c: 01 07 00 [15:43:32]MH_I2C_Read... [15:43:32]Read from MH i2c: 01 07 00 0C 05 00 00 00 00 00 FF 0F 26 [15:43:32]process_action print_text done [15:43:32]requested_data is exist [15:43:32]produce_requested_data [15:43:32]requested_item fm.sn is exist - process it [15:43:32]wFMCommunicate request_size=4 [15:43:32]MH_SAM_APDU [15:43:32]CAPDU: 80 11 00 00 [15:43:32]Write to MH i2c: E2 08 00 0D 05 80 11 00 00 00 00 00 00 8C [15:43:32]Write i2c OK [15:43:32]MH_I2C_Read... [15:43:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:43:32]Read from MH i2c: E2 [15:43:32]MH_I2C_Read... [15:43:32]Read from MH i2c: E2 17 00 [15:43:32]MH_I2C_Read... [15:43:32]Read from MH i2c: E2 17 00 0D 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 E2 [15:43:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [15:43:32]wFMCommunicate OK [15:43:32]requested_item fd.num is exist - process it [15:43:32]SAM_PROTO_GetFieldsCounters [15:43:32]wFMCommunicate request_size=4 [15:43:32]MH_SAM_APDU [15:43:32]CAPDU: 80 13 00 00 [15:43:32]Write to MH i2c: E2 08 00 0E 05 80 13 00 00 00 00 00 00 8F [15:43:32]Write i2c OK [15:43:32]MH_I2C_Read... [15:43:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:43:32]Read from MH i2c: E2 [15:43:32]MH_I2C_Read... [15:43:32]Read from MH i2c: E2 62 00 [15:43:32]MH_I2C_Read... [15:43:32]Read from MH i2c: E2 62 00 0E 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 FA 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 FB [15:43:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 FA 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:43:32]wFMCommunicate OK [15:43:32]SAM_PROTO_GetFieldsCounters done [15:43:32]requested_item shift.num is exist - process it [15:43:32]requested_item shift.opened is exist - process it [15:43:32]req_shift_opened [15:43:32]FM_GetShiftState [15:43:32]SAM_PROTO_GetShiftState [15:43:32]wFMCommunicate request_size=4 [15:43:32]MH_SAM_APDU [15:43:32]CAPDU: 80 13 01 00 [15:43:32]Write to MH i2c: E2 08 00 0F 05 80 13 01 00 00 00 00 00 91 [15:43:32]Write i2c OK [15:43:32]MH_I2C_Read... [15:43:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:43:32]Read from MH i2c: E2 [15:43:32]MH_I2C_Read... [15:43:32]Read from MH i2c: E2 0E 00 [15:43:32]MH_I2C_Read... [15:43:32]Read from MH i2c: E2 0E 00 0F 05 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 F8 [15:43:32]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [15:43:32]wFMCommunicate OK [15:43:32]SAM_PROTO_GetShiftState done [15:43:32]FM_GetShiftState done [15:43:32]req_shift_opened done [15:43:32]requested_item shift.open_date is exist - process it [15:43:32]req_shift_open_date [15:43:32]req_shift_open_date done [15:43:32]produce_requested_data done [15:43:32]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67834,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [15:43:32]process_action_free print_text [15:43:32]json_value_free [15:43:32]json_value_free done [15:43:32]process_json_proto returns [15:43:32]Send response to host [15:43:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67834,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [15:43:32]free response buf [15:43:32]execute_script done [15:43:32]execute_script returns [15:43:32]free content buf [15:43:32]Sock 7.Close socket [15:43:32]Sock 7.Thread stoped [15:43:35]OFD Sender: No OFD packet to send [15:43:40]OFD Sender: No OFD packet to send [15:43:45]OFD Sender: No OFD packet to send [15:43:50]OFD Sender: No OFD packet to send [15:43:55]OFD Sender: No OFD packet to send [15:44:00]OFD Sender: No OFD packet to send [15:44:05]OFD Sender: No OFD packet to send [15:44:10]OFD Sender: No OFD packet to send [15:44:15]OFD Sender: No OFD packet to send [15:44:20]OFD Sender: No OFD packet to send [15:44:25]OFD Sender: No OFD packet to send [15:44:30]OFD Sender: No OFD packet to send [15:44:35]OFD Sender: No OFD packet to send [15:44:40]OFD Sender: No OFD packet to send [15:44:45]OFD Sender: No OFD packet to send [15:44:50]OFD Sender: No OFD packet to send [15:44:55]OFD Sender: No OFD packet to send [15:45:00]OFD Sender: No OFD packet to send [15:45:05]OFD Sender: No OFD packet to send [15:45:10]OFD Sender: No OFD packet to send [15:45:15]OFD Sender: No OFD packet to send [15:45:20]OFD Sender: No OFD packet to send [15:45:25]OFD Sender: No OFD packet to send [15:45:30]OFD Sender: No OFD packet to send [15:45:35]OFD Sender: No OFD packet to send [15:45:40]OFD Sender: No OFD packet to send [15:45:45]OFD Sender: No OFD packet to send [15:45:50]OFD Sender: No OFD packet to send [15:45:55]OFD Sender: No OFD packet to send [15:46:00]OFD Sender: No OFD packet to send [15:46:05]OFD Sender: No OFD packet to send [15:46:10]OFD Sender: No OFD packet to send [15:46:15]OFD Sender: No OFD packet to send [15:46:20]OFD Sender: No OFD packet to send [15:46:25]OFD Sender: No OFD packet to send [15:46:30]OFD Sender: No OFD packet to send [15:46:35]OFD Sender: No OFD packet to send [15:46:40]OFD Sender: No OFD packet to send [15:46:45]OFD Sender: No OFD packet to send [15:46:50]OFD Sender: No OFD packet to send [15:46:55]OFD Sender: No OFD packet to send [15:47:00]OFD Sender: No OFD packet to send [15:47:05]OFD Sender: No OFD packet to send [15:47:10]OFD Sender: No OFD packet to send [15:47:15]OFD Sender: No OFD packet to send [15:47:20]OFD Sender: No OFD packet to send [15:47:25]OFD Sender: No OFD packet to send [15:47:30]OFD Sender: No OFD packet to send [15:47:35]OFD Sender: No OFD packet to send [15:47:40]OFD Sender: No OFD packet to send [15:47:45]OFD Sender: No OFD packet to send [15:47:50]OFD Sender: No OFD packet to send [15:47:55]OFD Sender: No OFD packet to send [15:48:00]OFD Sender: No OFD packet to send [15:48:05]OFD Sender: No OFD packet to send [15:48:10]OFD Sender: No OFD packet to send [15:48:15]OFD Sender: No OFD packet to send [15:48:20]OFD Sender: No OFD packet to send [15:48:25]OFD Sender: No OFD packet to send [15:48:30]OFD Sender: No OFD packet to send [15:48:35]OFD Sender: No OFD packet to send [15:48:40]OFD Sender: No OFD packet to send [15:48:45]OFD Sender: No OFD packet to send [15:48:50]OFD Sender: No OFD packet to send [15:48:55]OFD Sender: No OFD packet to send [15:49:00]OFD Sender: No OFD packet to send [15:49:05]OFD Sender: No OFD packet to send [15:49:10]OFD Sender: No OFD packet to send [15:49:15]OFD Sender: No OFD packet to send [15:49:20]OFD Sender: No OFD packet to send [15:49:25]OFD Sender: No OFD packet to send [15:49:30]OFD Sender: No OFD packet to send [15:49:35]OFD Sender: No OFD packet to send [15:49:40]OFD Sender: No OFD packet to send [15:49:45]OFD Sender: No OFD packet to send [15:49:50]OFD Sender: No OFD packet to send [15:49:55]OFD Sender: No OFD packet to send [15:50:00]OFD Sender: No OFD packet to send [15:50:05]OFD Sender: No OFD packet to send [15:50:10]OFD Sender: No OFD packet to send [15:50:15]OFD Sender: No OFD packet to send [15:50:20]OFD Sender: No OFD packet to send [15:50:25]OFD Sender: No OFD packet to send [15:50:30]OFD Sender: No OFD packet to send [15:50:35]OFD Sender: No OFD packet to send [15:50:40]OFD Sender: No OFD packet to send [15:50:45]OFD Sender: No OFD packet to send [15:50:50]OFD Sender: No OFD packet to send [15:50:55]OFD Sender: No OFD packet to send [15:51:00]OFD Sender: No OFD packet to send [15:51:05]OFD Sender: No OFD packet to send [15:51:07]accept exits with 9 [15:51:07]New connection [15:51:07]New thread 3067202916 created [15:51:07]Thread 3067059556 joined [15:51:07]Waiting for new connection... [15:51:07] Sock 9.Parse request [15:51:07]Sock 9.Check first char [15:51:07]Sock 9.First char is OK [15:51:07]request: POST /json_proto HTTP/1.0 [15:51:07]Method: POST [15:51:07]URL: /json_proto [15:51:07]Method is POST - this is cgi request [15:51:07]url: /json_proto [15:51:07]query_string will be loaded in cgi processing [15:51:07]execute_cgi json_proto POST (null) [15:51:07]execute_cgi path=json_proto method=POST [15:51:07]POST find Content-Length [15:51:07]Host: 172.17.41.195:8080 [15:51:07]Content-Length: 215 [15:51:07]Content-Type: application/json [15:51:07] [15:51:07]POST finish read [15:51:07]Found Content-Length = 215 [15:51:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:51:07]execute_script... [15:51:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:51:07]POST & json_proto [15:51:07]process_json_proto [15:51:07]json parsed OK: [15:51:07]protocol is kg_v1.0 [15:51:07]action value=get_value [15:51:07]process_action get_value [15:51:07]cmd_get_value [15:51:07]process_action get_value done [15:51:07]requested_data is exist [15:51:07]produce_requested_data [15:51:07]requested_item kkm.sn is exist - process it [15:51:07]requested_item kkm.ver is exist - process it [15:51:07]requested_item fm.sn is exist - process it [15:51:07]wFMCommunicate request_size=4 [15:51:07]MH_SAM_APDU [15:51:07]CAPDU: 80 11 00 00 [15:51:07]Write to MH i2c: E2 08 00 10 05 80 11 00 00 00 00 00 00 8F [15:51:07]Write i2c OK [15:51:07]MH_I2C_Read... [15:51:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:51:07]Read from MH i2c: E2 [15:51:07]MH_I2C_Read... [15:51:07]Read from MH i2c: E2 17 00 [15:51:07]MH_I2C_Read... [15:51:07]Read from MH i2c: E2 17 00 10 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 E5 [15:51:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [15:51:07]wFMCommunicate OK [15:51:07]requested_item fd.num is exist - process it [15:51:07]SAM_PROTO_GetFieldsCounters [15:51:07]wFMCommunicate request_size=4 [15:51:07]MH_SAM_APDU [15:51:07]CAPDU: 80 13 00 00 [15:51:07]Write to MH i2c: E2 08 00 11 05 80 13 00 00 00 00 00 00 92 [15:51:07]Write i2c OK [15:51:07]MH_I2C_Read... [15:51:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:51:07]Read from MH i2c: E2 [15:51:07]MH_I2C_Read... [15:51:07]Read from MH i2c: E2 62 00 [15:51:07]MH_I2C_Read... [15:51:07]Read from MH i2c: E2 62 00 11 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 FA 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 FE [15:51:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 FA 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:51:07]wFMCommunicate OK [15:51:07]SAM_PROTO_GetFieldsCounters done [15:51:07]requested_item shift.num is exist - process it [15:51:07]requested_item shift.opened is exist - process it [15:51:07]req_shift_opened [15:51:07]FM_GetShiftState [15:51:07]SAM_PROTO_GetShiftState [15:51:07]wFMCommunicate request_size=4 [15:51:07]MH_SAM_APDU [15:51:07]CAPDU: 80 13 01 00 [15:51:07]Write to MH i2c: E2 08 00 12 05 80 13 01 00 00 00 00 00 94 [15:51:07]Write i2c OK [15:51:07]MH_I2C_Read... [15:51:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:51:07]Read from MH i2c: E2 [15:51:07]MH_I2C_Read... [15:51:07]Read from MH i2c: E2 0E 00 [15:51:07]MH_I2C_Read... [15:51:07]Read from MH i2c: E2 0E 00 12 05 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 FB [15:51:07]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [15:51:07]wFMCommunicate OK [15:51:07]SAM_PROTO_GetShiftState done [15:51:07]FM_GetShiftState done [15:51:07]req_shift_opened done [15:51:07]requested_item shift.open_date is exist - process it [15:51:07]req_shift_open_date [15:51:07]req_shift_open_date done [15:51:07]produce_requested_data done [15:51:07]produce_requested_data return {"kkm.sn":"0300000119","kkm.ver":"001","fm.sn":"0000000000871829","fd.num":67834,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [15:51:07]process_action_free get_value [15:51:07]json_value_free [15:51:07]json_value_free done [15:51:07]process_json_proto returns [15:51:07]Send response to host [15:51:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000119","kkm.ver":"001","fm.sn":"0000000000871829","fd.num":67834,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [15:51:07]free response buf [15:51:07]execute_script done [15:51:07]execute_script returns [15:51:07]free content buf [15:51:07]Sock 9.Close socket [15:51:07]Sock 9.Thread stoped [15:51:07]accept exits with 7 [15:51:07]New connection [15:51:07]New thread 3067059556 created [15:51:07]Thread 3067202916 joined [15:51:07]Waiting for new connection... [15:51:07] Sock 7.Parse request [15:51:07]Sock 7.Check first char [15:51:07]Sock 7.First char is OK [15:51:07]request: POST /json_proto HTTP/1.0 [15:51:07]Method: POST [15:51:07]URL: /json_proto [15:51:07]Method is POST - this is cgi request [15:51:07]url: /json_proto [15:51:07]query_string will be loaded in cgi processing [15:51:07]execute_cgi json_proto POST (null) [15:51:07]execute_cgi path=json_proto method=POST [15:51:07]POST find Content-Length [15:51:07]Host: 172.17.41.195:8080 [15:51:07]Content-Length: 331 [15:51:07]Content-Type: application/json [15:51:07] [15:51:07]POST finish read [15:51:07]Found Content-Length = 331 [15:51:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [15:51:07]execute_script... [15:51:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [15:51:07]POST & json_proto [15:51:07]process_json_proto [15:51:07]json parsed OK: [15:51:07]protocol is kg_v1.0 [15:51:07]action value=get_value [15:51:07]process_action get_value [15:51:07]cmd_get_value [15:51:07]process_action get_value done [15:51:07]requested_data is exist [15:51:07]produce_requested_data [15:51:07]requested_item fm.sale.total is exist - process it [15:51:07]SAM_PROTO_GetFMData [15:51:07]wFMCommunicate request_size=4 [15:51:07]MH_SAM_APDU [15:51:07]CAPDU: 80 13 03 00 [15:51:07]Write to MH i2c: E2 08 00 13 05 80 13 03 00 00 00 00 00 97 [15:51:07]Write i2c OK [15:51:07]MH_I2C_Read... [15:51:08]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [15:51:08]Read from MH i2c: E2 [15:51:08]MH_I2C_Read... [15:51:08]Read from MH i2c: E2 FD 00 [15:51:08]MH_I2C_Read... [15:51:08]Read from MH i2c: E2 FD 00 13 05 00 C6 04 85 04 C2 04 6E 04 04 00 2C 06 01 00 69 04 A3 00 6F 04 04 00 82 05 01 00 B1 04 05 00 8F 79 07 1E 03 70 04 05 00 80 93 D8 C0 02 72 04 04 00 0F E6 2E 5D 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 C5 11 C2 54 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 8B 17 10 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9D 00 6F 04 04 00 AA 00 00 00 B1 04 04 00 00 23 C3 DC 70 04 04 00 00 23 C3 DC 72 04 00 00 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 DD 9D 71 17 EF 03 09 90 00 AC [15:51:08]RAPDU: C6 04 85 04 C2 04 6E 04 04 00 2C 06 01 00 69 04 A3 00 6F 04 04 00 82 05 01 00 B1 04 05 00 8F 79 07 1E 03 70 04 05 00 80 93 D8 C0 02 72 04 04 00 0F E6 2E 5D 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 C5 11 C2 54 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 8B 17 10 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9D 00 6F 04 04 00 AA 00 00 00 B1 04 04 00 00 23 C3 DC 70 04 04 00 00 23 C3 DC 72 04 00 00 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 DD 9D 71 17 EF 03 09 90 00 [15:51:08]wFMCommunicate OK [15:51:08]wFMCommunicate request_size=4 [15:51:08]MH_SAM_APDU [15:51:08]CAPDU: 80 17 00 00 [15:51:08]Write to MH i2c: E2 08 00 14 05 80 17 00 00 00 00 00 00 99 [15:51:08]Write i2c OK [15:51:08]MH_I2C_Read... [15:51:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:51:08]Read from MH i2c: E2 [15:51:08]MH_I2C_Read... [15:51:08]Read from MH i2c: E2 FD 00 [15:51:08]MH_I2C_Read... [15:51:08]Read from MH i2c: E2 FD 00 14 05 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 70 22 F4 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 90 00 D4 [15:51:08]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 70 22 F4 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 90 00 [15:51:08]wFMCommunicate OK [15:51:08]wFMCommunicate request_size=4 [15:51:08]MH_SAM_APDU [15:51:08]CAPDU: 80 17 00 00 [15:51:08]Write to MH i2c: E2 08 00 15 05 80 17 00 00 00 00 00 00 9A [15:51:08]Write i2c OK [15:51:08]MH_I2C_Read... [15:51:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:51:08]Read from MH i2c: E2 [15:51:08]MH_I2C_Read... [15:51:08]Read from MH i2c: E2 FD 00 [15:51:08]MH_I2C_Read... [15:51:08]Read from MH i2c: E2 FD 00 15 05 00 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 90 00 C1 [15:51:08]RAPDU: 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 90 00 [15:51:08]wFMCommunicate OK [15:51:08]wFMCommunicate request_size=4 [15:51:08]MH_SAM_APDU [15:51:08]CAPDU: 80 17 00 00 [15:51:08]Write to MH i2c: E2 08 00 16 05 80 17 00 00 00 00 00 00 9B [15:51:08]Write i2c OK [15:51:08]MH_I2C_Read... [15:51:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:51:09]Read from MH i2c: E2 [15:51:09]MH_I2C_Read... [15:51:09]Read from MH i2c: E2 FD 00 [15:51:09]MH_I2C_Read... [15:51:09]Read from MH i2c: E2 FD 00 16 05 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 16 [15:51:09]RAPDU: EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 [15:51:09]wFMCommunicate OK [15:51:09]wFMCommunicate request_size=4 [15:51:09]MH_SAM_APDU [15:51:09]CAPDU: 80 17 00 00 [15:51:09]Write to MH i2c: E2 08 00 17 05 80 17 00 00 00 00 00 00 9C [15:51:09]Write i2c OK [15:51:09]MH_I2C_Read... [15:51:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 224! [15:51:09]Read from MH i2c: E2 [15:51:09]MH_I2C_Read... [15:51:09]Read from MH i2c: E2 E3 00 [15:51:09]MH_I2C_Read... [15:51:09]Read from MH i2c: E2 E3 00 17 05 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 7B [15:51:09]RAPDU: 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [15:51:09]wFMCommunicate OK [15:51:09]SAM_PROTO_GetFMData done [15:51:09]requested_item fm.sale_refund.total is exist - process it [15:51:09]requested_item fm.buy.total is exist - process it [15:51:09]requested_item shift.sale.total is exist - process it [15:51:09]SAM_PROTO_GetShiftData [15:51:09]wFMCommunicate request_size=4 [15:51:09]MH_SAM_APDU [15:51:09]CAPDU: 80 13 02 00 [15:51:09]Write to MH i2c: E2 08 00 18 05 80 13 02 00 00 00 00 00 9B [15:51:09]Write i2c OK [15:51:09]MH_I2C_Read... [15:51:09]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [15:51:09]Read from MH i2c: E2 [15:51:09]MH_I2C_Read... [15:51:09]Read from MH i2c: E2 FD 00 [15:51:09]MH_I2C_Read... [15:51:09]Read from MH i2c: E2 FD 00 18 05 00 AF 04 AA 04 AB 04 6E 04 04 00 49 00 00 00 69 04 9C 00 6F 04 04 00 49 00 00 00 B1 04 03 00 03 89 78 70 04 03 00 C4 9E 15 72 04 03 00 3F EA 62 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 21 CD 0C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 11 11 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 20 [15:51:09]RAPDU: AF 04 AA 04 AB 04 6E 04 04 00 49 00 00 00 69 04 9C 00 6F 04 04 00 49 00 00 00 B1 04 03 00 03 89 78 70 04 03 00 C4 9E 15 72 04 03 00 3F EA 62 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 21 CD 0C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 11 11 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 [15:51:09]wFMCommunicate OK [15:51:09]wFMCommunicate request_size=4 [15:51:09]MH_SAM_APDU [15:51:09]CAPDU: 80 17 00 00 [15:51:09]Write to MH i2c: E2 08 00 19 05 80 17 00 00 00 00 00 00 9E [15:51:09]Write i2c OK [15:51:09]MH_I2C_Read... [15:51:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:51:10]Read from MH i2c: E2 [15:51:10]MH_I2C_Read... [15:51:10]Read from MH i2c: E2 FD 00 [15:51:10]MH_I2C_Read... [15:51:10]Read from MH i2c: E2 FD 00 19 05 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 90 00 B7 [15:51:10]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 90 00 [15:51:10]wFMCommunicate OK [15:51:10]wFMCommunicate request_size=4 [15:51:10]MH_SAM_APDU [15:51:10]CAPDU: 80 17 00 00 [15:51:10]Write to MH i2c: E2 08 00 1A 05 80 17 00 00 00 00 00 00 9F [15:51:10]Write i2c OK [15:51:10]MH_I2C_Read... [15:51:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:51:10]Read from MH i2c: E2 [15:51:10]MH_I2C_Read... [15:51:10]Read from MH i2c: E2 FD 00 [15:51:10]MH_I2C_Read... [15:51:10]Read from MH i2c: E2 FD 00 1A 05 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 90 00 53 [15:51:10]RAPDU: 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 90 00 [15:51:10]wFMCommunicate OK [15:51:10]wFMCommunicate request_size=4 [15:51:10]MH_SAM_APDU [15:51:10]CAPDU: 80 17 00 00 [15:51:10]Write to MH i2c: E2 08 00 1B 05 80 17 00 00 00 00 00 00 A0 [15:51:10]Write i2c OK [15:51:10]MH_I2C_Read... [15:51:10]OFD Sender: No OFD packet to send [15:51:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:51:10]Read from MH i2c: E2 [15:51:10]MH_I2C_Read... [15:51:10]Read from MH i2c: E2 FD 00 [15:51:10]MH_I2C_Read... [15:51:10]Read from MH i2c: E2 FD 00 1B 05 00 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 90 00 1E [15:51:10]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 90 00 [15:51:10]wFMCommunicate OK [15:51:10]wFMCommunicate request_size=4 [15:51:10]MH_SAM_APDU [15:51:10]CAPDU: 80 17 00 00 [15:51:10]Write to MH i2c: E2 08 00 1C 05 80 17 00 00 00 00 00 00 A1 [15:51:10]Write i2c OK [15:51:10]MH_I2C_Read... [15:51:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 201! [15:51:10]Read from MH i2c: E2 [15:51:10]MH_I2C_Read... [15:51:10]Read from MH i2c: E2 CC 00 [15:51:10]MH_I2C_Read... [15:51:10]Read from MH i2c: E2 CC 00 1C 05 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 82 [15:51:10]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [15:51:10]wFMCommunicate OK [15:51:10]SAM_PROTO_GetShiftData done [15:51:10]requested_item shift.sale.total_cash is exist - process it [15:51:10]requested_item shift.sale_refund.total is exist - process it [15:51:10]requested_item shift.sale_refund.total_cash is exist - process it [15:51:10]requested_item shift.buy.total is exist - process it [15:51:10]requested_item shift.buy.total_cash is exist - process it [15:51:10]produce_requested_data done [15:51:10]produce_requested_data return {"fm.sale.total":133887082.39,"fm.sale_refund.total":37037760.00,"fm.buy.total":0.00,"shift.sale.total":78993.95,"shift.sale.total_cash":14169.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [15:51:10]process_action_free get_value [15:51:10]json_value_free [15:51:10]json_value_free done [15:51:10]process_json_proto returns [15:51:10]Send response to host [15:51:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":133887082.39,"fm.sale_refund.total":37037760.00,"fm.buy.total":0.00,"shift.sale.total":78993.95,"shift.sale.total_cash":14169.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [15:51:10]free response buf [15:51:10]execute_script done [15:51:10]execute_script returns [15:51:10]free content buf [15:51:10]Sock 7.Close socket [15:51:10]Sock 7.Thread stoped [15:51:11]accept exits with 9 [15:51:11]New connection [15:51:11]New thread 3067202916 created [15:51:11]Thread 3067059556 joined [15:51:11]Waiting for new connection... [15:51:11] Sock 9.Parse request [15:51:11]Sock 9.Check first char [15:51:11]Sock 9.First char is OK [15:51:11]request: POST /json_proto HTTP/1.0 [15:51:11]Method: POST [15:51:11]URL: /json_proto [15:51:11]Method is POST - this is cgi request [15:51:11]url: /json_proto [15:51:11]query_string will be loaded in cgi processing [15:51:11]execute_cgi json_proto POST (null) [15:51:11]execute_cgi path=json_proto method=POST [15:51:11]POST find Content-Length [15:51:11]Host: 172.17.41.195:8080 [15:51:11]Content-Length: 215 [15:51:11]Content-Type: application/json [15:51:11] [15:51:11]POST finish read [15:51:11]Found Content-Length = 215 [15:51:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:51:11]execute_script... [15:51:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:51:11]POST & json_proto [15:51:11]process_json_proto [15:51:11]json parsed OK: [15:51:11]protocol is kg_v1.0 [15:51:11]action value=get_value [15:51:11]process_action get_value [15:51:11]cmd_get_value [15:51:11]process_action get_value done [15:51:11]requested_data is exist [15:51:11]produce_requested_data [15:51:11]requested_item kkm.sn is exist - process it [15:51:11]requested_item kkm.ver is exist - process it [15:51:11]requested_item fm.sn is exist - process it [15:51:11]wFMCommunicate request_size=4 [15:51:11]MH_SAM_APDU [15:51:11]CAPDU: 80 11 00 00 [15:51:11]Write to MH i2c: E2 08 00 1D 05 80 11 00 00 00 00 00 00 9C [15:51:11]Write i2c OK [15:51:11]MH_I2C_Read... [15:51:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:51:11]Read from MH i2c: E2 [15:51:11]MH_I2C_Read... [15:51:11]Read from MH i2c: E2 17 00 [15:51:11]MH_I2C_Read... [15:51:11]Read from MH i2c: E2 17 00 1D 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 F2 [15:51:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [15:51:11]wFMCommunicate OK [15:51:11]requested_item fd.num is exist - process it [15:51:11]SAM_PROTO_GetFieldsCounters [15:51:11]wFMCommunicate request_size=4 [15:51:11]MH_SAM_APDU [15:51:11]CAPDU: 80 13 00 00 [15:51:11]Write to MH i2c: E2 08 00 1E 05 80 13 00 00 00 00 00 00 9F [15:51:11]Write i2c OK [15:51:11]MH_I2C_Read... [15:51:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:51:11]Read from MH i2c: E2 [15:51:11]MH_I2C_Read... [15:51:11]Read from MH i2c: E2 62 00 [15:51:11]MH_I2C_Read... [15:51:11]Read from MH i2c: E2 62 00 1E 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 FA 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 0B [15:51:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 FA 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:51:11]wFMCommunicate OK [15:51:11]SAM_PROTO_GetFieldsCounters done [15:51:11]requested_item shift.num is exist - process it [15:51:11]requested_item shift.opened is exist - process it [15:51:11]req_shift_opened [15:51:11]FM_GetShiftState [15:51:11]SAM_PROTO_GetShiftState [15:51:11]wFMCommunicate request_size=4 [15:51:11]MH_SAM_APDU [15:51:11]CAPDU: 80 13 01 00 [15:51:11]Write to MH i2c: E2 08 00 1F 05 80 13 01 00 00 00 00 00 A1 [15:51:11]Write i2c OK [15:51:11]MH_I2C_Read... [15:51:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:51:11]Read from MH i2c: E2 [15:51:11]MH_I2C_Read... [15:51:11]Read from MH i2c: E2 0E 00 [15:51:11]MH_I2C_Read... [15:51:11]Read from MH i2c: E2 0E 00 1F 05 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 08 [15:51:11]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [15:51:11]wFMCommunicate OK [15:51:11]SAM_PROTO_GetShiftState done [15:51:11]FM_GetShiftState done [15:51:11]req_shift_opened done [15:51:11]requested_item shift.open_date is exist - process it [15:51:11]req_shift_open_date [15:51:11]req_shift_open_date done [15:51:11]produce_requested_data done [15:51:11]produce_requested_data return {"kkm.sn":"0300000119","kkm.ver":"001","fm.sn":"0000000000871829","fd.num":67834,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [15:51:11]process_action_free get_value [15:51:11]json_value_free [15:51:11]json_value_free done [15:51:11]process_json_proto returns [15:51:11]Send response to host [15:51:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000119","kkm.ver":"001","fm.sn":"0000000000871829","fd.num":67834,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [15:51:11]free response buf [15:51:11]execute_script done [15:51:11]execute_script returns [15:51:11]free content buf [15:51:11]Sock 9.Close socket [15:51:11]Sock 9.Thread stoped [15:51:11]accept exits with 7 [15:51:11]New connection [15:51:11]New thread 3067059556 created [15:51:11]Thread 3067202916 joined [15:51:11]Waiting for new connection... [15:51:11] Sock 7.Parse request [15:51:11]Sock 7.Check first char [15:51:11]Sock 7.First char is OK [15:51:11]request: POST /json_proto HTTP/1.0 [15:51:11]Method: POST [15:51:11]URL: /json_proto [15:51:11]Method is POST - this is cgi request [15:51:11]url: /json_proto [15:51:11]query_string will be loaded in cgi processing [15:51:11]execute_cgi json_proto POST (null) [15:51:11]execute_cgi path=json_proto method=POST [15:51:11]POST find Content-Length [15:51:11]Host: 172.17.41.195:8080 [15:51:11]Content-Length: 331 [15:51:11]Content-Type: application/json [15:51:11] [15:51:11]POST finish read [15:51:11]Found Content-Length = 331 [15:51:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [15:51:11]execute_script... [15:51:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [15:51:11]POST & json_proto [15:51:11]process_json_proto [15:51:11]json parsed OK: [15:51:11]protocol is kg_v1.0 [15:51:11]action value=get_value [15:51:11]process_action get_value [15:51:11]cmd_get_value [15:51:11]process_action get_value done [15:51:11]requested_data is exist [15:51:11]produce_requested_data [15:51:11]requested_item fm.sale.total is exist - process it [15:51:11]SAM_PROTO_GetFMData [15:51:11]wFMCommunicate request_size=4 [15:51:11]MH_SAM_APDU [15:51:11]CAPDU: 80 13 03 00 [15:51:11]Write to MH i2c: E2 08 00 20 05 80 13 03 00 00 00 00 00 A4 [15:51:11]Write i2c OK [15:51:11]MH_I2C_Read... [15:51:11]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [15:51:11]Read from MH i2c: E2 [15:51:11]MH_I2C_Read... [15:51:11]Read from MH i2c: E2 FD 00 [15:51:11]MH_I2C_Read... [15:51:11]Read from MH i2c: E2 FD 00 20 05 00 C6 04 85 04 C2 04 6E 04 04 00 2C 06 01 00 69 04 A3 00 6F 04 04 00 82 05 01 00 B1 04 05 00 8F 79 07 1E 03 70 04 05 00 80 93 D8 C0 02 72 04 04 00 0F E6 2E 5D 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 C5 11 C2 54 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 8B 17 10 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9D 00 6F 04 04 00 AA 00 00 00 B1 04 04 00 00 23 C3 DC 70 04 04 00 00 23 C3 DC 72 04 00 00 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 DD 9D 71 17 EF 03 09 90 00 B9 [15:51:12]RAPDU: C6 04 85 04 C2 04 6E 04 04 00 2C 06 01 00 69 04 A3 00 6F 04 04 00 82 05 01 00 B1 04 05 00 8F 79 07 1E 03 70 04 05 00 80 93 D8 C0 02 72 04 04 00 0F E6 2E 5D 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 C5 11 C2 54 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 8B 17 10 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9D 00 6F 04 04 00 AA 00 00 00 B1 04 04 00 00 23 C3 DC 70 04 04 00 00 23 C3 DC 72 04 00 00 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 DD 9D 71 17 EF 03 09 90 00 [15:51:12]wFMCommunicate OK [15:51:12]wFMCommunicate request_size=4 [15:51:12]MH_SAM_APDU [15:51:12]CAPDU: 80 17 00 00 [15:51:12]Write to MH i2c: E2 08 00 21 05 80 17 00 00 00 00 00 00 A6 [15:51:12]Write i2c OK [15:51:12]MH_I2C_Read... [15:51:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:51:12]Read from MH i2c: E2 [15:51:12]MH_I2C_Read... [15:51:12]Read from MH i2c: E2 FD 00 [15:51:12]MH_I2C_Read... [15:51:12]Read from MH i2c: E2 FD 00 21 05 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 70 22 F4 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 90 00 E1 [15:51:12]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 70 22 F4 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 90 00 [15:51:12]wFMCommunicate OK [15:51:12]wFMCommunicate request_size=4 [15:51:12]MH_SAM_APDU [15:51:12]CAPDU: 80 17 00 00 [15:51:12]Write to MH i2c: E2 08 00 22 05 80 17 00 00 00 00 00 00 A7 [15:51:12]Write i2c OK [15:51:12]MH_I2C_Read... [15:51:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:51:12]Read from MH i2c: E2 [15:51:12]MH_I2C_Read... [15:51:12]Read from MH i2c: E2 FD 00 [15:51:12]MH_I2C_Read... [15:51:12]Read from MH i2c: E2 FD 00 22 05 00 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 90 00 CE [15:51:12]RAPDU: 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 90 00 [15:51:12]wFMCommunicate OK [15:51:12]wFMCommunicate request_size=4 [15:51:12]MH_SAM_APDU [15:51:12]CAPDU: 80 17 00 00 [15:51:12]Write to MH i2c: E2 08 00 23 05 80 17 00 00 00 00 00 00 A8 [15:51:12]Write i2c OK [15:51:12]MH_I2C_Read... [15:51:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:51:13]Read from MH i2c: E2 [15:51:13]MH_I2C_Read... [15:51:13]Read from MH i2c: E2 FD 00 [15:51:13]MH_I2C_Read... [15:51:13]Read from MH i2c: E2 FD 00 23 05 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 23 [15:51:13]RAPDU: EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 [15:51:13]wFMCommunicate OK [15:51:13]wFMCommunicate request_size=4 [15:51:13]MH_SAM_APDU [15:51:13]CAPDU: 80 17 00 00 [15:51:13]Write to MH i2c: E2 08 00 24 05 80 17 00 00 00 00 00 00 A9 [15:51:13]Write i2c OK [15:51:13]MH_I2C_Read... [15:51:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 224! [15:51:13]Read from MH i2c: E2 [15:51:13]MH_I2C_Read... [15:51:13]Read from MH i2c: E2 E3 00 [15:51:13]MH_I2C_Read... [15:51:13]Read from MH i2c: E2 E3 00 24 05 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 88 [15:51:13]RAPDU: 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [15:51:13]wFMCommunicate OK [15:51:13]SAM_PROTO_GetFMData done [15:51:13]requested_item fm.sale_refund.total is exist - process it [15:51:13]requested_item fm.buy.total is exist - process it [15:51:13]requested_item shift.sale.total is exist - process it [15:51:13]SAM_PROTO_GetShiftData [15:51:13]wFMCommunicate request_size=4 [15:51:13]MH_SAM_APDU [15:51:13]CAPDU: 80 13 02 00 [15:51:13]Write to MH i2c: E2 08 00 25 05 80 13 02 00 00 00 00 00 A8 [15:51:13]Write i2c OK [15:51:13]MH_I2C_Read... [15:51:14]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [15:51:14]Read from MH i2c: E2 [15:51:14]MH_I2C_Read... [15:51:14]Read from MH i2c: E2 FD 00 [15:51:14]MH_I2C_Read... [15:51:14]Read from MH i2c: E2 FD 00 25 05 00 AF 04 AA 04 AB 04 6E 04 04 00 49 00 00 00 69 04 9C 00 6F 04 04 00 49 00 00 00 B1 04 03 00 03 89 78 70 04 03 00 C4 9E 15 72 04 03 00 3F EA 62 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 21 CD 0C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 11 11 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 2D [15:51:14]RAPDU: AF 04 AA 04 AB 04 6E 04 04 00 49 00 00 00 69 04 9C 00 6F 04 04 00 49 00 00 00 B1 04 03 00 03 89 78 70 04 03 00 C4 9E 15 72 04 03 00 3F EA 62 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 21 CD 0C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 11 11 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 [15:51:14]wFMCommunicate OK [15:51:14]wFMCommunicate request_size=4 [15:51:14]MH_SAM_APDU [15:51:14]CAPDU: 80 17 00 00 [15:51:14]Write to MH i2c: E2 08 00 26 05 80 17 00 00 00 00 00 00 AB [15:51:14]Write i2c OK [15:51:14]MH_I2C_Read... [15:51:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:51:14]Read from MH i2c: E2 [15:51:14]MH_I2C_Read... [15:51:14]Read from MH i2c: E2 FD 00 [15:51:14]MH_I2C_Read... [15:51:14]Read from MH i2c: E2 FD 00 26 05 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 90 00 C4 [15:51:14]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 90 00 [15:51:14]wFMCommunicate OK [15:51:14]wFMCommunicate request_size=4 [15:51:14]MH_SAM_APDU [15:51:14]CAPDU: 80 17 00 00 [15:51:14]Write to MH i2c: E2 08 00 27 05 80 17 00 00 00 00 00 00 AC [15:51:14]Write i2c OK [15:51:14]MH_I2C_Read... [15:51:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:51:14]Read from MH i2c: E2 [15:51:14]MH_I2C_Read... [15:51:14]Read from MH i2c: E2 FD 00 [15:51:14]MH_I2C_Read... [15:51:14]Read from MH i2c: E2 FD 00 27 05 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 90 00 60 [15:51:14]RAPDU: 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 90 00 [15:51:14]wFMCommunicate OK [15:51:14]wFMCommunicate request_size=4 [15:51:14]MH_SAM_APDU [15:51:14]CAPDU: 80 17 00 00 [15:51:14]Write to MH i2c: E2 08 00 28 05 80 17 00 00 00 00 00 00 AD [15:51:14]Write i2c OK [15:51:14]MH_I2C_Read... [15:51:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:51:15]Read from MH i2c: E2 [15:51:15]MH_I2C_Read... [15:51:15]Read from MH i2c: E2 FD 00 [15:51:15]MH_I2C_Read... [15:51:15]Read from MH i2c: E2 FD 00 28 05 00 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 90 00 2B [15:51:15]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 90 00 [15:51:15]wFMCommunicate OK [15:51:15]wFMCommunicate request_size=4 [15:51:15]MH_SAM_APDU [15:51:15]CAPDU: 80 17 00 00 [15:51:15]Write to MH i2c: E2 08 00 29 05 80 17 00 00 00 00 00 00 AE [15:51:15]Write i2c OK [15:51:15]MH_I2C_Read... [15:51:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 201! [15:51:15]Read from MH i2c: E2 [15:51:15]MH_I2C_Read... [15:51:15]Read from MH i2c: E2 CC 00 [15:51:15]MH_I2C_Read... [15:51:15]OFD Sender: No OFD packet to send [15:51:15]Read from MH i2c: E2 CC 00 29 05 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 8F [15:51:15]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [15:51:15]wFMCommunicate OK [15:51:15]SAM_PROTO_GetShiftData done [15:51:15]requested_item shift.sale.total_cash is exist - process it [15:51:15]requested_item shift.sale_refund.total is exist - process it [15:51:15]requested_item shift.sale_refund.total_cash is exist - process it [15:51:15]requested_item shift.buy.total is exist - process it [15:51:15]requested_item shift.buy.total_cash is exist - process it [15:51:15]produce_requested_data done [15:51:15]produce_requested_data return {"fm.sale.total":133887082.39,"fm.sale_refund.total":37037760.00,"fm.buy.total":0.00,"shift.sale.total":78993.95,"shift.sale.total_cash":14169.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [15:51:15]process_action_free get_value [15:51:15]json_value_free [15:51:15]json_value_free done [15:51:15]process_json_proto returns [15:51:15]Send response to host [15:51:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":133887082.39,"fm.sale_refund.total":37037760.00,"fm.buy.total":0.00,"shift.sale.total":78993.95,"shift.sale.total_cash":14169.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [15:51:15]free response buf [15:51:15]execute_script done [15:51:15]execute_script returns [15:51:15]free content buf [15:51:15]Sock 7.Close socket [15:51:15]Sock 7.Thread stoped [15:51:20]OFD Sender: No OFD packet to send [15:51:25]OFD Sender: No OFD packet to send [15:51:30]OFD Sender: No OFD packet to send [15:51:35]OFD Sender: No OFD packet to send [15:51:40]OFD Sender: No OFD packet to send [15:51:45]OFD Sender: No OFD packet to send [15:51:50]OFD Sender: No OFD packet to send [15:51:55]OFD Sender: No OFD packet to send [15:52:00]OFD Sender: No OFD packet to send [15:52:05]OFD Sender: No OFD packet to send [15:52:10]OFD Sender: No OFD packet to send [15:52:15]OFD Sender: No OFD packet to send [15:52:20]OFD Sender: No OFD packet to send [15:52:22]accept exits with 9 [15:52:22]New connection [15:52:22]New thread 3067202916 created [15:52:22]Thread 3067059556 joined [15:52:22]Waiting for new connection... [15:52:22] Sock 9.Parse request [15:52:22]Sock 9.Check first char [15:52:22]Sock 9.First char is OK [15:52:22]request: POST /json_proto HTTP/1.0 [15:52:22]Method: POST [15:52:22]URL: /json_proto [15:52:22]Method is POST - this is cgi request [15:52:22]url: /json_proto [15:52:22]query_string will be loaded in cgi processing [15:52:22]execute_cgi json_proto POST (null) [15:52:22]execute_cgi path=json_proto method=POST [15:52:22]POST find Content-Length [15:52:22]Host: 172.17.41.195:8080 [15:52:22]Content-Length: 1209 [15:52:22]Content-Type: application/json [15:52:22] [15:52:22]POST finish read [15:52:22]Found Content-Length = 1209 [15:52:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0440\u0441\u0442\u0430\u043D\u0431\u0435\u043A\u043E\u0432 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)508085\u000A18.05.2024 15:34\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 20.090 x 74.70\u000A\u0418\u0422\u041E\u0413: 1500.72\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:52:22]execute_script... [15:52:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0440\u0441\u0442\u0430\u043D\u0431\u0435\u043A\u043E\u0432 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)508085\u000A18.05.2024 15:34\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 20.090 x 74.70\u000A\u0418\u0422\u041E\u0413: 1500.72\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:52:22]POST & json_proto [15:52:22]process_json_proto [15:52:22]json parsed OK: [15:52:22]protocol is kg_v1.0 [15:52:22]action value=print_text [15:52:22]process_action print_text [15:52:22]cmd_print_text [15:52:22]ExternCall_PrintAddStr [15:52:22]wPrintStart [15:52:22]Write to MH i2c: 01 00 00 2A 05 2F [15:52:22]Write i2c OK [15:52:22]MH_I2C_Read... [15:52:22]Read from MH i2c: 01 [15:52:22]MH_I2C_Read... [15:52:22]Read from MH i2c: 01 07 00 [15:52:22]MH_I2C_Read... [15:52:22]Read from MH i2c: 01 07 00 2A 05 00 00 00 00 00 FF 0F 44 [15:52:22]RasterBufferAndPrint [15:52:22]line *****ТОВАРНЫЙ ЧЕК***** [15:52:22]line АЗС-91 [15:52:22]line Партнер нефть [15:52:22]line 02508201610067 [15:52:22]line Кассир : Арстанбеков Н. [15:52:22]line Счет N : (1)508085 [15:52:22]line 18.05.2024 15:34 [15:52:22]line ПРОДАЖА [15:52:22]line ТРК (МРК, ГНК): 31 [15:52:22]line Вид ГСМ : 2710194210 [15:52:22]line ДТ-К-5 [15:52:22]line 20.090 x 74.70 [15:52:22]line ИТОГ: 1500.72 [15:52:22]line Тип оплаты: Талоны: Топливная Карта [15:52:22]line 02750 [15:52:22]line ______________________ [15:52:22]line (подпись) [15:52:22]written 0, free lines is 4095 [15:52:22]Write to MH i2c: 01 00 00 3E 05 43 [15:52:22]Write i2c OK [15:52:22]MH_I2C_Read... [15:52:22]Read from MH i2c: 01 [15:52:22]MH_I2C_Read... [15:52:22]Read from MH i2c: 01 07 00 [15:52:22]MH_I2C_Read... [15:52:22]Read from MH i2c: 01 07 00 3E 05 00 00 00 00 00 0F 0E 67 [15:52:22]RasterBufferAndPrint [15:52:22]line [15:52:22]line [15:52:22]line [15:52:22]line [15:52:22]line [15:52:22]written 0, free lines is 3600 [15:52:22]MH_Cut [15:52:22]Write to MH i2c: D1 01 00 45 05 01 1C [15:52:22]Write i2c OK [15:52:22]MH_I2C_Read... [15:52:22]Read from MH i2c: D1 [15:52:22]MH_I2C_Read... [15:52:22]Read from MH i2c: D1 01 00 [15:52:22]MH_I2C_Read... [15:52:22]Read from MH i2c: D1 01 00 45 05 00 1B [15:52:22]Write to MH i2c: 01 00 00 46 05 4B [15:52:22]Write i2c OK [15:52:22]MH_I2C_Read... [15:52:23]*** Cut start [15:52:23]*** Purtial cut [15:52:23]*** CUTSNS_PIN = 0 [15:52:23]*** Stage 1: CUTSNS_PIN = 1 [15:52:25]Read from MH i2c: 01 [15:52:25]MH_I2C_Read... [15:52:25]Read from MH i2c: 01 07 00 [15:52:25]MH_I2C_Read... [15:52:25]*** Stop cut motor [15:52:25]*** Cut end [15:52:25]Read from MH i2c: 01 07 00 46 05 00 00 00 00 00 FF 0F 60 [15:52:25]process_action print_text done [15:52:25]requested_data is exist [15:52:25]produce_requested_data [15:52:25]requested_item fm.sn is exist - process it [15:52:25]wFMCommunicate request_size=4 [15:52:25]MH_SAM_APDU [15:52:25]CAPDU: 80 11 00 00 [15:52:25]Write to MH i2c: E2 08 00 47 05 80 11 00 00 00 00 00 00 C6 [15:52:25]Write i2c OK [15:52:25]MH_I2C_Read... [15:52:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:52:25]Read from MH i2c: E2 [15:52:25]MH_I2C_Read... [15:52:25]Read from MH i2c: E2 17 00 [15:52:25]MH_I2C_Read... [15:52:25]Read from MH i2c: E2 17 00 47 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 1C [15:52:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [15:52:25]wFMCommunicate OK [15:52:25]requested_item fd.num is exist - process it [15:52:25]SAM_PROTO_GetFieldsCounters [15:52:25]wFMCommunicate request_size=4 [15:52:25]MH_SAM_APDU [15:52:25]CAPDU: 80 13 00 00 [15:52:25]Write to MH i2c: E2 08 00 48 05 80 13 00 00 00 00 00 00 C9 [15:52:25]Write i2c OK [15:52:25]MH_I2C_Read... [15:52:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:52:25]Read from MH i2c: E2 [15:52:25]MH_I2C_Read... [15:52:25]Read from MH i2c: E2 62 00 [15:52:25]MH_I2C_Read... [15:52:25]Read from MH i2c: E2 62 00 48 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 FA 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 35 [15:52:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 FA 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:52:25]wFMCommunicate OK [15:52:25]SAM_PROTO_GetFieldsCounters done [15:52:25]requested_item shift.num is exist - process it [15:52:25]requested_item shift.opened is exist - process it [15:52:25]req_shift_opened [15:52:25]FM_GetShiftState [15:52:25]SAM_PROTO_GetShiftState [15:52:25]wFMCommunicate request_size=4 [15:52:25]MH_SAM_APDU [15:52:25]CAPDU: 80 13 01 00 [15:52:25]Write to MH i2c: E2 08 00 49 05 80 13 01 00 00 00 00 00 CB [15:52:25]Write i2c OK [15:52:25]MH_I2C_Read... [15:52:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:52:25]Read from MH i2c: E2 [15:52:25]MH_I2C_Read... [15:52:25]Read from MH i2c: E2 0E 00 [15:52:25]MH_I2C_Read... [15:52:25]Read from MH i2c: E2 0E 00 49 05 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 32 [15:52:25]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [15:52:25]wFMCommunicate OK [15:52:25]SAM_PROTO_GetShiftState done [15:52:25]FM_GetShiftState done [15:52:25]req_shift_opened done [15:52:25]requested_item shift.open_date is exist - process it [15:52:25]req_shift_open_date [15:52:25]req_shift_open_date done [15:52:25]produce_requested_data done [15:52:25]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67834,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [15:52:25]process_action_free print_text [15:52:25]json_value_free [15:52:25]json_value_free done [15:52:25]process_json_proto returns [15:52:25]Send response to host [15:52:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67834,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [15:52:25]free response buf [15:52:25]execute_script done [15:52:25]execute_script returns [15:52:25]free content buf [15:52:25]Sock 9.Close socket [15:52:25]Sock 9.Thread stoped [15:52:25]OFD Sender: No OFD packet to send [15:52:30]OFD Sender: No OFD packet to send [15:52:35]OFD Sender: No OFD packet to send [15:52:40]OFD Sender: No OFD packet to send [15:52:45]OFD Sender: No OFD packet to send [15:52:50]OFD Sender: No OFD packet to send [15:52:55]OFD Sender: No OFD packet to send [15:53:00]OFD Sender: No OFD packet to send [15:53:05]OFD Sender: No OFD packet to send [15:53:08]accept exits with 10 [15:53:08]New connection [15:53:08]New thread 3067059556 created [15:53:08]Thread 3067202916 joined [15:53:08]Waiting for new connection... [15:53:08] Sock 10.Parse request [15:53:08]Sock 10.Check first char [15:53:08]Sock 10.First char is OK [15:53:08]request: POST /json_proto HTTP/1.0 [15:53:08]Method: POST [15:53:08]URL: /json_proto [15:53:08]Method is POST - this is cgi request [15:53:08]url: /json_proto [15:53:08]query_string will be loaded in cgi processing [15:53:08]execute_cgi json_proto POST (null) [15:53:08]execute_cgi path=json_proto method=POST [15:53:08]POST find Content-Length [15:53:08]Host: 172.17.41.195:8080 [15:53:08]Content-Length: 1209 [15:53:08]Content-Type: application/json [15:53:08] [15:53:08]POST finish read [15:53:08]Found Content-Length = 1209 [15:53:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0440\u0441\u0442\u0430\u043D\u0431\u0435\u043A\u043E\u0432 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)508086\u000A18.05.2024 15:35\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 13.390 x 74.70\u000A\u0418\u0422\u041E\u0413: 1000.23\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:53:08]execute_script... [15:53:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0440\u0441\u0442\u0430\u043D\u0431\u0435\u043A\u043E\u0432 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)508086\u000A18.05.2024 15:35\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 13.390 x 74.70\u000A\u0418\u0422\u041E\u0413: 1000.23\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:53:08]POST & json_proto [15:53:08]process_json_proto [15:53:08]json parsed OK: [15:53:08]protocol is kg_v1.0 [15:53:08]action value=print_text [15:53:08]process_action print_text [15:53:08]cmd_print_text [15:53:08]ExternCall_PrintAddStr [15:53:08]wPrintStart [15:53:08]Write to MH i2c: 01 00 00 4A 05 4F [15:53:08]Write i2c OK [15:53:08]MH_I2C_Read... [15:53:08]Read from MH i2c: 01 [15:53:08]MH_I2C_Read... [15:53:08]Read from MH i2c: 01 07 00 [15:53:08]MH_I2C_Read... [15:53:08]Read from MH i2c: 01 07 00 4A 05 00 00 00 00 00 FF 0F 64 [15:53:08]RasterBufferAndPrint [15:53:08]line *****ТОВАРНЫЙ ЧЕК***** [15:53:08]line АЗС-91 [15:53:08]line Партнер нефть [15:53:08]line 02508201610067 [15:53:08]line Кассир : Арстанбеков Н. [15:53:08]line Счет N : (1)508086 [15:53:08]line 18.05.2024 15:35 [15:53:08]line ПРОДАЖА [15:53:08]line ТРК (МРК, ГНК): 11 [15:53:08]line Вид ГСМ : 2710194210 [15:53:08]line ДТ-К-5 [15:53:08]line 13.390 x 74.70 [15:53:08]line ИТОГ: 1000.23 [15:53:08]line Тип оплаты: Талоны: Топливная Карта [15:53:08]line 02750 [15:53:08]line ______________________ [15:53:08]line (подпись) [15:53:08]written 0, free lines is 4095 [15:53:08]Write to MH i2c: 01 00 00 5E 05 63 [15:53:08]Write i2c OK [15:53:08]MH_I2C_Read... [15:53:08]Read from MH i2c: 01 [15:53:08]MH_I2C_Read... [15:53:08]Read from MH i2c: 01 07 00 [15:53:08]MH_I2C_Read... [15:53:08]Read from MH i2c: 01 07 00 5E 05 00 00 00 00 00 0F 0E 87 [15:53:08]RasterBufferAndPrint [15:53:08]line [15:53:08]line [15:53:08]line [15:53:08]line [15:53:08]line [15:53:08]written 0, free lines is 3600 [15:53:08]MH_Cut [15:53:08]Write to MH i2c: D1 01 00 65 05 01 3C [15:53:08]Write i2c OK [15:53:08]MH_I2C_Read... [15:53:08]Read from MH i2c: D1 [15:53:08]MH_I2C_Read... [15:53:08]Read from MH i2c: D1 01 00 [15:53:08]MH_I2C_Read... [15:53:08]Read from MH i2c: D1 01 00 65 05 00 3B [15:53:08]Write to MH i2c: 01 00 00 66 05 6B [15:53:08]Write i2c OK [15:53:08]MH_I2C_Read... [15:53:08]*** Cut start [15:53:08]*** Purtial cut [15:53:08]*** Stage 1: CUTSNS_PIN = 1 [15:53:09]Read from MH i2c: 01 [15:53:09]MH_I2C_Read... [15:53:09]*** Stop cut motor [15:53:09]*** Cut end [15:53:09]Read from MH i2c: 01 07 00 [15:53:09]MH_I2C_Read... [15:53:09]Read from MH i2c: 01 07 00 66 05 00 00 00 00 00 FF 0F 80 [15:53:09]process_action print_text done [15:53:09]requested_data is exist [15:53:09]produce_requested_data [15:53:09]requested_item fm.sn is exist - process it [15:53:09]wFMCommunicate request_size=4 [15:53:09]MH_SAM_APDU [15:53:09]CAPDU: 80 11 00 00 [15:53:09]Write to MH i2c: E2 08 00 67 05 80 11 00 00 00 00 00 00 E6 [15:53:09]Write i2c OK [15:53:09]MH_I2C_Read... [15:53:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:53:09]Read from MH i2c: E2 [15:53:09]MH_I2C_Read... [15:53:09]Read from MH i2c: E2 17 00 [15:53:09]MH_I2C_Read... [15:53:09]Read from MH i2c: E2 17 00 67 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 3C [15:53:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [15:53:09]wFMCommunicate OK [15:53:09]requested_item fd.num is exist - process it [15:53:09]SAM_PROTO_GetFieldsCounters [15:53:09]wFMCommunicate request_size=4 [15:53:09]MH_SAM_APDU [15:53:09]CAPDU: 80 13 00 00 [15:53:09]Write to MH i2c: E2 08 00 68 05 80 13 00 00 00 00 00 00 E9 [15:53:09]Write i2c OK [15:53:09]MH_I2C_Read... [15:53:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:53:09]Read from MH i2c: E2 [15:53:09]MH_I2C_Read... [15:53:09]Read from MH i2c: E2 62 00 [15:53:09]MH_I2C_Read... [15:53:09]Read from MH i2c: E2 62 00 68 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 FA 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 55 [15:53:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 FA 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:53:09]wFMCommunicate OK [15:53:09]SAM_PROTO_GetFieldsCounters done [15:53:09]requested_item shift.num is exist - process it [15:53:09]requested_item shift.opened is exist - process it [15:53:09]req_shift_opened [15:53:09]FM_GetShiftState [15:53:09]SAM_PROTO_GetShiftState [15:53:09]wFMCommunicate request_size=4 [15:53:09]MH_SAM_APDU [15:53:09]CAPDU: 80 13 01 00 [15:53:09]Write to MH i2c: E2 08 00 69 05 80 13 01 00 00 00 00 00 EB [15:53:09]Write i2c OK [15:53:09]MH_I2C_Read... [15:53:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:53:09]Read from MH i2c: E2 [15:53:09]MH_I2C_Read... [15:53:09]Read from MH i2c: E2 0E 00 [15:53:09]MH_I2C_Read... [15:53:09]Read from MH i2c: E2 0E 00 69 05 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 52 [15:53:09]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [15:53:09]wFMCommunicate OK [15:53:09]SAM_PROTO_GetShiftState done [15:53:09]FM_GetShiftState done [15:53:09]req_shift_opened done [15:53:09]requested_item shift.open_date is exist - process it [15:53:09]req_shift_open_date [15:53:09]req_shift_open_date done [15:53:09]produce_requested_data done [15:53:09]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67834,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [15:53:09]process_action_free print_text [15:53:09]json_value_free [15:53:09]json_value_free done [15:53:09]process_json_proto returns [15:53:09]Send response to host [15:53:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67834,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [15:53:09]free response buf [15:53:09]execute_script done [15:53:09]execute_script returns [15:53:09]free content buf [15:53:09]Sock 10.Close socket [15:53:09]Sock 10.Thread stoped [15:53:10]OFD Sender: No OFD packet to send [15:53:15]OFD Sender: No OFD packet to send [15:53:20]OFD Sender: No OFD packet to send [15:53:25]OFD Sender: No OFD packet to send [15:53:30]OFD Sender: No OFD packet to send [15:53:35]OFD Sender: No OFD packet to send [15:53:40]OFD Sender: No OFD packet to send [15:53:45]OFD Sender: No OFD packet to send [15:53:50]OFD Sender: No OFD packet to send [15:53:55]OFD Sender: No OFD packet to send [15:54:00]OFD Sender: No OFD packet to send [15:54:05]OFD Sender: No OFD packet to send [15:54:10]OFD Sender: No OFD packet to send [15:54:15]OFD Sender: No OFD packet to send [15:54:20]OFD Sender: No OFD packet to send [15:54:25]OFD Sender: No OFD packet to send [15:54:30]OFD Sender: No OFD packet to send [15:54:35]OFD Sender: No OFD packet to send [15:54:40]OFD Sender: No OFD packet to send [15:54:45]OFD Sender: No OFD packet to send [15:54:50]OFD Sender: No OFD packet to send [15:54:55]OFD Sender: No OFD packet to send [15:55:00]OFD Sender: No OFD packet to send [15:55:05]OFD Sender: No OFD packet to send [15:55:10]OFD Sender: No OFD packet to send [15:55:15]OFD Sender: No OFD packet to send [15:55:20]OFD Sender: No OFD packet to send [15:55:25]OFD Sender: No OFD packet to send [15:55:30]OFD Sender: No OFD packet to send [15:55:35]OFD Sender: No OFD packet to send [15:55:40]OFD Sender: No OFD packet to send [15:55:45]OFD Sender: No OFD packet to send [15:55:50]OFD Sender: No OFD packet to send [15:55:55]OFD Sender: No OFD packet to send [15:56:00]accept exits with 7 [15:56:00]New connection [15:56:00]New thread 3067202916 created [15:56:00]Thread 3067059556 joined [15:56:00]Waiting for new connection... [15:56:00] Sock 7.Parse request [15:56:00]Sock 7.Check first char [15:56:00]Sock 7.First char is OK [15:56:00]request: POST /json_proto HTTP/1.0 [15:56:00]Method: POST [15:56:00]URL: /json_proto [15:56:00]Method is POST - this is cgi request [15:56:00]url: /json_proto [15:56:00]query_string will be loaded in cgi processing [15:56:00]execute_cgi json_proto POST (null) [15:56:00]execute_cgi path=json_proto method=POST [15:56:00]POST find Content-Length [15:56:00]Host: 172.17.41.195:8080 [15:56:00]Content-Length: 1207 [15:56:00]Content-Type: application/json [15:56:00] [15:56:00]POST finish read [15:56:00]Found Content-Length = 1207 [15:56:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0440\u0441\u0442\u0430\u043D\u0431\u0435\u043A\u043E\u0432 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)508088\u000A18.05.2024 15:38\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 6.700 x 74.70\u000A\u0418\u0422\u041E\u0413: 500.49\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:56:00]execute_script... [15:56:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0440\u0441\u0442\u0430\u043D\u0431\u0435\u043A\u043E\u0432 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)508088\u000A18.05.2024 15:38\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 6.700 x 74.70\u000A\u0418\u0422\u041E\u0413: 500.49\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:56:00]POST & json_proto [15:56:00]process_json_proto [15:56:00]json parsed OK: [15:56:00]protocol is kg_v1.0 [15:56:00]action value=print_text [15:56:00]process_action print_text [15:56:00]cmd_print_text [15:56:00]ExternCall_PrintAddStr [15:56:00]wPrintStart [15:56:00]Write to MH i2c: 01 00 00 6A 05 6F [15:56:00]Write i2c OK [15:56:00]MH_I2C_Read... [15:56:00]Read from MH i2c: 01 [15:56:00]MH_I2C_Read... [15:56:00]Read from MH i2c: 01 07 00 [15:56:00]MH_I2C_Read... [15:56:00]Read from MH i2c: 01 07 00 6A 05 00 00 00 00 00 FF 0F 84 [15:56:00]RasterBufferAndPrint [15:56:00]line *****ТОВАРНЫЙ ЧЕК***** [15:56:00]line АЗС-91 [15:56:00]line Партнер нефть [15:56:00]line 02508201610067 [15:56:00]line Кассир : Арстанбеков Н. [15:56:00]line Счет N : (1)508088 [15:56:00]line 18.05.2024 15:38 [15:56:00]line ПРОДАЖА [15:56:00]line ТРК (МРК, ГНК): 11 [15:56:00]line Вид ГСМ : 2710194210 [15:56:00]line ДТ-К-5 [15:56:00]line 6.700 x 74.70 [15:56:00]line ИТОГ: 500.49 [15:56:00]line Тип оплаты: Талоны: Топливная Карта [15:56:00]line 02750 [15:56:00]line ______________________ [15:56:00]line (подпись) [15:56:00]written 0, free lines is 4095 [15:56:00]Write to MH i2c: 01 00 00 7E 05 83 [15:56:00]Write i2c OK [15:56:00]MH_I2C_Read... [15:56:00]Read from MH i2c: 01 [15:56:00]MH_I2C_Read... [15:56:00]Read from MH i2c: 01 07 00 [15:56:00]MH_I2C_Read... [15:56:00]Read from MH i2c: 01 07 00 7E 05 00 00 00 00 00 0E 0E A6 [15:56:00]RasterBufferAndPrint [15:56:00]line [15:56:00]line [15:56:00]line [15:56:00]line [15:56:00]line [15:56:00]written 0, free lines is 3599 [15:56:00]MH_Cut [15:56:00]Write to MH i2c: D1 01 00 85 05 01 5C [15:56:00]Write i2c OK [15:56:00]MH_I2C_Read... [15:56:00]Read from MH i2c: D1 [15:56:00]MH_I2C_Read... [15:56:00]Read from MH i2c: D1 01 00 [15:56:00]MH_I2C_Read... [15:56:00]Read from MH i2c: D1 01 00 85 05 00 5B [15:56:00]Write to MH i2c: 01 00 00 86 05 8B [15:56:00]Write i2c OK [15:56:00]MH_I2C_Read... [15:56:00]OFD Sender: No OFD packet to send [15:56:00]*** Cut start [15:56:00]*** Purtial cut [15:56:00]*** CUTSNS_PIN = 0 [15:56:01]*** Stage 1: CUTSNS_PIN = 1 [15:56:03]Read from MH i2c: 01 [15:56:03]MH_I2C_Read... [15:56:03]*** Stop cut motor [15:56:03]*** Cut end [15:56:03]Read from MH i2c: 01 07 00 [15:56:03]MH_I2C_Read... [15:56:03]Read from MH i2c: 01 07 00 86 05 00 00 00 00 00 FF 0F A0 [15:56:03]process_action print_text done [15:56:03]requested_data is exist [15:56:03]produce_requested_data [15:56:03]requested_item fm.sn is exist - process it [15:56:03]wFMCommunicate request_size=4 [15:56:03]MH_SAM_APDU [15:56:03]CAPDU: 80 11 00 00 [15:56:03]Write to MH i2c: E2 08 00 87 05 80 11 00 00 00 00 00 00 06 [15:56:03]Write i2c OK [15:56:03]MH_I2C_Read... [15:56:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:56:03]Read from MH i2c: E2 [15:56:03]MH_I2C_Read... [15:56:03]Read from MH i2c: E2 17 00 [15:56:03]MH_I2C_Read... [15:56:03]Read from MH i2c: E2 17 00 87 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 5C [15:56:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [15:56:03]wFMCommunicate OK [15:56:03]requested_item fd.num is exist - process it [15:56:03]SAM_PROTO_GetFieldsCounters [15:56:03]wFMCommunicate request_size=4 [15:56:03]MH_SAM_APDU [15:56:03]CAPDU: 80 13 00 00 [15:56:03]Write to MH i2c: E2 08 00 88 05 80 13 00 00 00 00 00 00 09 [15:56:03]Write i2c OK [15:56:03]MH_I2C_Read... [15:56:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:56:03]Read from MH i2c: E2 [15:56:03]MH_I2C_Read... [15:56:03]Read from MH i2c: E2 62 00 [15:56:03]MH_I2C_Read... [15:56:03]Read from MH i2c: E2 62 00 88 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 FA 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 75 [15:56:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 FA 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:56:03]wFMCommunicate OK [15:56:03]SAM_PROTO_GetFieldsCounters done [15:56:03]requested_item shift.num is exist - process it [15:56:03]requested_item shift.opened is exist - process it [15:56:03]req_shift_opened [15:56:03]FM_GetShiftState [15:56:03]SAM_PROTO_GetShiftState [15:56:03]wFMCommunicate request_size=4 [15:56:03]MH_SAM_APDU [15:56:03]CAPDU: 80 13 01 00 [15:56:03]Write to MH i2c: E2 08 00 89 05 80 13 01 00 00 00 00 00 0B [15:56:03]Write i2c OK [15:56:03]MH_I2C_Read... [15:56:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:56:03]Read from MH i2c: E2 [15:56:03]MH_I2C_Read... [15:56:03]Read from MH i2c: E2 0E 00 [15:56:03]MH_I2C_Read... [15:56:03]Read from MH i2c: E2 0E 00 89 05 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 72 [15:56:03]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [15:56:03]wFMCommunicate OK [15:56:03]SAM_PROTO_GetShiftState done [15:56:03]FM_GetShiftState done [15:56:03]req_shift_opened done [15:56:03]requested_item shift.open_date is exist - process it [15:56:03]req_shift_open_date [15:56:03]req_shift_open_date done [15:56:03]produce_requested_data done [15:56:03]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67834,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [15:56:03]process_action_free print_text [15:56:03]json_value_free [15:56:03]json_value_free done [15:56:03]process_json_proto returns [15:56:03]Send response to host [15:56:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67834,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [15:56:03]free response buf [15:56:03]execute_script done [15:56:03]execute_script returns [15:56:03]free content buf [15:56:03]Sock 7.Close socket [15:56:03]Sock 7.Thread stoped [15:56:05]OFD Sender: No OFD packet to send [15:56:10]OFD Sender: No OFD packet to send [15:56:15]OFD Sender: No OFD packet to send [15:56:20]OFD Sender: No OFD packet to send [15:56:25]OFD Sender: No OFD packet to send [15:56:30]OFD Sender: No OFD packet to send [15:56:35]OFD Sender: No OFD packet to send [15:56:40]OFD Sender: No OFD packet to send [15:56:45]OFD Sender: No OFD packet to send [15:56:50]OFD Sender: No OFD packet to send [15:56:55]OFD Sender: No OFD packet to send [15:57:00]OFD Sender: No OFD packet to send [15:57:05]OFD Sender: No OFD packet to send [15:57:10]OFD Sender: No OFD packet to send [15:57:15]OFD Sender: No OFD packet to send [15:57:20]OFD Sender: No OFD packet to send [15:57:25]OFD Sender: No OFD packet to send [15:57:30]OFD Sender: No OFD packet to send [15:57:35]OFD Sender: No OFD packet to send [15:57:40]OFD Sender: No OFD packet to send [15:57:45]OFD Sender: No OFD packet to send [15:57:50]OFD Sender: No OFD packet to send [15:57:55]OFD Sender: No OFD packet to send [15:58:00]OFD Sender: No OFD packet to send [15:58:05]OFD Sender: No OFD packet to send [15:58:10]OFD Sender: No OFD packet to send [15:58:15]OFD Sender: No OFD packet to send [15:58:20]OFD Sender: No OFD packet to send [15:58:25]OFD Sender: No OFD packet to send [15:58:30]OFD Sender: No OFD packet to send [15:58:35]OFD Sender: No OFD packet to send [15:58:40]OFD Sender: No OFD packet to send [15:58:45]OFD Sender: No OFD packet to send [15:58:50]OFD Sender: No OFD packet to send [15:58:55]OFD Sender: No OFD packet to send [15:59:00]OFD Sender: No OFD packet to send [15:59:05]OFD Sender: No OFD packet to send [15:59:10]OFD Sender: No OFD packet to send [15:59:15]OFD Sender: No OFD packet to send [15:59:20]OFD Sender: No OFD packet to send [15:59:26]OFD Sender: No OFD packet to send [15:59:31]OFD Sender: No OFD packet to send [15:59:36]OFD Sender: No OFD packet to send [15:59:41]OFD Sender: No OFD packet to send [15:59:46]OFD Sender: No OFD packet to send [15:59:51]OFD Sender: No OFD packet to send [15:59:56]OFD Sender: No OFD packet to send [16:00:01]OFD Sender: No OFD packet to send [16:00:06]OFD Sender: No OFD packet to send [16:00:11]OFD Sender: No OFD packet to send [16:00:16]OFD Sender: No OFD packet to send [16:00:21]OFD Sender: No OFD packet to send [16:00:21]accept exits with 9 [16:00:21]New connection [16:00:21]New thread 3067059556 created [16:00:21]Thread 3067202916 joined [16:00:21]Waiting for new connection... [16:00:21] Sock 9.Parse request [16:00:21]Sock 9.Check first char [16:00:21]Sock 9.First char is OK [16:00:21]request: POST /json_proto HTTP/1.0 [16:00:21]Method: POST [16:00:21]URL: /json_proto [16:00:21]Method is POST - this is cgi request [16:00:21]url: /json_proto [16:00:21]query_string will be loaded in cgi processing [16:00:21]execute_cgi json_proto POST (null) [16:00:21]execute_cgi path=json_proto method=POST [16:00:21]POST find Content-Length [16:00:21]Host: 172.17.41.195:8080 [16:00:21]Content-Length: 1209 [16:00:21]Content-Type: application/json [16:00:21] [16:00:21]POST finish read [16:00:21]Found Content-Length = 1209 [16:00:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0440\u0441\u0442\u0430\u043D\u0431\u0435\u043A\u043E\u0432 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)508089\u000A18.05.2024 15:42\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 29.460 x 74.70\u000A\u0418\u0422\u041E\u0413: 2200.66\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:00:21]execute_script... [16:00:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0440\u0441\u0442\u0430\u043D\u0431\u0435\u043A\u043E\u0432 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)508089\u000A18.05.2024 15:42\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 29.460 x 74.70\u000A\u0418\u0422\u041E\u0413: 2200.66\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:00:21]POST & json_proto [16:00:21]process_json_proto [16:00:21]json parsed OK: [16:00:21]protocol is kg_v1.0 [16:00:21]action value=print_text [16:00:21]process_action print_text [16:00:21]cmd_print_text [16:00:21]ExternCall_PrintAddStr [16:00:21]wPrintStart [16:00:21]Write to MH i2c: 01 00 00 8A 05 8F [16:00:21]Write i2c OK [16:00:21]MH_I2C_Read... [16:00:21]Read from MH i2c: 01 [16:00:21]MH_I2C_Read... [16:00:21]Read from MH i2c: 01 07 00 [16:00:21]MH_I2C_Read... [16:00:21]Read from MH i2c: 01 07 00 8A 05 00 00 00 00 00 FF 0F A4 [16:00:21]RasterBufferAndPrint [16:00:21]line *****ТОВАРНЫЙ ЧЕК***** [16:00:21]line АЗС-91 [16:00:21]line Партнер нефть [16:00:21]line 02508201610067 [16:00:21]line Кассир : Арстанбеков Н. [16:00:21]line Счет N : (1)508089 [16:00:21]line 18.05.2024 15:42 [16:00:21]line ПРОДАЖА [16:00:21]line ТРК (МРК, ГНК): 11 [16:00:21]line Вид ГСМ : 2710194210 [16:00:21]line ДТ-К-5 [16:00:21]line 29.460 x 74.70 [16:00:21]line ИТОГ: 2200.66 [16:00:21]line Тип оплаты: Талоны: Топливная Карта [16:00:21]line 02750 [16:00:21]line ______________________ [16:00:21]line (подпись) [16:00:21]written 0, free lines is 4095 [16:00:22]Write to MH i2c: 01 00 00 9E 05 A3 [16:00:22]Write i2c OK [16:00:22]MH_I2C_Read... [16:00:22]Read from MH i2c: 01 [16:00:22]MH_I2C_Read... [16:00:22]Read from MH i2c: 01 07 00 [16:00:22]MH_I2C_Read... [16:00:22]Read from MH i2c: 01 07 00 9E 05 00 00 00 00 00 10 0E C8 [16:00:22]RasterBufferAndPrint [16:00:22]line [16:00:22]line [16:00:22]line [16:00:22]line [16:00:22]line [16:00:22]written 0, free lines is 3601 [16:00:22]MH_Cut [16:00:22]Write to MH i2c: D1 01 00 A5 05 01 7C [16:00:22]Write i2c OK [16:00:22]MH_I2C_Read... [16:00:22]Read from MH i2c: D1 [16:00:22]MH_I2C_Read... [16:00:22]Read from MH i2c: D1 01 00 [16:00:22]MH_I2C_Read... [16:00:22]Read from MH i2c: D1 01 00 A5 05 00 7B [16:00:22]Write to MH i2c: 01 00 00 A6 05 AB [16:00:22]Write i2c OK [16:00:22]MH_I2C_Read... [16:00:22]*** Cut start [16:00:22]*** Purtial cut [16:00:22]*** Stage 1: CUTSNS_PIN = 1 [16:00:22]Read from MH i2c: 01 [16:00:22]MH_I2C_Read... [16:00:22]*** Stop cut motor [16:00:22]*** Cut end [16:00:22]Read from MH i2c: 01 07 00 [16:00:22]MH_I2C_Read... [16:00:22]Read from MH i2c: 01 07 00 A6 05 00 00 00 00 00 FF 0F C0 [16:00:22]process_action print_text done [16:00:22]requested_data is exist [16:00:22]produce_requested_data [16:00:22]requested_item fm.sn is exist - process it [16:00:22]wFMCommunicate request_size=4 [16:00:22]MH_SAM_APDU [16:00:22]CAPDU: 80 11 00 00 [16:00:22]Write to MH i2c: E2 08 00 A7 05 80 11 00 00 00 00 00 00 26 [16:00:22]Write i2c OK [16:00:22]MH_I2C_Read... [16:00:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:00:22]Read from MH i2c: E2 [16:00:22]MH_I2C_Read... [16:00:22]Read from MH i2c: E2 17 00 [16:00:22]MH_I2C_Read... [16:00:22]Read from MH i2c: E2 17 00 A7 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 7C [16:00:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [16:00:22]wFMCommunicate OK [16:00:22]requested_item fd.num is exist - process it [16:00:22]SAM_PROTO_GetFieldsCounters [16:00:22]wFMCommunicate request_size=4 [16:00:22]MH_SAM_APDU [16:00:22]CAPDU: 80 13 00 00 [16:00:22]Write to MH i2c: E2 08 00 A8 05 80 13 00 00 00 00 00 00 29 [16:00:22]Write i2c OK [16:00:22]MH_I2C_Read... [16:00:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:00:23]Read from MH i2c: E2 [16:00:23]MH_I2C_Read... [16:00:23]Read from MH i2c: E2 62 00 [16:00:23]MH_I2C_Read... [16:00:23]Read from MH i2c: E2 62 00 A8 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 FA 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 95 [16:00:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 FA 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:00:23]wFMCommunicate OK [16:00:23]SAM_PROTO_GetFieldsCounters done [16:00:23]requested_item shift.num is exist - process it [16:00:23]requested_item shift.opened is exist - process it [16:00:23]req_shift_opened [16:00:23]FM_GetShiftState [16:00:23]SAM_PROTO_GetShiftState [16:00:23]wFMCommunicate request_size=4 [16:00:23]MH_SAM_APDU [16:00:23]CAPDU: 80 13 01 00 [16:00:23]Write to MH i2c: E2 08 00 A9 05 80 13 01 00 00 00 00 00 2B [16:00:23]Write i2c OK [16:00:23]MH_I2C_Read... [16:00:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:00:23]Read from MH i2c: E2 [16:00:23]MH_I2C_Read... [16:00:23]Read from MH i2c: E2 0E 00 [16:00:23]MH_I2C_Read... [16:00:23]Read from MH i2c: E2 0E 00 A9 05 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 92 [16:00:23]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [16:00:23]wFMCommunicate OK [16:00:23]SAM_PROTO_GetShiftState done [16:00:23]FM_GetShiftState done [16:00:23]req_shift_opened done [16:00:23]requested_item shift.open_date is exist - process it [16:00:23]req_shift_open_date [16:00:23]req_shift_open_date done [16:00:23]produce_requested_data done [16:00:23]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67834,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [16:00:23]process_action_free print_text [16:00:23]json_value_free [16:00:23]json_value_free done [16:00:23]process_json_proto returns [16:00:23]Send response to host [16:00:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67834,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [16:00:23]free response buf [16:00:23]execute_script done [16:00:23]execute_script returns [16:00:23]free content buf [16:00:23]Sock 9.Close socket [16:00:23]Sock 9.Thread stoped [16:00:26]OFD Sender: No OFD packet to send [16:00:31]OFD Sender: No OFD packet to send [16:00:36]OFD Sender: No OFD packet to send [16:00:39]accept exits with 7 [16:00:39]New connection [16:00:39]New thread 3067202916 created [16:00:39]Thread 3067059556 joined [16:00:39]Waiting for new connection... [16:00:39] Sock 7.Parse request [16:00:39]Sock 7.Check first char [16:00:39]Sock 7.First char is OK [16:00:39]request: POST /json_proto HTTP/1.0 [16:00:39]Method: POST [16:00:39]URL: /json_proto [16:00:39]Method is POST - this is cgi request [16:00:39]url: /json_proto [16:00:39]query_string will be loaded in cgi processing [16:00:39]execute_cgi json_proto POST (null) [16:00:39]execute_cgi path=json_proto method=POST [16:00:39]POST find Content-Length [16:00:39]Host: 172.17.41.195:8080 [16:00:39]Content-Length: 816 [16:00:39]Content-Type: application/json [16:00:39] [16:00:39]POST finish read [16:00:39]Found Content-Length = 816 [16:00:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)508087", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 73.800, "sum" : 5512.86, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 5512.86 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:00:39]execute_script... [16:00:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)508087", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 73.800, "sum" : 5512.86, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 5512.86 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:00:39]POST & json_proto [16:00:39]process_json_proto [16:00:39]json parsed OK: [16:00:39]protocol is kg_v1.0 [16:00:39]action value=close_receipt [16:00:39]process_action close_receipt [16:00:39]cmd_close_receipt [16:00:39]MH_GetDate [16:00:39]Write to MH i2c: F0 00 00 AA 05 9E [16:00:39]Write i2c OK [16:00:39]MH_I2C_Read... [16:00:39]Read from MH i2c: F0 [16:00:39]MH_I2C_Read... [16:00:39]Read from MH i2c: F0 09 00 [16:00:39]MH_I2C_Read... [16:00:39]Read from MH i2c: F0 09 00 AA 05 00 A8 D0 48 66 FC 21 6F 64 BD [16:00:39]GetLastDocTimeStamp 1716045243 [16:00:39]current date 1716048040 [16:00:39]FM_GetShiftState [16:00:39]SAM_PROTO_GetShiftState [16:00:39]wFMCommunicate request_size=4 [16:00:39]MH_SAM_APDU [16:00:39]CAPDU: 80 13 01 00 [16:00:39]Write to MH i2c: E2 08 00 AB 05 80 13 01 00 00 00 00 00 2D [16:00:39]Write i2c OK [16:00:39]MH_I2C_Read... [16:00:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:00:39]Read from MH i2c: E2 [16:00:39]MH_I2C_Read... [16:00:39]Read from MH i2c: E2 0E 00 [16:00:39]MH_I2C_Read... [16:00:39]Read from MH i2c: E2 0E 00 AB 05 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 94 [16:00:39]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [16:00:39]wFMCommunicate OK [16:00:39]SAM_PROTO_GetShiftState done [16:00:39]FM_GetShiftState done [16:00:39]opened in 1715991483 [16:00:39]opened+sec_in_day 1716077883 [16:00:39]quantity*price = 551286 [16:00:39]sum+1 = 551287 [16:00:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 5512.86 НСП 1% : 48.79 НДС 12% : 585.44 Наличными: 0.00 Безнал.: 5512.86 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 74 18.05.2024 16:00 Смена: 359 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871829 ФД: 67835 ФПД: 219778762189544 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T160040&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67835&fm=219778762189544&tin=02508201610067®Number=0000000000091845&sum=551286 [16:00:41]StoreToDocumentArchive [16:00:41]shift 359 fd 67835 [16:00:41]save to /storage/0359/doc_00067835 [16:00:41]save last doc name /storage/0359/doc_00067835 to /storage/kkm_last_doc_name [16:00:41]save OK [16:00:41]Clear old archive folders... [16:00:41]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:00:41]tlvbuf is 009D1140 [16:00:41]SAM_PROTO_ClearQueue [16:00:41]wFMCommunicate request_size=4 [16:00:41]MH_SAM_APDU [16:00:41]CAPDU: 80 09 00 00 [16:00:41]Write to MH i2c: E2 08 00 B8 05 80 09 00 00 00 00 00 00 2F [16:00:41]Write i2c OK [16:00:41]MH_I2C_Read... [16:00:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:00:41]OFD Sender: No OFD packet to send [16:00:41]Read from MH i2c: E2 [16:00:41]MH_I2C_Read... [16:00:41]Read from MH i2c: E2 03 00 [16:00:41]MH_I2C_Read... [16:00:41]Read from MH i2c: E2 03 00 B8 05 00 90 00 31 [16:00:41]RAPDU: 90 00 [16:00:41]wFMCommunicate OK [16:00:41]SAM_PROTO_ClearQueue done [16:00:41]KKMCreateOFDPacket [16:00:41]OFDProtocolAddRootSTLVToBuf [16:00:41]FM_MakeSignedData [16:00:41]FM_MakeSignedData [16:00:41]SAM_PROTO_SignData [16:00:41]wFMCommunicate request_size=4 [16:00:41]MH_SAM_APDU [16:00:41]CAPDU: 80 0D 01 02 [16:00:41]Write to MH i2c: E2 08 00 B9 05 80 0D 01 02 00 00 00 00 37 [16:00:41]Write i2c OK [16:00:41]MH_I2C_Read... [16:00:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:00:41]Read from MH i2c: E2 [16:00:41]MH_I2C_Read... [16:00:41]Read from MH i2c: E2 03 00 [16:00:41]MH_I2C_Read... [16:00:41]Read from MH i2c: E2 03 00 B9 05 00 90 00 32 [16:00:41]RAPDU: 90 00 [16:00:41]wFMCommunicate OK [16:00:41]wFMCommunicate request_size=255 [16:00:41]MH_SAM_APDU [16:00:41]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 48 20 01 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 76 69 08 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 76 69 08 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0F 13 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B0 E4 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 76 69 08 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 A8 D0 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 FB 08 01 00 35 04 06 00 C7 E3 3B 0C [16:00:41]Write to MH i2c: E2 02 01 BA 05 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 48 20 01 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 76 69 08 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 76 69 08 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0F 13 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B0 E4 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 76 69 08 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 A8 D0 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 FB 08 01 00 35 04 06 00 C7 E3 3B 0C 00 00 85 [16:00:41]Write i2c OK [16:00:41]MH_I2C_Read... [16:00:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:00:41]Read from MH i2c: E2 [16:00:41]MH_I2C_Read... [16:00:41]Read from MH i2c: E2 03 00 [16:00:41]MH_I2C_Read... [16:00:41]Read from MH i2c: E2 03 00 BA 05 00 90 00 33 [16:00:41]RAPDU: 90 00 [16:00:41]wFMCommunicate OK [16:00:41]wFMCommunicate request_size=7 [16:00:41]MH_SAM_APDU [16:00:41]CAPDU: 80 0D 02 02 02 AA E8 [16:00:41]Write to MH i2c: E2 0A 00 BB 05 80 0D 02 02 02 00 AA E8 00 00 D0 [16:00:41]Write i2c OK [16:00:41]MH_I2C_Read... [16:00:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:00:41]Read from MH i2c: E2 [16:00:41]MH_I2C_Read... [16:00:41]Read from MH i2c: E2 03 00 [16:00:41]MH_I2C_Read... [16:00:41]Read from MH i2c: E2 03 00 BB 05 00 90 00 34 [16:00:41]RAPDU: 90 00 [16:00:41]wFMCommunicate OK [16:00:41]wFMCommunicate request_size=4 [16:00:41]MH_SAM_APDU [16:00:41]CAPDU: 80 0D 03 02 [16:00:41]Write to MH i2c: E2 08 00 BC 05 80 0D 03 02 00 00 00 00 3C [16:00:41]Write i2c OK [16:00:41]MH_I2C_Read... [16:00:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:00:41]Read from MH i2c: E2 [16:00:41]MH_I2C_Read... [16:00:41]Read from MH i2c: E2 0B 00 [16:00:41]MH_I2C_Read... [16:00:41]Read from MH i2c: E2 0B 00 BC 05 00 8C 3B 7C F5 D8 8E 70 D3 90 00 1E [16:00:41]RAPDU: 8C 3B 7C F5 D8 8E 70 D3 90 00 [16:00:41]wFMCommunicate OK [16:00:41]SAM_PROTO_SignData done [16:00:41]FM_MakeSignedData done [16:00:41]CreateOFDProtocolMessage [16:00:41]wFMCommunicate request_size=4 [16:00:41]MH_SAM_APDU [16:00:41]CAPDU: 80 11 00 00 [16:00:41]Write to MH i2c: E2 08 00 BD 05 80 11 00 00 00 00 00 00 3C [16:00:41]Write i2c OK [16:00:41]MH_I2C_Read... [16:00:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:00:41]Read from MH i2c: E2 [16:00:41]MH_I2C_Read... [16:00:41]Read from MH i2c: E2 17 00 [16:00:41]MH_I2C_Read... [16:00:41]Read from MH i2c: E2 17 00 BD 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 92 [16:00:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [16:00:41]wFMCommunicate OK [16:00:41]CreateOFDProtocolMessage done [16:00:41]OFDSenderStorePacket 67835 [16:00:41]StoreOFDPacket docnum=67835 [16:00:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 13 2E 04 01 76 58 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 48 20 01 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 76 69 08 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 76 69 08 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0F 13 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B0 E4 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 76 69 08 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 A8 D0 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 FB 08 01 00 35 04 06 00 C7 E3 3B 0C AA E8 8C 3B 7C F5 D8 8E 70 D3 [16:00:41]CheckFolder [16:00:41]dirname=/storage/ofd_packets [16:00:41]CheckFolder done [16:00:41]ProducePacketName [16:00:41]name=ofd_packets/00067835 [16:00:41]NVStorageSaveData ofd_packets/00067835 [16:00:41]File name is /storage/ofd_packets/00067835 [16:00:41]Write 298 bytes [16:00:41]NVStorageSaveData done [16:00:41]OFDSenderStorePacket done [16:00:41]KKMCreateOFDPacket done [16:00:41]NVStorageSaveData kkm_last_timestamp [16:00:41]File name is /storage/kkm_last_timestamp [16:00:41]Write 4 bytes [16:00:41]NVStorageSaveData done [16:00:41]ExternCall_PrintAddStr [16:00:41]wPrintStart [16:00:41]Write to MH i2c: 01 00 00 BE 05 C3 [16:00:41]Write i2c OK [16:00:41]MH_I2C_Read... [16:00:41]Read from MH i2c: 01 [16:00:41]MH_I2C_Read... [16:00:41]Read from MH i2c: 01 07 00 [16:00:41]MH_I2C_Read... [16:00:41]Read from MH i2c: 01 07 00 BE 05 00 00 00 00 00 FF 0F D8 [16:00:41]RasterBufferAndPrint [16:00:41]line Счет N : (1)508087 [16:00:41]line ИНН: 02508201610067 [16:00:41]line Контрольно-Кассовый Чек [16:00:41]line ПРОДАЖА [16:00:41]line ТРК (МРК, ГНК) : 31 [16:00:41]line Товар: 2710194210 [16:00:41]line ДТ-К-5 [16:00:41]line 73.800 * 74.70 [16:00:41]line = 5512.86 [16:00:41]line НДС 12% НСП 1% [16:00:41]line > о реализуемом товаре [16:00:41]line ИТОГО: 5512.86 [16:00:41]line НСП 1% : 48.79 [16:00:41]line НДС 12% : 585.44 [16:00:41]line Наличными: 0.00 [16:00:41]line Безнал.: 5512.86 [16:00:41]line Место: АЗС № 91 "Партнер Нефть" [16:00:41]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [16:00:41]line СНО: Общий режим [16:00:41]line Чек 74 18.05.2024 16:00 [16:00:41]line Смена: 359 ФФД: 1.0 [16:00:41]line ЗНМ: 0300000119 [16:00:41]line РНМ: 0000000000091845 [16:00:41]line Версия ККМ: 001 [16:00:41]line Платежная система: Бакай Банк [16:00:41]line ФМ: 0000000000871829 [16:00:41]line ФД: 67835 [16:00:41]line ФПД: 219778762189544 [16:00:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T160040&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67835&fm=219778762189544&tin=02508201610067®Number=0000000000091845&sum=551286 [16:00:41]OFD Sender: Processing packet 67835 [packets to send 35, broken 34] [16:00:41]ProducePacketName [16:00:41]name=ofd_packets/00067835 [16:00:41]OFD Sender: To server: pG, [16:00:41]CommunicateWithHost lk.salyk.kg:30040 [16:00:41]ConnectInit lk.salyk.kg [16:00:41]written 0, free lines is 4095 [16:00:42]Connected sock=10 [16:00:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 13 2E 04 01 76 58 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 48 20 01 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 76 69 08 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 76 69 08 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0F 13 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B0 E4 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 76 69 08 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 A8 D0 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 FB 08 01 00 35 04 06 00 C7 E3 3B 0C AA E8 8C 3B 7C F5 D8 8E 70 D3 [16:00:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 CF 0E 47 00 C2 FE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 FB 08 01 00 F4 03 04 00 7D 78 48 66 B6 04 01 00 00 12 2D FF 86 DA B6 92 E8 [16:00:42]CommunicateWithHost err = 0 [16:00:42]CheckOFDResponse [16:00:42]1017 (14) - 77093643461234 [16:00:42]1041 (16) - 0000000000871829 [16:00:42]1040 (4) - 67835 [16:00:42]1012 (4) - 18.05.2024 09:44 [16:00:42]1206 (1) - 0 [16:00:42]OFD Sender: Remove packet 67835 [16:00:42]ProducePacketName [16:00:42]name=ofd_packets/00067835 [16:00:42]NVStorageDeleteData [16:00:42]Write to MH i2c: 01 00 00 E7 05 EC [16:00:42]Write i2c OK [16:00:42]MH_I2C_Read... [16:00:42]Read from MH i2c: 01 [16:00:42]MH_I2C_Read... [16:00:42]Read from MH i2c: 01 07 00 [16:00:42]MH_I2C_Read... [16:00:42]Read from MH i2c: 01 07 00 E7 05 00 00 00 00 00 D4 0C D3 [16:00:42]RasterBufferAndPrint [16:00:42]line [16:00:42]line [16:00:42]line [16:00:42]line [16:00:42]line [16:00:42]written 0, free lines is 3288 [16:00:42]MH_Cut [16:00:42]Write to MH i2c: D1 01 00 EE 05 01 C5 [16:00:42]Write i2c OK [16:00:42]MH_I2C_Read... [16:00:42]Read from MH i2c: D1 [16:00:42]MH_I2C_Read... [16:00:42]Read from MH i2c: D1 01 00 [16:00:42]MH_I2C_Read... [16:00:42]Read from MH i2c: D1 01 00 EE 05 00 C4 [16:00:42]Write to MH i2c: 01 00 00 EF 05 F4 [16:00:42]Write i2c OK [16:00:42]MH_I2C_Read... [16:00:42]OFD Sender: No OFD packet to send [16:00:43]*** Cut start [16:00:43]*** Purtial cut [16:00:43]*** CUTSNS_PIN = 0 [16:00:43]*** Stage 1: CUTSNS_PIN = 1 [16:00:45]Read from MH i2c: 01 [16:00:45]MH_I2C_Read... [16:00:45]*** Stop cut motor [16:00:45]*** Cut end [16:00:45]Read from MH i2c: 01 07 00 [16:00:45]MH_I2C_Read... [16:00:45]Read from MH i2c: 01 07 00 EF 05 00 00 00 00 00 FF 0F 09 [16:00:45]process_action close_receipt done [16:00:45]requested_data is exist [16:00:45]produce_requested_data [16:00:45]requested_item fm.sn is exist - process it [16:00:45]wFMCommunicate request_size=4 [16:00:45]MH_SAM_APDU [16:00:45]CAPDU: 80 11 00 00 [16:00:45]Write to MH i2c: E2 08 00 F0 05 80 11 00 00 00 00 00 00 6F [16:00:45]Write i2c OK [16:00:45]MH_I2C_Read... [16:00:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:00:45]Read from MH i2c: E2 [16:00:45]MH_I2C_Read... [16:00:45]Read from MH i2c: E2 17 00 [16:00:45]MH_I2C_Read... [16:00:45]Read from MH i2c: E2 17 00 F0 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 C5 [16:00:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [16:00:45]wFMCommunicate OK [16:00:45]requested_item fd.num is exist - process it [16:00:45]SAM_PROTO_GetFieldsCounters [16:00:45]wFMCommunicate request_size=4 [16:00:45]MH_SAM_APDU [16:00:45]CAPDU: 80 13 00 00 [16:00:45]Write to MH i2c: E2 08 00 F1 05 80 13 00 00 00 00 00 00 72 [16:00:45]Write i2c OK [16:00:45]MH_I2C_Read... [16:00:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:00:45]Read from MH i2c: E2 [16:00:45]MH_I2C_Read... [16:00:45]Read from MH i2c: E2 62 00 [16:00:45]MH_I2C_Read... [16:00:45]Read from MH i2c: E2 62 00 F1 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 FB 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 4A 00 00 00 5E 04 04 00 4A 00 00 00 57 04 04 00 4B 00 00 00 19 04 04 00 00 00 00 00 90 00 E2 [16:00:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 FB 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 4A 00 00 00 5E 04 04 00 4A 00 00 00 57 04 04 00 4B 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:00:45]wFMCommunicate OK [16:00:45]SAM_PROTO_GetFieldsCounters done [16:00:45]requested_item shift.num is exist - process it [16:00:45]requested_item shift.opened is exist - process it [16:00:45]req_shift_opened [16:00:45]FM_GetShiftState [16:00:45]SAM_PROTO_GetShiftState [16:00:45]wFMCommunicate request_size=4 [16:00:45]MH_SAM_APDU [16:00:45]CAPDU: 80 13 01 00 [16:00:45]Write to MH i2c: E2 08 00 F2 05 80 13 01 00 00 00 00 00 74 [16:00:45]Write i2c OK [16:00:45]MH_I2C_Read... [16:00:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:00:45]Read from MH i2c: E2 [16:00:45]MH_I2C_Read... [16:00:45]Read from MH i2c: E2 0E 00 [16:00:45]MH_I2C_Read... [16:00:45]Read from MH i2c: E2 0E 00 F2 05 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 DB [16:00:45]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [16:00:45]wFMCommunicate OK [16:00:45]SAM_PROTO_GetShiftState done [16:00:45]FM_GetShiftState done [16:00:45]req_shift_opened done [16:00:45]requested_item shift.open_date is exist - process it [16:00:45]req_shift_open_date [16:00:45]req_shift_open_date done [16:00:45]produce_requested_data done [16:00:45]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67835,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [16:00:45]process_action_free close_receipt [16:00:45]json_value_free [16:00:45]json_value_free done [16:00:45]process_json_proto returns [16:00:45]Send response to host [16:00:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67835,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [16:00:45]free response buf [16:00:45]execute_script done [16:00:45]execute_script returns [16:00:45]free content buf [16:00:45]Sock 7.Close socket [16:00:45]Sock 7.Thread stoped [16:00:47]OFD Sender: No OFD packet to send [16:00:52]OFD Sender: No OFD packet to send [16:00:57]OFD Sender: No OFD packet to send [16:01:01]accept exits with 9 [16:01:01]New connection [16:01:01]New thread 3067059556 created [16:01:01]Thread 3067202916 joined [16:01:01]Waiting for new connection... [16:01:01] Sock 9.Parse request [16:01:01]Sock 9.Check first char [16:01:01]Sock 9.First char is OK [16:01:01]request: POST /json_proto HTTP/1.0 [16:01:01]Method: POST [16:01:01]URL: /json_proto [16:01:01]Method is POST - this is cgi request [16:01:01]url: /json_proto [16:01:01]query_string will be loaded in cgi processing [16:01:01]execute_cgi json_proto POST (null) [16:01:01]execute_cgi path=json_proto method=POST [16:01:01]POST find Content-Length [16:01:01]Host: 172.17.41.195:8080 [16:01:01]Content-Length: 800 [16:01:01]Content-Type: application/json [16:01:01] [16:01:01]POST finish read [16:01:01]Found Content-Length = 800 [16:01:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)508090", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.80, "quantity" : 9.740, "sum" : 650.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 650.63 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:01:01]execute_script... [16:01:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)508090", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.80, "quantity" : 9.740, "sum" : 650.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 650.63 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:01:01]POST & json_proto [16:01:01]process_json_proto [16:01:01]json parsed OK: [16:01:01]protocol is kg_v1.0 [16:01:01]action value=close_receipt [16:01:01]process_action close_receipt [16:01:01]cmd_close_receipt [16:01:01]MH_GetDate [16:01:01]Write to MH i2c: F0 00 00 F3 05 E7 [16:01:01]Write i2c OK [16:01:01]MH_I2C_Read... [16:01:01]Read from MH i2c: F0 [16:01:01]MH_I2C_Read... [16:01:01]Read from MH i2c: F0 09 00 [16:01:01]MH_I2C_Read... [16:01:01]Read from MH i2c: F0 09 00 F3 05 00 BE D0 48 66 FC 21 6F 64 1C [16:01:01]GetLastDocTimeStamp 1716048040 [16:01:01]current date 1716048062 [16:01:01]FM_GetShiftState [16:01:01]SAM_PROTO_GetShiftState [16:01:01]wFMCommunicate request_size=4 [16:01:01]MH_SAM_APDU [16:01:01]CAPDU: 80 13 01 00 [16:01:01]Write to MH i2c: E2 08 00 F4 05 80 13 01 00 00 00 00 00 76 [16:01:01]Write i2c OK [16:01:01]MH_I2C_Read... [16:01:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:01:01]Read from MH i2c: E2 [16:01:01]MH_I2C_Read... [16:01:01]Read from MH i2c: E2 0E 00 [16:01:01]MH_I2C_Read... [16:01:01]Read from MH i2c: E2 0E 00 F4 05 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 DD [16:01:01]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [16:01:01]wFMCommunicate OK [16:01:01]SAM_PROTO_GetShiftState done [16:01:01]FM_GetShiftState done [16:01:01]opened in 1715991483 [16:01:01]opened+sec_in_day 1716077883 [16:01:01]quantity*price = 65063 [16:01:01]sum+1 = 65064 [16:01:01]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 650.63 НСП 1% : 5.76 НДС 12% : 69.09 Наличными: 0.00 Безнал.: 650.63 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 75 18.05.2024 16:01 Смена: 359 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67836 ФПД: 260938351313630 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T160102&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67836&fm=260938351313630&tin=02508201610067®Number=0000000000091845&sum=65063 [16:01:02]StoreToDocumentArchive [16:01:02]shift 359 fd 67836 [16:01:02]save to /storage/0359/doc_00067836 [16:01:02]save last doc name /storage/0359/doc_00067836 to /storage/kkm_last_doc_name [16:01:02]save OK [16:01:02]Clear old archive folders... [16:01:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:01:02]tlvbuf is 009F5210 [16:01:02]SAM_PROTO_ClearQueue [16:01:02]wFMCommunicate request_size=4 [16:01:02]MH_SAM_APDU [16:01:02]CAPDU: 80 09 00 00 [16:01:02]Write to MH i2c: E2 08 00 01 06 80 09 00 00 00 00 00 00 79 [16:01:02]Write i2c OK [16:01:02]MH_I2C_Read... [16:01:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:01:02]Read from MH i2c: E2 [16:01:02]MH_I2C_Read... [16:01:02]Read from MH i2c: E2 03 00 [16:01:02]MH_I2C_Read... [16:01:02]Read from MH i2c: E2 03 00 01 06 00 90 00 7B [16:01:02]RAPDU: 90 00 [16:01:02]wFMCommunicate OK [16:01:02]SAM_PROTO_ClearQueue done [16:01:02]KKMCreateOFDPacket [16:01:02]OFDProtocolAddRootSTLVToBuf [16:01:02]FM_MakeSignedData [16:01:02]FM_MakeSignedData [16:01:02]SAM_PROTO_SignData [16:01:02]wFMCommunicate request_size=4 [16:01:02]MH_SAM_APDU [16:01:02]CAPDU: 80 0D 01 02 [16:01:02]Write to MH i2c: E2 08 00 02 06 80 0D 01 02 00 00 00 00 81 [16:01:02]Write i2c OK [16:01:02]MH_I2C_Read... [16:01:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:01:02]Read from MH i2c: E2 [16:01:02]MH_I2C_Read... [16:01:02]Read from MH i2c: E2 03 00 [16:01:02]MH_I2C_Read... [16:01:02]Read from MH i2c: E2 03 00 02 06 00 90 00 7C [16:01:02]RAPDU: 90 00 [16:01:02]wFMCommunicate OK [16:01:02]wFMCommunicate request_size=255 [16:01:02]MH_SAM_APDU [16:01:02]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 26 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 27 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 27 FE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 1A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 27 FE 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 BE D0 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 FC 08 01 00 35 04 06 00 ED [16:01:02]Write to MH i2c: E2 02 01 03 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 26 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 27 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 27 FE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 1A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 27 FE 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 BE D0 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 FC 08 01 00 35 04 06 00 ED 00 00 9D [16:01:02]Write i2c OK [16:01:02]MH_I2C_Read... [16:01:02]OFD Sender: No OFD packet to send [16:01:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:01:02]Read from MH i2c: E2 [16:01:02]MH_I2C_Read... [16:01:02]Read from MH i2c: E2 03 00 [16:01:02]MH_I2C_Read... [16:01:02]Read from MH i2c: E2 03 00 03 06 00 90 00 7D [16:01:02]RAPDU: 90 00 [16:01:02]wFMCommunicate OK [16:01:02]wFMCommunicate request_size=10 [16:01:02]MH_SAM_APDU [16:01:02]CAPDU: 80 0D 02 02 05 52 71 BD 02 DE [16:01:02]Write to MH i2c: E2 0D 00 04 06 80 0D 02 02 05 00 52 71 BD 02 DE 00 00 EE [16:01:02]Write i2c OK [16:01:02]MH_I2C_Read... [16:01:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:01:02]Read from MH i2c: E2 [16:01:02]MH_I2C_Read... [16:01:02]Read from MH i2c: E2 03 00 [16:01:02]MH_I2C_Read... [16:01:02]Read from MH i2c: E2 03 00 04 06 00 90 00 7E [16:01:02]RAPDU: 90 00 [16:01:02]wFMCommunicate OK [16:01:02]wFMCommunicate request_size=4 [16:01:02]MH_SAM_APDU [16:01:02]CAPDU: 80 0D 03 02 [16:01:02]Write to MH i2c: E2 08 00 05 06 80 0D 03 02 00 00 00 00 86 [16:01:02]Write i2c OK [16:01:02]MH_I2C_Read... [16:01:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:01:02]Read from MH i2c: E2 [16:01:02]MH_I2C_Read... [16:01:02]Read from MH i2c: E2 0B 00 [16:01:02]MH_I2C_Read... [16:01:02]Read from MH i2c: E2 0B 00 05 06 00 C4 29 23 01 B2 5D BA 55 90 00 B6 [16:01:02]RAPDU: C4 29 23 01 B2 5D BA 55 90 00 [16:01:02]wFMCommunicate OK [16:01:02]SAM_PROTO_SignData done [16:01:02]FM_MakeSignedData done [16:01:02]CreateOFDProtocolMessage [16:01:02]wFMCommunicate request_size=4 [16:01:02]MH_SAM_APDU [16:01:02]CAPDU: 80 11 00 00 [16:01:02]Write to MH i2c: E2 08 00 06 06 80 11 00 00 00 00 00 00 86 [16:01:02]Write i2c OK [16:01:02]MH_I2C_Read... [16:01:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:01:03]Read from MH i2c: E2 [16:01:03]MH_I2C_Read... [16:01:03]Read from MH i2c: E2 17 00 [16:01:03]MH_I2C_Read... [16:01:03]Read from MH i2c: E2 17 00 06 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 DC [16:01:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [16:01:03]wFMCommunicate OK [16:01:03]CreateOFDProtocolMessage done [16:01:03]OFDSenderStorePacket 67836 [16:01:03]StoreOFDPacket docnum=67836 [16:01:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 50 9D 07 01 AE EA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 26 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 27 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 27 FE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 1A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 27 FE 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 BE D0 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 FC 08 01 00 35 04 06 00 ED 52 71 BD 02 DE C4 29 23 01 B2 5D BA 55 [16:01:03]CheckFolder [16:01:03]dirname=/storage/ofd_packets [16:01:03]CheckFolder done [16:01:03]ProducePacketName [16:01:03]name=ofd_packets/00067836 [16:01:03]NVStorageSaveData ofd_packets/00067836 [16:01:03]File name is /storage/ofd_packets/00067836 [16:01:03]Write 301 bytes [16:01:03]NVStorageSaveData done [16:01:03]OFDSenderStorePacket done [16:01:03]KKMCreateOFDPacket done [16:01:03]NVStorageSaveData kkm_last_timestamp [16:01:03]File name is /storage/kkm_last_timestamp [16:01:03]Write 4 bytes [16:01:03]NVStorageSaveData done [16:01:03]ExternCall_PrintAddStr [16:01:03]wPrintStart [16:01:03]Write to MH i2c: 01 00 00 07 06 0D [16:01:03]Write i2c OK [16:01:03]MH_I2C_Read... [16:01:03]Read from MH i2c: 01 [16:01:03]MH_I2C_Read... [16:01:03]Read from MH i2c: 01 07 00 [16:01:03]MH_I2C_Read... [16:01:03]Read from MH i2c: 01 07 00 07 06 00 00 00 00 00 FF 0F 22 [16:01:03]RasterBufferAndPrint [16:01:03]line Счет N : (1)508090 [16:01:03]line ИНН: 02508201610067 [16:01:03]line Контрольно-Кассовый Чек [16:01:03]line ПРОДАЖА [16:01:03]line ТРК (МРК, ГНК) : 43 [16:01:03]line Товар: 2710124130 [16:01:03]line Аи-92-К-5 [16:01:03]line 9.740 * 66.80 [16:01:03]line = 650.63 [16:01:03]line НДС 12% НСП 1% [16:01:03]line > о реализуемом товаре [16:01:03]line ИТОГО: 650.63 [16:01:03]line НСП 1% : 5.76 [16:01:03]line НДС 12% : 69.09 [16:01:03]line Наличными: 0.00 [16:01:03]line Безнал.: 650.63 [16:01:03]line Место: АЗС № 91 "Партнер Нефть" [16:01:03]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [16:01:03]line СНО: Общий режим [16:01:03]line Чек 75 18.05.2024 16:01 [16:01:03]line Смена: 359 ФФД: 1.0 [16:01:03]line ЗНМ: 0300000119 [16:01:03]line РНМ: 0000000000091845 [16:01:03]line Версия ККМ: 001 [16:01:03]line Платежная система: O! деньги [16:01:03]line ФМ: 0000000000871829 [16:01:03]line ФД: 67836 [16:01:03]line ФПД: 260938351313630 [16:01:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T160102&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67836&fm=260938351313630&tin=02508201610067®Number=0000000000091845&sum=65063 [16:01:03]OFD Sender: Processing packet 67836 [packets to send 35, broken 34] [16:01:03]ProducePacketName [16:01:03]name=ofd_packets/00067836 [16:01:03]OFD Sender: To server: pG, [16:01:03]CommunicateWithHost lk.salyk.kg:30040 [16:01:03]ConnectInit lk.salyk.kg [16:01:03]written 0, free lines is 4095 [16:01:03]Connected sock=10 [16:01:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 50 9D 07 01 AE EA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 26 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 27 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 27 FE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 1A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 27 FE 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 BE D0 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 FC 08 01 00 35 04 06 00 ED 52 71 BD 02 DE C4 29 23 01 B2 5D BA 55 [16:01:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 6F 92 47 00 1B 5A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 FC 08 01 00 F4 03 04 00 93 78 48 66 B6 04 01 00 00 C3 F5 DA 3B 40 1F D4 0B [16:01:03]CommunicateWithHost err = 0 [16:01:03]CheckOFDResponse [16:01:03]1017 (14) - 77093643461234 [16:01:03]1041 (16) - 0000000000871829 [16:01:03]1040 (4) - 67836 [16:01:03]1012 (4) - 18.05.2024 09:44 [16:01:03]1206 (1) - 0 [16:01:03]OFD Sender: Remove packet 67836 [16:01:03]ProducePacketName [16:01:03]name=ofd_packets/00067836 [16:01:03]NVStorageDeleteData [16:01:03]Write to MH i2c: 01 00 00 30 06 36 [16:01:03]Write i2c OK [16:01:03]MH_I2C_Read... [16:01:03]Read from MH i2c: 01 [16:01:03]MH_I2C_Read... [16:01:03]Read from MH i2c: 01 07 00 [16:01:03]MH_I2C_Read... [16:01:03]Read from MH i2c: 01 07 00 30 06 00 00 00 00 00 D4 0C 1D [16:01:03]RasterBufferAndPrint [16:01:03]line [16:01:03]line [16:01:03]line [16:01:03]line [16:01:03]line [16:01:03]written 0, free lines is 3290 [16:01:03]MH_Cut [16:01:03]Write to MH i2c: D1 01 00 37 06 01 0F [16:01:03]Write i2c OK [16:01:03]MH_I2C_Read... [16:01:03]Read from MH i2c: D1 [16:01:03]MH_I2C_Read... [16:01:03]Read from MH i2c: D1 01 00 [16:01:03]MH_I2C_Read... [16:01:03]Read from MH i2c: D1 01 00 37 06 00 0E [16:01:03]Write to MH i2c: 01 00 00 38 06 3E [16:01:03]Write i2c OK [16:01:03]MH_I2C_Read... [16:01:04]OFD Sender: No OFD packet to send [16:01:04]*** Cut start [16:01:04]*** Purtial cut [16:01:04]*** Stage 1: CUTSNS_PIN = 1 [16:01:04]Read from MH i2c: 01 [16:01:04]MH_I2C_Read... [16:01:04]*** Stop cut motor [16:01:04]*** Cut end [16:01:04]Read from MH i2c: 01 07 00 [16:01:04]MH_I2C_Read... [16:01:04]Read from MH i2c: 01 07 00 38 06 00 00 00 00 00 FF 0F 53 [16:01:04]process_action close_receipt done [16:01:04]requested_data is exist [16:01:04]produce_requested_data [16:01:04]requested_item fm.sn is exist - process it [16:01:04]wFMCommunicate request_size=4 [16:01:04]MH_SAM_APDU [16:01:04]CAPDU: 80 11 00 00 [16:01:04]Write to MH i2c: E2 08 00 39 06 80 11 00 00 00 00 00 00 B9 [16:01:04]Write i2c OK [16:01:04]MH_I2C_Read... [16:01:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:01:05]Read from MH i2c: E2 [16:01:05]MH_I2C_Read... [16:01:05]Read from MH i2c: E2 17 00 [16:01:05]MH_I2C_Read... [16:01:05]Read from MH i2c: E2 17 00 39 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 0F [16:01:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [16:01:05]wFMCommunicate OK [16:01:05]requested_item fd.num is exist - process it [16:01:05]SAM_PROTO_GetFieldsCounters [16:01:05]wFMCommunicate request_size=4 [16:01:05]MH_SAM_APDU [16:01:05]CAPDU: 80 13 00 00 [16:01:05]Write to MH i2c: E2 08 00 3A 06 80 13 00 00 00 00 00 00 BC [16:01:05]Write i2c OK [16:01:05]MH_I2C_Read... [16:01:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:01:05]Read from MH i2c: E2 [16:01:05]MH_I2C_Read... [16:01:05]Read from MH i2c: E2 62 00 [16:01:05]MH_I2C_Read... [16:01:05]Read from MH i2c: E2 62 00 3A 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 FC 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 4B 00 00 00 5E 04 04 00 4B 00 00 00 57 04 04 00 4C 00 00 00 19 04 04 00 00 00 00 00 90 00 30 [16:01:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 FC 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 4B 00 00 00 5E 04 04 00 4B 00 00 00 57 04 04 00 4C 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:01:05]wFMCommunicate OK [16:01:05]SAM_PROTO_GetFieldsCounters done [16:01:05]requested_item shift.num is exist - process it [16:01:05]requested_item shift.opened is exist - process it [16:01:05]req_shift_opened [16:01:05]FM_GetShiftState [16:01:05]SAM_PROTO_GetShiftState [16:01:05]wFMCommunicate request_size=4 [16:01:05]MH_SAM_APDU [16:01:05]CAPDU: 80 13 01 00 [16:01:05]Write to MH i2c: E2 08 00 3B 06 80 13 01 00 00 00 00 00 BE [16:01:05]Write i2c OK [16:01:05]MH_I2C_Read... [16:01:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:01:05]Read from MH i2c: E2 [16:01:05]MH_I2C_Read... [16:01:05]Read from MH i2c: E2 0E 00 [16:01:05]MH_I2C_Read... [16:01:05]Read from MH i2c: E2 0E 00 3B 06 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 25 [16:01:05]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [16:01:05]wFMCommunicate OK [16:01:05]SAM_PROTO_GetShiftState done [16:01:05]FM_GetShiftState done [16:01:05]req_shift_opened done [16:01:05]requested_item shift.open_date is exist - process it [16:01:05]req_shift_open_date [16:01:05]req_shift_open_date done [16:01:05]produce_requested_data done [16:01:05]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67836,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [16:01:05]process_action_free close_receipt [16:01:05]json_value_free [16:01:05]json_value_free done [16:01:05]process_json_proto returns [16:01:05]Send response to host [16:01:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67836,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [16:01:05]free response buf [16:01:05]execute_script done [16:01:05]execute_script returns [16:01:05]free content buf [16:01:05]Sock 9.Close socket [16:01:05]Sock 9.Thread stoped [16:01:09]OFD Sender: No OFD packet to send [16:01:14]OFD Sender: No OFD packet to send [16:01:19]OFD Sender: No OFD packet to send [16:01:24]OFD Sender: No OFD packet to send [16:01:29]OFD Sender: No OFD packet to send [16:01:34]OFD Sender: No OFD packet to send [16:01:39]OFD Sender: No OFD packet to send [16:01:44]OFD Sender: No OFD packet to send [16:01:49]OFD Sender: No OFD packet to send [16:01:54]OFD Sender: No OFD packet to send [16:01:59]OFD Sender: No OFD packet to send [16:02:04]OFD Sender: No OFD packet to send [16:02:09]OFD Sender: No OFD packet to send [16:02:14]OFD Sender: No OFD packet to send [16:02:19]OFD Sender: No OFD packet to send [16:02:24]OFD Sender: No OFD packet to send [16:02:29]OFD Sender: No OFD packet to send [16:02:34]OFD Sender: No OFD packet to send [16:02:39]OFD Sender: No OFD packet to send [16:02:44]OFD Sender: No OFD packet to send [16:02:49]OFD Sender: No OFD packet to send [16:02:54]OFD Sender: No OFD packet to send [16:02:58]accept exits with 7 [16:02:58]New connection [16:02:58]New thread 3067202916 created [16:02:58]Thread 3067059556 joined [16:02:58]Waiting for new connection... [16:02:58] Sock 7.Parse request [16:02:58]Sock 7.Check first char [16:02:58]Sock 7.First char is OK [16:02:58]request: POST /json_proto HTTP/1.0 [16:02:58]Method: POST [16:02:58]URL: /json_proto [16:02:58]Method is POST - this is cgi request [16:02:58]url: /json_proto [16:02:58]query_string will be loaded in cgi processing [16:02:58]execute_cgi json_proto POST (null) [16:02:58]execute_cgi path=json_proto method=POST [16:02:58]POST find Content-Length [16:02:58]Host: 172.17.41.195:8080 [16:02:58]Content-Length: 620 [16:02:58]Content-Type: application/json [16:02:58] [16:02:58]POST finish read [16:02:58]Found Content-Length = 620 [16:02:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)12113", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 128.00, "quantity" : 1.000, "sum" : 128.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 128.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:02:58]execute_script... [16:02:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)12113", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 128.00, "quantity" : 1.000, "sum" : 128.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 128.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:02:58]POST & json_proto [16:02:58]process_json_proto [16:02:58]json parsed OK: [16:02:58]protocol is kg_v1.0 [16:02:58]action value=close_receipt [16:02:58]process_action close_receipt [16:02:58]cmd_close_receipt [16:02:58]MH_GetDate [16:02:58]Write to MH i2c: F0 00 00 3C 06 31 [16:02:58]Write i2c OK [16:02:58]MH_I2C_Read... [16:02:58]Read from MH i2c: F0 [16:02:58]MH_I2C_Read... [16:02:58]Read from MH i2c: F0 09 00 [16:02:58]MH_I2C_Read... [16:02:58]Read from MH i2c: F0 09 00 3C 06 00 33 D1 48 66 FC 21 6F 64 DC [16:02:58]GetLastDocTimeStamp 1716048062 [16:02:58]current date 1716048179 [16:02:58]FM_GetShiftState [16:02:58]SAM_PROTO_GetShiftState [16:02:58]wFMCommunicate request_size=4 [16:02:58]MH_SAM_APDU [16:02:58]CAPDU: 80 13 01 00 [16:02:58]Write to MH i2c: E2 08 00 3D 06 80 13 01 00 00 00 00 00 C0 [16:02:58]Write i2c OK [16:02:58]MH_I2C_Read... [16:02:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:02:58]Read from MH i2c: E2 [16:02:58]MH_I2C_Read... [16:02:58]Read from MH i2c: E2 0E 00 [16:02:58]MH_I2C_Read... [16:02:58]Read from MH i2c: E2 0E 00 3D 06 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 27 [16:02:58]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [16:02:58]wFMCommunicate OK [16:02:58]SAM_PROTO_GetShiftState done [16:02:58]FM_GetShiftState done [16:02:58]opened in 1715991483 [16:02:58]opened+sec_in_day 1716077883 [16:02:58]quantity*price = 12800 [16:02:58]sum+1 = 12801 [16:02:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 128.00 НСП 1% : 1.13 НДС 12% : 13.59 Наличными: 128.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 76 18.05.2024 16:02 Смена: 359 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67837 ФПД: 272627266433196 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T160259&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67837&fm=272627266433196&tin=02508201610067®Number=0000000000091845&sum=12800 0 [16:02:59]StoreToDocumentArchive [16:02:59]shift 359 fd 67837 [16:02:59]save to /storage/0359/doc_00067837 [16:02:59]save last doc name /storage/0359/doc_00067837 to /storage/kkm_last_doc_name [16:02:59]save OK [16:02:59]Clear old archive folders... [16:02:59]ProcessDocumentItem done err = 0, tmpTLVsize=273 [16:02:59]tlvbuf is 009A80D0 [16:02:59]SAM_PROTO_ClearQueue [16:02:59]wFMCommunicate request_size=4 [16:02:59]MH_SAM_APDU [16:02:59]CAPDU: 80 09 00 00 [16:02:59]Write to MH i2c: E2 08 00 4A 06 80 09 00 00 00 00 00 00 C2 [16:02:59]Write i2c OK [16:02:59]MH_I2C_Read... [16:02:59]OFD Sender: No OFD packet to send [16:02:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:02:59]Read from MH i2c: E2 [16:02:59]MH_I2C_Read... [16:02:59]Read from MH i2c: E2 03 00 [16:02:59]MH_I2C_Read... [16:02:59]Read from MH i2c: E2 03 00 4A 06 00 90 00 C4 [16:02:59]RAPDU: 90 00 [16:02:59]wFMCommunicate OK [16:02:59]SAM_PROTO_ClearQueue done [16:02:59]KKMCreateOFDPacket [16:02:59]OFDProtocolAddRootSTLVToBuf [16:02:59]FM_MakeSignedData [16:02:59]FM_MakeSignedData [16:02:59]SAM_PROTO_SignData [16:02:59]wFMCommunicate request_size=4 [16:02:59]MH_SAM_APDU [16:02:59]CAPDU: 80 0D 01 02 [16:02:59]Write to MH i2c: E2 08 00 4B 06 80 0D 01 02 00 00 00 00 CA [16:02:59]Write i2c OK [16:02:59]MH_I2C_Read... [16:02:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:02:59]Read from MH i2c: E2 [16:02:59]MH_I2C_Read... [16:02:59]Read from MH i2c: E2 03 00 [16:02:59]MH_I2C_Read... [16:02:59]Read from MH i2c: E2 03 00 4B 06 00 90 00 C5 [16:02:59]RAPDU: 90 00 [16:02:59]wFMCommunicate OK [16:02:59]wFMCommunicate request_size=255 [16:02:59]MH_SAM_APDU [16:02:59]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 00 32 00 00 00 00 13 04 06 00 00 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 71 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4F 05 00 00 00 00 07 04 06 00 00 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 33 D1 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 [16:02:59]Write to MH i2c: E2 02 01 4C 06 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 00 32 00 00 00 00 13 04 06 00 00 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 71 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4F 05 00 00 00 00 07 04 06 00 00 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 33 D1 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 00 00 CC [16:02:59]Write i2c OK [16:02:59]MH_I2C_Read... [16:02:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:02:59]Read from MH i2c: E2 [16:02:59]MH_I2C_Read... [16:02:59]Read from MH i2c: E2 03 00 [16:02:59]MH_I2C_Read... [16:02:59]Read from MH i2c: E2 03 00 4C 06 00 90 00 C6 [16:02:59]RAPDU: 90 00 [16:02:59]wFMCommunicate OK [16:02:59]wFMCommunicate request_size=32 [16:02:59]MH_SAM_APDU [16:02:59]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 31 38 32 39 10 04 04 00 FD 08 01 00 35 04 06 00 F7 F3 FB 5F 30 AC [16:02:59]Write to MH i2c: E2 23 00 4D 06 80 0D 02 02 1B 00 30 30 30 38 37 31 38 32 39 10 04 04 00 FD 08 01 00 35 04 06 00 F7 F3 FB 5F 30 AC 00 00 53 [16:02:59]Write i2c OK [16:02:59]MH_I2C_Read... [16:02:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:02:59]Read from MH i2c: E2 [16:02:59]MH_I2C_Read... [16:02:59]Read from MH i2c: E2 03 00 [16:02:59]MH_I2C_Read... [16:02:59]Read from MH i2c: E2 03 00 4D 06 00 90 00 C7 [16:02:59]RAPDU: 90 00 [16:02:59]wFMCommunicate OK [16:02:59]wFMCommunicate request_size=4 [16:02:59]MH_SAM_APDU [16:02:59]CAPDU: 80 0D 03 02 [16:02:59]Write to MH i2c: E2 08 00 4E 06 80 0D 03 02 00 00 00 00 CF [16:02:59]Write i2c OK [16:02:59]MH_I2C_Read... [16:02:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:02:59]Read from MH i2c: E2 [16:02:59]MH_I2C_Read... [16:02:59]Read from MH i2c: E2 0B 00 [16:02:59]MH_I2C_Read... [16:02:59]Read from MH i2c: E2 0B 00 4E 06 00 BC 32 A4 31 75 3E 58 00 90 00 9E [16:02:59]RAPDU: BC 32 A4 31 75 3E 58 00 90 00 [16:02:59]wFMCommunicate OK [16:02:59]SAM_PROTO_SignData done [16:02:59]FM_MakeSignedData done [16:02:59]CreateOFDProtocolMessage [16:02:59]wFMCommunicate request_size=4 [16:02:59]MH_SAM_APDU [16:02:59]CAPDU: 80 11 00 00 [16:02:59]Write to MH i2c: E2 08 00 4F 06 80 11 00 00 00 00 00 00 CF [16:02:59]Write i2c OK [16:02:59]MH_I2C_Read... [16:02:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:02:59]Read from MH i2c: E2 [16:02:59]MH_I2C_Read... [16:02:59]Read from MH i2c: E2 17 00 [16:02:59]MH_I2C_Read... [16:02:59]Read from MH i2c: E2 17 00 4F 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 25 [16:02:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [16:02:59]wFMCommunicate OK [16:02:59]CreateOFDProtocolMessage done [16:02:59]OFDSenderStorePacket 67837 [16:02:59]StoreOFDPacket docnum=67837 [16:02:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 25 01 00 00 25 13 1D 01 2E F0 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 00 32 00 00 00 00 13 04 06 00 00 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 71 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4F 05 00 00 00 00 07 04 06 00 00 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 33 D1 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 FD 08 01 00 35 04 06 00 F7 F3 FB 5F 30 AC BC 32 A4 31 75 3E 58 00 [16:02:59]CheckFolder [16:02:59]dirname=/storage/ofd_packets [16:02:59]CheckFolder done [16:02:59]ProducePacketName [16:02:59]name=ofd_packets/00067837 [16:02:59]NVStorageSaveData ofd_packets/00067837 [16:02:59]File name is /storage/ofd_packets/00067837 [16:02:59]Write 323 bytes [16:02:59]NVStorageSaveData done [16:02:59]OFDSenderStorePacket done [16:02:59]KKMCreateOFDPacket done [16:02:59]NVStorageSaveData kkm_last_timestamp [16:02:59]File name is /storage/kkm_last_timestamp [16:02:59]Write 4 bytes [16:02:59]NVStorageSaveData done [16:02:59]ExternCall_PrintAddStr [16:02:59]wPrintStart [16:02:59]Write to MH i2c: 01 00 00 50 06 56 [16:02:59]Write i2c OK [16:02:59]MH_I2C_Read... [16:02:59]Read from MH i2c: 01 [16:02:59]MH_I2C_Read... [16:02:59]Read from MH i2c: 01 07 00 [16:02:59]MH_I2C_Read... [16:02:59]Read from MH i2c: 01 07 00 50 06 00 00 00 00 00 FF 0F 6B [16:02:59]RasterBufferAndPrint [16:02:59]line Счет N : (3)12113 [16:02:59]line ИНН: 02508201610067 [16:02:59]line Контрольно-Кассовый Чек [16:02:59]line ПРОДАЖА [16:02:59]line Товар: 48743570 [16:02:59]line Сигареты Winston XStyle Blue [16:02:59]line 1.000 * 128.00 [16:02:59]line = 128.00 [16:02:59]line НДС 12% НСП 1% [16:02:59]line > о реализуемом товаре [16:02:59]line ИТОГО: 128.00 [16:02:59]line НСП 1% : 1.13 [16:02:59]line НДС 12% : 13.59 [16:02:59]line Наличными: 128.00 [16:02:59]line Безнал.: 0.00 [16:02:59]line Место: АЗС № 91 "Партнер Нефть" [16:02:59]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [16:02:59]line СНО: Общий режим [16:02:59]line Чек 76 18.05.2024 16:02 [16:02:59]line Смена: 359 ФФД: 1.0 [16:02:59]line ЗНМ: 0300000119 [16:02:59]line РНМ: 0000000000091845 [16:02:59]line Версия ККМ: 001 [16:02:59]line ФМ: 0000000000871829 [16:02:59]line ФД: 67837 [16:02:59]line ФПД: 272627266433196 [16:03:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T160259&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67837&fm=272627266433196&tin=02508201610067®Number=0000000000091845&sum=12800 [16:03:00]line 0 [16:03:00]OFD Sender: Processing packet 67837 [packets to send 35, broken 34] [16:03:00]ProducePacketName [16:03:00]name=ofd_packets/00067837 [16:03:00]OFD Sender: To server: pG, [16:03:00]CommunicateWithHost lk.salyk.kg:30040 [16:03:00]ConnectInit lk.salyk.kg [16:03:00]written 0, free lines is 4095 [16:03:00]Write to MH i2c: 01 00 00 77 06 7D [16:03:00]Write i2c OK [16:03:00]MH_I2C_Read... [16:03:00]Read from MH i2c: 01 [16:03:00]MH_I2C_Read... [16:03:00]Read from MH i2c: 01 07 00 [16:03:00]MH_I2C_Read... [16:03:00]Read from MH i2c: 01 07 00 77 06 00 00 00 00 00 DE 0C 6E [16:03:00]RasterBufferAndPrint [16:03:00]line [16:03:00]line [16:03:00]line [16:03:00]line [16:03:00]line [16:03:00]written 0, free lines is 3298 [16:03:00]MH_Cut [16:03:00]Write to MH i2c: D1 01 00 7E 06 01 56 [16:03:00]Write i2c OK [16:03:00]MH_I2C_Read... [16:03:00]Read from MH i2c: D1 [16:03:00]MH_I2C_Read... [16:03:00]Read from MH i2c: D1 01 00 [16:03:00]MH_I2C_Read... [16:03:00]Read from MH i2c: D1 01 00 7E 06 00 55 [16:03:00]Write to MH i2c: 01 00 00 7F 06 85 [16:03:00]Write i2c OK [16:03:00]MH_I2C_Read... [16:03:01]*** Cut start [16:03:01]*** Purtial cut [16:03:01]*** Stage 1: CUTSNS_PIN = 1 [16:03:01]Read from MH i2c: 01 [16:03:01]MH_I2C_Read... [16:03:01]*** Stop cut motor [16:03:01]*** Cut end [16:03:01]Read from MH i2c: 01 07 00 [16:03:01]MH_I2C_Read... [16:03:01]Read from MH i2c: 01 07 00 7F 06 00 00 00 00 00 FF 0F 9A [16:03:01]process_action close_receipt done [16:03:01]requested_data is exist [16:03:01]produce_requested_data [16:03:01]requested_item fm.sn is exist - process it [16:03:01]wFMCommunicate request_size=4 [16:03:01]MH_SAM_APDU [16:03:01]CAPDU: 80 11 00 00 [16:03:01]Write to MH i2c: E2 08 00 80 06 80 11 00 00 00 00 00 00 00 [16:03:01]Write i2c OK [16:03:01]MH_I2C_Read... [16:03:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:03:01]Read from MH i2c: E2 [16:03:01]MH_I2C_Read... [16:03:01]Read from MH i2c: E2 17 00 [16:03:01]MH_I2C_Read... [16:03:01]Read from MH i2c: E2 17 00 80 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 56 [16:03:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [16:03:01]wFMCommunicate OK [16:03:01]requested_item fd.num is exist - process it [16:03:01]SAM_PROTO_GetFieldsCounters [16:03:01]wFMCommunicate request_size=4 [16:03:01]MH_SAM_APDU [16:03:01]CAPDU: 80 13 00 00 [16:03:01]Write to MH i2c: E2 08 00 81 06 80 13 00 00 00 00 00 00 03 [16:03:01]Write i2c OK [16:03:01]MH_I2C_Read... [16:03:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:03:01]Read from MH i2c: E2 [16:03:01]MH_I2C_Read... [16:03:01]Read from MH i2c: E2 62 00 [16:03:01]MH_I2C_Read... [16:03:01]Read from MH i2c: E2 62 00 81 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 FD 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 7B [16:03:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 FD 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:03:01]wFMCommunicate OK [16:03:01]SAM_PROTO_GetFieldsCounters done [16:03:01]requested_item shift.num is exist - process it [16:03:01]requested_item shift.opened is exist - process it [16:03:01]req_shift_opened [16:03:01]FM_GetShiftState [16:03:01]SAM_PROTO_GetShiftState [16:03:01]wFMCommunicate request_size=4 [16:03:01]MH_SAM_APDU [16:03:01]CAPDU: 80 13 01 00 [16:03:01]Write to MH i2c: E2 08 00 82 06 80 13 01 00 00 00 00 00 05 [16:03:01]Write i2c OK [16:03:01]MH_I2C_Read... [16:03:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:03:01]Read from MH i2c: E2 [16:03:01]MH_I2C_Read... [16:03:01]Read from MH i2c: E2 0E 00 [16:03:01]MH_I2C_Read... [16:03:01]Read from MH i2c: E2 0E 00 82 06 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 6C [16:03:01]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [16:03:01]wFMCommunicate OK [16:03:01]SAM_PROTO_GetShiftState done [16:03:01]FM_GetShiftState done [16:03:01]req_shift_opened done [16:03:01]requested_item shift.open_date is exist - process it [16:03:01]req_shift_open_date [16:03:01]req_shift_open_date done [16:03:01]produce_requested_data done [16:03:01]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67837,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [16:03:01]process_action_free close_receipt [16:03:01]json_value_free [16:03:01]json_value_free done [16:03:01]process_json_proto returns [16:03:01]Send response to host [16:03:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67837,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [16:03:01]free response buf [16:03:01]execute_script done [16:03:01]execute_script returns [16:03:01]free content buf [16:03:01]Sock 7.Close socket [16:03:01]Sock 7.Thread stoped [16:05:12]accept exits with 9 [16:05:12]New connection [16:05:12]New thread 3067059556 created [16:05:12]Thread 3067202916 joined [16:05:12]Waiting for new connection... [16:05:12] Sock 9.Parse request [16:05:12]Sock 9.Check first char [16:05:12]Sock 9.First char is OK [16:05:12]request: POST /json_proto HTTP/1.0 [16:05:12]Method: POST [16:05:12]URL: /json_proto [16:05:12]Method is POST - this is cgi request [16:05:12]url: /json_proto [16:05:12]query_string will be loaded in cgi processing [16:05:12]execute_cgi json_proto POST (null) [16:05:12]execute_cgi path=json_proto method=POST [16:05:12]POST find Content-Length [16:05:12]Host: 172.17.41.195:8080 [16:05:12]Content-Length: 1209 [16:05:12]Content-Type: application/json [16:05:12] [16:05:12]POST finish read [16:05:12]Found Content-Length = 1209 [16:05:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0440\u0441\u0442\u0430\u043D\u0431\u0435\u043A\u043E\u0432 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)508092\u000A18.05.2024 15:47\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 26.780 x 74.70\u000A\u0418\u0422\u041E\u0413: 2000.47\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:05:12]execute_script... [16:05:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0440\u0441\u0442\u0430\u043D\u0431\u0435\u043A\u043E\u0432 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)508092\u000A18.05.2024 15:47\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 26.780 x 74.70\u000A\u0418\u0422\u041E\u0413: 2000.47\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:05:12]POST & json_proto [16:05:12]process_json_proto [16:05:12]json parsed OK: [16:05:12]protocol is kg_v1.0 [16:05:12]action value=print_text [16:05:12]process_action print_text [16:05:12]cmd_print_text [16:05:12]ExternCall_PrintAddStr [16:05:12]wPrintStart [16:05:12]Write to MH i2c: 01 00 00 83 06 89 [16:05:12]Write i2c OK [16:05:12]MH_I2C_Read... [16:05:12]Read from MH i2c: 01 [16:05:12]MH_I2C_Read... [16:05:12]Read from MH i2c: 01 07 00 [16:05:12]MH_I2C_Read... [16:05:12]Read from MH i2c: 01 07 00 83 06 00 00 00 00 00 FF 0F 9E [16:05:12]RasterBufferAndPrint [16:05:12]line *****ТОВАРНЫЙ ЧЕК***** [16:05:12]line АЗС-91 [16:05:12]line Партнер нефть [16:05:12]line 02508201610067 [16:05:12]line Кассир : Арстанбеков Н. [16:05:12]line Счет N : (1)508092 [16:05:12]line 18.05.2024 15:47 [16:05:12]line ПРОДАЖА [16:05:12]line ТРК (МРК, ГНК): 11 [16:05:12]line Вид ГСМ : 2710194210 [16:05:12]line ДТ-К-5 [16:05:12]line 26.780 x 74.70 [16:05:12]line ИТОГ: 2000.47 [16:05:12]line Тип оплаты: Талоны: Топливная Карта [16:05:12]line 02750 [16:05:12]line ______________________ [16:05:12]line (подпись) [16:05:12]written 0, free lines is 4095 [16:05:12]Write to MH i2c: 01 00 00 97 06 9D [16:05:12]Write i2c OK [16:05:12]MH_I2C_Read... [16:05:12]Read from MH i2c: 01 [16:05:12]MH_I2C_Read... [16:05:12]Read from MH i2c: 01 07 00 [16:05:12]MH_I2C_Read... [16:05:12]Read from MH i2c: 01 07 00 97 06 00 00 00 00 00 0F 0E C1 [16:05:12]RasterBufferAndPrint [16:05:12]line [16:05:12]line [16:05:12]line [16:05:12]line [16:05:12]line [16:05:12]written 0, free lines is 3600 [16:05:12]MH_Cut [16:05:12]Write to MH i2c: D1 01 00 9E 06 01 76 [16:05:12]Write i2c OK [16:05:12]MH_I2C_Read... [16:05:12]Read from MH i2c: D1 [16:05:12]MH_I2C_Read... [16:05:12]Read from MH i2c: D1 01 00 [16:05:12]MH_I2C_Read... [16:05:12]Read from MH i2c: D1 01 00 9E 06 00 75 [16:05:12]Write to MH i2c: 01 00 00 9F 06 A5 [16:05:12]Write i2c OK [16:05:12]MH_I2C_Read... [16:05:12]*** Cut start [16:05:12]*** Purtial cut [16:05:12]*** Stage 1: CUTSNS_PIN = 1 [16:05:13]Read from MH i2c: 01 [16:05:13]MH_I2C_Read... [16:05:13]*** Stop cut motor [16:05:13]*** Cut end [16:05:13]Read from MH i2c: 01 07 00 [16:05:13]MH_I2C_Read... [16:05:13]Read from MH i2c: 01 07 00 9F 06 00 00 00 00 00 FF 0F BA [16:05:13]process_action print_text done [16:05:13]requested_data is exist [16:05:13]produce_requested_data [16:05:13]requested_item fm.sn is exist - process it [16:05:13]wFMCommunicate request_size=4 [16:05:13]MH_SAM_APDU [16:05:13]CAPDU: 80 11 00 00 [16:05:13]Write to MH i2c: E2 08 00 A0 06 80 11 00 00 00 00 00 00 20 [16:05:13]Write i2c OK [16:05:13]MH_I2C_Read... [16:05:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:05:13]Read from MH i2c: E2 [16:05:13]MH_I2C_Read... [16:05:13]Read from MH i2c: E2 17 00 [16:05:13]MH_I2C_Read... [16:05:13]Read from MH i2c: E2 17 00 A0 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 76 [16:05:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [16:05:13]wFMCommunicate OK [16:05:13]requested_item fd.num is exist - process it [16:05:13]SAM_PROTO_GetFieldsCounters [16:05:13]wFMCommunicate request_size=4 [16:05:13]MH_SAM_APDU [16:05:13]CAPDU: 80 13 00 00 [16:05:13]Write to MH i2c: E2 08 00 A1 06 80 13 00 00 00 00 00 00 23 [16:05:13]Write i2c OK [16:05:13]MH_I2C_Read... [16:05:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:05:13]Read from MH i2c: E2 [16:05:13]MH_I2C_Read... [16:05:13]Read from MH i2c: E2 62 00 [16:05:13]MH_I2C_Read... [16:05:13]Read from MH i2c: E2 62 00 A1 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 FD 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 9B [16:05:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 FD 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:05:13]wFMCommunicate OK [16:05:13]SAM_PROTO_GetFieldsCounters done [16:05:13]requested_item shift.num is exist - process it [16:05:13]requested_item shift.opened is exist - process it [16:05:13]req_shift_opened [16:05:13]FM_GetShiftState [16:05:13]SAM_PROTO_GetShiftState [16:05:13]wFMCommunicate request_size=4 [16:05:13]MH_SAM_APDU [16:05:13]CAPDU: 80 13 01 00 [16:05:13]Write to MH i2c: E2 08 00 A2 06 80 13 01 00 00 00 00 00 25 [16:05:13]Write i2c OK [16:05:13]MH_I2C_Read... [16:05:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:05:13]Read from MH i2c: E2 [16:05:13]MH_I2C_Read... [16:05:13]Read from MH i2c: E2 0E 00 [16:05:13]MH_I2C_Read... [16:05:13]Read from MH i2c: E2 0E 00 A2 06 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 8C [16:05:13]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [16:05:13]wFMCommunicate OK [16:05:13]SAM_PROTO_GetShiftState done [16:05:13]FM_GetShiftState done [16:05:13]req_shift_opened done [16:05:13]requested_item shift.open_date is exist - process it [16:05:13]req_shift_open_date [16:05:13]req_shift_open_date done [16:05:13]produce_requested_data done [16:05:13]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67837,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [16:05:13]process_action_free print_text [16:05:13]json_value_free [16:05:13]json_value_free done [16:05:13]process_json_proto returns [16:05:13]Send response to host [16:05:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67837,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [16:05:13]free response buf [16:05:13]execute_script done [16:05:13]execute_script returns [16:05:13]free content buf [16:05:13]Sock 9.Close socket [16:05:13]Sock 9.Thread stoped [16:05:13]ConnectInit Can't connect to host [16:05:13]CommunicateWithHost connect error [16:05:13]CommunicateWithHost err = -1 [16:05:13]OFD Sender: Server communicate error [16:05:18]OFD Sender: Processing packet 67837 [packets to send 35, broken 34] [16:05:18]ProducePacketName [16:05:18]name=ofd_packets/00067837 [16:05:18]OFD Sender: To server: pG, [16:05:18]CommunicateWithHost lk.salyk.kg:30040 [16:05:18]ConnectInit lk.salyk.kg [16:05:18]Connected sock=9 [16:05:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 25 01 00 00 25 13 1D 01 2E F0 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 00 32 00 00 00 00 13 04 06 00 00 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 71 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4F 05 00 00 00 00 07 04 06 00 00 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 33 D1 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 FD 08 01 00 35 04 06 00 F7 F3 FB 5F 30 AC BC 32 A4 31 75 3E 58 00 [16:05:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 68 EE 47 00 F4 E2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 FD 08 01 00 F4 03 04 00 92 79 48 66 B6 04 01 00 00 53 A1 05 E7 A8 51 05 96 [16:05:19]CommunicateWithHost err = 0 [16:05:19]CheckOFDResponse [16:05:19]1017 (14) - 77093643461234 [16:05:19]1041 (16) - 0000000000871829 [16:05:19]1040 (4) - 67837 [16:05:19]1012 (4) - 18.05.2024 09:49 [16:05:19]1206 (1) - 0 [16:05:19]OFD Sender: Remove packet 67837 [16:05:19]ProducePacketName [16:05:19]name=ofd_packets/00067837 [16:05:19]NVStorageDeleteData [16:05:19]OFD Sender: No OFD packet to send [16:05:24]OFD Sender: No OFD packet to send [16:05:29]OFD Sender: No OFD packet to send [16:05:34]OFD Sender: No OFD packet to send [16:05:39]OFD Sender: No OFD packet to send [16:05:44]OFD Sender: No OFD packet to send [16:05:49]OFD Sender: No OFD packet to send [16:05:54]OFD Sender: No OFD packet to send [16:05:59]OFD Sender: No OFD packet to send [16:06:04]OFD Sender: No OFD packet to send [16:06:09]OFD Sender: No OFD packet to send [16:06:14]OFD Sender: No OFD packet to send [16:06:19]OFD Sender: No OFD packet to send [16:06:24]OFD Sender: No OFD packet to send [16:06:29]OFD Sender: No OFD packet to send [16:06:34]OFD Sender: No OFD packet to send [16:06:39]OFD Sender: No OFD packet to send [16:06:42]accept exits with 7 [16:06:42]New connection [16:06:42]New thread 3067202916 created [16:06:42]Thread 3067059556 joined [16:06:42]Waiting for new connection... [16:06:42] Sock 7.Parse request [16:06:42]Sock 7.Check first char [16:06:42]Sock 7.First char is OK [16:06:42]request: POST /json_proto HTTP/1.0 [16:06:42]Method: POST [16:06:42]URL: /json_proto [16:06:42]Method is POST - this is cgi request [16:06:42]url: /json_proto [16:06:42]query_string will be loaded in cgi processing [16:06:42]execute_cgi json_proto POST (null) [16:06:42]execute_cgi path=json_proto method=POST [16:06:42]POST find Content-Length [16:06:42]Host: 172.17.41.195:8080 [16:06:42]Content-Length: 1212 [16:06:42]Content-Type: application/json [16:06:42] [16:06:42]POST finish read [16:06:42]Found Content-Length = 1212 [16:06:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0440\u0441\u0442\u0430\u043D\u0431\u0435\u043A\u043E\u0432 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)508091\u000A18.05.2024 15:49\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 23\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 66.80\u000A\u0418\u0422\u041E\u0413: 1336.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:06:42]execute_script... [16:06:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0440\u0441\u0442\u0430\u043D\u0431\u0435\u043A\u043E\u0432 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)508091\u000A18.05.2024 15:49\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 23\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 66.80\u000A\u0418\u0422\u041E\u0413: 1336.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:06:42]POST & json_proto [16:06:42]process_json_proto [16:06:42]json parsed OK: [16:06:42]protocol is kg_v1.0 [16:06:42]action value=print_text [16:06:42]process_action print_text [16:06:42]cmd_print_text [16:06:42]ExternCall_PrintAddStr [16:06:42]wPrintStart [16:06:42]Write to MH i2c: 01 00 00 A3 06 A9 [16:06:42]Write i2c OK [16:06:42]MH_I2C_Read... [16:06:42]Read from MH i2c: 01 [16:06:42]MH_I2C_Read... [16:06:42]Read from MH i2c: 01 07 00 [16:06:42]MH_I2C_Read... [16:06:42]Read from MH i2c: 01 07 00 A3 06 00 00 00 00 00 FF 0F BE [16:06:42]RasterBufferAndPrint [16:06:42]line *****ТОВАРНЫЙ ЧЕК***** [16:06:42]line АЗС-91 [16:06:42]line Партнер нефть [16:06:42]line 02508201610067 [16:06:42]line Кассир : Арстанбеков Н. [16:06:42]line Счет N : (1)508091 [16:06:42]line 18.05.2024 15:49 [16:06:42]line ПРОДАЖА [16:06:42]line ТРК (МРК, ГНК): 23 [16:06:42]line Вид ГСМ : 2710124130 [16:06:42]line Аи-92-К-5 [16:06:42]line 20.000 x 66.80 [16:06:42]line ИТОГ: 1336.00 [16:06:42]line Тип оплаты: Талоны: Топливная Карта [16:06:42]line 02750 [16:06:42]line ______________________ [16:06:42]line (подпись) [16:06:42]written 0, free lines is 4095 [16:06:42]Write to MH i2c: 01 00 00 B7 06 BD [16:06:42]Write i2c OK [16:06:42]MH_I2C_Read... [16:06:42]Read from MH i2c: 01 [16:06:42]MH_I2C_Read... [16:06:42]Read from MH i2c: 01 07 00 [16:06:42]MH_I2C_Read... [16:06:42]Read from MH i2c: 01 07 00 B7 06 00 00 00 00 00 11 0E E3 [16:06:42]RasterBufferAndPrint [16:06:42]line [16:06:42]line [16:06:42]line [16:06:42]line [16:06:42]line [16:06:42]written 0, free lines is 3603 [16:06:42]MH_Cut [16:06:42]Write to MH i2c: D1 01 00 BE 06 01 96 [16:06:42]Write i2c OK [16:06:42]MH_I2C_Read... [16:06:42]Read from MH i2c: D1 [16:06:42]MH_I2C_Read... [16:06:42]Read from MH i2c: D1 01 00 [16:06:42]MH_I2C_Read... [16:06:42]Read from MH i2c: D1 01 00 BE 06 00 95 [16:06:42]Write to MH i2c: 01 00 00 BF 06 C5 [16:06:42]Write i2c OK [16:06:42]MH_I2C_Read... [16:06:42]*** Cut start [16:06:42]*** Purtial cut [16:06:42]*** Stage 1: CUTSNS_PIN = 1 [16:06:43]Read from MH i2c: 01 [16:06:43]MH_I2C_Read... [16:06:43]Read from MH i2c: 01 07 00 [16:06:43]MH_I2C_Read... [16:06:43]*** Stop cut motor [16:06:43]*** Cut end [16:06:43]Read from MH i2c: 01 07 00 BF 06 00 00 00 00 00 FF 0F DA [16:06:43]process_action print_text done [16:06:43]requested_data is exist [16:06:43]produce_requested_data [16:06:43]requested_item fm.sn is exist - process it [16:06:43]wFMCommunicate request_size=4 [16:06:43]MH_SAM_APDU [16:06:43]CAPDU: 80 11 00 00 [16:06:43]Write to MH i2c: E2 08 00 C0 06 80 11 00 00 00 00 00 00 40 [16:06:43]Write i2c OK [16:06:43]MH_I2C_Read... [16:06:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:06:43]Read from MH i2c: E2 [16:06:43]MH_I2C_Read... [16:06:43]Read from MH i2c: E2 17 00 [16:06:43]MH_I2C_Read... [16:06:43]Read from MH i2c: E2 17 00 C0 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 96 [16:06:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [16:06:43]wFMCommunicate OK [16:06:43]requested_item fd.num is exist - process it [16:06:43]SAM_PROTO_GetFieldsCounters [16:06:43]wFMCommunicate request_size=4 [16:06:43]MH_SAM_APDU [16:06:43]CAPDU: 80 13 00 00 [16:06:43]Write to MH i2c: E2 08 00 C1 06 80 13 00 00 00 00 00 00 43 [16:06:43]Write i2c OK [16:06:43]MH_I2C_Read... [16:06:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:06:43]Read from MH i2c: E2 [16:06:43]MH_I2C_Read... [16:06:43]Read from MH i2c: E2 62 00 [16:06:43]MH_I2C_Read... [16:06:43]Read from MH i2c: E2 62 00 C1 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 FD 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 BB [16:06:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 FD 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:06:43]wFMCommunicate OK [16:06:43]SAM_PROTO_GetFieldsCounters done [16:06:43]requested_item shift.num is exist - process it [16:06:43]requested_item shift.opened is exist - process it [16:06:43]req_shift_opened [16:06:43]FM_GetShiftState [16:06:43]SAM_PROTO_GetShiftState [16:06:43]wFMCommunicate request_size=4 [16:06:43]MH_SAM_APDU [16:06:43]CAPDU: 80 13 01 00 [16:06:43]Write to MH i2c: E2 08 00 C2 06 80 13 01 00 00 00 00 00 45 [16:06:43]Write i2c OK [16:06:43]MH_I2C_Read... [16:06:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:06:43]Read from MH i2c: E2 [16:06:43]MH_I2C_Read... [16:06:43]Read from MH i2c: E2 0E 00 [16:06:43]MH_I2C_Read... [16:06:43]Read from MH i2c: E2 0E 00 C2 06 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 AC [16:06:43]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [16:06:43]wFMCommunicate OK [16:06:43]SAM_PROTO_GetShiftState done [16:06:43]FM_GetShiftState done [16:06:43]req_shift_opened done [16:06:43]requested_item shift.open_date is exist - process it [16:06:43]req_shift_open_date [16:06:43]req_shift_open_date done [16:06:43]produce_requested_data done [16:06:43]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67837,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [16:06:43]process_action_free print_text [16:06:43]json_value_free [16:06:43]json_value_free done [16:06:43]process_json_proto returns [16:06:43]Send response to host [16:06:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67837,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [16:06:43]free response buf [16:06:43]execute_script done [16:06:43]execute_script returns [16:06:43]free content buf [16:06:43]Sock 7.Close socket [16:06:43]Sock 7.Thread stoped [16:06:44]OFD Sender: No OFD packet to send [16:06:49]OFD Sender: No OFD packet to send [16:06:54]OFD Sender: No OFD packet to send [16:06:59]OFD Sender: No OFD packet to send [16:07:04]OFD Sender: No OFD packet to send [16:07:09]OFD Sender: No OFD packet to send [16:07:14]OFD Sender: No OFD packet to send [16:07:19]OFD Sender: No OFD packet to send [16:07:24]OFD Sender: No OFD packet to send [16:07:29]OFD Sender: No OFD packet to send [16:07:34]OFD Sender: No OFD packet to send [16:07:39]OFD Sender: No OFD packet to send [16:07:44]OFD Sender: No OFD packet to send [16:07:49]OFD Sender: No OFD packet to send [16:07:54]OFD Sender: No OFD packet to send [16:07:59]OFD Sender: No OFD packet to send [16:08:04]OFD Sender: No OFD packet to send [16:08:09]OFD Sender: No OFD packet to send [16:08:14]OFD Sender: No OFD packet to send [16:08:19]OFD Sender: No OFD packet to send [16:08:24]OFD Sender: No OFD packet to send [16:08:29]OFD Sender: No OFD packet to send [16:08:34]OFD Sender: No OFD packet to send [16:08:39]OFD Sender: No OFD packet to send [16:08:44]OFD Sender: No OFD packet to send [16:08:49]OFD Sender: No OFD packet to send [16:08:54]OFD Sender: No OFD packet to send [16:08:59]OFD Sender: No OFD packet to send [16:09:04]OFD Sender: No OFD packet to send [16:09:09]OFD Sender: No OFD packet to send [16:09:14]OFD Sender: No OFD packet to send [16:09:19]OFD Sender: No OFD packet to send [16:09:24]OFD Sender: No OFD packet to send [16:09:29]OFD Sender: No OFD packet to send [16:09:34]OFD Sender: No OFD packet to send [16:09:39]OFD Sender: No OFD packet to send [16:09:44]OFD Sender: No OFD packet to send [16:09:49]OFD Sender: No OFD packet to send [16:09:54]OFD Sender: No OFD packet to send [16:09:59]OFD Sender: No OFD packet to send [16:10:04]OFD Sender: No OFD packet to send [16:10:09]OFD Sender: No OFD packet to send [16:10:14]OFD Sender: No OFD packet to send [16:10:19]OFD Sender: No OFD packet to send [16:10:24]OFD Sender: No OFD packet to send [16:10:29]OFD Sender: No OFD packet to send [16:10:34]OFD Sender: No OFD packet to send [16:10:39]OFD Sender: No OFD packet to send [16:10:44]OFD Sender: No OFD packet to send [16:10:49]OFD Sender: No OFD packet to send [16:10:54]OFD Sender: No OFD packet to send [16:10:59]OFD Sender: No OFD packet to send [16:11:04]OFD Sender: No OFD packet to send [16:11:09]OFD Sender: No OFD packet to send [16:11:14]OFD Sender: No OFD packet to send [16:11:19]OFD Sender: No OFD packet to send [16:11:24]OFD Sender: No OFD packet to send [16:11:29]OFD Sender: No OFD packet to send [16:11:34]OFD Sender: No OFD packet to send [16:11:39]OFD Sender: No OFD packet to send [16:11:44]OFD Sender: No OFD packet to send [16:11:49]OFD Sender: No OFD packet to send [16:11:54]OFD Sender: No OFD packet to send [16:11:59]OFD Sender: No OFD packet to send [16:12:04]OFD Sender: No OFD packet to send [16:12:09]OFD Sender: No OFD packet to send [16:12:14]OFD Sender: No OFD packet to send [16:12:19]OFD Sender: No OFD packet to send [16:12:24]OFD Sender: No OFD packet to send [16:12:29]OFD Sender: No OFD packet to send [16:12:34]OFD Sender: No OFD packet to send [16:12:39]OFD Sender: No OFD packet to send [16:12:44]OFD Sender: No OFD packet to send [16:12:49]OFD Sender: No OFD packet to send [16:12:54]OFD Sender: No OFD packet to send [16:12:59]OFD Sender: No OFD packet to send [16:13:05]OFD Sender: No OFD packet to send [16:13:10]OFD Sender: No OFD packet to send [16:13:15]OFD Sender: No OFD packet to send [16:13:20]OFD Sender: No OFD packet to send [16:13:25]OFD Sender: No OFD packet to send [16:13:30]OFD Sender: No OFD packet to send [16:13:35]OFD Sender: No OFD packet to send [16:13:40]OFD Sender: No OFD packet to send [16:13:45]OFD Sender: No OFD packet to send [16:13:50]OFD Sender: No OFD packet to send [16:13:55]OFD Sender: No OFD packet to send [16:14:00]OFD Sender: No OFD packet to send [16:14:05]OFD Sender: No OFD packet to send [16:14:10]OFD Sender: No OFD packet to send [16:14:15]OFD Sender: No OFD packet to send [16:14:20]OFD Sender: No OFD packet to send [16:14:25]OFD Sender: No OFD packet to send [16:14:30]OFD Sender: No OFD packet to send [16:14:35]OFD Sender: No OFD packet to send [16:14:40]OFD Sender: No OFD packet to send [16:14:45]OFD Sender: No OFD packet to send [16:14:50]OFD Sender: No OFD packet to send [16:14:55]OFD Sender: No OFD packet to send [16:15:00]OFD Sender: No OFD packet to send [16:15:05]OFD Sender: No OFD packet to send [16:15:10]OFD Sender: No OFD packet to send [16:15:15]OFD Sender: No OFD packet to send [16:15:20]OFD Sender: No OFD packet to send [16:15:25]OFD Sender: No OFD packet to send [16:15:30]OFD Sender: No OFD packet to send [16:15:35]OFD Sender: No OFD packet to send [16:15:40]OFD Sender: No OFD packet to send [16:15:45]OFD Sender: No OFD packet to send [16:15:50]OFD Sender: No OFD packet to send [16:15:55]OFD Sender: No OFD packet to send [16:16:00]OFD Sender: No OFD packet to send [16:16:05]OFD Sender: No OFD packet to send [16:16:10]OFD Sender: No OFD packet to send [16:16:15]OFD Sender: No OFD packet to send [16:16:20]OFD Sender: No OFD packet to send [16:16:25]OFD Sender: No OFD packet to send [16:16:30]OFD Sender: No OFD packet to send [16:16:35]OFD Sender: No OFD packet to send [16:16:40]OFD Sender: No OFD packet to send [16:16:45]OFD Sender: No OFD packet to send [16:16:50]OFD Sender: No OFD packet to send [16:16:55]OFD Sender: No OFD packet to send [16:17:00]OFD Sender: No OFD packet to send [16:17:05]OFD Sender: No OFD packet to send [16:17:10]OFD Sender: No OFD packet to send [16:17:15]OFD Sender: No OFD packet to send [16:17:20]OFD Sender: No OFD packet to send [16:17:25]OFD Sender: No OFD packet to send [16:17:30]OFD Sender: No OFD packet to send [16:17:35]OFD Sender: No OFD packet to send [16:17:40]OFD Sender: No OFD packet to send [16:17:45]OFD Sender: No OFD packet to send [16:17:50]OFD Sender: No OFD packet to send [16:17:55]OFD Sender: No OFD packet to send [16:18:00]OFD Sender: No OFD packet to send [16:18:05]OFD Sender: No OFD packet to send [16:18:10]OFD Sender: No OFD packet to send [16:18:15]OFD Sender: No OFD packet to send [16:18:20]OFD Sender: No OFD packet to send [16:18:25]OFD Sender: No OFD packet to send [16:18:30]OFD Sender: No OFD packet to send [16:18:35]OFD Sender: No OFD packet to send [16:18:40]OFD Sender: No OFD packet to send [16:18:45]OFD Sender: No OFD packet to send [16:18:50]OFD Sender: No OFD packet to send [16:18:55]OFD Sender: No OFD packet to send [16:19:00]OFD Sender: No OFD packet to send [16:19:05]OFD Sender: No OFD packet to send [16:19:10]OFD Sender: No OFD packet to send [16:19:15]OFD Sender: No OFD packet to send [16:19:20]OFD Sender: No OFD packet to send [16:19:25]OFD Sender: No OFD packet to send [16:19:30]OFD Sender: No OFD packet to send [16:19:35]OFD Sender: No OFD packet to send [16:19:40]OFD Sender: No OFD packet to send [16:19:45]OFD Sender: No OFD packet to send [16:19:50]OFD Sender: No OFD packet to send [16:19:55]OFD Sender: No OFD packet to send [16:20:00]OFD Sender: No OFD packet to send [16:20:05]OFD Sender: No OFD packet to send [16:20:10]OFD Sender: No OFD packet to send [16:20:15]OFD Sender: No OFD packet to send [16:20:20]OFD Sender: No OFD packet to send [16:20:25]OFD Sender: No OFD packet to send [16:20:30]OFD Sender: No OFD packet to send [16:20:35]OFD Sender: No OFD packet to send [16:20:40]OFD Sender: No OFD packet to send [16:20:45]OFD Sender: No OFD packet to send [16:20:50]OFD Sender: No OFD packet to send [16:20:55]OFD Sender: No OFD packet to send [16:21:00]OFD Sender: No OFD packet to send [16:21:05]OFD Sender: No OFD packet to send [16:21:10]OFD Sender: No OFD packet to send [16:21:15]OFD Sender: No OFD packet to send [16:21:20]OFD Sender: No OFD packet to send [16:21:25]OFD Sender: No OFD packet to send [16:21:30]OFD Sender: No OFD packet to send [16:21:35]OFD Sender: No OFD packet to send [16:21:40]OFD Sender: No OFD packet to send [16:21:45]OFD Sender: No OFD packet to send [16:21:50]OFD Sender: No OFD packet to send [16:21:55]OFD Sender: No OFD packet to send [16:22:00]OFD Sender: No OFD packet to send [16:22:05]OFD Sender: No OFD packet to send [16:22:10]OFD Sender: No OFD packet to send [16:22:15]OFD Sender: No OFD packet to send [16:22:20]OFD Sender: No OFD packet to send [16:22:25]OFD Sender: No OFD packet to send [16:22:30]OFD Sender: No OFD packet to send [16:22:35]OFD Sender: No OFD packet to send [16:22:40]OFD Sender: No OFD packet to send [16:22:45]OFD Sender: No OFD packet to send [16:22:50]OFD Sender: No OFD packet to send [16:22:55]OFD Sender: No OFD packet to send [16:23:00]OFD Sender: No OFD packet to send [16:23:05]OFD Sender: No OFD packet to send [16:23:10]OFD Sender: No OFD packet to send [16:23:15]OFD Sender: No OFD packet to send [16:23:20]OFD Sender: No OFD packet to send [16:23:25]OFD Sender: No OFD packet to send [16:23:30]OFD Sender: No OFD packet to send [16:23:35]OFD Sender: No OFD packet to send [16:23:40]OFD Sender: No OFD packet to send [16:23:45]OFD Sender: No OFD packet to send [16:23:50]OFD Sender: No OFD packet to send [16:23:55]OFD Sender: No OFD packet to send [16:24:00]OFD Sender: No OFD packet to send [16:24:05]OFD Sender: No OFD packet to send [16:24:10]OFD Sender: No OFD packet to send [16:24:15]OFD Sender: No OFD packet to send [16:24:20]OFD Sender: No OFD packet to send [16:24:25]OFD Sender: No OFD packet to send [16:24:30]OFD Sender: No OFD packet to send [16:24:35]OFD Sender: No OFD packet to send [16:24:40]OFD Sender: No OFD packet to send [16:24:45]OFD Sender: No OFD packet to send [16:24:50]OFD Sender: No OFD packet to send [16:24:55]OFD Sender: No OFD packet to send [16:25:00]OFD Sender: No OFD packet to send [16:25:05]OFD Sender: No OFD packet to send [16:25:10]OFD Sender: No OFD packet to send [16:25:15]OFD Sender: No OFD packet to send [16:25:20]OFD Sender: No OFD packet to send [16:25:25]OFD Sender: No OFD packet to send [16:25:30]OFD Sender: No OFD packet to send [16:25:35]OFD Sender: No OFD packet to send [16:25:40]OFD Sender: No OFD packet to send [16:25:45]OFD Sender: No OFD packet to send [16:25:50]OFD Sender: No OFD packet to send [16:25:55]OFD Sender: No OFD packet to send [16:26:00]OFD Sender: No OFD packet to send [16:26:05]OFD Sender: No OFD packet to send [16:26:10]OFD Sender: No OFD packet to send [16:26:15]OFD Sender: No OFD packet to send [16:26:20]OFD Sender: No OFD packet to send [16:26:25]OFD Sender: No OFD packet to send [16:26:30]OFD Sender: No OFD packet to send [16:26:35]OFD Sender: No OFD packet to send [16:26:40]OFD Sender: No OFD packet to send [16:26:45]OFD Sender: No OFD packet to send [16:26:50]OFD Sender: No OFD packet to send [16:26:55]OFD Sender: No OFD packet to send [16:27:00]OFD Sender: No OFD packet to send [16:27:05]OFD Sender: No OFD packet to send [16:27:10]OFD Sender: No OFD packet to send [16:27:15]OFD Sender: No OFD packet to send [16:27:20]OFD Sender: No OFD packet to send [16:27:25]OFD Sender: No OFD packet to send [16:27:30]OFD Sender: No OFD packet to send [16:27:35]OFD Sender: No OFD packet to send [16:27:40]OFD Sender: No OFD packet to send [16:27:45]OFD Sender: No OFD packet to send [16:27:50]OFD Sender: No OFD packet to send [16:27:55]OFD Sender: No OFD packet to send [16:28:00]OFD Sender: No OFD packet to send [16:28:05]OFD Sender: No OFD packet to send [16:28:10]OFD Sender: No OFD packet to send [16:28:15]OFD Sender: No OFD packet to send [16:28:20]OFD Sender: No OFD packet to send [16:28:25]OFD Sender: No OFD packet to send [16:28:30]OFD Sender: No OFD packet to send [16:28:35]OFD Sender: No OFD packet to send [16:28:40]OFD Sender: No OFD packet to send [16:28:45]OFD Sender: No OFD packet to send [16:28:50]OFD Sender: No OFD packet to send [16:28:55]OFD Sender: No OFD packet to send [16:29:00]OFD Sender: No OFD packet to send [16:29:05]OFD Sender: No OFD packet to send [16:29:10]OFD Sender: No OFD packet to send [16:29:15]OFD Sender: No OFD packet to send [16:29:20]OFD Sender: No OFD packet to send [16:29:25]OFD Sender: No OFD packet to send [16:29:30]OFD Sender: No OFD packet to send [16:29:35]OFD Sender: No OFD packet to send [16:29:40]OFD Sender: No OFD packet to send [16:29:45]OFD Sender: No OFD packet to send [16:29:50]OFD Sender: No OFD packet to send [16:29:55]OFD Sender: No OFD packet to send [16:30:00]OFD Sender: No OFD packet to send [16:30:05]OFD Sender: No OFD packet to send [16:30:10]OFD Sender: No OFD packet to send [16:30:14]accept exits with 9 [16:30:14]New connection [16:30:14]New thread 3067059556 created [16:30:14]Thread 3067202916 joined [16:30:14]Waiting for new connection... [16:30:14] Sock 9.Parse request [16:30:14]Sock 9.Check first char [16:30:14]Sock 9.First char is OK [16:30:14]request: POST /json_proto HTTP/1.0 [16:30:14]Method: POST [16:30:14]URL: /json_proto [16:30:14]Method is POST - this is cgi request [16:30:14]url: /json_proto [16:30:14]query_string will be loaded in cgi processing [16:30:14]execute_cgi json_proto POST (null) [16:30:14]execute_cgi path=json_proto method=POST [16:30:14]POST find Content-Length [16:30:14]Host: 172.17.41.195:8080 [16:30:14]Content-Length: 1212 [16:30:14]Content-Type: application/json [16:30:14] [16:30:14]POST finish read [16:30:14]Found Content-Length = 1212 [16:30:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0440\u0441\u0442\u0430\u043D\u0431\u0435\u043A\u043E\u0432 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)508093\u000A18.05.2024 16:12\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 43\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 14.980 x 66.80\u000A\u0418\u0422\u041E\u0413: 1000.66\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:30:14]execute_script... [16:30:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0440\u0441\u0442\u0430\u043D\u0431\u0435\u043A\u043E\u0432 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)508093\u000A18.05.2024 16:12\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 43\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 14.980 x 66.80\u000A\u0418\u0422\u041E\u0413: 1000.66\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:30:14]POST & json_proto [16:30:14]process_json_proto [16:30:14]json parsed OK: [16:30:14]protocol is kg_v1.0 [16:30:14]action value=print_text [16:30:14]process_action print_text [16:30:14]cmd_print_text [16:30:14]ExternCall_PrintAddStr [16:30:14]wPrintStart [16:30:14]Write to MH i2c: 01 00 00 C3 06 C9 [16:30:14]Write i2c OK [16:30:14]MH_I2C_Read... [16:30:14]Read from MH i2c: 01 [16:30:14]MH_I2C_Read... [16:30:14]Read from MH i2c: 01 07 00 [16:30:14]MH_I2C_Read... [16:30:14]Read from MH i2c: 01 07 00 C3 06 00 00 00 00 00 FF 0F DE [16:30:14]RasterBufferAndPrint [16:30:14]line *****ТОВАРНЫЙ ЧЕК***** [16:30:14]line АЗС-91 [16:30:14]line Партнер нефть [16:30:14]line 02508201610067 [16:30:14]line Кассир : Арстанбеков Н. [16:30:14]line Счет N : (1)508093 [16:30:14]line 18.05.2024 16:12 [16:30:14]line ПРОДАЖА [16:30:14]line ТРК (МРК, ГНК): 43 [16:30:14]line Вид ГСМ : 2710124130 [16:30:14]line Аи-92-К-5 [16:30:14]line 14.980 x 66.80 [16:30:14]line ИТОГ: 1000.66 [16:30:14]line Тип оплаты: Талоны: Топливная Карта [16:30:14]line 02750 [16:30:14]line ______________________ [16:30:14]line (подпись) [16:30:14]written 0, free lines is 4095 [16:30:14]Write to MH i2c: 01 00 00 D7 06 DD [16:30:14]Write i2c OK [16:30:14]MH_I2C_Read... [16:30:14]Read from MH i2c: 01 [16:30:14]MH_I2C_Read... [16:30:14]Read from MH i2c: 01 07 00 [16:30:14]MH_I2C_Read... [16:30:14]Read from MH i2c: 01 07 00 D7 06 00 00 00 00 00 11 0E 03 [16:30:14]RasterBufferAndPrint [16:30:14]line [16:30:14]line [16:30:14]line [16:30:14]line [16:30:14]line [16:30:14]written 0, free lines is 3603 [16:30:14]MH_Cut [16:30:14]Write to MH i2c: D1 01 00 DE 06 01 B6 [16:30:14]Write i2c OK [16:30:14]MH_I2C_Read... [16:30:14]Read from MH i2c: D1 [16:30:14]MH_I2C_Read... [16:30:14]Read from MH i2c: D1 01 00 [16:30:14]MH_I2C_Read... [16:30:14]Read from MH i2c: D1 01 00 DE 06 00 B5 [16:30:14]Write to MH i2c: 01 00 00 DF 06 E5 [16:30:14]Write i2c OK [16:30:14]MH_I2C_Read... [16:30:15]*** Cut start [16:30:15]*** Purtial cut [16:30:15]*** CUTSNS_PIN = 0 [16:30:15]*** Stage 1: CUTSNS_PIN = 1 [16:30:15]OFD Sender: No OFD packet to send [16:30:17]Read from MH i2c: 01 [16:30:17]MH_I2C_Read... [16:30:17]*** Stop cut motor [16:30:17]*** Cut end [16:30:17]Read from MH i2c: 01 07 00 [16:30:17]MH_I2C_Read... [16:30:17]Read from MH i2c: 01 07 00 DF 06 00 00 00 00 00 FF 0F FA [16:30:17]process_action print_text done [16:30:17]requested_data is exist [16:30:17]produce_requested_data [16:30:17]requested_item fm.sn is exist - process it [16:30:17]wFMCommunicate request_size=4 [16:30:17]MH_SAM_APDU [16:30:17]CAPDU: 80 11 00 00 [16:30:17]Write to MH i2c: E2 08 00 E0 06 80 11 00 00 00 00 00 00 60 [16:30:17]Write i2c OK [16:30:17]MH_I2C_Read... [16:30:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:30:17]Read from MH i2c: E2 [16:30:17]MH_I2C_Read... [16:30:17]Read from MH i2c: E2 17 00 [16:30:17]MH_I2C_Read... [16:30:17]Read from MH i2c: E2 17 00 E0 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 B6 [16:30:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [16:30:17]wFMCommunicate OK [16:30:17]requested_item fd.num is exist - process it [16:30:17]SAM_PROTO_GetFieldsCounters [16:30:17]wFMCommunicate request_size=4 [16:30:17]MH_SAM_APDU [16:30:17]CAPDU: 80 13 00 00 [16:30:17]Write to MH i2c: E2 08 00 E1 06 80 13 00 00 00 00 00 00 63 [16:30:17]Write i2c OK [16:30:17]MH_I2C_Read... [16:30:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:30:17]Read from MH i2c: E2 [16:30:17]MH_I2C_Read... [16:30:17]Read from MH i2c: E2 62 00 [16:30:17]MH_I2C_Read... [16:30:17]Read from MH i2c: E2 62 00 E1 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 FD 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 DB [16:30:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 FD 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:30:17]wFMCommunicate OK [16:30:17]SAM_PROTO_GetFieldsCounters done [16:30:17]requested_item shift.num is exist - process it [16:30:17]requested_item shift.opened is exist - process it [16:30:17]req_shift_opened [16:30:17]FM_GetShiftState [16:30:17]SAM_PROTO_GetShiftState [16:30:17]wFMCommunicate request_size=4 [16:30:17]MH_SAM_APDU [16:30:17]CAPDU: 80 13 01 00 [16:30:17]Write to MH i2c: E2 08 00 E2 06 80 13 01 00 00 00 00 00 65 [16:30:17]Write i2c OK [16:30:17]MH_I2C_Read... [16:30:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:30:17]Read from MH i2c: E2 [16:30:17]MH_I2C_Read... [16:30:17]Read from MH i2c: E2 0E 00 [16:30:17]MH_I2C_Read... [16:30:17]Read from MH i2c: E2 0E 00 E2 06 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 CC [16:30:17]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [16:30:17]wFMCommunicate OK [16:30:17]SAM_PROTO_GetShiftState done [16:30:17]FM_GetShiftState done [16:30:17]req_shift_opened done [16:30:17]requested_item shift.open_date is exist - process it [16:30:17]req_shift_open_date [16:30:17]req_shift_open_date done [16:30:17]produce_requested_data done [16:30:17]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67837,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [16:30:17]process_action_free print_text [16:30:17]json_value_free [16:30:17]json_value_free done [16:30:17]process_json_proto returns [16:30:17]Send response to host [16:30:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67837,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [16:30:17]free response buf [16:30:17]execute_script done [16:30:17]execute_script returns [16:30:17]free content buf [16:30:17]Sock 9.Close socket [16:30:17]Sock 9.Thread stoped [16:30:20]OFD Sender: No OFD packet to send [16:30:25]OFD Sender: No OFD packet to send [16:30:30]OFD Sender: No OFD packet to send [16:30:35]OFD Sender: No OFD packet to send [16:30:40]OFD Sender: No OFD packet to send [16:30:45]OFD Sender: No OFD packet to send [16:30:50]OFD Sender: No OFD packet to send [16:30:55]OFD Sender: No OFD packet to send [16:31:00]OFD Sender: No OFD packet to send [16:31:05]OFD Sender: No OFD packet to send [16:31:10]OFD Sender: No OFD packet to send [16:31:15]OFD Sender: No OFD packet to send [16:31:20]OFD Sender: No OFD packet to send [16:31:25]OFD Sender: No OFD packet to send [16:31:30]OFD Sender: No OFD packet to send [16:31:35]OFD Sender: No OFD packet to send [16:31:40]OFD Sender: No OFD packet to send [16:31:45]OFD Sender: No OFD packet to send [16:31:50]OFD Sender: No OFD packet to send [16:31:55]OFD Sender: No OFD packet to send [16:32:00]OFD Sender: No OFD packet to send [16:32:05]OFD Sender: No OFD packet to send [16:32:10]OFD Sender: No OFD packet to send [16:32:15]OFD Sender: No OFD packet to send [16:32:20]OFD Sender: No OFD packet to send [16:32:26]OFD Sender: No OFD packet to send [16:32:31]OFD Sender: No OFD packet to send [16:32:36]OFD Sender: No OFD packet to send [16:32:41]OFD Sender: No OFD packet to send [16:32:46]OFD Sender: No OFD packet to send [16:32:51]OFD Sender: No OFD packet to send [16:32:56]OFD Sender: No OFD packet to send [16:33:01]OFD Sender: No OFD packet to send [16:33:06]OFD Sender: No OFD packet to send [16:33:11]OFD Sender: No OFD packet to send [16:33:16]OFD Sender: No OFD packet to send [16:33:21]OFD Sender: No OFD packet to send [16:33:26]OFD Sender: No OFD packet to send [16:33:31]OFD Sender: No OFD packet to send [16:33:36]OFD Sender: No OFD packet to send [16:33:41]OFD Sender: No OFD packet to send [16:33:46]OFD Sender: No OFD packet to send [16:33:51]OFD Sender: No OFD packet to send [16:33:56]OFD Sender: No OFD packet to send [16:34:01]OFD Sender: No OFD packet to send [16:34:06]OFD Sender: No OFD packet to send [16:34:11]OFD Sender: No OFD packet to send [16:34:16]OFD Sender: No OFD packet to send [16:34:21]OFD Sender: No OFD packet to send [16:34:26]OFD Sender: No OFD packet to send [16:34:31]OFD Sender: No OFD packet to send [16:34:36]OFD Sender: No OFD packet to send [16:34:41]OFD Sender: No OFD packet to send [16:34:46]OFD Sender: No OFD packet to send [16:34:51]OFD Sender: No OFD packet to send [16:34:56]OFD Sender: No OFD packet to send [16:35:01]OFD Sender: No OFD packet to send [16:35:06]OFD Sender: No OFD packet to send [16:35:11]OFD Sender: No OFD packet to send [16:35:16]OFD Sender: No OFD packet to send [16:35:21]OFD Sender: No OFD packet to send [16:35:26]OFD Sender: No OFD packet to send [16:35:31]OFD Sender: No OFD packet to send [16:35:36]OFD Sender: No OFD packet to send [16:35:41]OFD Sender: No OFD packet to send [16:35:46]OFD Sender: No OFD packet to send [16:35:51]OFD Sender: No OFD packet to send [16:35:56]OFD Sender: No OFD packet to send [16:36:01]OFD Sender: No OFD packet to send [16:36:06]OFD Sender: No OFD packet to send [16:36:11]OFD Sender: No OFD packet to send [16:36:16]OFD Sender: No OFD packet to send [16:36:21]OFD Sender: No OFD packet to send [16:36:26]OFD Sender: No OFD packet to send [16:36:31]OFD Sender: No OFD packet to send [16:36:36]OFD Sender: No OFD packet to send [16:36:41]OFD Sender: No OFD packet to send [16:36:46]OFD Sender: No OFD packet to send [16:36:51]OFD Sender: No OFD packet to send [16:36:56]OFD Sender: No OFD packet to send [16:37:01]OFD Sender: No OFD packet to send [16:37:06]OFD Sender: No OFD packet to send [16:37:11]OFD Sender: No OFD packet to send [16:37:16]OFD Sender: No OFD packet to send [16:37:21]OFD Sender: No OFD packet to send [16:37:26]OFD Sender: No OFD packet to send [16:37:31]OFD Sender: No OFD packet to send [16:37:36]OFD Sender: No OFD packet to send [16:37:41]OFD Sender: No OFD packet to send [16:37:46]OFD Sender: No OFD packet to send [16:37:51]OFD Sender: No OFD packet to send [16:37:56]OFD Sender: No OFD packet to send [16:38:01]OFD Sender: No OFD packet to send [16:38:06]OFD Sender: No OFD packet to send [16:38:11]OFD Sender: No OFD packet to send [16:38:16]OFD Sender: No OFD packet to send [16:38:21]OFD Sender: No OFD packet to send [16:38:26]OFD Sender: No OFD packet to send [16:38:31]OFD Sender: No OFD packet to send [16:38:36]OFD Sender: No OFD packet to send [16:38:41]OFD Sender: No OFD packet to send [16:38:46]OFD Sender: No OFD packet to send [16:38:51]OFD Sender: No OFD packet to send [16:38:56]OFD Sender: No OFD packet to send [16:39:01]OFD Sender: No OFD packet to send [16:39:06]OFD Sender: No OFD packet to send [16:39:11]OFD Sender: No OFD packet to send [16:39:16]OFD Sender: No OFD packet to send [16:39:21]OFD Sender: No OFD packet to send [16:39:26]OFD Sender: No OFD packet to send [16:39:31]OFD Sender: No OFD packet to send [16:39:36]OFD Sender: No OFD packet to send [16:39:41]OFD Sender: No OFD packet to send [16:39:46]OFD Sender: No OFD packet to send [16:39:51]OFD Sender: No OFD packet to send [16:39:56]OFD Sender: No OFD packet to send [16:40:01]OFD Sender: No OFD packet to send [16:40:06]OFD Sender: No OFD packet to send [16:40:11]OFD Sender: No OFD packet to send [16:40:16]OFD Sender: No OFD packet to send [16:40:21]OFD Sender: No OFD packet to send [16:40:26]OFD Sender: No OFD packet to send [16:40:31]OFD Sender: No OFD packet to send [16:40:36]OFD Sender: No OFD packet to send [16:40:41]OFD Sender: No OFD packet to send [16:40:46]OFD Sender: No OFD packet to send [16:40:51]OFD Sender: No OFD packet to send [16:40:56]OFD Sender: No OFD packet to send [16:41:01]OFD Sender: No OFD packet to send [16:41:06]OFD Sender: No OFD packet to send [16:41:11]OFD Sender: No OFD packet to send [16:41:16]OFD Sender: No OFD packet to send [16:41:21]OFD Sender: No OFD packet to send [16:41:26]OFD Sender: No OFD packet to send [16:41:31]OFD Sender: No OFD packet to send [16:41:36]OFD Sender: No OFD packet to send [16:41:41]OFD Sender: No OFD packet to send [16:41:46]OFD Sender: No OFD packet to send [16:41:51]OFD Sender: No OFD packet to send [16:41:56]OFD Sender: No OFD packet to send [16:42:01]OFD Sender: No OFD packet to send [16:42:06]OFD Sender: No OFD packet to send [16:42:11]OFD Sender: No OFD packet to send [16:42:16]OFD Sender: No OFD packet to send [16:42:21]OFD Sender: No OFD packet to send [16:42:26]OFD Sender: No OFD packet to send [16:42:31]OFD Sender: No OFD packet to send [16:42:36]OFD Sender: No OFD packet to send [16:42:41]OFD Sender: No OFD packet to send [16:42:46]OFD Sender: No OFD packet to send [16:42:51]OFD Sender: No OFD packet to send [16:42:56]OFD Sender: No OFD packet to send [16:43:01]OFD Sender: No OFD packet to send [16:43:06]OFD Sender: No OFD packet to send [16:43:11]OFD Sender: No OFD packet to send [16:43:16]OFD Sender: No OFD packet to send [16:43:21]OFD Sender: No OFD packet to send [16:43:26]OFD Sender: No OFD packet to send [16:43:31]OFD Sender: No OFD packet to send [16:43:36]OFD Sender: No OFD packet to send [16:43:41]OFD Sender: No OFD packet to send [16:43:46]OFD Sender: No OFD packet to send [16:43:51]OFD Sender: No OFD packet to send [16:43:56]OFD Sender: No OFD packet to send [16:44:01]OFD Sender: No OFD packet to send [16:44:06]OFD Sender: No OFD packet to send [16:44:11]OFD Sender: No OFD packet to send [16:44:16]OFD Sender: No OFD packet to send [16:44:21]OFD Sender: No OFD packet to send [16:44:26]OFD Sender: No OFD packet to send [16:44:31]OFD Sender: No OFD packet to send [16:44:36]OFD Sender: No OFD packet to send [16:44:41]OFD Sender: No OFD packet to send [16:44:46]OFD Sender: No OFD packet to send [16:44:51]OFD Sender: No OFD packet to send [16:44:56]OFD Sender: No OFD packet to send [16:45:01]OFD Sender: No OFD packet to send [16:45:06]OFD Sender: No OFD packet to send [16:45:11]OFD Sender: No OFD packet to send [16:45:16]OFD Sender: No OFD packet to send [16:45:21]OFD Sender: No OFD packet to send [16:45:26]OFD Sender: No OFD packet to send [16:45:31]OFD Sender: No OFD packet to send [16:45:36]OFD Sender: No OFD packet to send [16:45:41]OFD Sender: No OFD packet to send [16:45:46]OFD Sender: No OFD packet to send [16:45:51]OFD Sender: No OFD packet to send [16:45:56]OFD Sender: No OFD packet to send [16:46:01]OFD Sender: No OFD packet to send [16:46:06]OFD Sender: No OFD packet to send [16:46:11]OFD Sender: No OFD packet to send [16:46:16]OFD Sender: No OFD packet to send [16:46:21]OFD Sender: No OFD packet to send [16:46:26]OFD Sender: No OFD packet to send [16:46:31]OFD Sender: No OFD packet to send [16:46:36]OFD Sender: No OFD packet to send [16:46:41]OFD Sender: No OFD packet to send [16:46:46]OFD Sender: No OFD packet to send [16:46:51]OFD Sender: No OFD packet to send [16:46:56]OFD Sender: No OFD packet to send [16:47:01]OFD Sender: No OFD packet to send [16:47:06]OFD Sender: No OFD packet to send [16:47:11]OFD Sender: No OFD packet to send [16:47:16]OFD Sender: No OFD packet to send [16:47:21]OFD Sender: No OFD packet to send [16:47:26]OFD Sender: No OFD packet to send [16:47:31]OFD Sender: No OFD packet to send [16:47:36]OFD Sender: No OFD packet to send [16:47:41]OFD Sender: No OFD packet to send [16:47:46]accept exits with 7 [16:47:46]New connection [16:47:46]New thread 3067202916 created [16:47:46]Thread 3067059556 joined [16:47:46]Waiting for new connection... [16:47:46] Sock 7.Parse request [16:47:46]Sock 7.Check first char [16:47:46]Sock 7.First char is OK [16:47:46]request: POST /json_proto HTTP/1.0 [16:47:46]Method: POST [16:47:46]URL: /json_proto [16:47:46]Method is POST - this is cgi request [16:47:46]url: /json_proto [16:47:46]query_string will be loaded in cgi processing [16:47:46]execute_cgi json_proto POST (null) [16:47:46]execute_cgi path=json_proto method=POST [16:47:46]POST find Content-Length [16:47:46]Host: 172.17.41.195:8080 [16:47:46]Content-Length: 801 [16:47:46]Content-Type: application/json [16:47:46] [16:47:46]POST finish read [16:47:46]Found Content-Length = 801 [16:47:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)508094", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.80, "quantity" : 11.980, "sum" : 800.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 800.26 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:47:46]execute_script... [16:47:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)508094", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.80, "quantity" : 11.980, "sum" : 800.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 800.26 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:47:46]POST & json_proto [16:47:46]process_json_proto [16:47:46]json parsed OK: [16:47:46]protocol is kg_v1.0 [16:47:46]action value=close_receipt [16:47:46]process_action close_receipt [16:47:46]cmd_close_receipt [16:47:46]MH_GetDate [16:47:46]Write to MH i2c: F0 00 00 E3 06 D8 [16:47:46]Write i2c OK [16:47:46]MH_I2C_Read... [16:47:46]Read from MH i2c: F0 [16:47:46]MH_I2C_Read... [16:47:46]Read from MH i2c: F0 09 00 [16:47:46]MH_I2C_Read... [16:47:46]Read from MH i2c: F0 09 00 E3 06 00 B3 DB 48 66 FC 21 6F 64 0D [16:47:46]GetLastDocTimeStamp 1716048179 [16:47:46]current date 1716050867 [16:47:46]FM_GetShiftState [16:47:46]SAM_PROTO_GetShiftState [16:47:46]wFMCommunicate request_size=4 [16:47:46]MH_SAM_APDU [16:47:46]CAPDU: 80 13 01 00 [16:47:46]Write to MH i2c: E2 08 00 E4 06 80 13 01 00 00 00 00 00 67 [16:47:46]Write i2c OK [16:47:46]MH_I2C_Read... [16:47:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:47:46]Read from MH i2c: E2 [16:47:46]MH_I2C_Read... [16:47:46]Read from MH i2c: E2 0E 00 [16:47:46]MH_I2C_Read... [16:47:46]Read from MH i2c: E2 0E 00 E4 06 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 CE [16:47:46]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [16:47:46]wFMCommunicate OK [16:47:46]SAM_PROTO_GetShiftState done [16:47:46]FM_GetShiftState done [16:47:46]opened in 1715991483 [16:47:46]opened+sec_in_day 1716077883 [16:47:46]quantity*price = 80026 [16:47:46]sum+1 = 80027 [16:47:46]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 800.26 НСП 1% : 7.08 НДС 12% : 84.98 Наличными: 0.00 Безнал.: 800.26 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 77 18.05.2024 16:47 Смена: 359 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67838 ФПД: 46316479843660 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T164747&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67838&fm=46316479843660&tin=02508201610067®Number=0000000000091845&sum=80026 [16:47:47]StoreToDocumentArchive [16:47:47]shift 359 fd 67838 [16:47:47]save to /storage/0359/doc_00067838 [16:47:47]save last doc name /storage/0359/doc_00067838 to /storage/kkm_last_doc_name [16:47:47]save OK [16:47:47]Clear old archive folders... [16:47:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:47:47]tlvbuf is 009E10A0 [16:47:47]SAM_PROTO_ClearQueue [16:47:47]wFMCommunicate request_size=4 [16:47:47]MH_SAM_APDU [16:47:47]CAPDU: 80 09 00 00 [16:47:47]Write to MH i2c: E2 08 00 F1 06 80 09 00 00 00 00 00 00 69 [16:47:47]Write i2c OK [16:47:47]MH_I2C_Read... [16:47:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:47:47]Read from MH i2c: E2 [16:47:47]MH_I2C_Read... [16:47:47]Read from MH i2c: E2 03 00 [16:47:47]MH_I2C_Read... [16:47:47]Read from MH i2c: E2 03 00 F1 06 00 90 00 6B [16:47:47]RAPDU: 90 00 [16:47:47]wFMCommunicate OK [16:47:47]SAM_PROTO_ClearQueue done [16:47:47]KKMCreateOFDPacket [16:47:47]OFDProtocolAddRootSTLVToBuf [16:47:47]FM_MakeSignedData [16:47:47]FM_MakeSignedData [16:47:47]SAM_PROTO_SignData [16:47:47]wFMCommunicate request_size=4 [16:47:47]MH_SAM_APDU [16:47:47]CAPDU: 80 0D 01 02 [16:47:47]Write to MH i2c: E2 08 00 F2 06 80 0D 01 02 00 00 00 00 71 [16:47:47]Write i2c OK [16:47:47]MH_I2C_Read... [16:47:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:47:47]Read from MH i2c: E2 [16:47:47]MH_I2C_Read... [16:47:47]Read from MH i2c: E2 03 00 [16:47:47]MH_I2C_Read... [16:47:47]Read from MH i2c: E2 03 00 F2 06 00 90 00 6C [16:47:47]RAPDU: 90 00 [16:47:47]wFMCommunicate OK [16:47:47]wFMCommunicate request_size=255 [16:47:47]MH_SAM_APDU [16:47:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 2E 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 9A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9A 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9A 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 B3 DB 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 FE 08 01 00 35 04 06 00 2A [16:47:47]Write to MH i2c: E2 02 01 F3 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 2E 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 9A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9A 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9A 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 B3 DB 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 FE 08 01 00 35 04 06 00 2A 00 00 60 [16:47:47]Write i2c OK [16:47:47]MH_I2C_Read... [16:47:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:47:48]Read from MH i2c: E2 [16:47:48]MH_I2C_Read... [16:47:48]Read from MH i2c: E2 03 00 [16:47:48]MH_I2C_Read... [16:47:48]Read from MH i2c: E2 03 00 F3 06 00 90 00 6D [16:47:48]RAPDU: 90 00 [16:47:48]wFMCommunicate OK [16:47:48]wFMCommunicate request_size=10 [16:47:48]MH_SAM_APDU [16:47:48]CAPDU: 80 0D 02 02 05 1F E5 54 0D 4C [16:47:48]Write to MH i2c: E2 0D 00 F4 06 80 0D 02 02 05 00 1F E5 54 0D 4C 00 00 2F [16:47:48]Write i2c OK [16:47:48]MH_I2C_Read... [16:47:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:47:48]Read from MH i2c: E2 [16:47:48]MH_I2C_Read... [16:47:48]Read from MH i2c: E2 03 00 [16:47:48]MH_I2C_Read... [16:47:48]Read from MH i2c: E2 03 00 F4 06 00 90 00 6E [16:47:48]RAPDU: 90 00 [16:47:48]wFMCommunicate OK [16:47:48]wFMCommunicate request_size=4 [16:47:48]MH_SAM_APDU [16:47:48]CAPDU: 80 0D 03 02 [16:47:48]Write to MH i2c: E2 08 00 F5 06 80 0D 03 02 00 00 00 00 76 [16:47:48]Write i2c OK [16:47:48]MH_I2C_Read... [16:47:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:47:48]Read from MH i2c: E2 [16:47:48]MH_I2C_Read... [16:47:48]Read from MH i2c: E2 0B 00 [16:47:48]MH_I2C_Read... [16:47:48]Read from MH i2c: E2 0B 00 F5 06 00 9F B1 70 69 FB FC 07 DB 90 00 79 [16:47:48]RAPDU: 9F B1 70 69 FB FC 07 DB 90 00 [16:47:48]wFMCommunicate OK [16:47:48]SAM_PROTO_SignData done [16:47:48]FM_MakeSignedData done [16:47:48]CreateOFDProtocolMessage [16:47:48]wFMCommunicate request_size=4 [16:47:48]MH_SAM_APDU [16:47:48]CAPDU: 80 11 00 00 [16:47:48]Write to MH i2c: E2 08 00 F6 06 80 11 00 00 00 00 00 00 76 [16:47:48]Write i2c OK [16:47:48]MH_I2C_Read... [16:47:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:47:48]Read from MH i2c: E2 [16:47:48]MH_I2C_Read... [16:47:48]Read from MH i2c: E2 17 00 [16:47:48]MH_I2C_Read... [16:47:48]Read from MH i2c: E2 17 00 F6 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 CC [16:47:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [16:47:48]wFMCommunicate OK [16:47:48]CreateOFDProtocolMessage done [16:47:48]OFDSenderStorePacket 67838 [16:47:48]StoreOFDPacket docnum=67838 [16:47:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 8D 94 07 01 7B 34 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 2E 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 9A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9A 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9A 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 B3 DB 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 FE 08 01 00 35 04 06 00 2A 1F E5 54 0D 4C 9F B1 70 69 FB FC 07 DB [16:47:48]CheckFolder [16:47:48]dirname=/storage/ofd_packets [16:47:48]CheckFolder done [16:47:48]ProducePacketName [16:47:48]name=ofd_packets/00067838 [16:47:48]NVStorageSaveData ofd_packets/00067838 [16:47:48]File name is /storage/ofd_packets/00067838 [16:47:48]Write 301 bytes [16:47:48]NVStorageSaveData done [16:47:48]OFDSenderStorePacket done [16:47:48]KKMCreateOFDPacket done [16:47:48]NVStorageSaveData kkm_last_timestamp [16:47:48]File name is /storage/kkm_last_timestamp [16:47:48]Write 4 bytes [16:47:48]NVStorageSaveData done [16:47:48]ExternCall_PrintAddStr [16:47:48]wPrintStart [16:47:48]Write to MH i2c: 01 00 00 F7 06 FD [16:47:48]Write i2c OK [16:47:48]MH_I2C_Read... [16:47:48]Read from MH i2c: 01 [16:47:48]MH_I2C_Read... [16:47:48]Read from MH i2c: 01 07 00 [16:47:48]MH_I2C_Read... [16:47:48]Read from MH i2c: 01 07 00 F7 06 00 00 00 00 00 FF 0F 12 [16:47:48]RasterBufferAndPrint [16:47:48]line Счет N : (1)508094 [16:47:48]line ИНН: 02508201610067 [16:47:48]line Контрольно-Кассовый Чек [16:47:48]line ПРОДАЖА [16:47:48]line ТРК (МРК, ГНК) : 33 [16:47:48]line Товар: 2710124130 [16:47:48]line Аи-92-К-5 [16:47:48]line 11.980 * 66.80 [16:47:48]line = 800.26 [16:47:48]line НДС 12% НСП 1% [16:47:48]line > о реализуемом товаре [16:47:48]line ИТОГО: 800.26 [16:47:48]line НСП 1% : 7.08 [16:47:48]line НДС 12% : 84.98 [16:47:48]line Наличными: 0.00 [16:47:48]line Безнал.: 800.26 [16:47:48]line Место: АЗС № 91 "Партнер Нефть" [16:47:48]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [16:47:48]line СНО: Общий режим [16:47:48]line Чек 77 18.05.2024 16:47 [16:47:48]line Смена: 359 ФФД: 1.0 [16:47:48]line ЗНМ: 0300000119 [16:47:48]line РНМ: 0000000000091845 [16:47:48]line Версия ККМ: 001 [16:47:48]line Платежная система: O! деньги [16:47:48]line ФМ: 0000000000871829 [16:47:48]line ФД: 67838 [16:47:48]line ФПД: 46316479843660 [16:47:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T164747&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67838&fm=46316479843660&tin=02508201610067®Number=0000000000091845&sum=80026 [16:47:48]OFD Sender: Processing packet 67838 [packets to send 35, broken 34] [16:47:48]ProducePacketName [16:47:48]name=ofd_packets/00067838 [16:47:48]OFD Sender: To server: pG, [16:47:48]CommunicateWithHost lk.salyk.kg:30040 [16:47:48]ConnectInit lk.salyk.kg [16:47:48]written 0, free lines is 4095 [16:47:48]Connected sock=11 [16:47:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 8D 94 07 01 7B 34 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 2E 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 9A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9A 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9A 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 B3 DB 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 FE 08 01 00 35 04 06 00 2A 1F E5 54 0D 4C 9F B1 70 69 FB FC 07 DB [16:47:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 3D 59 47 00 69 F8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 FE 08 01 00 F4 03 04 00 88 83 48 66 B6 04 01 00 00 CC 20 C7 BE 5D D3 9F 65 [16:47:48]CommunicateWithHost err = 0 [16:47:48]CheckOFDResponse [16:47:48]1017 (14) - 77093643461234 [16:47:48]1041 (16) - 0000000000871829 [16:47:48]1040 (4) - 67838 [16:47:48]1012 (4) - 18.05.2024 10:31 [16:47:48]1206 (1) - 0 [16:47:48]OFD Sender: Remove packet 67838 [16:47:48]ProducePacketName [16:47:48]name=ofd_packets/00067838 [16:47:48]NVStorageDeleteData [16:47:49]Write to MH i2c: 01 00 00 20 07 27 [16:47:49]Write i2c OK [16:47:49]MH_I2C_Read... [16:47:49]Read from MH i2c: 01 [16:47:49]MH_I2C_Read... [16:47:49]Read from MH i2c: 01 07 00 [16:47:49]MH_I2C_Read... [16:47:49]Read from MH i2c: 01 07 00 20 07 00 00 00 00 00 DE 0C 18 [16:47:49]RasterBufferAndPrint [16:47:49]line [16:47:49]line [16:47:49]line [16:47:49]line [16:47:49]line [16:47:49]written 0, free lines is 3300 [16:47:49]MH_Cut [16:47:49]Write to MH i2c: D1 01 00 27 07 01 00 [16:47:49]Write i2c OK [16:47:49]MH_I2C_Read... [16:47:49]Read from MH i2c: D1 [16:47:49]MH_I2C_Read... [16:47:49]Read from MH i2c: D1 01 00 [16:47:49]MH_I2C_Read... [16:47:49]Read from MH i2c: D1 01 00 27 07 00 FF [16:47:49]Write to MH i2c: 01 00 00 28 07 2F [16:47:49]Write i2c OK [16:47:49]MH_I2C_Read... [16:47:49]OFD Sender: No OFD packet to send [16:47:49]*** Cut start [16:47:49]*** Purtial cut [16:47:49]*** Stage 1: CUTSNS_PIN = 1 [16:47:50]Read from MH i2c: 01 [16:47:50]MH_I2C_Read... [16:47:50]*** Stop cut motor [16:47:50]*** Cut end [16:47:50]Read from MH i2c: 01 07 00 [16:47:50]MH_I2C_Read... [16:47:50]Read from MH i2c: 01 07 00 28 07 00 00 00 00 00 FF 0F 44 [16:47:50]process_action close_receipt done [16:47:50]requested_data is exist [16:47:50]produce_requested_data [16:47:50]requested_item fm.sn is exist - process it [16:47:50]wFMCommunicate request_size=4 [16:47:50]MH_SAM_APDU [16:47:50]CAPDU: 80 11 00 00 [16:47:50]Write to MH i2c: E2 08 00 29 07 80 11 00 00 00 00 00 00 AA [16:47:50]Write i2c OK [16:47:50]MH_I2C_Read... [16:47:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:47:50]Read from MH i2c: E2 [16:47:50]MH_I2C_Read... [16:47:50]Read from MH i2c: E2 17 00 [16:47:50]MH_I2C_Read... [16:47:50]Read from MH i2c: E2 17 00 29 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 00 [16:47:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [16:47:50]wFMCommunicate OK [16:47:50]requested_item fd.num is exist - process it [16:47:50]SAM_PROTO_GetFieldsCounters [16:47:50]wFMCommunicate request_size=4 [16:47:50]MH_SAM_APDU [16:47:50]CAPDU: 80 13 00 00 [16:47:50]Write to MH i2c: E2 08 00 2A 07 80 13 00 00 00 00 00 00 AD [16:47:50]Write i2c OK [16:47:50]MH_I2C_Read... [16:47:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:47:50]Read from MH i2c: E2 [16:47:50]MH_I2C_Read... [16:47:50]Read from MH i2c: E2 62 00 [16:47:50]MH_I2C_Read... [16:47:50]Read from MH i2c: E2 62 00 2A 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 FE 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 29 [16:47:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 FE 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:47:50]wFMCommunicate OK [16:47:50]SAM_PROTO_GetFieldsCounters done [16:47:50]requested_item shift.num is exist - process it [16:47:50]requested_item shift.opened is exist - process it [16:47:50]req_shift_opened [16:47:50]FM_GetShiftState [16:47:50]SAM_PROTO_GetShiftState [16:47:50]wFMCommunicate request_size=4 [16:47:50]MH_SAM_APDU [16:47:50]CAPDU: 80 13 01 00 [16:47:50]Write to MH i2c: E2 08 00 2B 07 80 13 01 00 00 00 00 00 AF [16:47:50]Write i2c OK [16:47:50]MH_I2C_Read... [16:47:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:47:50]Read from MH i2c: E2 [16:47:50]MH_I2C_Read... [16:47:50]Read from MH i2c: E2 0E 00 [16:47:50]MH_I2C_Read... [16:47:50]Read from MH i2c: E2 0E 00 2B 07 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 16 [16:47:50]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [16:47:50]wFMCommunicate OK [16:47:50]SAM_PROTO_GetShiftState done [16:47:50]FM_GetShiftState done [16:47:50]req_shift_opened done [16:47:50]requested_item shift.open_date is exist - process it [16:47:50]req_shift_open_date [16:47:50]req_shift_open_date done [16:47:50]produce_requested_data done [16:47:50]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67838,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [16:47:50]process_action_free close_receipt [16:47:50]json_value_free [16:47:50]json_value_free done [16:47:50]process_json_proto returns [16:47:50]Send response to host [16:47:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67838,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [16:47:50]free response buf [16:47:50]execute_script done [16:47:50]execute_script returns [16:47:50]free content buf [16:47:50]Sock 7.Close socket [16:47:50]Sock 7.Thread stoped [16:47:54]OFD Sender: No OFD packet to send [16:47:59]OFD Sender: No OFD packet to send [16:48:04]OFD Sender: No OFD packet to send [16:48:09]OFD Sender: No OFD packet to send [16:48:14]OFD Sender: No OFD packet to send [16:48:19]OFD Sender: No OFD packet to send [16:48:24]OFD Sender: No OFD packet to send [16:48:29]OFD Sender: No OFD packet to send [16:48:34]OFD Sender: No OFD packet to send [16:48:39]OFD Sender: No OFD packet to send [16:48:44]OFD Sender: No OFD packet to send [16:48:49]OFD Sender: No OFD packet to send [16:48:54]OFD Sender: No OFD packet to send [16:48:59]OFD Sender: No OFD packet to send [16:49:04]OFD Sender: No OFD packet to send [16:49:09]OFD Sender: No OFD packet to send [16:49:14]OFD Sender: No OFD packet to send [16:49:19]OFD Sender: No OFD packet to send [16:49:24]OFD Sender: No OFD packet to send [16:49:29]OFD Sender: No OFD packet to send [16:49:34]OFD Sender: No OFD packet to send [16:49:39]OFD Sender: No OFD packet to send [16:49:44]OFD Sender: No OFD packet to send [16:49:49]OFD Sender: No OFD packet to send [16:49:53]accept exits with 9 [16:49:53]New connection [16:49:53]New thread 3067059556 created [16:49:53]Thread 3067202916 joined [16:49:53]Waiting for new connection... [16:49:53] Sock 9.Parse request [16:49:53]Sock 9.Check first char [16:49:53]Sock 9.First char is OK [16:49:53]request: POST /json_proto HTTP/1.0 [16:49:53]Method: POST [16:49:53]URL: /json_proto [16:49:53]Method is POST - this is cgi request [16:49:53]url: /json_proto [16:49:53]query_string will be loaded in cgi processing [16:49:53]execute_cgi json_proto POST (null) [16:49:53]execute_cgi path=json_proto method=POST [16:49:53]POST find Content-Length [16:49:53]Host: 172.17.41.195:8080 [16:49:53]Content-Length: 215 [16:49:53]Content-Type: application/json [16:49:53] [16:49:53]POST finish read [16:49:53]Found Content-Length = 215 [16:49:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:49:53]execute_script... [16:49:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:49:53]POST & json_proto [16:49:53]process_json_proto [16:49:53]json parsed OK: [16:49:53]protocol is kg_v1.0 [16:49:53]action value=get_value [16:49:53]process_action get_value [16:49:53]cmd_get_value [16:49:53]process_action get_value done [16:49:53]requested_data is exist [16:49:53]produce_requested_data [16:49:53]requested_item kkm.sn is exist - process it [16:49:53]requested_item kkm.ver is exist - process it [16:49:53]requested_item fm.sn is exist - process it [16:49:53]wFMCommunicate request_size=4 [16:49:53]MH_SAM_APDU [16:49:53]CAPDU: 80 11 00 00 [16:49:53]Write to MH i2c: E2 08 00 2C 07 80 11 00 00 00 00 00 00 AD [16:49:53]Write i2c OK [16:49:53]MH_I2C_Read... [16:49:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:49:53]Read from MH i2c: E2 [16:49:53]MH_I2C_Read... [16:49:53]Read from MH i2c: E2 17 00 [16:49:53]MH_I2C_Read... [16:49:53]Read from MH i2c: E2 17 00 2C 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 03 [16:49:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [16:49:53]wFMCommunicate OK [16:49:53]requested_item fd.num is exist - process it [16:49:53]SAM_PROTO_GetFieldsCounters [16:49:53]wFMCommunicate request_size=4 [16:49:53]MH_SAM_APDU [16:49:53]CAPDU: 80 13 00 00 [16:49:53]Write to MH i2c: E2 08 00 2D 07 80 13 00 00 00 00 00 00 B0 [16:49:53]Write i2c OK [16:49:53]MH_I2C_Read... [16:49:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:49:53]Read from MH i2c: E2 [16:49:53]MH_I2C_Read... [16:49:53]Read from MH i2c: E2 62 00 [16:49:53]MH_I2C_Read... [16:49:53]Read from MH i2c: E2 62 00 2D 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 FE 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 2C [16:49:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 FE 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:49:53]wFMCommunicate OK [16:49:53]SAM_PROTO_GetFieldsCounters done [16:49:53]requested_item shift.num is exist - process it [16:49:53]requested_item shift.opened is exist - process it [16:49:53]req_shift_opened [16:49:53]FM_GetShiftState [16:49:53]SAM_PROTO_GetShiftState [16:49:53]wFMCommunicate request_size=4 [16:49:53]MH_SAM_APDU [16:49:53]CAPDU: 80 13 01 00 [16:49:53]Write to MH i2c: E2 08 00 2E 07 80 13 01 00 00 00 00 00 B2 [16:49:53]Write i2c OK [16:49:53]MH_I2C_Read... [16:49:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:49:53]Read from MH i2c: E2 [16:49:53]MH_I2C_Read... [16:49:53]Read from MH i2c: E2 0E 00 [16:49:53]MH_I2C_Read... [16:49:53]Read from MH i2c: E2 0E 00 2E 07 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 19 [16:49:53]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [16:49:53]wFMCommunicate OK [16:49:53]SAM_PROTO_GetShiftState done [16:49:53]FM_GetShiftState done [16:49:53]req_shift_opened done [16:49:53]requested_item shift.open_date is exist - process it [16:49:53]req_shift_open_date [16:49:53]req_shift_open_date done [16:49:53]produce_requested_data done [16:49:53]produce_requested_data return {"kkm.sn":"0300000119","kkm.ver":"001","fm.sn":"0000000000871829","fd.num":67838,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [16:49:53]process_action_free get_value [16:49:53]json_value_free [16:49:53]json_value_free done [16:49:53]process_json_proto returns [16:49:53]Send response to host [16:49:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000119","kkm.ver":"001","fm.sn":"0000000000871829","fd.num":67838,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [16:49:53]free response buf [16:49:53]execute_script done [16:49:53]execute_script returns [16:49:53]free content buf [16:49:53]Sock 9.Close socket [16:49:53]Sock 9.Thread stoped [16:49:54]OFD Sender: No OFD packet to send [16:49:54]accept exits with 7 [16:49:54]New connection [16:49:54]New thread 3067202916 created [16:49:54]Thread 3067059556 joined [16:49:54]Waiting for new connection... [16:49:54] Sock 7.Parse request [16:49:54]Sock 7.Check first char [16:49:54]Sock 7.First char is OK [16:49:54]request: POST /json_proto HTTP/1.0 [16:49:54]Method: POST [16:49:54]URL: /json_proto [16:49:54]Method is POST - this is cgi request [16:49:54]url: /json_proto [16:49:54]query_string will be loaded in cgi processing [16:49:54]execute_cgi json_proto POST (null) [16:49:54]execute_cgi path=json_proto method=POST [16:49:54]POST find Content-Length [16:49:54]Host: 172.17.41.195:8080 [16:49:54]Content-Length: 331 [16:49:54]Content-Type: application/json [16:49:54] [16:49:54]POST finish read [16:49:54]Found Content-Length = 331 [16:49:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [16:49:54]execute_script... [16:49:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [16:49:54]POST & json_proto [16:49:54]process_json_proto [16:49:54]json parsed OK: [16:49:54]protocol is kg_v1.0 [16:49:54]action value=get_value [16:49:54]process_action get_value [16:49:54]cmd_get_value [16:49:54]process_action get_value done [16:49:54]requested_data is exist [16:49:54]produce_requested_data [16:49:54]requested_item fm.sale.total is exist - process it [16:49:54]SAM_PROTO_GetFMData [16:49:54]wFMCommunicate request_size=4 [16:49:54]MH_SAM_APDU [16:49:54]CAPDU: 80 13 03 00 [16:49:54]Write to MH i2c: E2 08 00 2F 07 80 13 03 00 00 00 00 00 B5 [16:49:54]Write i2c OK [16:49:54]MH_I2C_Read... [16:49:55]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [16:49:55]Read from MH i2c: E2 [16:49:55]MH_I2C_Read... [16:49:55]Read from MH i2c: E2 FD 00 [16:49:55]MH_I2C_Read... [16:49:55]Read from MH i2c: E2 FD 00 2F 07 00 C6 04 85 04 C2 04 6E 04 04 00 30 06 01 00 69 04 A3 00 6F 04 04 00 86 05 01 00 B1 04 05 00 C6 4B 12 1E 03 70 04 05 00 80 C5 D8 C0 02 72 04 04 00 46 86 39 5D 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 F3 37 C3 54 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 0F 30 10 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9D 00 6F 04 04 00 AA 00 00 00 B1 04 04 00 00 23 C3 DC 70 04 04 00 00 23 C3 DC 72 04 00 00 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 DD 9D 71 17 EF 03 09 90 00 EC [16:49:55]RAPDU: C6 04 85 04 C2 04 6E 04 04 00 30 06 01 00 69 04 A3 00 6F 04 04 00 86 05 01 00 B1 04 05 00 C6 4B 12 1E 03 70 04 05 00 80 C5 D8 C0 02 72 04 04 00 46 86 39 5D 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 F3 37 C3 54 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 0F 30 10 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9D 00 6F 04 04 00 AA 00 00 00 B1 04 04 00 00 23 C3 DC 70 04 04 00 00 23 C3 DC 72 04 00 00 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 DD 9D 71 17 EF 03 09 90 00 [16:49:55]wFMCommunicate OK [16:49:55]wFMCommunicate request_size=4 [16:49:55]MH_SAM_APDU [16:49:55]CAPDU: 80 17 00 00 [16:49:55]Write to MH i2c: E2 08 00 30 07 80 17 00 00 00 00 00 00 B7 [16:49:55]Write i2c OK [16:49:55]MH_I2C_Read... [16:49:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:49:55]Read from MH i2c: E2 [16:49:55]MH_I2C_Read... [16:49:55]Read from MH i2c: E2 FD 00 [16:49:55]MH_I2C_Read... [16:49:55]Read from MH i2c: E2 FD 00 30 07 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 70 22 F4 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 90 00 F2 [16:49:55]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 70 22 F4 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 90 00 [16:49:55]wFMCommunicate OK [16:49:55]wFMCommunicate request_size=4 [16:49:55]MH_SAM_APDU [16:49:55]CAPDU: 80 17 00 00 [16:49:55]Write to MH i2c: E2 08 00 31 07 80 17 00 00 00 00 00 00 B8 [16:49:55]Write i2c OK [16:49:55]MH_I2C_Read... [16:49:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:49:55]Read from MH i2c: E2 [16:49:55]MH_I2C_Read... [16:49:55]Read from MH i2c: E2 FD 00 [16:49:55]MH_I2C_Read... [16:49:55]Read from MH i2c: E2 FD 00 31 07 00 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 90 00 DF [16:49:55]RAPDU: 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 90 00 [16:49:55]wFMCommunicate OK [16:49:55]wFMCommunicate request_size=4 [16:49:55]MH_SAM_APDU [16:49:55]CAPDU: 80 17 00 00 [16:49:55]Write to MH i2c: E2 08 00 32 07 80 17 00 00 00 00 00 00 B9 [16:49:55]Write i2c OK [16:49:55]MH_I2C_Read... [16:49:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:49:55]Read from MH i2c: E2 [16:49:55]MH_I2C_Read... [16:49:55]Read from MH i2c: E2 FD 00 [16:49:55]MH_I2C_Read... [16:49:55]Read from MH i2c: E2 FD 00 32 07 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 34 [16:49:55]RAPDU: EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 [16:49:55]wFMCommunicate OK [16:49:55]wFMCommunicate request_size=4 [16:49:55]MH_SAM_APDU [16:49:55]CAPDU: 80 17 00 00 [16:49:55]Write to MH i2c: E2 08 00 33 07 80 17 00 00 00 00 00 00 BA [16:49:55]Write i2c OK [16:49:55]MH_I2C_Read... [16:49:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 224! [16:49:56]Read from MH i2c: E2 [16:49:56]MH_I2C_Read... [16:49:56]Read from MH i2c: E2 E3 00 [16:49:56]MH_I2C_Read... [16:49:56]Read from MH i2c: E2 E3 00 33 07 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 99 [16:49:56]RAPDU: 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [16:49:56]wFMCommunicate OK [16:49:56]SAM_PROTO_GetFMData done [16:49:56]requested_item fm.sale_refund.total is exist - process it [16:49:56]requested_item fm.buy.total is exist - process it [16:49:56]requested_item shift.sale.total is exist - process it [16:49:56]SAM_PROTO_GetShiftData [16:49:56]wFMCommunicate request_size=4 [16:49:56]MH_SAM_APDU [16:49:56]CAPDU: 80 13 02 00 [16:49:56]Write to MH i2c: E2 08 00 34 07 80 13 02 00 00 00 00 00 B9 [16:49:56]Write i2c OK [16:49:56]MH_I2C_Read... [16:49:56]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [16:49:56]Read from MH i2c: E2 [16:49:56]MH_I2C_Read... [16:49:56]Read from MH i2c: E2 FD 00 [16:49:56]MH_I2C_Read... [16:49:56]Read from MH i2c: E2 FD 00 34 07 00 AF 04 AA 04 AB 04 6E 04 04 00 4D 00 00 00 69 04 9C 00 6F 04 04 00 4D 00 00 00 B1 04 03 00 3A 5B 83 70 04 03 00 C4 D0 15 72 04 03 00 76 8A 6D 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 4F F3 0D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 95 29 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 5F [16:49:56]RAPDU: AF 04 AA 04 AB 04 6E 04 04 00 4D 00 00 00 69 04 9C 00 6F 04 04 00 4D 00 00 00 B1 04 03 00 3A 5B 83 70 04 03 00 C4 D0 15 72 04 03 00 76 8A 6D 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 4F F3 0D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 95 29 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 [16:49:56]wFMCommunicate OK [16:49:56]wFMCommunicate request_size=4 [16:49:56]MH_SAM_APDU [16:49:56]CAPDU: 80 17 00 00 [16:49:56]Write to MH i2c: E2 08 00 35 07 80 17 00 00 00 00 00 00 BC [16:49:56]Write i2c OK [16:49:56]MH_I2C_Read... [16:49:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:49:56]Read from MH i2c: E2 [16:49:56]MH_I2C_Read... [16:49:56]Read from MH i2c: E2 FD 00 [16:49:56]MH_I2C_Read... [16:49:56]Read from MH i2c: E2 FD 00 35 07 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 90 00 D5 [16:49:56]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 90 00 [16:49:56]wFMCommunicate OK [16:49:56]wFMCommunicate request_size=4 [16:49:56]MH_SAM_APDU [16:49:56]CAPDU: 80 17 00 00 [16:49:56]Write to MH i2c: E2 08 00 36 07 80 17 00 00 00 00 00 00 BD [16:49:56]Write i2c OK [16:49:56]MH_I2C_Read... [16:49:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:49:57]Read from MH i2c: E2 [16:49:57]MH_I2C_Read... [16:49:57]Read from MH i2c: E2 FD 00 [16:49:57]MH_I2C_Read... [16:49:57]Read from MH i2c: E2 FD 00 36 07 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 90 00 71 [16:49:57]RAPDU: 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 90 00 [16:49:57]wFMCommunicate OK [16:49:57]wFMCommunicate request_size=4 [16:49:57]MH_SAM_APDU [16:49:57]CAPDU: 80 17 00 00 [16:49:57]Write to MH i2c: E2 08 00 37 07 80 17 00 00 00 00 00 00 BE [16:49:57]Write i2c OK [16:49:57]MH_I2C_Read... [16:49:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:49:57]Read from MH i2c: E2 [16:49:57]MH_I2C_Read... [16:49:57]Read from MH i2c: E2 FD 00 [16:49:57]MH_I2C_Read... [16:49:57]Read from MH i2c: E2 FD 00 37 07 00 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 90 00 3C [16:49:57]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 90 00 [16:49:57]wFMCommunicate OK [16:49:57]wFMCommunicate request_size=4 [16:49:57]MH_SAM_APDU [16:49:57]CAPDU: 80 17 00 00 [16:49:57]Write to MH i2c: E2 08 00 38 07 80 17 00 00 00 00 00 00 BF [16:49:57]Write i2c OK [16:49:57]MH_I2C_Read... [16:49:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 201! [16:49:57]Read from MH i2c: E2 [16:49:57]MH_I2C_Read... [16:49:57]Read from MH i2c: E2 CC 00 [16:49:57]MH_I2C_Read... [16:49:57]Read from MH i2c: E2 CC 00 38 07 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 A0 [16:49:57]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [16:49:57]wFMCommunicate OK [16:49:57]SAM_PROTO_GetShiftData done [16:49:57]requested_item shift.sale.total_cash is exist - process it [16:49:57]requested_item shift.sale_refund.total is exist - process it [16:49:57]requested_item shift.sale_refund.total_cash is exist - process it [16:49:57]requested_item shift.buy.total is exist - process it [16:49:57]requested_item shift.buy.total_cash is exist - process it [16:49:57]produce_requested_data done [16:49:57]produce_requested_data return {"fm.sale.total":133894174.14,"fm.sale_refund.total":37037760.00,"fm.buy.total":0.00,"shift.sale.total":86085.70,"shift.sale.total_cash":14297.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [16:49:57]process_action_free get_value [16:49:57]json_value_free [16:49:57]json_value_free done [16:49:57]process_json_proto returns [16:49:57]Send response to host [16:49:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":133894174.14,"fm.sale_refund.total":37037760.00,"fm.buy.total":0.00,"shift.sale.total":86085.70,"shift.sale.total_cash":14297.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [16:49:57]free response buf [16:49:57]execute_script done [16:49:57]execute_script returns [16:49:57]free content buf [16:49:57]Sock 7.Close socket [16:49:57]Sock 7.Thread stoped [16:49:59]OFD Sender: No OFD packet to send [16:50:04]OFD Sender: No OFD packet to send [16:50:09]OFD Sender: No OFD packet to send [16:50:10]accept exits with 9 [16:50:10]New connection [16:50:10]New thread 3067059556 created [16:50:10]Thread 3067202916 joined [16:50:10]Waiting for new connection... [16:50:10] Sock 9.Parse request [16:50:10]Sock 9.Check first char [16:50:10]Sock 9.First char is OK [16:50:10]request: POST /json_proto HTTP/1.0 [16:50:10]Method: POST [16:50:10]URL: /json_proto [16:50:10]Method is POST - this is cgi request [16:50:10]url: /json_proto [16:50:10]query_string will be loaded in cgi processing [16:50:10]execute_cgi json_proto POST (null) [16:50:10]execute_cgi path=json_proto method=POST [16:50:10]POST find Content-Length [16:50:10]Host: 172.17.41.195:8080 [16:50:10]Content-Length: 1207 [16:50:10]Content-Type: application/json [16:50:10] [16:50:10]POST finish read [16:50:10]Found Content-Length = 1207 [16:50:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0440\u0441\u0442\u0430\u043D\u0431\u0435\u043A\u043E\u0432 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)508095\u000A18.05.2024 16:32\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124100\u000A\u0414\u0422-\u041A-1\u000A 9.370 x 74.70\u000A\u0418\u0422\u041E\u0413: 699.94\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:50:10]execute_script... [16:50:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0440\u0441\u0442\u0430\u043D\u0431\u0435\u043A\u043E\u0432 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)508095\u000A18.05.2024 16:32\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124100\u000A\u0414\u0422-\u041A-1\u000A 9.370 x 74.70\u000A\u0418\u0422\u041E\u0413: 699.94\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:50:10]POST & json_proto [16:50:10]process_json_proto [16:50:10]json parsed OK: [16:50:10]protocol is kg_v1.0 [16:50:10]action value=print_text [16:50:10]process_action print_text [16:50:10]cmd_print_text [16:50:10]ExternCall_PrintAddStr [16:50:10]wPrintStart [16:50:10]Write to MH i2c: 01 00 00 39 07 40 [16:50:10]Write i2c OK [16:50:10]MH_I2C_Read... [16:50:10]Read from MH i2c: 01 [16:50:10]MH_I2C_Read... [16:50:10]Read from MH i2c: 01 07 00 [16:50:10]MH_I2C_Read... [16:50:10]Read from MH i2c: 01 07 00 39 07 00 00 00 00 00 FF 0F 55 [16:50:10]RasterBufferAndPrint [16:50:10]line *****ТОВАРНЫЙ ЧЕК***** [16:50:10]line АЗС-91 [16:50:10]line Партнер нефть [16:50:10]line 02508201610067 [16:50:10]line Кассир : Арстанбеков Н. [16:50:10]line Счет N : (1)508095 [16:50:10]line 18.05.2024 16:32 [16:50:10]line ПРОДАЖА [16:50:10]line ТРК (МРК, ГНК): 11 [16:50:10]line Вид ГСМ : 2710124100 [16:50:10]line ДТ-К-1 [16:50:10]line 9.370 x 74.70 [16:50:10]line ИТОГ: 699.94 [16:50:10]line Тип оплаты: Талоны: Топливная Карта [16:50:10]line 02750 [16:50:10]line ______________________ [16:50:10]line (подпись) [16:50:10]written 0, free lines is 4095 [16:50:10]Write to MH i2c: 01 00 00 4D 07 54 [16:50:10]Write i2c OK [16:50:10]MH_I2C_Read... [16:50:10]Read from MH i2c: 01 [16:50:10]MH_I2C_Read... [16:50:10]Read from MH i2c: 01 07 00 [16:50:10]MH_I2C_Read... [16:50:10]Read from MH i2c: 01 07 00 4D 07 00 00 00 00 00 0F 0E 78 [16:50:10]RasterBufferAndPrint [16:50:10]line [16:50:10]line [16:50:10]line [16:50:10]line [16:50:10]line [16:50:10]written 0, free lines is 3601 [16:50:10]MH_Cut [16:50:10]Write to MH i2c: D1 01 00 54 07 01 2D [16:50:10]Write i2c OK [16:50:10]MH_I2C_Read... [16:50:10]Read from MH i2c: D1 [16:50:10]MH_I2C_Read... [16:50:10]Read from MH i2c: D1 01 00 [16:50:10]MH_I2C_Read... [16:50:10]Read from MH i2c: D1 01 00 54 07 00 2C [16:50:10]Write to MH i2c: 01 00 00 55 07 5C [16:50:10]Write i2c OK [16:50:10]MH_I2C_Read... [16:50:11]*** Cut start [16:50:11]*** Purtial cut [16:50:11]*** Stage 1: CUTSNS_PIN = 1 [16:50:11]Read from MH i2c: 01 [16:50:11]MH_I2C_Read... [16:50:11]Read from MH i2c: 01 07 00 [16:50:11]MH_I2C_Read... [16:50:11]*** Stop cut motor [16:50:11]*** Cut end [16:50:11]Read from MH i2c: 01 07 00 55 07 00 00 00 00 00 FF 0F 71 [16:50:11]process_action print_text done [16:50:11]requested_data is exist [16:50:11]produce_requested_data [16:50:11]requested_item fm.sn is exist - process it [16:50:11]wFMCommunicate request_size=4 [16:50:11]MH_SAM_APDU [16:50:11]CAPDU: 80 11 00 00 [16:50:11]Write to MH i2c: E2 08 00 56 07 80 11 00 00 00 00 00 00 D7 [16:50:11]Write i2c OK [16:50:11]MH_I2C_Read... [16:50:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:50:11]Read from MH i2c: E2 [16:50:11]MH_I2C_Read... [16:50:11]Read from MH i2c: E2 17 00 [16:50:11]MH_I2C_Read... [16:50:11]Read from MH i2c: E2 17 00 56 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 2D [16:50:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [16:50:11]wFMCommunicate OK [16:50:11]requested_item fd.num is exist - process it [16:50:11]SAM_PROTO_GetFieldsCounters [16:50:11]wFMCommunicate request_size=4 [16:50:11]MH_SAM_APDU [16:50:11]CAPDU: 80 13 00 00 [16:50:11]Write to MH i2c: E2 08 00 57 07 80 13 00 00 00 00 00 00 DA [16:50:11]Write i2c OK [16:50:11]MH_I2C_Read... [16:50:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:50:11]Read from MH i2c: E2 [16:50:11]MH_I2C_Read... [16:50:11]Read from MH i2c: E2 62 00 [16:50:11]MH_I2C_Read... [16:50:11]Read from MH i2c: E2 62 00 57 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 FE 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 56 [16:50:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 FE 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:50:11]wFMCommunicate OK [16:50:11]SAM_PROTO_GetFieldsCounters done [16:50:11]requested_item shift.num is exist - process it [16:50:11]requested_item shift.opened is exist - process it [16:50:11]req_shift_opened [16:50:11]FM_GetShiftState [16:50:11]SAM_PROTO_GetShiftState [16:50:11]wFMCommunicate request_size=4 [16:50:11]MH_SAM_APDU [16:50:11]CAPDU: 80 13 01 00 [16:50:11]Write to MH i2c: E2 08 00 58 07 80 13 01 00 00 00 00 00 DC [16:50:11]Write i2c OK [16:50:11]MH_I2C_Read... [16:50:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:50:11]Read from MH i2c: E2 [16:50:11]MH_I2C_Read... [16:50:11]Read from MH i2c: E2 0E 00 [16:50:11]MH_I2C_Read... [16:50:11]Read from MH i2c: E2 0E 00 58 07 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 43 [16:50:11]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [16:50:11]wFMCommunicate OK [16:50:11]SAM_PROTO_GetShiftState done [16:50:11]FM_GetShiftState done [16:50:11]req_shift_opened done [16:50:11]requested_item shift.open_date is exist - process it [16:50:11]req_shift_open_date [16:50:11]req_shift_open_date done [16:50:11]produce_requested_data done [16:50:11]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67838,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [16:50:11]process_action_free print_text [16:50:11]json_value_free [16:50:11]json_value_free done [16:50:11]process_json_proto returns [16:50:11]Send response to host [16:50:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67838,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [16:50:11]free response buf [16:50:11]execute_script done [16:50:11]execute_script returns [16:50:11]free content buf [16:50:11]Sock 9.Close socket [16:50:11]Sock 9.Thread stoped [16:50:14]OFD Sender: No OFD packet to send [16:50:19]OFD Sender: No OFD packet to send [16:50:24]OFD Sender: No OFD packet to send [16:50:29]OFD Sender: No OFD packet to send [16:50:34]OFD Sender: No OFD packet to send [16:50:39]OFD Sender: No OFD packet to send [16:50:44]OFD Sender: No OFD packet to send [16:50:49]OFD Sender: No OFD packet to send [16:50:54]OFD Sender: No OFD packet to send [16:50:59]OFD Sender: No OFD packet to send [16:51:04]OFD Sender: No OFD packet to send [16:51:09]OFD Sender: No OFD packet to send [16:51:14]OFD Sender: No OFD packet to send [16:51:19]OFD Sender: No OFD packet to send [16:51:24]OFD Sender: No OFD packet to send [16:51:29]OFD Sender: No OFD packet to send [16:51:34]OFD Sender: No OFD packet to send [16:51:39]OFD Sender: No OFD packet to send [16:51:44]OFD Sender: No OFD packet to send [16:51:49]OFD Sender: No OFD packet to send [16:51:54]OFD Sender: No OFD packet to send [16:51:59]OFD Sender: No OFD packet to send [16:52:04]OFD Sender: No OFD packet to send [16:52:09]OFD Sender: No OFD packet to send [16:52:14]OFD Sender: No OFD packet to send [16:52:19]OFD Sender: No OFD packet to send [16:52:24]OFD Sender: No OFD packet to send [16:52:29]OFD Sender: No OFD packet to send [16:52:34]OFD Sender: No OFD packet to send [16:52:39]OFD Sender: No OFD packet to send [16:52:44]OFD Sender: No OFD packet to send [16:52:49]OFD Sender: No OFD packet to send [16:52:54]OFD Sender: No OFD packet to send [16:52:59]OFD Sender: No OFD packet to send [16:53:04]OFD Sender: No OFD packet to send [16:53:07]accept exits with 7 [16:53:07]New connection [16:53:07]New thread 3067202916 created [16:53:07]Thread 3067059556 joined [16:53:07]Waiting for new connection... [16:53:07] Sock 7.Parse request [16:53:07]Sock 7.Check first char [16:53:07]Sock 7.First char is OK [16:53:07]request: POST /json_proto HTTP/1.0 [16:53:07]Method: POST [16:53:07]URL: /json_proto [16:53:07]Method is POST - this is cgi request [16:53:07]url: /json_proto [16:53:07]query_string will be loaded in cgi processing [16:53:07]execute_cgi json_proto POST (null) [16:53:07]execute_cgi path=json_proto method=POST [16:53:07]POST find Content-Length [16:53:07]Host: 172.17.41.195:8080 [16:53:07]Content-Length: 803 [16:53:07]Content-Type: application/json [16:53:07] [16:53:07]POST finish read [16:53:07]Found Content-Length = 803 [16:53:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)508097", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.80, "quantity" : 22.460, "sum" : 1500.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1500.33 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:53:07]execute_script... [16:53:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)508097", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.80, "quantity" : 22.460, "sum" : 1500.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1500.33 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:53:07]POST & json_proto [16:53:07]process_json_proto [16:53:07]json parsed OK: [16:53:07]protocol is kg_v1.0 [16:53:07]action value=close_receipt [16:53:07]process_action close_receipt [16:53:07]cmd_close_receipt [16:53:07]MH_GetDate [16:53:07]Write to MH i2c: F0 00 00 59 07 4F [16:53:07]Write i2c OK [16:53:07]MH_I2C_Read... [16:53:07]Read from MH i2c: F0 [16:53:07]MH_I2C_Read... [16:53:07]Read from MH i2c: F0 09 00 [16:53:07]MH_I2C_Read... [16:53:07]Read from MH i2c: F0 09 00 59 07 00 F5 DC 48 66 FC 21 6F 64 C7 [16:53:07]GetLastDocTimeStamp 1716050867 [16:53:07]current date 1716051189 [16:53:07]FM_GetShiftState [16:53:07]SAM_PROTO_GetShiftState [16:53:07]wFMCommunicate request_size=4 [16:53:07]MH_SAM_APDU [16:53:07]CAPDU: 80 13 01 00 [16:53:07]Write to MH i2c: E2 08 00 5A 07 80 13 01 00 00 00 00 00 DE [16:53:07]Write i2c OK [16:53:07]MH_I2C_Read... [16:53:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:53:07]Read from MH i2c: E2 [16:53:07]MH_I2C_Read... [16:53:07]Read from MH i2c: E2 0E 00 [16:53:07]MH_I2C_Read... [16:53:07]Read from MH i2c: E2 0E 00 5A 07 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 45 [16:53:07]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [16:53:07]wFMCommunicate OK [16:53:07]SAM_PROTO_GetShiftState done [16:53:07]FM_GetShiftState done [16:53:07]opened in 1715991483 [16:53:07]opened+sec_in_day 1716077883 [16:53:07]quantity*price = 150032 [16:53:07]sum+1 = 150034 [16:53:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.33 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 0.00 Безнал.: 1500.33 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 78 18.05.2024 16:53 Смена: 359 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67839 ФПД: 135925831214247 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T165309&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67839&fm=135925831214247&tin=02508201610067®Number=0000000000091845&sum=150033 [16:53:09]StoreToDocumentArchive [16:53:09]shift 359 fd 67839 [16:53:09]save to /storage/0359/doc_00067839 [16:53:09]save last doc name /storage/0359/doc_00067839 to /storage/kkm_last_doc_name [16:53:09]save OK [16:53:09]Clear old archive folders... [16:53:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:53:09]tlvbuf is 009F4010 [16:53:09]SAM_PROTO_ClearQueue [16:53:09]wFMCommunicate request_size=4 [16:53:09]MH_SAM_APDU [16:53:09]CAPDU: 80 09 00 00 [16:53:09]Write to MH i2c: E2 08 00 67 07 80 09 00 00 00 00 00 00 E0 [16:53:09]Write i2c OK [16:53:09]MH_I2C_Read... [16:53:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:53:09]Read from MH i2c: E2 [16:53:09]MH_I2C_Read... [16:53:09]Read from MH i2c: E2 03 00 [16:53:09]MH_I2C_Read... [16:53:09]Read from MH i2c: E2 03 00 67 07 00 90 00 E2 [16:53:09]RAPDU: 90 00 [16:53:09]wFMCommunicate OK [16:53:09]SAM_PROTO_ClearQueue done [16:53:09]KKMCreateOFDPacket [16:53:09]OFDProtocolAddRootSTLVToBuf [16:53:09]FM_MakeSignedData [16:53:09]FM_MakeSignedData [16:53:09]SAM_PROTO_SignData [16:53:09]wFMCommunicate request_size=4 [16:53:09]MH_SAM_APDU [16:53:09]CAPDU: 80 0D 01 02 [16:53:09]Write to MH i2c: E2 08 00 68 07 80 0D 01 02 00 00 00 00 E8 [16:53:09]Write i2c OK [16:53:09]MH_I2C_Read... [16:53:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:53:09]Read from MH i2c: E2 [16:53:09]MH_I2C_Read... [16:53:09]Read from MH i2c: E2 03 00 [16:53:09]MH_I2C_Read... [16:53:09]Read from MH i2c: E2 03 00 68 07 00 90 00 E3 [16:53:09]RAPDU: 90 00 [16:53:09]wFMCommunicate OK [16:53:09]wFMCommunicate request_size=255 [16:53:09]MH_SAM_APDU [16:53:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BC 57 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 11 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 11 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 11 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 F5 DC 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 FF 08 01 00 35 04 06 00 7B [16:53:09]Write to MH i2c: E2 02 01 69 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BC 57 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 11 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 11 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 11 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 F5 DC 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 FF 08 01 00 35 04 06 00 7B 00 00 BB [16:53:09]Write i2c OK [16:53:09]MH_I2C_Read... [16:53:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:53:09]Read from MH i2c: E2 [16:53:09]MH_I2C_Read... [16:53:09]Read from MH i2c: E2 03 00 [16:53:09]MH_I2C_Read... [16:53:09]Read from MH i2c: E2 03 00 69 07 00 90 00 E4 [16:53:09]RAPDU: 90 00 [16:53:09]wFMCommunicate OK [16:53:09]wFMCommunicate request_size=10 [16:53:09]MH_SAM_APDU [16:53:09]CAPDU: 80 0D 02 02 05 9F B2 E2 A4 A7 [16:53:09]Write to MH i2c: E2 0D 00 6A 07 80 0D 02 02 05 00 9F B2 E2 A4 A7 00 00 73 [16:53:09]Write i2c OK [16:53:09]MH_I2C_Read... [16:53:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:53:09]Read from MH i2c: E2 [16:53:09]MH_I2C_Read... [16:53:09]Read from MH i2c: E2 03 00 [16:53:09]MH_I2C_Read... [16:53:09]Read from MH i2c: E2 03 00 6A 07 00 90 00 E5 [16:53:09]RAPDU: 90 00 [16:53:09]wFMCommunicate OK [16:53:09]wFMCommunicate request_size=4 [16:53:09]MH_SAM_APDU [16:53:09]CAPDU: 80 0D 03 02 [16:53:09]Write to MH i2c: E2 08 00 6B 07 80 0D 03 02 00 00 00 00 ED [16:53:09]Write i2c OK [16:53:09]MH_I2C_Read... [16:53:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:53:09]Read from MH i2c: E2 [16:53:09]MH_I2C_Read... [16:53:09]Read from MH i2c: E2 0B 00 [16:53:09]MH_I2C_Read... [16:53:09]Read from MH i2c: E2 0B 00 6B 07 00 1D 49 A0 EF A1 3E 5E 1A 90 00 3A [16:53:09]RAPDU: 1D 49 A0 EF A1 3E 5E 1A 90 00 [16:53:09]wFMCommunicate OK [16:53:09]SAM_PROTO_SignData done [16:53:09]FM_MakeSignedData done [16:53:09]CreateOFDProtocolMessage [16:53:09]wFMCommunicate request_size=4 [16:53:09]MH_SAM_APDU [16:53:09]CAPDU: 80 11 00 00 [16:53:09]Write to MH i2c: E2 08 00 6C 07 80 11 00 00 00 00 00 00 ED [16:53:09]Write i2c OK [16:53:09]MH_I2C_Read... [16:53:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:53:09]Read from MH i2c: E2 [16:53:09]MH_I2C_Read... [16:53:09]Read from MH i2c: E2 17 00 [16:53:09]MH_I2C_Read... [16:53:09]Read from MH i2c: E2 17 00 6C 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 43 [16:53:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [16:53:09]wFMCommunicate OK [16:53:09]CreateOFDProtocolMessage done [16:53:09]OFDSenderStorePacket 67839 [16:53:09]StoreOFDPacket docnum=67839 [16:53:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 E5 FA 07 01 17 1E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BC 57 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 11 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 11 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 11 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 F5 DC 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 FF 08 01 00 35 04 06 00 7B 9F B2 E2 A4 A7 1D 49 A0 EF A1 3E 5E 1A [16:53:09]CheckFolder [16:53:09]dirname=/storage/ofd_packets [16:53:09]CheckFolder done [16:53:09]ProducePacketName [16:53:09]name=ofd_packets/00067839 [16:53:09]NVStorageSaveData ofd_packets/00067839 [16:53:09]File name is /storage/ofd_packets/00067839 [16:53:09]Write 301 bytes [16:53:09]NVStorageSaveData done [16:53:09]OFDSenderStorePacket done [16:53:09]KKMCreateOFDPacket done [16:53:09]NVStorageSaveData kkm_last_timestamp [16:53:09]File name is /storage/kkm_last_timestamp [16:53:09]Write 4 bytes [16:53:09]NVStorageSaveData done [16:53:09]OFD Sender: Processing packet 67839 [packets to send 35, broken 34] [16:53:09]ProducePacketName [16:53:09]name=ofd_packets/00067839 [16:53:09]OFD Sender: To server: pG, [16:53:09]CommunicateWithHost lk.salyk.kg:30040 [16:53:09]ConnectInit lk.salyk.kg [16:53:09]ExternCall_PrintAddStr [16:53:09]wPrintStart [16:53:09]Write to MH i2c: 01 00 00 6D 07 74 [16:53:09]Write i2c OK [16:53:09]MH_I2C_Read... [16:53:09]Read from MH i2c: 01 [16:53:09]MH_I2C_Read... [16:53:09]Read from MH i2c: 01 07 00 [16:53:09]MH_I2C_Read... [16:53:09]Read from MH i2c: 01 07 00 6D 07 00 00 00 00 00 FF 0F 89 [16:53:09]RasterBufferAndPrint [16:53:09]line Счет N : (1)508097 [16:53:09]line ИНН: 02508201610067 [16:53:09]line Контрольно-Кассовый Чек [16:53:09]line ПРОДАЖА [16:53:09]line ТРК (МРК, ГНК) : 23 [16:53:09]line Товар: 2710124130 [16:53:09]line Аи-92-К-5 [16:53:09]line 22.460 * 66.80 [16:53:09]line = 1500.33 [16:53:09]line НДС 12% НСП 1% [16:53:09]line > о реализуемом товаре [16:53:09]line ИТОГО: 1500.33 [16:53:09]line НСП 1% : 13.28 [16:53:09]line НДС 12% : 159.33 [16:53:09]line Наличными: 0.00 [16:53:09]line Безнал.: 1500.33 [16:53:09]line Место: АЗС № 91 "Партнер Нефть" [16:53:09]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [16:53:09]line СНО: Общий режим [16:53:09]line Чек 78 18.05.2024 16:53 [16:53:09]line Смена: 359 ФФД: 1.0 [16:53:09]line ЗНМ: 0300000119 [16:53:09]line РНМ: 0000000000091845 [16:53:09]line Версия ККМ: 001 [16:53:09]line Платежная система: O! деньги [16:53:09]line ФМ: 0000000000871829 [16:53:09]line ФД: 67839 [16:53:09]line ФПД: 135925831214247 [16:53:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T165309&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67839&fm=135925831214247&tin=02508201610067®Number=0000000000091845&sum=150033 [16:53:09]Connected sock=11 [16:53:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 E5 FA 07 01 17 1E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BC 57 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 11 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 11 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 11 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 F5 DC 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 FF 08 01 00 35 04 06 00 7B 9F B2 E2 A4 A7 1D 49 A0 EF A1 3E 5E 1A [16:53:09]written 0, free lines is 4095 [16:53:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 01 71 47 00 99 71 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 FF 08 01 00 F4 03 04 00 C9 84 48 66 B6 04 01 00 00 0B 42 C6 31 83 22 FD FB [16:53:10]CommunicateWithHost err = 0 [16:53:10]CheckOFDResponse [16:53:10]1017 (14) - 77093643461234 [16:53:10]1041 (16) - 0000000000871829 [16:53:10]1040 (4) - 67839 [16:53:10]1012 (4) - 18.05.2024 10:36 [16:53:10]1206 (1) - 0 [16:53:10]OFD Sender: Remove packet 67839 [16:53:10]ProducePacketName [16:53:10]name=ofd_packets/00067839 [16:53:10]NVStorageDeleteData [16:53:10]Write to MH i2c: 01 00 00 96 07 9D [16:53:10]Write i2c OK [16:53:10]MH_I2C_Read... [16:53:10]Read from MH i2c: 01 [16:53:10]MH_I2C_Read... [16:53:10]Read from MH i2c: 01 07 00 [16:53:10]MH_I2C_Read... [16:53:10]Read from MH i2c: 01 07 00 96 07 00 00 00 00 00 DC 0C 8C [16:53:10]RasterBufferAndPrint [16:53:10]line [16:53:10]line [16:53:10]line [16:53:10]line [16:53:10]line [16:53:10]written 0, free lines is 3299 [16:53:10]MH_Cut [16:53:10]Write to MH i2c: D1 01 00 9D 07 01 76 [16:53:10]Write i2c OK [16:53:10]MH_I2C_Read... [16:53:10]Read from MH i2c: D1 [16:53:10]MH_I2C_Read... [16:53:10]Read from MH i2c: D1 01 00 [16:53:10]MH_I2C_Read... [16:53:10]Read from MH i2c: D1 01 00 9D 07 00 75 [16:53:10]Write to MH i2c: 01 00 00 9E 07 A5 [16:53:10]Write i2c OK [16:53:10]MH_I2C_Read... [16:53:10]OFD Sender: No OFD packet to send [16:53:11]*** Cut start [16:53:11]*** Purtial cut [16:53:11]*** CUTSNS_PIN = 0 [16:53:11]*** Stage 1: CUTSNS_PIN = 1 [16:53:13]Read from MH i2c: 01 [16:53:13]MH_I2C_Read... [16:53:13]*** Stop cut motor [16:53:13]*** Cut end [16:53:13]Read from MH i2c: 01 07 00 [16:53:13]MH_I2C_Read... [16:53:13]Read from MH i2c: 01 07 00 9E 07 00 00 00 00 00 FF 0F BA [16:53:13]process_action close_receipt done [16:53:13]requested_data is exist [16:53:13]produce_requested_data [16:53:13]requested_item fm.sn is exist - process it [16:53:13]wFMCommunicate request_size=4 [16:53:13]MH_SAM_APDU [16:53:13]CAPDU: 80 11 00 00 [16:53:13]Write to MH i2c: E2 08 00 9F 07 80 11 00 00 00 00 00 00 20 [16:53:13]Write i2c OK [16:53:13]MH_I2C_Read... [16:53:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:53:13]Read from MH i2c: E2 [16:53:13]MH_I2C_Read... [16:53:13]Read from MH i2c: E2 17 00 [16:53:13]MH_I2C_Read... [16:53:13]Read from MH i2c: E2 17 00 9F 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 76 [16:53:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [16:53:13]wFMCommunicate OK [16:53:13]requested_item fd.num is exist - process it [16:53:13]SAM_PROTO_GetFieldsCounters [16:53:13]wFMCommunicate request_size=4 [16:53:13]MH_SAM_APDU [16:53:13]CAPDU: 80 13 00 00 [16:53:13]Write to MH i2c: E2 08 00 A0 07 80 13 00 00 00 00 00 00 23 [16:53:13]Write i2c OK [16:53:13]MH_I2C_Read... [16:53:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:53:13]Read from MH i2c: E2 [16:53:13]MH_I2C_Read... [16:53:13]Read from MH i2c: E2 62 00 [16:53:13]MH_I2C_Read... [16:53:13]Read from MH i2c: E2 62 00 A0 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 FF 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 4E 00 00 00 5E 04 04 00 4E 00 00 00 57 04 04 00 4F 00 00 00 19 04 04 00 00 00 00 00 90 00 A3 [16:53:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 FF 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 4E 00 00 00 5E 04 04 00 4E 00 00 00 57 04 04 00 4F 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:53:13]wFMCommunicate OK [16:53:13]SAM_PROTO_GetFieldsCounters done [16:53:13]requested_item shift.num is exist - process it [16:53:13]requested_item shift.opened is exist - process it [16:53:13]req_shift_opened [16:53:13]FM_GetShiftState [16:53:13]SAM_PROTO_GetShiftState [16:53:13]wFMCommunicate request_size=4 [16:53:13]MH_SAM_APDU [16:53:13]CAPDU: 80 13 01 00 [16:53:13]Write to MH i2c: E2 08 00 A1 07 80 13 01 00 00 00 00 00 25 [16:53:13]Write i2c OK [16:53:13]MH_I2C_Read... [16:53:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:53:13]Read from MH i2c: E2 [16:53:13]MH_I2C_Read... [16:53:13]Read from MH i2c: E2 0E 00 [16:53:13]MH_I2C_Read... [16:53:13]Read from MH i2c: E2 0E 00 A1 07 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 8C [16:53:13]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [16:53:13]wFMCommunicate OK [16:53:13]SAM_PROTO_GetShiftState done [16:53:13]FM_GetShiftState done [16:53:13]req_shift_opened done [16:53:13]requested_item shift.open_date is exist - process it [16:53:13]req_shift_open_date [16:53:13]req_shift_open_date done [16:53:13]produce_requested_data done [16:53:13]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67839,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [16:53:13]process_action_free close_receipt [16:53:13]json_value_free [16:53:13]json_value_free done [16:53:13]process_json_proto returns [16:53:13]Send response to host [16:53:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67839,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [16:53:13]free response buf [16:53:13]execute_script done [16:53:13]execute_script returns [16:53:13]free content buf [16:53:13]Sock 7.Close socket [16:53:13]Sock 7.Thread stoped [16:53:15]OFD Sender: No OFD packet to send [16:53:20]OFD Sender: No OFD packet to send [16:53:25]OFD Sender: No OFD packet to send [16:53:30]OFD Sender: No OFD packet to send [16:53:35]OFD Sender: No OFD packet to send [16:53:40]OFD Sender: No OFD packet to send [16:53:45]OFD Sender: No OFD packet to send [16:53:50]OFD Sender: No OFD packet to send [16:53:55]OFD Sender: No OFD packet to send [16:54:00]OFD Sender: No OFD packet to send [16:54:05]OFD Sender: No OFD packet to send [16:54:10]OFD Sender: No OFD packet to send [16:54:15]OFD Sender: No OFD packet to send [16:54:20]OFD Sender: No OFD packet to send [16:54:25]OFD Sender: No OFD packet to send [16:54:30]OFD Sender: No OFD packet to send [16:54:35]OFD Sender: No OFD packet to send [16:54:40]OFD Sender: No OFD packet to send [16:54:45]OFD Sender: No OFD packet to send [16:54:50]OFD Sender: No OFD packet to send [16:54:55]OFD Sender: No OFD packet to send [16:55:00]OFD Sender: No OFD packet to send [16:55:05]OFD Sender: No OFD packet to send [16:55:10]OFD Sender: No OFD packet to send [16:55:15]OFD Sender: No OFD packet to send [16:55:20]OFD Sender: No OFD packet to send [16:55:25]OFD Sender: No OFD packet to send [16:55:30]OFD Sender: No OFD packet to send [16:55:35]OFD Sender: No OFD packet to send [16:55:40]OFD Sender: No OFD packet to send [16:55:45]OFD Sender: No OFD packet to send [16:55:50]OFD Sender: No OFD packet to send [16:55:55]OFD Sender: No OFD packet to send [16:56:00]OFD Sender: No OFD packet to send [16:56:05]OFD Sender: No OFD packet to send [16:56:10]OFD Sender: No OFD packet to send [16:56:15]OFD Sender: No OFD packet to send [16:56:20]OFD Sender: No OFD packet to send [16:56:25]OFD Sender: No OFD packet to send [16:56:30]OFD Sender: No OFD packet to send [16:56:35]OFD Sender: No OFD packet to send [16:56:40]OFD Sender: No OFD packet to send [16:56:45]OFD Sender: No OFD packet to send [16:56:50]OFD Sender: No OFD packet to send [16:56:55]OFD Sender: No OFD packet to send [16:57:00]OFD Sender: No OFD packet to send [16:57:05]OFD Sender: No OFD packet to send [16:57:10]OFD Sender: No OFD packet to send [16:57:15]OFD Sender: No OFD packet to send [16:57:20]OFD Sender: No OFD packet to send [16:57:25]OFD Sender: No OFD packet to send [16:57:30]OFD Sender: No OFD packet to send [16:57:35]OFD Sender: No OFD packet to send [16:57:40]OFD Sender: No OFD packet to send [16:57:45]OFD Sender: No OFD packet to send [16:57:50]OFD Sender: No OFD packet to send [16:57:55]OFD Sender: No OFD packet to send [16:58:00]OFD Sender: No OFD packet to send [16:58:05]OFD Sender: No OFD packet to send [16:58:10]OFD Sender: No OFD packet to send [16:58:15]OFD Sender: No OFD packet to send [16:58:20]OFD Sender: No OFD packet to send [16:58:25]OFD Sender: No OFD packet to send [16:58:30]OFD Sender: No OFD packet to send [16:58:35]OFD Sender: No OFD packet to send [16:58:40]OFD Sender: No OFD packet to send [16:58:45]OFD Sender: No OFD packet to send [16:58:50]OFD Sender: No OFD packet to send [16:58:55]OFD Sender: No OFD packet to send [16:59:00]OFD Sender: No OFD packet to send [16:59:05]OFD Sender: No OFD packet to send [16:59:10]OFD Sender: No OFD packet to send [16:59:15]OFD Sender: No OFD packet to send [16:59:20]OFD Sender: No OFD packet to send [16:59:25]OFD Sender: No OFD packet to send [16:59:30]OFD Sender: No OFD packet to send [16:59:35]OFD Sender: No OFD packet to send [16:59:40]OFD Sender: No OFD packet to send [16:59:45]OFD Sender: No OFD packet to send [16:59:50]OFD Sender: No OFD packet to send [16:59:55]OFD Sender: No OFD packet to send [17:00:00]OFD Sender: No OFD packet to send [17:00:05]OFD Sender: No OFD packet to send [17:00:10]OFD Sender: No OFD packet to send [17:00:15]OFD Sender: No OFD packet to send [17:00:20]OFD Sender: No OFD packet to send [17:00:25]OFD Sender: No OFD packet to send [17:00:30]OFD Sender: No OFD packet to send [17:00:35]OFD Sender: No OFD packet to send [17:00:40]OFD Sender: No OFD packet to send [17:00:45]OFD Sender: No OFD packet to send [17:00:50]OFD Sender: No OFD packet to send [17:00:55]OFD Sender: No OFD packet to send [17:01:00]OFD Sender: No OFD packet to send [17:01:05]OFD Sender: No OFD packet to send [17:01:10]OFD Sender: No OFD packet to send [17:01:16]OFD Sender: No OFD packet to send [17:01:21]OFD Sender: No OFD packet to send [17:01:26]OFD Sender: No OFD packet to send [17:01:31]OFD Sender: No OFD packet to send [17:01:36]OFD Sender: No OFD packet to send [17:01:41]OFD Sender: No OFD packet to send [17:01:45]accept exits with 9 [17:01:45]New connection [17:01:45]New thread 3067059556 created [17:01:45]Thread 3067202916 joined [17:01:45]Waiting for new connection... [17:01:45] Sock 9.Parse request [17:01:45]Sock 9.Check first char [17:01:45]Sock 9.First char is OK [17:01:45]request: POST /json_proto HTTP/1.0 [17:01:45]Method: POST [17:01:45]URL: /json_proto [17:01:45]Method is POST - this is cgi request [17:01:45]url: /json_proto [17:01:45]query_string will be loaded in cgi processing [17:01:45]execute_cgi json_proto POST (null) [17:01:45]execute_cgi path=json_proto method=POST [17:01:45]POST find Content-Length [17:01:45]Host: 172.17.41.195:8080 [17:01:45]Content-Length: 800 [17:01:45]Content-Type: application/json [17:01:45] [17:01:45]POST finish read [17:01:45]Found Content-Length = 800 [17:01:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)508098", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.80, "quantity" : 3.000, "sum" : 200.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 200.40 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:01:45]execute_script... [17:01:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)508098", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.80, "quantity" : 3.000, "sum" : 200.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 200.40 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:01:45]POST & json_proto [17:01:45]process_json_proto [17:01:45]json parsed OK: [17:01:45]protocol is kg_v1.0 [17:01:45]action value=close_receipt [17:01:45]process_action close_receipt [17:01:45]cmd_close_receipt [17:01:45]MH_GetDate [17:01:45]Write to MH i2c: F0 00 00 A2 07 98 [17:01:45]Write i2c OK [17:01:45]MH_I2C_Read... [17:01:45]Read from MH i2c: F0 [17:01:45]MH_I2C_Read... [17:01:45]Read from MH i2c: F0 09 00 [17:01:45]MH_I2C_Read... [17:01:45]Read from MH i2c: F0 09 00 A2 07 00 FA DE 48 66 FC 21 6F 64 17 [17:01:45]GetLastDocTimeStamp 1716051189 [17:01:45]current date 1716051706 [17:01:45]FM_GetShiftState [17:01:45]SAM_PROTO_GetShiftState [17:01:45]wFMCommunicate request_size=4 [17:01:45]MH_SAM_APDU [17:01:45]CAPDU: 80 13 01 00 [17:01:45]Write to MH i2c: E2 08 00 A3 07 80 13 01 00 00 00 00 00 27 [17:01:45]Write i2c OK [17:01:45]MH_I2C_Read... [17:01:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:01:45]Read from MH i2c: E2 [17:01:45]MH_I2C_Read... [17:01:45]Read from MH i2c: E2 0E 00 [17:01:45]MH_I2C_Read... [17:01:45]Read from MH i2c: E2 0E 00 A3 07 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 8E [17:01:45]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [17:01:45]wFMCommunicate OK [17:01:45]SAM_PROTO_GetShiftState done [17:01:45]FM_GetShiftState done [17:01:45]opened in 1715991483 [17:01:45]opened+sec_in_day 1716077883 [17:01:45]quantity*price = 20040 [17:01:45]sum+1 = 20041 [17:01:45]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 200.40 НСП 1% : 1.77 НДС 12% : 21.28 Наличными: 0.00 Безнал.: 200.40 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 79 18.05.2024 17:01 Смена: 359 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67840 ФПД: 216647156811771 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T170146&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67840&fm=216647156811771&tin=02508201610067®Number=0000000000091845&sum=20040 [17:01:46]StoreToDocumentArchive [17:01:46]shift 359 fd 67840 [17:01:46]save to /storage/0359/doc_00067840 [17:01:46]save last doc name /storage/0359/doc_00067840 to /storage/kkm_last_doc_name [17:01:46]save OK [17:01:46]Clear old archive folders... [17:01:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:01:46]tlvbuf is 009E1230 [17:01:46]SAM_PROTO_ClearQueue [17:01:46]wFMCommunicate request_size=4 [17:01:46]MH_SAM_APDU [17:01:46]CAPDU: 80 09 00 00 [17:01:46]Write to MH i2c: E2 08 00 B0 07 80 09 00 00 00 00 00 00 29 [17:01:46]Write i2c OK [17:01:46]MH_I2C_Read... [17:01:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:01:46]Read from MH i2c: E2 [17:01:46]MH_I2C_Read... [17:01:46]Read from MH i2c: E2 03 00 [17:01:46]MH_I2C_Read... [17:01:46]Read from MH i2c: E2 03 00 B0 07 00 90 00 2B [17:01:46]RAPDU: 90 00 [17:01:46]wFMCommunicate OK [17:01:46]SAM_PROTO_ClearQueue done [17:01:46]KKMCreateOFDPacket [17:01:46]OFDProtocolAddRootSTLVToBuf [17:01:46]FM_MakeSignedData [17:01:46]FM_MakeSignedData [17:01:46]SAM_PROTO_SignData [17:01:46]wFMCommunicate request_size=4 [17:01:46]MH_SAM_APDU [17:01:46]CAPDU: 80 0D 01 02 [17:01:46]Write to MH i2c: E2 08 00 B1 07 80 0D 01 02 00 00 00 00 31 [17:01:46]Write i2c OK [17:01:46]MH_I2C_Read... [17:01:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:01:46]Read from MH i2c: E2 [17:01:46]MH_I2C_Read... [17:01:46]Read from MH i2c: E2 03 00 [17:01:46]MH_I2C_Read... [17:01:46]Read from MH i2c: E2 03 00 B1 07 00 90 00 2C [17:01:46]RAPDU: 90 00 [17:01:46]wFMCommunicate OK [17:01:46]wFMCommunicate request_size=255 [17:01:46]MH_SAM_APDU [17:01:46]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 48 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 48 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 FA DE 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 00 09 01 00 35 04 06 00 C5 [17:01:46]Write to MH i2c: E2 02 01 B2 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 48 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 48 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 FA DE 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 00 09 01 00 35 04 06 00 C5 00 00 0C [17:01:46]Write i2c OK [17:01:46]MH_I2C_Read... [17:01:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:01:47]Read from MH i2c: E2 [17:01:47]MH_I2C_Read... [17:01:47]Read from MH i2c: E2 03 00 [17:01:47]MH_I2C_Read... [17:01:47]Read from MH i2c: E2 03 00 B2 07 00 90 00 2D [17:01:47]RAPDU: 90 00 [17:01:47]wFMCommunicate OK [17:01:47]wFMCommunicate request_size=10 [17:01:47]MH_SAM_APDU [17:01:47]CAPDU: 80 0D 02 02 05 0A 18 D2 C7 FB [17:01:47]Write to MH i2c: E2 0D 00 B3 07 80 0D 02 02 05 00 0A 18 D2 C7 FB 00 00 F4 [17:01:47]Write i2c OK [17:01:47]MH_I2C_Read... [17:01:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:01:47]Read from MH i2c: E2 [17:01:47]MH_I2C_Read... [17:01:47]Read from MH i2c: E2 03 00 [17:01:47]MH_I2C_Read... [17:01:47]Read from MH i2c: E2 03 00 B3 07 00 90 00 2E [17:01:47]RAPDU: 90 00 [17:01:47]wFMCommunicate OK [17:01:47]wFMCommunicate request_size=4 [17:01:47]MH_SAM_APDU [17:01:47]CAPDU: 80 0D 03 02 [17:01:47]Write to MH i2c: E2 08 00 B4 07 80 0D 03 02 00 00 00 00 36 [17:01:47]Write i2c OK [17:01:47]MH_I2C_Read... [17:01:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:01:47]Read from MH i2c: E2 [17:01:47]MH_I2C_Read... [17:01:47]Read from MH i2c: E2 0B 00 [17:01:47]MH_I2C_Read... [17:01:47]Read from MH i2c: E2 0B 00 B4 07 00 FD 22 A8 20 64 50 C8 36 90 00 D0 [17:01:47]RAPDU: FD 22 A8 20 64 50 C8 36 90 00 [17:01:47]wFMCommunicate OK [17:01:47]SAM_PROTO_SignData done [17:01:47]FM_MakeSignedData done [17:01:47]CreateOFDProtocolMessage [17:01:47]wFMCommunicate request_size=4 [17:01:47]MH_SAM_APDU [17:01:47]CAPDU: 80 11 00 00 [17:01:47]Write to MH i2c: E2 08 00 B5 07 80 11 00 00 00 00 00 00 36 [17:01:47]Write i2c OK [17:01:47]MH_I2C_Read... [17:01:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:01:47]Read from MH i2c: E2 [17:01:47]MH_I2C_Read... [17:01:47]Read from MH i2c: E2 17 00 [17:01:47]MH_I2C_Read... [17:01:47]Read from MH i2c: E2 17 00 B5 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 8C [17:01:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [17:01:47]wFMCommunicate OK [17:01:47]CreateOFDProtocolMessage done [17:01:47]OFDSenderStorePacket 67840 [17:01:47]StoreOFDPacket docnum=67840 [17:01:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 55 15 07 01 8A DA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 48 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 48 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 FA DE 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 00 09 01 00 35 04 06 00 C5 0A 18 D2 C7 FB FD 22 A8 20 64 50 C8 36 [17:01:47]CheckFolder [17:01:47]dirname=/storage/ofd_packets [17:01:47]CheckFolder done [17:01:47]ProducePacketName [17:01:47]name=ofd_packets/00067840 [17:01:47]NVStorageSaveData ofd_packets/00067840 [17:01:47]File name is /storage/ofd_packets/00067840 [17:01:47]Write 301 bytes [17:01:47]NVStorageSaveData done [17:01:47]OFDSenderStorePacket done [17:01:47]KKMCreateOFDPacket done [17:01:47]NVStorageSaveData kkm_last_timestamp [17:01:47]File name is /storage/kkm_last_timestamp [17:01:47]Write 4 bytes [17:01:47]NVStorageSaveData done [17:01:47]ExternCall_PrintAddStr [17:01:47]wPrintStart [17:01:47]Write to MH i2c: 01 00 00 B6 07 BD [17:01:47]Write i2c OK [17:01:47]MH_I2C_Read... [17:01:47]Read from MH i2c: 01 [17:01:47]MH_I2C_Read... [17:01:47]Read from MH i2c: 01 07 00 [17:01:47]MH_I2C_Read... [17:01:47]Read from MH i2c: 01 07 00 B6 07 00 00 00 00 00 FF 0F D2 [17:01:47]RasterBufferAndPrint [17:01:47]line Счет N : (1)508098 [17:01:47]line ИНН: 02508201610067 [17:01:47]line Контрольно-Кассовый Чек [17:01:47]line ПРОДАЖА [17:01:47]line ТРК (МРК, ГНК) : 33 [17:01:47]line Товар: 2710124130 [17:01:47]line Аи-92-К-5 [17:01:47]line 3.000 * 66.80 [17:01:47]line = 200.40 [17:01:47]line НДС 12% НСП 1% [17:01:47]line > о реализуемом товаре [17:01:47]line ИТОГО: 200.40 [17:01:47]line НСП 1% : 1.77 [17:01:47]line НДС 12% : 21.28 [17:01:47]line Наличными: 0.00 [17:01:47]line Безнал.: 200.40 [17:01:47]line Место: АЗС № 91 "Партнер Нефть" [17:01:47]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [17:01:47]line СНО: Общий режим [17:01:47]line Чек 79 18.05.2024 17:01 [17:01:47]line Смена: 359 ФФД: 1.0 [17:01:47]line ЗНМ: 0300000119 [17:01:47]line РНМ: 0000000000091845 [17:01:47]line Версия ККМ: 001 [17:01:47]line Платежная система: O! деньги [17:01:47]line ФМ: 0000000000871829 [17:01:47]line ФД: 67840 [17:01:47]line ФПД: 216647156811771 [17:01:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T170146&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67840&fm=216647156811771&tin=02508201610067®Number=0000000000091845&sum=20040 [17:01:47]OFD Sender: Processing packet 67840 [packets to send 35, broken 34] [17:01:47]ProducePacketName [17:01:47]name=ofd_packets/00067840 [17:01:47]OFD Sender: To server: pG, [17:01:47]CommunicateWithHost lk.salyk.kg:30040 [17:01:47]ConnectInit lk.salyk.kg [17:01:47]written 0, free lines is 4095 [17:01:47]Connected sock=10 [17:01:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 55 15 07 01 8A DA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 48 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 48 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 FA DE 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 00 09 01 00 35 04 06 00 C5 0A 18 D2 C7 FB FD 22 A8 20 64 50 C8 36 [17:01:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 7A 00 47 00 80 48 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 00 09 01 00 F4 03 04 00 CF 86 48 66 B6 04 01 00 00 BB A3 7A BF 11 53 0D D3 [17:01:48]CommunicateWithHost err = 0 [17:01:48]CheckOFDResponse [17:01:48]1017 (14) - 77093643461234 [17:01:48]1041 (16) - 0000000000871829 [17:01:48]1040 (4) - 67840 [17:01:48]1012 (4) - 18.05.2024 10:45 [17:01:48]1206 (1) - 0 [17:01:48]OFD Sender: Remove packet 67840 [17:01:48]ProducePacketName [17:01:48]name=ofd_packets/00067840 [17:01:48]NVStorageDeleteData [17:01:48]Write to MH i2c: 01 00 00 DF 07 E6 [17:01:48]Write i2c OK [17:01:48]MH_I2C_Read... [17:01:48]Read from MH i2c: 01 [17:01:48]MH_I2C_Read... [17:01:48]Read from MH i2c: 01 07 00 [17:01:48]MH_I2C_Read... [17:01:48]Read from MH i2c: 01 07 00 DF 07 00 00 00 00 00 D0 0C C9 [17:01:48]RasterBufferAndPrint [17:01:48]line [17:01:48]line [17:01:48]line [17:01:48]line [17:01:48]line [17:01:48]written 0, free lines is 3285 [17:01:48]MH_Cut [17:01:48]Write to MH i2c: D1 01 00 E6 07 01 BF [17:01:48]Write i2c OK [17:01:48]MH_I2C_Read... [17:01:48]Read from MH i2c: D1 [17:01:48]MH_I2C_Read... [17:01:48]Read from MH i2c: D1 01 00 [17:01:48]MH_I2C_Read... [17:01:48]Read from MH i2c: D1 01 00 E6 07 00 BE [17:01:48]Write to MH i2c: 01 00 00 E7 07 EE [17:01:48]Write i2c OK [17:01:48]MH_I2C_Read... [17:01:48]OFD Sender: No OFD packet to send [17:01:48]*** Cut start [17:01:48]*** Purtial cut [17:01:48]*** Stage 1: CUTSNS_PIN = 1 [17:01:49]Read from MH i2c: 01 [17:01:49]MH_I2C_Read... [17:01:49]*** Stop cut motor [17:01:49]*** Cut end [17:01:49]Read from MH i2c: 01 07 00 [17:01:49]MH_I2C_Read... [17:01:49]Read from MH i2c: 01 07 00 E7 07 00 00 00 00 00 FF 0F 03 [17:01:49]process_action close_receipt done [17:01:49]requested_data is exist [17:01:49]produce_requested_data [17:01:49]requested_item fm.sn is exist - process it [17:01:49]wFMCommunicate request_size=4 [17:01:49]MH_SAM_APDU [17:01:49]CAPDU: 80 11 00 00 [17:01:49]Write to MH i2c: E2 08 00 E8 07 80 11 00 00 00 00 00 00 69 [17:01:49]Write i2c OK [17:01:49]MH_I2C_Read... [17:01:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:01:49]Read from MH i2c: E2 [17:01:49]MH_I2C_Read... [17:01:49]Read from MH i2c: E2 17 00 [17:01:49]MH_I2C_Read... [17:01:49]Read from MH i2c: E2 17 00 E8 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 BF [17:01:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [17:01:49]wFMCommunicate OK [17:01:49]requested_item fd.num is exist - process it [17:01:49]SAM_PROTO_GetFieldsCounters [17:01:49]wFMCommunicate request_size=4 [17:01:49]MH_SAM_APDU [17:01:49]CAPDU: 80 13 00 00 [17:01:49]Write to MH i2c: E2 08 00 E9 07 80 13 00 00 00 00 00 00 6C [17:01:49]Write i2c OK [17:01:49]MH_I2C_Read... [17:01:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:01:49]Read from MH i2c: E2 [17:01:49]MH_I2C_Read... [17:01:49]Read from MH i2c: E2 62 00 [17:01:49]MH_I2C_Read... [17:01:49]Read from MH i2c: E2 62 00 E9 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 00 09 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 F1 [17:01:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 00 09 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:01:49]wFMCommunicate OK [17:01:49]SAM_PROTO_GetFieldsCounters done [17:01:49]requested_item shift.num is exist - process it [17:01:49]requested_item shift.opened is exist - process it [17:01:49]req_shift_opened [17:01:49]FM_GetShiftState [17:01:49]SAM_PROTO_GetShiftState [17:01:49]wFMCommunicate request_size=4 [17:01:49]MH_SAM_APDU [17:01:49]CAPDU: 80 13 01 00 [17:01:49]Write to MH i2c: E2 08 00 EA 07 80 13 01 00 00 00 00 00 6E [17:01:49]Write i2c OK [17:01:49]MH_I2C_Read... [17:01:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:01:49]Read from MH i2c: E2 [17:01:49]MH_I2C_Read... [17:01:49]Read from MH i2c: E2 0E 00 [17:01:49]MH_I2C_Read... [17:01:49]Read from MH i2c: E2 0E 00 EA 07 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 D5 [17:01:49]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [17:01:49]wFMCommunicate OK [17:01:49]SAM_PROTO_GetShiftState done [17:01:49]FM_GetShiftState done [17:01:49]req_shift_opened done [17:01:49]requested_item shift.open_date is exist - process it [17:01:49]req_shift_open_date [17:01:49]req_shift_open_date done [17:01:49]produce_requested_data done [17:01:49]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67840,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [17:01:49]process_action_free close_receipt [17:01:49]json_value_free [17:01:49]json_value_free done [17:01:49]process_json_proto returns [17:01:49]Send response to host [17:01:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67840,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [17:01:49]free response buf [17:01:49]execute_script done [17:01:49]execute_script returns [17:01:49]free content buf [17:01:49]Sock 9.Close socket [17:01:49]Sock 9.Thread stoped [17:01:53]OFD Sender: No OFD packet to send [17:01:58]OFD Sender: No OFD packet to send [17:02:03]OFD Sender: No OFD packet to send [17:02:08]OFD Sender: No OFD packet to send [17:02:13]OFD Sender: No OFD packet to send [17:02:18]OFD Sender: No OFD packet to send [17:02:23]OFD Sender: No OFD packet to send [17:02:28]OFD Sender: No OFD packet to send [17:02:33]OFD Sender: No OFD packet to send [17:02:38]OFD Sender: No OFD packet to send [17:02:43]OFD Sender: No OFD packet to send [17:02:48]OFD Sender: No OFD packet to send [17:02:53]OFD Sender: No OFD packet to send [17:02:58]OFD Sender: No OFD packet to send [17:03:03]OFD Sender: No OFD packet to send [17:03:08]OFD Sender: No OFD packet to send [17:03:13]OFD Sender: No OFD packet to send [17:03:18]accept exits with 7 [17:03:18]New connection [17:03:18]New thread 3067202916 created [17:03:18]Thread 3067059556 joined [17:03:18]Waiting for new connection... [17:03:18] Sock 7.Parse request [17:03:18]Sock 7.Check first char [17:03:18]Sock 7.First char is OK [17:03:18]request: POST /json_proto HTTP/1.0 [17:03:18]Method: POST [17:03:18]URL: /json_proto [17:03:18]Method is POST - this is cgi request [17:03:18]url: /json_proto [17:03:18]query_string will be loaded in cgi processing [17:03:18]execute_cgi json_proto POST (null) [17:03:18]execute_cgi path=json_proto method=POST [17:03:18]POST find Content-Length [17:03:18]Host: 172.17.41.195:8080 [17:03:18]Content-Length: 816 [17:03:18]Content-Type: application/json [17:03:18] [17:03:18]POST finish read [17:03:18]Found Content-Length = 816 [17:03:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)508099", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.80, "quantity" : 8.990, "sum" : 600.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 600.53 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:03:18]execute_script... [17:03:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)508099", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.80, "quantity" : 8.990, "sum" : 600.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 600.53 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:03:18]POST & json_proto [17:03:18]process_json_proto [17:03:18]json parsed OK: [17:03:18]protocol is kg_v1.0 [17:03:18]action value=close_receipt [17:03:18]process_action close_receipt [17:03:18]cmd_close_receipt [17:03:18]MH_GetDate [17:03:18]Write to MH i2c: F0 00 00 EB 07 E1 [17:03:18]Write i2c OK [17:03:18]MH_I2C_Read... [17:03:18]Read from MH i2c: F0 [17:03:18]MH_I2C_Read... [17:03:18]Read from MH i2c: F0 09 00 [17:03:18]MH_I2C_Read... [17:03:18]Read from MH i2c: F0 09 00 EB 07 00 57 DF 48 66 FC 21 6F 64 BE [17:03:18]GetLastDocTimeStamp 1716051706 [17:03:18]current date 1716051799 [17:03:18]FM_GetShiftState [17:03:18]SAM_PROTO_GetShiftState [17:03:18]wFMCommunicate request_size=4 [17:03:18]MH_SAM_APDU [17:03:18]CAPDU: 80 13 01 00 [17:03:18]Write to MH i2c: E2 08 00 EC 07 80 13 01 00 00 00 00 00 70 [17:03:18]Write i2c OK [17:03:18]MH_I2C_Read... [17:03:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:03:18]Read from MH i2c: E2 [17:03:18]MH_I2C_Read... [17:03:18]Read from MH i2c: E2 0E 00 [17:03:18]MH_I2C_Read... [17:03:18]Read from MH i2c: E2 0E 00 EC 07 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 D7 [17:03:18]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [17:03:18]wFMCommunicate OK [17:03:18]SAM_PROTO_GetShiftState done [17:03:18]FM_GetShiftState done [17:03:18]opened in 1715991483 [17:03:18]opened+sec_in_day 1716077883 [17:03:18]quantity*price = 60053 [17:03:18]sum+1 = 60054 [17:03:18]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 600.53 НСП 1% : 5.31 НДС 12% : 63.77 Наличными: 0.00 Безнал.: 600.53 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 80 18.05.2024 17:03 Смена: 359 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871829 ФД: 67841 ФПД: 180900596214077 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T170319&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67841&fm=180900596214077&tin=02508201610067®Number=0000000000091845&sum=60053 [17:03:19]StoreToDocumentArchive [17:03:19]shift 359 fd 67841 [17:03:19]save to /storage/0359/doc_00067841 [17:03:19]save last doc name /storage/0359/doc_00067841 to /storage/kkm_last_doc_name [17:03:19]save OK [17:03:19]Clear old archive folders... [17:03:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:03:19]tlvbuf is 009E2AA0 [17:03:19]SAM_PROTO_ClearQueue [17:03:19]wFMCommunicate request_size=4 [17:03:19]MH_SAM_APDU [17:03:19]CAPDU: 80 09 00 00 [17:03:19]Write to MH i2c: E2 08 00 F9 07 80 09 00 00 00 00 00 00 72 [17:03:19]Write i2c OK [17:03:19]MH_I2C_Read... [17:03:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:03:19]Read from MH i2c: E2 [17:03:19]MH_I2C_Read... [17:03:19]Read from MH i2c: E2 03 00 [17:03:19]MH_I2C_Read... [17:03:19]Read from MH i2c: E2 03 00 F9 07 00 90 00 74 [17:03:19]RAPDU: 90 00 [17:03:19]wFMCommunicate OK [17:03:19]SAM_PROTO_ClearQueue done [17:03:19]KKMCreateOFDPacket [17:03:19]OFDProtocolAddRootSTLVToBuf [17:03:19]FM_MakeSignedData [17:03:19]FM_MakeSignedData [17:03:19]SAM_PROTO_SignData [17:03:19]wFMCommunicate request_size=4 [17:03:19]MH_SAM_APDU [17:03:19]CAPDU: 80 0D 01 02 [17:03:19]Write to MH i2c: E2 08 00 FA 07 80 0D 01 02 00 00 00 00 7A [17:03:19]Write i2c OK [17:03:19]MH_I2C_Read... [17:03:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:03:19]Read from MH i2c: E2 [17:03:19]MH_I2C_Read... [17:03:19]Read from MH i2c: E2 03 00 [17:03:19]MH_I2C_Read... [17:03:19]Read from MH i2c: E2 03 00 FA 07 00 90 00 75 [17:03:19]RAPDU: 90 00 [17:03:19]wFMCommunicate OK [17:03:19]wFMCommunicate request_size=255 [17:03:19]MH_SAM_APDU [17:03:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1E 23 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 95 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 95 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 95 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 57 DF 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 01 09 01 00 35 04 06 00 A4 [17:03:19]Write to MH i2c: E2 02 01 FB 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1E 23 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 95 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 95 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 95 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 57 DF 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 01 09 01 00 35 04 06 00 A4 00 00 DA [17:03:19]Write i2c OK [17:03:19]MH_I2C_Read... [17:03:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:03:20]Read from MH i2c: E2 [17:03:20]MH_I2C_Read... [17:03:20]Read from MH i2c: E2 03 00 [17:03:20]MH_I2C_Read... [17:03:20]Read from MH i2c: E2 03 00 FB 07 00 90 00 76 [17:03:20]RAPDU: 90 00 [17:03:20]wFMCommunicate OK [17:03:20]wFMCommunicate request_size=10 [17:03:20]MH_SAM_APDU [17:03:20]CAPDU: 80 0D 02 02 05 87 33 C6 E9 3D [17:03:20]Write to MH i2c: E2 0D 00 FC 07 80 0D 02 02 05 00 87 33 C6 E9 3D 00 00 2D [17:03:20]Write i2c OK [17:03:20]MH_I2C_Read... [17:03:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:03:20]Read from MH i2c: E2 [17:03:20]MH_I2C_Read... [17:03:20]Read from MH i2c: E2 03 00 [17:03:20]MH_I2C_Read... [17:03:20]Read from MH i2c: E2 03 00 FC 07 00 90 00 77 [17:03:20]RAPDU: 90 00 [17:03:20]wFMCommunicate OK [17:03:20]wFMCommunicate request_size=4 [17:03:20]MH_SAM_APDU [17:03:20]CAPDU: 80 0D 03 02 [17:03:20]Write to MH i2c: E2 08 00 FD 07 80 0D 03 02 00 00 00 00 7F [17:03:20]Write i2c OK [17:03:20]MH_I2C_Read... [17:03:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:03:20]Read from MH i2c: E2 [17:03:20]MH_I2C_Read... [17:03:20]Read from MH i2c: E2 0B 00 [17:03:20]MH_I2C_Read... [17:03:20]Read from MH i2c: E2 0B 00 FD 07 00 2E C3 6E 40 6F 60 DF 1A 90 00 E7 [17:03:20]RAPDU: 2E C3 6E 40 6F 60 DF 1A 90 00 [17:03:20]wFMCommunicate OK [17:03:20]SAM_PROTO_SignData done [17:03:20]FM_MakeSignedData done [17:03:20]CreateOFDProtocolMessage [17:03:20]wFMCommunicate request_size=4 [17:03:20]MH_SAM_APDU [17:03:20]CAPDU: 80 11 00 00 [17:03:20]Write to MH i2c: E2 08 00 FE 07 80 11 00 00 00 00 00 00 7F [17:03:20]Write i2c OK [17:03:20]MH_I2C_Read... [17:03:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:03:20]Read from MH i2c: E2 [17:03:20]MH_I2C_Read... [17:03:20]Read from MH i2c: E2 17 00 [17:03:20]MH_I2C_Read... [17:03:20]Read from MH i2c: E2 17 00 FE 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 D5 [17:03:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [17:03:20]wFMCommunicate OK [17:03:20]CreateOFDProtocolMessage done [17:03:20]OFDSenderStorePacket 67841 [17:03:20]StoreOFDPacket docnum=67841 [17:03:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 83 50 07 01 53 FE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1E 23 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 95 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 95 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 95 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 57 DF 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 01 09 01 00 35 04 06 00 A4 87 33 C6 E9 3D 2E C3 6E 40 6F 60 DF 1A [17:03:20]CheckFolder [17:03:20]dirname=/storage/ofd_packets [17:03:20]CheckFolder done [17:03:20]ProducePacketName [17:03:20]name=ofd_packets/00067841 [17:03:20]NVStorageSaveData ofd_packets/00067841 [17:03:20]File name is /storage/ofd_packets/00067841 [17:03:20]Write 301 bytes [17:03:20]NVStorageSaveData done [17:03:20]OFDSenderStorePacket done [17:03:20]KKMCreateOFDPacket done [17:03:20]NVStorageSaveData kkm_last_timestamp [17:03:20]File name is /storage/kkm_last_timestamp [17:03:20]Write 4 bytes [17:03:20]NVStorageSaveData done [17:03:20]ExternCall_PrintAddStr [17:03:20]wPrintStart [17:03:20]Write to MH i2c: 01 00 00 FF 07 06 [17:03:20]Write i2c OK [17:03:20]MH_I2C_Read... [17:03:20]Read from MH i2c: 01 [17:03:20]MH_I2C_Read... [17:03:20]Read from MH i2c: 01 07 00 [17:03:20]MH_I2C_Read... [17:03:20]Read from MH i2c: 01 07 00 FF 07 00 00 00 00 00 FF 0F 1B [17:03:20]RasterBufferAndPrint [17:03:20]line Счет N : (1)508099 [17:03:20]line ИНН: 02508201610067 [17:03:20]line Контрольно-Кассовый Чек [17:03:20]line ПРОДАЖА [17:03:20]line ТРК (МРК, ГНК) : 33 [17:03:20]line Товар: 2710124130 [17:03:20]line Аи-92-К-5 [17:03:20]line 8.990 * 66.80 [17:03:20]line = 600.53 [17:03:20]line НДС 12% НСП 1% [17:03:20]line > о реализуемом товаре [17:03:20]line ИТОГО: 600.53 [17:03:20]line НСП 1% : 5.31 [17:03:20]line НДС 12% : 63.77 [17:03:20]line Наличными: 0.00 [17:03:20]line Безнал.: 600.53 [17:03:20]line Место: АЗС № 91 "Партнер Нефть" [17:03:20]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [17:03:20]line СНО: Общий режим [17:03:20]line Чек 80 18.05.2024 17:03 [17:03:20]line Смена: 359 ФФД: 1.0 [17:03:20]line ЗНМ: 0300000119 [17:03:20]line РНМ: 0000000000091845 [17:03:20]line Версия ККМ: 001 [17:03:20]line Платежная система: Бакай Банк [17:03:20]line ФМ: 0000000000871829 [17:03:20]line ФД: 67841 [17:03:20]line ФПД: 180900596214077 [17:03:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T170319&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67841&fm=180900596214077&tin=02508201610067®Number=0000000000091845&sum=60053 [17:03:20]OFD Sender: Processing packet 67841 [packets to send 35, broken 34] [17:03:20]ProducePacketName [17:03:20]name=ofd_packets/00067841 [17:03:20]OFD Sender: To server: pG, [17:03:20]CommunicateWithHost lk.salyk.kg:30040 [17:03:20]ConnectInit lk.salyk.kg [17:03:20]written 0, free lines is 4095 [17:03:20]Connected sock=10 [17:03:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 83 50 07 01 53 FE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1E 23 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 95 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 95 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 95 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 57 DF 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 01 09 01 00 35 04 06 00 A4 87 33 C6 E9 3D 2E C3 6E 40 6F 60 DF 1A [17:03:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 79 27 47 00 F4 A4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 01 09 01 00 F4 03 04 00 2C 87 48 66 B6 04 01 00 00 8F 9D 1F D3 18 B8 F9 7D [17:03:20]CommunicateWithHost err = 0 [17:03:20]CheckOFDResponse [17:03:20]1017 (14) - 77093643461234 [17:03:20]1041 (16) - 0000000000871829 [17:03:20]1040 (4) - 67841 [17:03:20]1012 (4) - 18.05.2024 10:47 [17:03:20]1206 (1) - 0 [17:03:20]OFD Sender: Remove packet 67841 [17:03:20]ProducePacketName [17:03:20]name=ofd_packets/00067841 [17:03:20]NVStorageDeleteData [17:03:20]Write to MH i2c: 01 00 00 28 08 30 [17:03:20]Write i2c OK [17:03:20]MH_I2C_Read... [17:03:20]Read from MH i2c: 01 [17:03:20]MH_I2C_Read... [17:03:20]Read from MH i2c: 01 07 00 [17:03:20]MH_I2C_Read... [17:03:20]Read from MH i2c: 01 07 00 28 08 00 00 00 00 00 CE 0C 11 [17:03:20]RasterBufferAndPrint [17:03:20]line [17:03:20]line [17:03:20]line [17:03:20]line [17:03:20]line [17:03:20]written 0, free lines is 3282 [17:03:20]MH_Cut [17:03:20]Write to MH i2c: D1 01 00 2F 08 01 09 [17:03:20]Write i2c OK [17:03:20]MH_I2C_Read... [17:03:20]Read from MH i2c: D1 [17:03:20]MH_I2C_Read... [17:03:20]Read from MH i2c: D1 01 00 [17:03:20]MH_I2C_Read... [17:03:20]Read from MH i2c: D1 01 00 2F 08 00 08 [17:03:20]Write to MH i2c: 01 00 00 30 08 38 [17:03:20]Write i2c OK [17:03:20]MH_I2C_Read... [17:03:21]OFD Sender: No OFD packet to send [17:03:21]*** Cut start [17:03:21]*** Purtial cut [17:03:21]*** Stage 1: CUTSNS_PIN = 1 [17:03:22]Read from MH i2c: 01 [17:03:22]MH_I2C_Read... [17:03:22]*** Stop cut motor [17:03:22]*** Cut end [17:03:22]Read from MH i2c: 01 07 00 [17:03:22]MH_I2C_Read... [17:03:22]Read from MH i2c: 01 07 00 30 08 00 00 00 00 00 FF 0F 4D [17:03:22]process_action close_receipt done [17:03:22]requested_data is exist [17:03:22]produce_requested_data [17:03:22]requested_item fm.sn is exist - process it [17:03:22]wFMCommunicate request_size=4 [17:03:22]MH_SAM_APDU [17:03:22]CAPDU: 80 11 00 00 [17:03:22]Write to MH i2c: E2 08 00 31 08 80 11 00 00 00 00 00 00 B3 [17:03:22]Write i2c OK [17:03:22]MH_I2C_Read... [17:03:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:03:22]Read from MH i2c: E2 [17:03:22]MH_I2C_Read... [17:03:22]Read from MH i2c: E2 17 00 [17:03:22]MH_I2C_Read... [17:03:22]Read from MH i2c: E2 17 00 31 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 09 [17:03:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [17:03:22]wFMCommunicate OK [17:03:22]requested_item fd.num is exist - process it [17:03:22]SAM_PROTO_GetFieldsCounters [17:03:22]wFMCommunicate request_size=4 [17:03:22]MH_SAM_APDU [17:03:22]CAPDU: 80 13 00 00 [17:03:22]Write to MH i2c: E2 08 00 32 08 80 13 00 00 00 00 00 00 B6 [17:03:22]Write i2c OK [17:03:22]MH_I2C_Read... [17:03:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:03:22]Read from MH i2c: E2 [17:03:22]MH_I2C_Read... [17:03:22]Read from MH i2c: E2 62 00 [17:03:22]MH_I2C_Read... [17:03:22]Read from MH i2c: E2 62 00 32 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 01 09 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 3F [17:03:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 01 09 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:03:22]wFMCommunicate OK [17:03:22]SAM_PROTO_GetFieldsCounters done [17:03:22]requested_item shift.num is exist - process it [17:03:22]requested_item shift.opened is exist - process it [17:03:22]req_shift_opened [17:03:22]FM_GetShiftState [17:03:22]SAM_PROTO_GetShiftState [17:03:22]wFMCommunicate request_size=4 [17:03:22]MH_SAM_APDU [17:03:22]CAPDU: 80 13 01 00 [17:03:22]Write to MH i2c: E2 08 00 33 08 80 13 01 00 00 00 00 00 B8 [17:03:22]Write i2c OK [17:03:22]MH_I2C_Read... [17:03:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:03:22]Read from MH i2c: E2 [17:03:22]MH_I2C_Read... [17:03:22]Read from MH i2c: E2 0E 00 [17:03:22]MH_I2C_Read... [17:03:22]Read from MH i2c: E2 0E 00 33 08 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 1F [17:03:22]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [17:03:22]wFMCommunicate OK [17:03:22]SAM_PROTO_GetShiftState done [17:03:22]FM_GetShiftState done [17:03:22]req_shift_opened done [17:03:22]requested_item shift.open_date is exist - process it [17:03:22]req_shift_open_date [17:03:22]req_shift_open_date done [17:03:22]produce_requested_data done [17:03:22]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67841,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [17:03:22]process_action_free close_receipt [17:03:22]json_value_free [17:03:22]json_value_free done [17:03:22]process_json_proto returns [17:03:22]Send response to host [17:03:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67841,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [17:03:22]free response buf [17:03:22]execute_script done [17:03:22]execute_script returns [17:03:22]free content buf [17:03:22]Sock 7.Close socket [17:03:22]Sock 7.Thread stoped [17:03:26]OFD Sender: No OFD packet to send [17:03:31]OFD Sender: No OFD packet to send [17:03:36]OFD Sender: No OFD packet to send [17:03:41]OFD Sender: No OFD packet to send [17:03:46]OFD Sender: No OFD packet to send [17:03:51]OFD Sender: No OFD packet to send [17:03:56]OFD Sender: No OFD packet to send [17:04:01]OFD Sender: No OFD packet to send [17:04:06]OFD Sender: No OFD packet to send [17:04:11]OFD Sender: No OFD packet to send [17:04:16]OFD Sender: No OFD packet to send [17:04:21]OFD Sender: No OFD packet to send [17:04:26]OFD Sender: No OFD packet to send [17:04:31]OFD Sender: No OFD packet to send [17:04:36]OFD Sender: No OFD packet to send [17:04:41]OFD Sender: No OFD packet to send [17:04:46]OFD Sender: No OFD packet to send [17:04:51]OFD Sender: No OFD packet to send [17:04:56]OFD Sender: No OFD packet to send [17:05:01]OFD Sender: No OFD packet to send [17:05:06]OFD Sender: No OFD packet to send [17:05:11]OFD Sender: No OFD packet to send [17:05:16]OFD Sender: No OFD packet to send [17:05:21]OFD Sender: No OFD packet to send [17:05:26]OFD Sender: No OFD packet to send [17:05:31]OFD Sender: No OFD packet to send [17:05:36]OFD Sender: No OFD packet to send [17:05:41]OFD Sender: No OFD packet to send [17:05:46]OFD Sender: No OFD packet to send [17:05:51]OFD Sender: No OFD packet to send [17:05:56]OFD Sender: No OFD packet to send [17:06:01]OFD Sender: No OFD packet to send [17:06:03]accept exits with 9 [17:06:03]New connection [17:06:03]New thread 3067059556 created [17:06:03]Thread 3067202916 joined [17:06:03]Waiting for new connection... [17:06:03] Sock 9.Parse request [17:06:03]Sock 9.Check first char [17:06:03]Sock 9.First char is OK [17:06:03]request: POST /json_proto HTTP/1.0 [17:06:03]Method: POST [17:06:03]URL: /json_proto [17:06:03]Method is POST - this is cgi request [17:06:03]url: /json_proto [17:06:03]query_string will be loaded in cgi processing [17:06:03]execute_cgi json_proto POST (null) [17:06:03]execute_cgi path=json_proto method=POST [17:06:03]POST find Content-Length [17:06:03]Host: 172.17.41.195:8080 [17:06:03]Content-Length: 1207 [17:06:03]Content-Type: application/json [17:06:03] [17:06:03]POST finish read [17:06:03]Found Content-Length = 1207 [17:06:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0440\u0441\u0442\u0430\u043D\u0431\u0435\u043A\u043E\u0432 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)508100\u000A18.05.2024 16:48\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 6.700 x 74.70\u000A\u0418\u0422\u041E\u0413: 500.49\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:06:03]execute_script... [17:06:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0440\u0441\u0442\u0430\u043D\u0431\u0435\u043A\u043E\u0432 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)508100\u000A18.05.2024 16:48\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 6.700 x 74.70\u000A\u0418\u0422\u041E\u0413: 500.49\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:06:03]POST & json_proto [17:06:03]process_json_proto [17:06:03]json parsed OK: [17:06:03]protocol is kg_v1.0 [17:06:03]action value=print_text [17:06:03]process_action print_text [17:06:03]cmd_print_text [17:06:03]ExternCall_PrintAddStr [17:06:03]wPrintStart [17:06:03]Write to MH i2c: 01 00 00 34 08 3C [17:06:03]Write i2c OK [17:06:03]MH_I2C_Read... [17:06:03]Read from MH i2c: 01 [17:06:03]MH_I2C_Read... [17:06:03]Read from MH i2c: 01 07 00 [17:06:03]MH_I2C_Read... [17:06:03]Read from MH i2c: 01 07 00 34 08 00 00 00 00 00 FF 0F 51 [17:06:03]RasterBufferAndPrint [17:06:03]line *****ТОВАРНЫЙ ЧЕК***** [17:06:03]line АЗС-91 [17:06:03]line Партнер нефть [17:06:03]line 02508201610067 [17:06:03]line Кассир : Арстанбеков Н. [17:06:03]line Счет N : (1)508100 [17:06:03]line 18.05.2024 16:48 [17:06:03]line ПРОДАЖА [17:06:03]line ТРК (МРК, ГНК): 11 [17:06:03]line Вид ГСМ : 2710194210 [17:06:03]line ДТ-К-5 [17:06:03]line 6.700 x 74.70 [17:06:03]line ИТОГ: 500.49 [17:06:03]line Тип оплаты: Талоны: Топливная Карта [17:06:03]line 02750 [17:06:03]line ______________________ [17:06:03]line (подпись) [17:06:03]written 0, free lines is 4095 [17:06:03]Write to MH i2c: 01 00 00 48 08 50 [17:06:03]Write i2c OK [17:06:03]MH_I2C_Read... [17:06:03]Read from MH i2c: 01 [17:06:03]MH_I2C_Read... [17:06:03]Read from MH i2c: 01 07 00 [17:06:03]MH_I2C_Read... [17:06:03]Read from MH i2c: 01 07 00 48 08 00 00 00 00 00 0D 0E 72 [17:06:03]RasterBufferAndPrint [17:06:03]line [17:06:03]line [17:06:03]line [17:06:03]line [17:06:03]line [17:06:03]written 0, free lines is 3598 [17:06:03]MH_Cut [17:06:03]Write to MH i2c: D1 01 00 4F 08 01 29 [17:06:03]Write i2c OK [17:06:03]MH_I2C_Read... [17:06:03]Read from MH i2c: D1 [17:06:03]MH_I2C_Read... [17:06:03]Read from MH i2c: D1 01 00 [17:06:03]MH_I2C_Read... [17:06:03]Read from MH i2c: D1 01 00 4F 08 00 28 [17:06:03]Write to MH i2c: 01 00 00 50 08 58 [17:06:03]Write i2c OK [17:06:03]MH_I2C_Read... [17:06:04]*** Cut start [17:06:04]*** Purtial cut [17:06:04]*** Stage 1: CUTSNS_PIN = 1 [17:06:04]Read from MH i2c: 01 [17:06:04]MH_I2C_Read... [17:06:04]Read from MH i2c: *** Stop cut motor [17:06:04]*** Cut end [17:06:04]01 07 00 [17:06:04]MH_I2C_Read... [17:06:04]Read from MH i2c: 01 07 00 50 08 00 00 00 00 00 FF 0F 6D [17:06:04]process_action print_text done [17:06:04]requested_data is exist [17:06:04]produce_requested_data [17:06:04]requested_item fm.sn is exist - process it [17:06:04]wFMCommunicate request_size=4 [17:06:04]MH_SAM_APDU [17:06:04]CAPDU: 80 11 00 00 [17:06:04]Write to MH i2c: E2 08 00 51 08 80 11 00 00 00 00 00 00 D3 [17:06:04]Write i2c OK [17:06:04]MH_I2C_Read... [17:06:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:06:04]Read from MH i2c: E2 [17:06:04]MH_I2C_Read... [17:06:04]Read from MH i2c: E2 17 00 [17:06:04]MH_I2C_Read... [17:06:04]Read from MH i2c: E2 17 00 51 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 29 [17:06:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [17:06:04]wFMCommunicate OK [17:06:04]requested_item fd.num is exist - process it [17:06:04]SAM_PROTO_GetFieldsCounters [17:06:04]wFMCommunicate request_size=4 [17:06:04]MH_SAM_APDU [17:06:04]CAPDU: 80 13 00 00 [17:06:04]Write to MH i2c: E2 08 00 52 08 80 13 00 00 00 00 00 00 D6 [17:06:04]Write i2c OK [17:06:04]MH_I2C_Read... [17:06:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:06:04]Read from MH i2c: E2 [17:06:04]MH_I2C_Read... [17:06:04]Read from MH i2c: E2 62 00 [17:06:04]MH_I2C_Read... [17:06:04]Read from MH i2c: E2 62 00 52 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 01 09 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 5F [17:06:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 01 09 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:06:04]wFMCommunicate OK [17:06:04]SAM_PROTO_GetFieldsCounters done [17:06:04]requested_item shift.num is exist - process it [17:06:04]requested_item shift.opened is exist - process it [17:06:04]req_shift_opened [17:06:04]FM_GetShiftState [17:06:04]SAM_PROTO_GetShiftState [17:06:04]wFMCommunicate request_size=4 [17:06:04]MH_SAM_APDU [17:06:04]CAPDU: 80 13 01 00 [17:06:04]Write to MH i2c: E2 08 00 53 08 80 13 01 00 00 00 00 00 D8 [17:06:04]Write i2c OK [17:06:04]MH_I2C_Read... [17:06:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:06:05]Read from MH i2c: E2 [17:06:05]MH_I2C_Read... [17:06:05]Read from MH i2c: E2 0E 00 [17:06:05]MH_I2C_Read... [17:06:05]Read from MH i2c: E2 0E 00 53 08 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 3F [17:06:05]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [17:06:05]wFMCommunicate OK [17:06:05]SAM_PROTO_GetShiftState done [17:06:05]FM_GetShiftState done [17:06:05]req_shift_opened done [17:06:05]requested_item shift.open_date is exist - process it [17:06:05]req_shift_open_date [17:06:05]req_shift_open_date done [17:06:05]produce_requested_data done [17:06:05]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67841,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [17:06:05]process_action_free print_text [17:06:05]json_value_free [17:06:05]json_value_free done [17:06:05]process_json_proto returns [17:06:05]Send response to host [17:06:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67841,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [17:06:05]free response buf [17:06:05]execute_script done [17:06:05]execute_script returns [17:06:05]free content buf [17:06:05]Sock 9.Close socket [17:06:05]Sock 9.Thread stoped [17:06:06]OFD Sender: No OFD packet to send [17:06:11]OFD Sender: No OFD packet to send [17:06:16]OFD Sender: No OFD packet to send [17:06:21]OFD Sender: No OFD packet to send [17:06:26]OFD Sender: No OFD packet to send [17:06:31]OFD Sender: No OFD packet to send [17:06:36]OFD Sender: No OFD packet to send [17:06:41]OFD Sender: No OFD packet to send [17:06:46]OFD Sender: No OFD packet to send [17:06:51]OFD Sender: No OFD packet to send [17:06:56]OFD Sender: No OFD packet to send [17:07:01]OFD Sender: No OFD packet to send [17:07:06]OFD Sender: No OFD packet to send [17:07:11]OFD Sender: No OFD packet to send [17:07:16]accept exits with 7 [17:07:16]New connection [17:07:16]New thread 3067202916 created [17:07:16]Thread 3067059556 joined [17:07:16]Waiting for new connection... [17:07:16] Sock 7.Parse request [17:07:16]Sock 7.Check first char [17:07:16]Sock 7.First char is OK [17:07:16]request: POST /json_proto HTTP/1.0 [17:07:16]Method: POST [17:07:16]URL: /json_proto [17:07:16]Method is POST - this is cgi request [17:07:16]url: /json_proto [17:07:16]query_string will be loaded in cgi processing [17:07:16]execute_cgi json_proto POST (null) [17:07:16]execute_cgi path=json_proto method=POST [17:07:16]POST find Content-Length [17:07:16]Host: 172.17.41.195:8080 [17:07:16]Content-Length: 629 [17:07:16]Content-Type: application/json [17:07:16] [17:07:16]POST finish read [17:07:16]Found Content-Length = 629 [17:07:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)12114", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 45.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:07:16]execute_script... [17:07:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)12114", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 45.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:07:16]POST & json_proto [17:07:16]process_json_proto [17:07:16]json parsed OK: [17:07:16]protocol is kg_v1.0 [17:07:16]action value=close_receipt [17:07:16]process_action close_receipt [17:07:16]cmd_close_receipt [17:07:16]MH_GetDate [17:07:16]Write to MH i2c: F0 00 00 54 08 4B [17:07:16]Write i2c OK [17:07:16]MH_I2C_Read... [17:07:16]Read from MH i2c: F0 [17:07:16]MH_I2C_Read... [17:07:16]Read from MH i2c: F0 09 00 [17:07:16]MH_I2C_Read... [17:07:16]Read from MH i2c: F0 09 00 54 08 00 45 E0 48 66 FC 21 6F 64 17 [17:07:16]GetLastDocTimeStamp 1716051799 [17:07:16]current date 1716052037 [17:07:16]FM_GetShiftState [17:07:16]SAM_PROTO_GetShiftState [17:07:16]wFMCommunicate request_size=4 [17:07:16]MH_SAM_APDU [17:07:16]CAPDU: 80 13 01 00 [17:07:16]Write to MH i2c: E2 08 00 55 08 80 13 01 00 00 00 00 00 DA [17:07:16]Write i2c OK [17:07:16]MH_I2C_Read... [17:07:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:07:16]Read from MH i2c: E2 [17:07:16]MH_I2C_Read... [17:07:16]Read from MH i2c: E2 0E 00 [17:07:16]MH_I2C_Read... [17:07:16]Read from MH i2c: E2 0E 00 55 08 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 41 [17:07:16]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [17:07:16]wFMCommunicate OK [17:07:16]SAM_PROTO_GetShiftState done [17:07:16]FM_GetShiftState done [17:07:16]opened in 1715991483 [17:07:16]opened+sec_in_day 1716077883 [17:07:16]quantity*price = 4500 [17:07:16]sum+1 = 4501 [17:07:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 45.00 НСП 1% : 0.40 НДС 12% : 4.78 Наличными: 45.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 81 18.05.2024 17:07 Смена: 359 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67842 ФПД: 221168269689782 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T170717&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67842&fm=221168269689782&tin=02508201610067®Number=0000000000091845&sum=4500 0 [17:07:17]StoreToDocumentArchive [17:07:17]shift 359 fd 67842 [17:07:17]save to /storage/0359/doc_00067842 [17:07:17]save last doc name /storage/0359/doc_00067842 to /storage/kkm_last_doc_name [17:07:17]save OK [17:07:17]Clear old archive folders... [17:07:17]ProcessDocumentItem done err = 0, tmpTLVsize=269 [17:07:17]tlvbuf is 009EB140 [17:07:17]SAM_PROTO_ClearQueue [17:07:17]wFMCommunicate request_size=4 [17:07:17]MH_SAM_APDU [17:07:17]CAPDU: 80 09 00 00 [17:07:17]Write to MH i2c: E2 08 00 62 08 80 09 00 00 00 00 00 00 DC [17:07:17]Write i2c OK [17:07:17]MH_I2C_Read... [17:07:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:07:17]Read from MH i2c: E2 [17:07:17]MH_I2C_Read... [17:07:17]Read from MH i2c: E2 03 00 [17:07:17]MH_I2C_Read... [17:07:17]Read from MH i2c: E2 03 00 62 08 00 90 00 DE [17:07:17]RAPDU: 90 00 [17:07:17]wFMCommunicate OK [17:07:17]SAM_PROTO_ClearQueue done [17:07:17]KKMCreateOFDPacket [17:07:17]OFDProtocolAddRootSTLVToBuf [17:07:17]FM_MakeSignedData [17:07:17]FM_MakeSignedData [17:07:17]SAM_PROTO_SignData [17:07:17]wFMCommunicate request_size=4 [17:07:17]MH_SAM_APDU [17:07:17]CAPDU: 80 0D 01 02 [17:07:17]Write to MH i2c: E2 08 00 63 08 80 0D 01 02 00 00 00 00 E4 [17:07:17]Write i2c OK [17:07:17]MH_I2C_Read... [17:07:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:07:17]Read from MH i2c: E2 [17:07:17]MH_I2C_Read... [17:07:17]Read from MH i2c: E2 03 00 [17:07:17]MH_I2C_Read... [17:07:17]Read from MH i2c: E2 03 00 63 08 00 90 00 DF [17:07:17]RAPDU: 90 00 [17:07:17]wFMCommunicate OK [17:07:17]wFMCommunicate request_size=255 [17:07:17]MH_SAM_APDU [17:07:17]CAPDU: 80 0D 02 02 FA 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 01 00 00 00 00 07 04 06 00 94 11 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 45 E0 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 [17:07:17]Write to MH i2c: E2 02 01 64 08 80 0D 02 02 FA 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 01 00 00 00 00 07 04 06 00 94 11 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 45 E0 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 00 00 77 [17:07:17]Write i2c OK [17:07:17]MH_I2C_Read... [17:07:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:07:17]Read from MH i2c: E2 [17:07:17]MH_I2C_Read... [17:07:17]Read from MH i2c: E2 03 00 [17:07:17]MH_I2C_Read... [17:07:17]Read from MH i2c: E2 03 00 64 08 00 90 00 E0 [17:07:17]RAPDU: 90 00 [17:07:17]wFMCommunicate OK [17:07:17]wFMCommunicate request_size=28 [17:07:17]MH_SAM_APDU [17:07:17]CAPDU: 80 0D 02 02 17 37 31 38 32 39 10 04 04 00 02 09 01 00 35 04 06 00 C9 26 C0 26 83 B6 [17:07:17]Write to MH i2c: E2 1F 00 65 08 80 0D 02 02 17 00 37 31 38 32 39 10 04 04 00 02 09 01 00 35 04 06 00 C9 26 C0 26 83 B6 00 00 91 [17:07:17]Write i2c OK [17:07:17]MH_I2C_Read... [17:07:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:07:18]Read from MH i2c: E2 [17:07:18]MH_I2C_Read... [17:07:18]Read from MH i2c: E2 03 00 [17:07:18]MH_I2C_Read... [17:07:18]Read from MH i2c: E2 03 00 65 08 00 90 00 E1 [17:07:18]RAPDU: 90 00 [17:07:18]wFMCommunicate OK [17:07:18]wFMCommunicate request_size=4 [17:07:18]MH_SAM_APDU [17:07:18]CAPDU: 80 0D 03 02 [17:07:18]Write to MH i2c: E2 08 00 66 08 80 0D 03 02 00 00 00 00 E9 [17:07:18]Write i2c OK [17:07:18]MH_I2C_Read... [17:07:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:07:18]Read from MH i2c: E2 [17:07:18]MH_I2C_Read... [17:07:18]Read from MH i2c: E2 0B 00 [17:07:18]MH_I2C_Read... [17:07:18]Read from MH i2c: E2 0B 00 66 08 00 43 D7 57 B7 E8 8B 0E 79 90 00 0C [17:07:18]RAPDU: 43 D7 57 B7 E8 8B 0E 79 90 00 [17:07:18]wFMCommunicate OK [17:07:18]SAM_PROTO_SignData done [17:07:18]FM_MakeSignedData done [17:07:18]CreateOFDProtocolMessage [17:07:18]wFMCommunicate request_size=4 [17:07:18]MH_SAM_APDU [17:07:18]CAPDU: 80 11 00 00 [17:07:18]Write to MH i2c: E2 08 00 67 08 80 11 00 00 00 00 00 00 E9 [17:07:18]Write i2c OK [17:07:18]MH_I2C_Read... [17:07:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:07:18]Read from MH i2c: E2 [17:07:18]MH_I2C_Read... [17:07:18]Read from MH i2c: E2 17 00 [17:07:18]MH_I2C_Read... [17:07:18]Read from MH i2c: E2 17 00 67 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 3F [17:07:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [17:07:18]wFMCommunicate OK [17:07:18]CreateOFDProtocolMessage done [17:07:18]OFDSenderStorePacket 67842 [17:07:18]StoreOFDPacket docnum=67842 [17:07:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 21 01 00 00 56 52 19 01 AC A7 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 01 00 00 00 00 07 04 06 00 94 11 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 45 E0 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 02 09 01 00 35 04 06 00 C9 26 C0 26 83 B6 43 D7 57 B7 E8 8B 0E 79 [17:07:18]CheckFolder [17:07:18]dirname=/storage/ofd_packets [17:07:18]CheckFolder done [17:07:18]ProducePacketName [17:07:18]name=ofd_packets/00067842 [17:07:18]NVStorageSaveData ofd_packets/00067842 [17:07:18]File name is /storage/ofd_packets/00067842 [17:07:18]Write 319 bytes [17:07:18]NVStorageSaveData done [17:07:18]OFDSenderStorePacket done [17:07:18]KKMCreateOFDPacket done [17:07:18]NVStorageSaveData kkm_last_timestamp [17:07:18]File name is /storage/kkm_last_timestamp [17:07:18]Write 4 bytes [17:07:18]NVStorageSaveData done [17:07:18]ExternCall_PrintAddStr [17:07:18]wPrintStart [17:07:18]Write to MH i2c: 01 00 00 68 08 70 [17:07:18]Write i2c OK [17:07:18]MH_I2C_Read... [17:07:18]Read from MH i2c: 01 [17:07:18]MH_I2C_Read... [17:07:18]Read from MH i2c: 01 07 00 [17:07:18]MH_I2C_Read... [17:07:18]Read from MH i2c: 01 07 00 68 08 00 00 00 00 00 FF 0F 85 [17:07:18]RasterBufferAndPrint [17:07:18]line Счет N : (3)12114 [17:07:18]line ИНН: 02508201610067 [17:07:18]line Контрольно-Кассовый Чек [17:07:18]line ПРОДАЖА [17:07:18]line Товар: 4700000160358 [17:07:18]line Вода Легенда 1л [17:07:18]line 1.000 * 45.00 [17:07:18]line = 45.00 [17:07:18]line НДС 12% НСП 1% [17:07:18]line > о реализуемом товаре [17:07:18]line ИТОГО: 45.00 [17:07:18]line НСП 1% : 0.40 [17:07:18]line НДС 12% : 4.78 [17:07:18]line Наличными: 45.00 [17:07:18]line Безнал.: 0.00 [17:07:18]line Место: АЗС № 91 "Партнер Нефть" [17:07:18]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [17:07:18]line СНО: Общий режим [17:07:18]line Чек 81 18.05.2024 17:07 [17:07:18]line Смена: 359 ФФД: 1.0 [17:07:18]line ЗНМ: 0300000119 [17:07:18]line РНМ: 0000000000091845 [17:07:18]line Версия ККМ: 001 [17:07:18]line ФМ: 0000000000871829 [17:07:18]line ФД: 67842 [17:07:18]line ФПД: 221168269689782 [17:07:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T170717&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67842&fm=221168269689782&tin=02508201610067®Number=0000000000091845&sum=4500 [17:07:18]line 0 [17:07:18]OFD Sender: Processing packet 67842 [packets to send 35, broken 34] [17:07:18]ProducePacketName [17:07:18]name=ofd_packets/00067842 [17:07:18]OFD Sender: To server: pG, [17:07:18]CommunicateWithHost lk.salyk.kg:30040 [17:07:18]ConnectInit lk.salyk.kg [17:07:18]written 0, free lines is 4095 [17:07:18]Connected sock=10 [17:07:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 21 01 00 00 56 52 19 01 AC A7 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 01 00 00 00 00 07 04 06 00 94 11 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 45 E0 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 02 09 01 00 35 04 06 00 C9 26 C0 26 83 B6 43 D7 57 B7 E8 8B 0E 79 [17:07:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 03 08 47 00 86 E4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 02 09 01 00 F4 03 04 00 1A 88 48 66 B6 04 01 00 00 3A 72 3B BA A8 72 1C AB [17:07:18]CommunicateWithHost err = 0 [17:07:18]CheckOFDResponse [17:07:18]1017 (14) - 77093643461234 [17:07:18]1041 (16) - 0000000000871829 [17:07:18]1040 (4) - 67842 [17:07:18]1012 (4) - 18.05.2024 10:51 [17:07:18]1206 (1) - 0 [17:07:18]OFD Sender: Remove packet 67842 [17:07:18]ProducePacketName [17:07:18]name=ofd_packets/00067842 [17:07:18]NVStorageDeleteData [17:07:18]Write to MH i2c: 01 00 00 8F 08 97 [17:07:18]Write i2c OK [17:07:18]MH_I2C_Read... [17:07:18]Read from MH i2c: 01 [17:07:18]MH_I2C_Read... [17:07:18]Read from MH i2c: 01 07 00 [17:07:18]MH_I2C_Read... [17:07:18]Read from MH i2c: 01 07 00 8F 08 00 00 00 00 00 EF 0C 99 [17:07:18]RasterBufferAndPrint [17:07:18]line [17:07:18]line [17:07:18]line [17:07:18]line [17:07:18]line [17:07:18]written 0, free lines is 3316 [17:07:18]MH_Cut [17:07:18]Write to MH i2c: D1 01 00 96 08 01 70 [17:07:18]Write i2c OK [17:07:18]MH_I2C_Read... [17:07:18]Read from MH i2c: D1 [17:07:18]MH_I2C_Read... [17:07:18]Read from MH i2c: D1 01 00 [17:07:18]MH_I2C_Read... [17:07:18]Read from MH i2c: D1 01 00 96 08 00 6F [17:07:18]Write to MH i2c: 01 00 00 97 08 9F [17:07:18]Write i2c OK [17:07:18]MH_I2C_Read... [17:07:19]OFD Sender: No OFD packet to send [17:07:19]*** Cut start [17:07:19]*** Purtial cut [17:07:19]*** Stage 1: CUTSNS_PIN = 1 [17:07:19]Read from MH i2c: 01 [17:07:20]MH_I2C_Read... [17:07:20]*** Stop cut motor [17:07:20]*** Cut end [17:07:20]Read from MH i2c: 01 07 00 [17:07:20]MH_I2C_Read... [17:07:20]Read from MH i2c: 01 07 00 97 08 00 00 00 00 00 FF 0F B4 [17:07:20]process_action close_receipt done [17:07:20]requested_data is exist [17:07:20]produce_requested_data [17:07:20]requested_item fm.sn is exist - process it [17:07:20]wFMCommunicate request_size=4 [17:07:20]MH_SAM_APDU [17:07:20]CAPDU: 80 11 00 00 [17:07:20]Write to MH i2c: E2 08 00 98 08 80 11 00 00 00 00 00 00 1A [17:07:20]Write i2c OK [17:07:20]MH_I2C_Read... [17:07:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:07:20]Read from MH i2c: E2 [17:07:20]MH_I2C_Read... [17:07:20]Read from MH i2c: E2 17 00 [17:07:20]MH_I2C_Read... [17:07:20]Read from MH i2c: E2 17 00 98 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 70 [17:07:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [17:07:20]wFMCommunicate OK [17:07:20]requested_item fd.num is exist - process it [17:07:20]SAM_PROTO_GetFieldsCounters [17:07:20]wFMCommunicate request_size=4 [17:07:20]MH_SAM_APDU [17:07:20]CAPDU: 80 13 00 00 [17:07:20]Write to MH i2c: E2 08 00 99 08 80 13 00 00 00 00 00 00 1D [17:07:20]Write i2c OK [17:07:20]MH_I2C_Read... [17:07:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:07:20]Read from MH i2c: E2 [17:07:20]MH_I2C_Read... [17:07:20]Read from MH i2c: E2 62 00 [17:07:20]MH_I2C_Read... [17:07:20]Read from MH i2c: E2 62 00 99 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 02 09 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 AA [17:07:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 02 09 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:07:20]wFMCommunicate OK [17:07:20]SAM_PROTO_GetFieldsCounters done [17:07:20]requested_item shift.num is exist - process it [17:07:20]requested_item shift.opened is exist - process it [17:07:20]req_shift_opened [17:07:20]FM_GetShiftState [17:07:20]SAM_PROTO_GetShiftState [17:07:20]wFMCommunicate request_size=4 [17:07:20]MH_SAM_APDU [17:07:20]CAPDU: 80 13 01 00 [17:07:20]Write to MH i2c: E2 08 00 9A 08 80 13 01 00 00 00 00 00 1F [17:07:20]Write i2c OK [17:07:20]MH_I2C_Read... [17:07:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:07:20]Read from MH i2c: E2 [17:07:20]MH_I2C_Read... [17:07:20]Read from MH i2c: E2 0E 00 [17:07:20]MH_I2C_Read... [17:07:20]Read from MH i2c: E2 0E 00 9A 08 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 86 [17:07:20]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [17:07:20]wFMCommunicate OK [17:07:20]SAM_PROTO_GetShiftState done [17:07:20]FM_GetShiftState done [17:07:20]req_shift_opened done [17:07:20]requested_item shift.open_date is exist - process it [17:07:20]req_shift_open_date [17:07:20]req_shift_open_date done [17:07:20]produce_requested_data done [17:07:20]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67842,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [17:07:20]process_action_free close_receipt [17:07:20]json_value_free [17:07:20]json_value_free done [17:07:20]process_json_proto returns [17:07:20]Send response to host [17:07:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67842,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [17:07:20]free response buf [17:07:20]execute_script done [17:07:20]execute_script returns [17:07:20]free content buf [17:07:20]Sock 7.Close socket [17:07:20]Sock 7.Thread stoped [17:07:24]OFD Sender: No OFD packet to send [17:07:29]OFD Sender: No OFD packet to send [17:07:33]accept exits with 9 [17:07:33]New connection [17:07:33]New thread 3067059556 created [17:07:33]Thread 3067202916 joined [17:07:33]Waiting for new connection... [17:07:33] Sock 9.Parse request [17:07:33]Sock 9.Check first char [17:07:33]Sock 9.First char is OK [17:07:33]request: POST /json_proto HTTP/1.0 [17:07:33]Method: POST [17:07:33]URL: /json_proto [17:07:33]Method is POST - this is cgi request [17:07:33]url: /json_proto [17:07:33]query_string will be loaded in cgi processing [17:07:33]execute_cgi json_proto POST (null) [17:07:33]execute_cgi path=json_proto method=POST [17:07:33]POST find Content-Length [17:07:33]Host: 172.17.41.195:8080 [17:07:33]Content-Length: 803 [17:07:33]Content-Type: application/json [17:07:33] [17:07:33]POST finish read [17:07:33]Found Content-Length = 803 [17:07:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)508101", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.80, "quantity" : 14.980, "sum" : 1000.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.66 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:07:33]execute_script... [17:07:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)508101", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.80, "quantity" : 14.980, "sum" : 1000.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.66 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:07:33]POST & json_proto [17:07:33]process_json_proto [17:07:33]json parsed OK: [17:07:33]protocol is kg_v1.0 [17:07:33]action value=close_receipt [17:07:33]process_action close_receipt [17:07:33]cmd_close_receipt [17:07:33]MH_GetDate [17:07:33]Write to MH i2c: F0 00 00 9B 08 92 [17:07:33]Write i2c OK [17:07:33]MH_I2C_Read... [17:07:33]Read from MH i2c: F0 [17:07:33]MH_I2C_Read... [17:07:33]Read from MH i2c: F0 09 00 [17:07:33]MH_I2C_Read... [17:07:33]Read from MH i2c: F0 09 00 9B 08 00 56 E0 48 66 FC 21 6F 64 6F [17:07:33]GetLastDocTimeStamp 1716052037 [17:07:33]current date 1716052054 [17:07:33]FM_GetShiftState [17:07:33]SAM_PROTO_GetShiftState [17:07:33]wFMCommunicate request_size=4 [17:07:33]MH_SAM_APDU [17:07:33]CAPDU: 80 13 01 00 [17:07:33]Write to MH i2c: E2 08 00 9C 08 80 13 01 00 00 00 00 00 21 [17:07:33]Write i2c OK [17:07:33]MH_I2C_Read... [17:07:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:07:33]Read from MH i2c: E2 [17:07:33]MH_I2C_Read... [17:07:33]Read from MH i2c: E2 0E 00 [17:07:33]MH_I2C_Read... [17:07:33]Read from MH i2c: E2 0E 00 9C 08 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 88 [17:07:33]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [17:07:33]wFMCommunicate OK [17:07:33]SAM_PROTO_GetShiftState done [17:07:33]FM_GetShiftState done [17:07:33]opened in 1715991483 [17:07:33]opened+sec_in_day 1716077883 [17:07:33]quantity*price = 100066 [17:07:33]sum+1 = 100067 [17:07:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.66 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 0.00 Безнал.: 1000.66 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 82 18.05.2024 17:07 Смена: 359 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67843 ФПД: 135492761388159 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T170734&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67843&fm=135492761388159&tin=02508201610067®Number=0000000000091845&sum=100066 [17:07:34]StoreToDocumentArchive [17:07:34]shift 359 fd 67843 [17:07:34]save to /storage/0359/doc_00067843 [17:07:34]save last doc name /storage/0359/doc_00067843 to /storage/kkm_last_doc_name [17:07:34]save OK [17:07:34]Clear old archive folders... [17:07:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:07:34]tlvbuf is 009A7C90 [17:07:34]SAM_PROTO_ClearQueue [17:07:34]wFMCommunicate request_size=4 [17:07:34]MH_SAM_APDU [17:07:34]CAPDU: 80 09 00 00 [17:07:34]Write to MH i2c: E2 08 00 A9 08 80 09 00 00 00 00 00 00 23 [17:07:34]Write i2c OK [17:07:34]MH_I2C_Read... [17:07:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:07:34]Read from MH i2c: E2 [17:07:34]MH_I2C_Read... [17:07:34]Read from MH i2c: E2 03 00 [17:07:34]MH_I2C_Read... [17:07:34]Read from MH i2c: E2 03 00 A9 08 00 90 00 25 [17:07:34]RAPDU: 90 00 [17:07:34]wFMCommunicate OK [17:07:34]SAM_PROTO_ClearQueue done [17:07:34]KKMCreateOFDPacket [17:07:34]OFDProtocolAddRootSTLVToBuf [17:07:34]FM_MakeSignedData [17:07:34]FM_MakeSignedData [17:07:34]SAM_PROTO_SignData [17:07:34]wFMCommunicate request_size=4 [17:07:34]MH_SAM_APDU [17:07:34]CAPDU: 80 0D 01 02 [17:07:34]Write to MH i2c: E2 08 00 AA 08 80 0D 01 02 00 00 00 00 2B [17:07:34]Write i2c OK [17:07:34]MH_I2C_Read... [17:07:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:07:34]Read from MH i2c: E2 [17:07:34]MH_I2C_Read... [17:07:34]Read from MH i2c: E2 03 00 [17:07:34]MH_I2C_Read... [17:07:34]Read from MH i2c: E2 03 00 AA 08 00 90 00 26 [17:07:34]RAPDU: 90 00 [17:07:34]wFMCommunicate OK [17:07:34]wFMCommunicate request_size=255 [17:07:34]MH_SAM_APDU [17:07:34]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 84 3A 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E2 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E2 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 56 E0 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 03 09 01 00 35 04 06 00 7B [17:07:34]Write to MH i2c: E2 02 01 AB 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 84 3A 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E2 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E2 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 56 E0 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 03 09 01 00 35 04 06 00 7B 00 00 AE [17:07:34]Write i2c OK [17:07:34]MH_I2C_Read... [17:07:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:07:35]Read from MH i2c: E2 [17:07:35]MH_I2C_Read... [17:07:35]Read from MH i2c: E2 03 00 [17:07:35]MH_I2C_Read... [17:07:35]Read from MH i2c: E2 03 00 AB 08 00 90 00 27 [17:07:35]RAPDU: 90 00 [17:07:35]wFMCommunicate OK [17:07:35]wFMCommunicate request_size=10 [17:07:35]MH_SAM_APDU [17:07:35]CAPDU: 80 0D 02 02 05 3A DD E9 84 7F [17:07:35]Write to MH i2c: E2 0D 00 AC 08 80 0D 02 02 05 00 3A DD E9 84 7F 00 00 3B [17:07:35]Write i2c OK [17:07:35]MH_I2C_Read... [17:07:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:07:35]Read from MH i2c: E2 [17:07:35]MH_I2C_Read... [17:07:35]Read from MH i2c: E2 03 00 [17:07:35]MH_I2C_Read... [17:07:35]Read from MH i2c: E2 03 00 AC 08 00 90 00 28 [17:07:35]RAPDU: 90 00 [17:07:35]wFMCommunicate OK [17:07:35]wFMCommunicate request_size=4 [17:07:35]MH_SAM_APDU [17:07:35]CAPDU: 80 0D 03 02 [17:07:35]Write to MH i2c: E2 08 00 AD 08 80 0D 03 02 00 00 00 00 30 [17:07:35]Write i2c OK [17:07:35]MH_I2C_Read... [17:07:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:07:35]Read from MH i2c: E2 [17:07:35]MH_I2C_Read... [17:07:35]Read from MH i2c: E2 0B 00 [17:07:35]MH_I2C_Read... [17:07:35]Read from MH i2c: E2 0B 00 AD 08 00 79 8C 05 B4 69 3E 2B BD 90 00 7E [17:07:35]RAPDU: 79 8C 05 B4 69 3E 2B BD 90 00 [17:07:35]wFMCommunicate OK [17:07:35]SAM_PROTO_SignData done [17:07:35]FM_MakeSignedData done [17:07:35]CreateOFDProtocolMessage [17:07:35]wFMCommunicate request_size=4 [17:07:35]MH_SAM_APDU [17:07:35]CAPDU: 80 11 00 00 [17:07:35]Write to MH i2c: E2 08 00 AE 08 80 11 00 00 00 00 00 00 30 [17:07:35]Write i2c OK [17:07:35]MH_I2C_Read... [17:07:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:07:35]Read from MH i2c: E2 [17:07:35]MH_I2C_Read... [17:07:35]Read from MH i2c: E2 17 00 [17:07:35]MH_I2C_Read... [17:07:35]Read from MH i2c: E2 17 00 AE 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 86 [17:07:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [17:07:35]wFMCommunicate OK [17:07:35]CreateOFDProtocolMessage done [17:07:35]OFDSenderStorePacket 67843 [17:07:35]StoreOFDPacket docnum=67843 [17:07:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 C9 2A 07 01 76 3C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 84 3A 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E2 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E2 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 56 E0 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 03 09 01 00 35 04 06 00 7B 3A DD E9 84 7F 79 8C 05 B4 69 3E 2B BD [17:07:35]CheckFolder [17:07:35]dirname=/storage/ofd_packets [17:07:35]CheckFolder done [17:07:35]ProducePacketName [17:07:35]name=ofd_packets/00067843 [17:07:35]NVStorageSaveData ofd_packets/00067843 [17:07:35]File name is /storage/ofd_packets/00067843 [17:07:35]Write 301 bytes [17:07:35]NVStorageSaveData done [17:07:35]OFDSenderStorePacket done [17:07:35]KKMCreateOFDPacket done [17:07:35]NVStorageSaveData kkm_last_timestamp [17:07:35]File name is /storage/kkm_last_timestamp [17:07:35]Write 4 bytes [17:07:35]NVStorageSaveData done [17:07:35]ExternCall_PrintAddStr [17:07:35]wPrintStart [17:07:35]Write to MH i2c: 01 00 00 AF 08 B7 [17:07:35]Write i2c OK [17:07:35]MH_I2C_Read... [17:07:35]Read from MH i2c: 01 [17:07:35]MH_I2C_Read... [17:07:35]Read from MH i2c: 01 07 00 [17:07:35]MH_I2C_Read... [17:07:35]Read from MH i2c: 01 07 00 AF 08 00 00 00 00 00 FF 0F CC [17:07:35]RasterBufferAndPrint [17:07:35]line Счет N : (1)508101 [17:07:35]line ИНН: 02508201610067 [17:07:35]line Контрольно-Кассовый Чек [17:07:35]line ПРОДАЖА [17:07:35]line ТРК (МРК, ГНК) : 43 [17:07:35]line Товар: 2710124130 [17:07:35]line Аи-92-К-5 [17:07:35]line 14.980 * 66.80 [17:07:35]line = 1000.66 [17:07:35]line НДС 12% НСП 1% [17:07:35]line > о реализуемом товаре [17:07:35]line ИТОГО: 1000.66 [17:07:35]line НСП 1% : 8.85 [17:07:35]line НДС 12% : 106.26 [17:07:35]line Наличными: 0.00 [17:07:35]line Безнал.: 1000.66 [17:07:35]line Место: АЗС № 91 "Партнер Нефть" [17:07:35]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [17:07:35]line СНО: Общий режим [17:07:35]line Чек 82 18.05.2024 17:07 [17:07:35]line Смена: 359 ФФД: 1.0 [17:07:35]line ЗНМ: 0300000119 [17:07:35]line РНМ: 0000000000091845 [17:07:35]line Версия ККМ: 001 [17:07:35]line Платежная система: O! деньги [17:07:35]line ФМ: 0000000000871829 [17:07:35]line ФД: 67843 [17:07:35]line ФПД: 135492761388159 [17:07:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T170734&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67843&fm=135492761388159&tin=02508201610067®Number=0000000000091845&sum=100066 [17:07:35]OFD Sender: Processing packet 67843 [packets to send 35, broken 34] [17:07:35]ProducePacketName [17:07:35]name=ofd_packets/00067843 [17:07:35]OFD Sender: To server: pG, [17:07:35]CommunicateWithHost lk.salyk.kg:30040 [17:07:35]ConnectInit lk.salyk.kg [17:07:35]written 0, free lines is 4095 [17:07:35]Connected sock=11 [17:07:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 C9 2A 07 01 76 3C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 84 3A 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E2 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E2 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 56 E0 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 03 09 01 00 35 04 06 00 7B 3A DD E9 84 7F 79 8C 05 B4 69 3E 2B BD [17:07:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 EE D5 47 00 59 D4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 03 09 01 00 F4 03 04 00 2B 88 48 66 B6 04 01 00 00 53 BE 41 CC C6 F1 47 5B [17:07:35]CommunicateWithHost err = 0 [17:07:35]CheckOFDResponse [17:07:35]1017 (14) - 77093643461234 [17:07:35]1041 (16) - 0000000000871829 [17:07:35]1040 (4) - 67843 [17:07:35]1012 (4) - 18.05.2024 10:51 [17:07:35]1206 (1) - 0 [17:07:35]OFD Sender: Remove packet 67843 [17:07:35]ProducePacketName [17:07:35]name=ofd_packets/00067843 [17:07:35]NVStorageDeleteData [17:07:35]Write to MH i2c: 01 00 00 D8 08 E0 [17:07:35]Write i2c OK [17:07:35]MH_I2C_Read... [17:07:35]Read from MH i2c: 01 [17:07:35]MH_I2C_Read... [17:07:35]Read from MH i2c: 01 07 00 [17:07:35]MH_I2C_Read... [17:07:35]Read from MH i2c: 01 07 00 D8 08 00 00 00 00 00 D6 0C C9 [17:07:35]RasterBufferAndPrint [17:07:35]line [17:07:35]line [17:07:35]line [17:07:35]line [17:07:35]line [17:07:35]written 0, free lines is 3293 [17:07:35]MH_Cut [17:07:35]Write to MH i2c: D1 01 00 DF 08 01 B9 [17:07:35]Write i2c OK [17:07:35]MH_I2C_Read... [17:07:35]Read from MH i2c: D1 [17:07:35]MH_I2C_Read... [17:07:35]Read from MH i2c: D1 01 00 [17:07:35]MH_I2C_Read... [17:07:35]Read from MH i2c: D1 01 00 DF 08 00 B8 [17:07:35]Write to MH i2c: 01 00 00 E0 08 E8 [17:07:35]Write i2c OK [17:07:35]MH_I2C_Read... [17:07:36]OFD Sender: No OFD packet to send [17:07:36]*** Cut start [17:07:36]*** Purtial cut [17:07:36]*** Stage 1: CUTSNS_PIN = 1 [17:07:37]Read from MH i2c: 01 [17:07:37]MH_I2C_Read... [17:07:37]*** Stop cut motor [17:07:37]*** Cut end [17:07:37]Read from MH i2c: 01 07 00 [17:07:37]MH_I2C_Read... [17:07:37]Read from MH i2c: 01 07 00 E0 08 00 00 00 00 00 FF 0F FD [17:07:37]process_action close_receipt done [17:07:37]requested_data is exist [17:07:37]produce_requested_data [17:07:37]requested_item fm.sn is exist - process it [17:07:37]wFMCommunicate request_size=4 [17:07:37]MH_SAM_APDU [17:07:37]CAPDU: 80 11 00 00 [17:07:37]Write to MH i2c: E2 08 00 E1 08 80 11 00 00 00 00 00 00 63 [17:07:37]Write i2c OK [17:07:37]MH_I2C_Read... [17:07:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:07:37]Read from MH i2c: E2 [17:07:37]MH_I2C_Read... [17:07:37]Read from MH i2c: E2 17 00 [17:07:37]MH_I2C_Read... [17:07:37]Read from MH i2c: E2 17 00 E1 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 B9 [17:07:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [17:07:37]wFMCommunicate OK [17:07:37]requested_item fd.num is exist - process it [17:07:37]SAM_PROTO_GetFieldsCounters [17:07:37]wFMCommunicate request_size=4 [17:07:37]MH_SAM_APDU [17:07:37]CAPDU: 80 13 00 00 [17:07:37]Write to MH i2c: E2 08 00 E2 08 80 13 00 00 00 00 00 00 66 [17:07:37]Write i2c OK [17:07:37]MH_I2C_Read... [17:07:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:07:37]Read from MH i2c: E2 [17:07:37]MH_I2C_Read... [17:07:37]Read from MH i2c: E2 62 00 [17:07:37]MH_I2C_Read... [17:07:37]Read from MH i2c: E2 62 00 E2 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 03 09 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 F7 [17:07:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 03 09 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:07:37]wFMCommunicate OK [17:07:37]SAM_PROTO_GetFieldsCounters done [17:07:37]requested_item shift.num is exist - process it [17:07:37]requested_item shift.opened is exist - process it [17:07:37]req_shift_opened [17:07:37]FM_GetShiftState [17:07:37]SAM_PROTO_GetShiftState [17:07:37]wFMCommunicate request_size=4 [17:07:37]MH_SAM_APDU [17:07:37]CAPDU: 80 13 01 00 [17:07:37]Write to MH i2c: E2 08 00 E3 08 80 13 01 00 00 00 00 00 68 [17:07:37]Write i2c OK [17:07:37]MH_I2C_Read... [17:07:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:07:37]Read from MH i2c: E2 [17:07:37]MH_I2C_Read... [17:07:37]Read from MH i2c: E2 0E 00 [17:07:37]MH_I2C_Read... [17:07:37]Read from MH i2c: E2 0E 00 E3 08 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 CF [17:07:37]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [17:07:37]wFMCommunicate OK [17:07:37]SAM_PROTO_GetShiftState done [17:07:37]FM_GetShiftState done [17:07:37]req_shift_opened done [17:07:37]requested_item shift.open_date is exist - process it [17:07:37]req_shift_open_date [17:07:37]req_shift_open_date done [17:07:37]produce_requested_data done [17:07:37]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67843,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [17:07:37]process_action_free close_receipt [17:07:37]json_value_free [17:07:37]json_value_free done [17:07:37]process_json_proto returns [17:07:37]Send response to host [17:07:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67843,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [17:07:37]free response buf [17:07:37]execute_script done [17:07:37]execute_script returns [17:07:37]free content buf [17:07:37]Sock 9.Close socket [17:07:37]Sock 9.Thread stoped [17:07:41]OFD Sender: No OFD packet to send [17:07:46]OFD Sender: No OFD packet to send [17:07:51]OFD Sender: No OFD packet to send [17:07:56]OFD Sender: No OFD packet to send [17:08:01]OFD Sender: No OFD packet to send [17:08:06]OFD Sender: No OFD packet to send [17:08:11]OFD Sender: No OFD packet to send [17:08:16]OFD Sender: No OFD packet to send [17:08:21]OFD Sender: No OFD packet to send [17:08:26]OFD Sender: No OFD packet to send [17:08:31]OFD Sender: No OFD packet to send [17:08:36]OFD Sender: No OFD packet to send [17:08:41]OFD Sender: No OFD packet to send [17:08:46]OFD Sender: No OFD packet to send [17:08:51]OFD Sender: No OFD packet to send [17:08:56]OFD Sender: No OFD packet to send [17:09:01]OFD Sender: No OFD packet to send [17:09:06]OFD Sender: No OFD packet to send [17:09:11]OFD Sender: No OFD packet to send [17:09:16]OFD Sender: No OFD packet to send [17:09:21]OFD Sender: No OFD packet to send [17:09:26]OFD Sender: No OFD packet to send [17:09:31]OFD Sender: No OFD packet to send [17:09:36]OFD Sender: No OFD packet to send [17:09:41]OFD Sender: No OFD packet to send [17:09:46]OFD Sender: No OFD packet to send [17:09:51]OFD Sender: No OFD packet to send [17:09:56]OFD Sender: No OFD packet to send [17:10:01]OFD Sender: No OFD packet to send [17:10:06]OFD Sender: No OFD packet to send [17:10:11]OFD Sender: No OFD packet to send [17:10:16]OFD Sender: No OFD packet to send [17:10:21]OFD Sender: No OFD packet to send [17:10:26]OFD Sender: No OFD packet to send [17:10:31]OFD Sender: No OFD packet to send [17:10:36]OFD Sender: No OFD packet to send [17:10:41]OFD Sender: No OFD packet to send [17:10:46]OFD Sender: No OFD packet to send [17:10:51]OFD Sender: No OFD packet to send [17:10:56]OFD Sender: No OFD packet to send [17:11:01]OFD Sender: No OFD packet to send [17:11:06]OFD Sender: No OFD packet to send [17:11:11]accept exits with 7 [17:11:11]New connection [17:11:11]New thread 3067202916 created [17:11:11]Thread 3067059556 joined [17:11:11]Waiting for new connection... [17:11:11] Sock 7.Parse request [17:11:11]Sock 7.Check first char [17:11:11]Sock 7.First char is OK [17:11:11]request: POST /json_proto HTTP/1.0 [17:11:11]Method: POST [17:11:11]URL: /json_proto [17:11:11]Method is POST - this is cgi request [17:11:11]url: /json_proto [17:11:11]query_string will be loaded in cgi processing [17:11:11]execute_cgi json_proto POST (null) [17:11:11]execute_cgi path=json_proto method=POST [17:11:11]POST find Content-Length [17:11:11]Host: 172.17.41.195:8080 [17:11:11]Content-Length: 1212 [17:11:11]Content-Type: application/json [17:11:11] [17:11:11]POST finish read [17:11:11]Found Content-Length = 1212 [17:11:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0440\u0441\u0442\u0430\u043D\u0431\u0435\u043A\u043E\u0432 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)508102\u000A18.05.2024 16:53\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 23\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 40.000 x 66.80\u000A\u0418\u0422\u041E\u0413: 2672.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:11:11]execute_script... [17:11:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0440\u0441\u0442\u0430\u043D\u0431\u0435\u043A\u043E\u0432 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)508102\u000A18.05.2024 16:53\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 23\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 40.000 x 66.80\u000A\u0418\u0422\u041E\u0413: 2672.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:11:11]POST & json_proto [17:11:11]process_json_proto [17:11:11]json parsed OK: [17:11:11]protocol is kg_v1.0 [17:11:11]action value=print_text [17:11:11]process_action print_text [17:11:11]cmd_print_text [17:11:11]ExternCall_PrintAddStr [17:11:11]wPrintStart [17:11:11]Write to MH i2c: 01 00 00 E4 08 EC [17:11:11]Write i2c OK [17:11:11]MH_I2C_Read... [17:11:11]Read from MH i2c: 01 [17:11:11]MH_I2C_Read... [17:11:11]Read from MH i2c: 01 07 00 [17:11:11]MH_I2C_Read... [17:11:11]Read from MH i2c: 01 07 00 E4 08 00 00 00 00 00 FF 0F 01 [17:11:11]RasterBufferAndPrint [17:11:11]line *****ТОВАРНЫЙ ЧЕК***** [17:11:11]line АЗС-91 [17:11:11]line Партнер нефть [17:11:11]line 02508201610067 [17:11:11]line Кассир : Арстанбеков Н. [17:11:11]line Счет N : (1)508102 [17:11:11]line 18.05.2024 16:53 [17:11:11]line ПРОДАЖА [17:11:11]line ТРК (МРК, ГНК): 23 [17:11:11]line Вид ГСМ : 2710124130 [17:11:11]line Аи-92-К-5 [17:11:11]line 40.000 x 66.80 [17:11:11]line ИТОГ: 2672.00 [17:11:11]line Тип оплаты: Талоны: Топливная Карта [17:11:11]line 02750 [17:11:11]line ______________________ [17:11:11]line (подпись) [17:11:11]written 0, free lines is 4095 [17:11:11]Write to MH i2c: 01 00 00 F8 08 00 [17:11:11]Write i2c OK [17:11:11]MH_I2C_Read... [17:11:11]Read from MH i2c: 01 [17:11:11]MH_I2C_Read... [17:11:11]Read from MH i2c: 01 07 00 [17:11:11]MH_I2C_Read... [17:11:11]Read from MH i2c: 01 07 00 F8 08 00 00 00 00 00 11 0E 26 [17:11:11]RasterBufferAndPrint [17:11:11]line [17:11:11]line [17:11:11]line [17:11:11]line [17:11:11]line [17:11:11]written 0, free lines is 3603 [17:11:11]MH_Cut [17:11:11]Write to MH i2c: D1 01 00 FF 08 01 D9 [17:11:11]Write i2c OK [17:11:11]MH_I2C_Read... [17:11:11]Read from MH i2c: D1 [17:11:11]MH_I2C_Read... [17:11:11]Read from MH i2c: D1 01 00 [17:11:11]MH_I2C_Read... [17:11:11]Read from MH i2c: D1 01 00 FF 08 00 D8 [17:11:11]Write to MH i2c: 01 00 00 00 09 09 [17:11:11]Write i2c OK [17:11:11]MH_I2C_Read... [17:11:11]OFD Sender: No OFD packet to send [17:11:11]*** Cut start [17:11:11]*** Purtial cut [17:11:11]*** Stage 1: CUTSNS_PIN = 1 [17:11:12]Read from MH i2c: 01 [17:11:12]MH_I2C_Read... [17:11:12]Read from MH i2c: 01 07 00 [17:11:12]MH_I2C_Read... [17:11:12]*** Stop cut motor [17:11:12]*** Cut end [17:11:12]Read from MH i2c: 01 07 00 00 09 00 00 00 00 00 FF 0F 1E [17:11:12]process_action print_text done [17:11:12]requested_data is exist [17:11:12]produce_requested_data [17:11:12]requested_item fm.sn is exist - process it [17:11:12]wFMCommunicate request_size=4 [17:11:12]MH_SAM_APDU [17:11:12]CAPDU: 80 11 00 00 [17:11:12]Write to MH i2c: E2 08 00 01 09 80 11 00 00 00 00 00 00 84 [17:11:12]Write i2c OK [17:11:12]MH_I2C_Read... [17:11:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:11:12]Read from MH i2c: E2 [17:11:12]MH_I2C_Read... [17:11:12]Read from MH i2c: E2 17 00 [17:11:12]MH_I2C_Read... [17:11:12]Read from MH i2c: E2 17 00 01 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 DA [17:11:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [17:11:12]wFMCommunicate OK [17:11:12]requested_item fd.num is exist - process it [17:11:12]SAM_PROTO_GetFieldsCounters [17:11:12]wFMCommunicate request_size=4 [17:11:12]MH_SAM_APDU [17:11:12]CAPDU: 80 13 00 00 [17:11:12]Write to MH i2c: E2 08 00 02 09 80 13 00 00 00 00 00 00 87 [17:11:12]Write i2c OK [17:11:12]MH_I2C_Read... [17:11:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:11:12]Read from MH i2c: E2 [17:11:12]MH_I2C_Read... [17:11:12]Read from MH i2c: E2 62 00 [17:11:12]MH_I2C_Read... [17:11:12]Read from MH i2c: E2 62 00 02 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 03 09 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 18 [17:11:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 03 09 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:11:12]wFMCommunicate OK [17:11:12]SAM_PROTO_GetFieldsCounters done [17:11:12]requested_item shift.num is exist - process it [17:11:12]requested_item shift.opened is exist - process it [17:11:12]req_shift_opened [17:11:12]FM_GetShiftState [17:11:12]SAM_PROTO_GetShiftState [17:11:12]wFMCommunicate request_size=4 [17:11:12]MH_SAM_APDU [17:11:12]CAPDU: 80 13 01 00 [17:11:12]Write to MH i2c: E2 08 00 03 09 80 13 01 00 00 00 00 00 89 [17:11:12]Write i2c OK [17:11:12]MH_I2C_Read... [17:11:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:11:12]Read from MH i2c: E2 [17:11:12]MH_I2C_Read... [17:11:12]Read from MH i2c: E2 0E 00 [17:11:12]MH_I2C_Read... [17:11:12]Read from MH i2c: E2 0E 00 03 09 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 F0 [17:11:12]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [17:11:12]wFMCommunicate OK [17:11:12]SAM_PROTO_GetShiftState done [17:11:12]FM_GetShiftState done [17:11:12]req_shift_opened done [17:11:12]requested_item shift.open_date is exist - process it [17:11:12]req_shift_open_date [17:11:12]req_shift_open_date done [17:11:12]produce_requested_data done [17:11:12]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67843,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [17:11:12]process_action_free print_text [17:11:12]json_value_free [17:11:12]json_value_free done [17:11:12]process_json_proto returns [17:11:12]Send response to host [17:11:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67843,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [17:11:12]free response buf [17:11:12]execute_script done [17:11:12]execute_script returns [17:11:12]free content buf [17:11:12]Sock 7.Close socket [17:11:12]Sock 7.Thread stoped [17:11:16]OFD Sender: No OFD packet to send [17:11:21]OFD Sender: No OFD packet to send [17:11:26]OFD Sender: No OFD packet to send [17:11:31]OFD Sender: No OFD packet to send [17:11:36]OFD Sender: No OFD packet to send [17:11:41]OFD Sender: No OFD packet to send [17:11:46]OFD Sender: No OFD packet to send [17:11:51]OFD Sender: No OFD packet to send [17:11:56]OFD Sender: No OFD packet to send [17:12:01]OFD Sender: No OFD packet to send [17:12:05]accept exits with 9 [17:12:05]New connection [17:12:05]New thread 3067059556 created [17:12:05]Thread 3067202916 joined [17:12:05]Waiting for new connection... [17:12:05] Sock 9.Parse request [17:12:05]Sock 9.Check first char [17:12:05]Sock 9.First char is OK [17:12:05]request: POST /json_proto HTTP/1.0 [17:12:05]Method: POST [17:12:05]URL: /json_proto [17:12:05]Method is POST - this is cgi request [17:12:05]url: /json_proto [17:12:05]query_string will be loaded in cgi processing [17:12:05]execute_cgi json_proto POST (null) [17:12:05]execute_cgi path=json_proto method=POST [17:12:05]POST find Content-Length [17:12:05]Host: 172.17.41.195:8080 [17:12:05]Content-Length: 1207 [17:12:05]Content-Type: application/json [17:12:05] [17:12:05]POST finish read [17:12:05]Found Content-Length = 1207 [17:12:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0440\u0441\u0442\u0430\u043D\u0431\u0435\u043A\u043E\u0432 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)508103\u000A18.05.2024 16:54\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 41\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 9.380 x 74.70\u000A\u0418\u0422\u041E\u0413: 700.69\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:12:05]execute_script... [17:12:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0440\u0441\u0442\u0430\u043D\u0431\u0435\u043A\u043E\u0432 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)508103\u000A18.05.2024 16:54\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 41\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 9.380 x 74.70\u000A\u0418\u0422\u041E\u0413: 700.69\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:12:05]POST & json_proto [17:12:05]process_json_proto [17:12:05]json parsed OK: [17:12:05]protocol is kg_v1.0 [17:12:05]action value=print_text [17:12:05]process_action print_text [17:12:05]cmd_print_text [17:12:05]ExternCall_PrintAddStr [17:12:05]wPrintStart [17:12:05]Write to MH i2c: 01 00 00 04 09 0D [17:12:05]Write i2c OK [17:12:05]MH_I2C_Read... [17:12:05]Read from MH i2c: 01 [17:12:05]MH_I2C_Read... [17:12:05]Read from MH i2c: 01 07 00 [17:12:05]MH_I2C_Read... [17:12:05]Read from MH i2c: 01 07 00 04 09 00 00 00 00 00 FF 0F 22 [17:12:05]RasterBufferAndPrint [17:12:05]line *****ТОВАРНЫЙ ЧЕК***** [17:12:05]line АЗС-91 [17:12:05]line Партнер нефть [17:12:05]line 02508201610067 [17:12:05]line Кассир : Арстанбеков Н. [17:12:05]line Счет N : (1)508103 [17:12:05]line 18.05.2024 16:54 [17:12:05]line ПРОДАЖА [17:12:05]line ТРК (МРК, ГНК): 41 [17:12:05]line Вид ГСМ : 2710194210 [17:12:05]line ДТ-К-5 [17:12:05]line 9.380 x 74.70 [17:12:05]line ИТОГ: 700.69 [17:12:05]line Тип оплаты: Талоны: Топливная Карта [17:12:05]line 02750 [17:12:05]line ______________________ [17:12:05]line (подпись) [17:12:05]written 0, free lines is 4095 [17:12:05]Write to MH i2c: 01 00 00 18 09 21 [17:12:05]Write i2c OK [17:12:05]MH_I2C_Read... [17:12:05]Read from MH i2c: 01 [17:12:05]MH_I2C_Read... [17:12:05]Read from MH i2c: 01 07 00 [17:12:05]MH_I2C_Read... [17:12:05]Read from MH i2c: 01 07 00 18 09 00 00 00 00 00 0E 0E 44 [17:12:05]RasterBufferAndPrint [17:12:05]line [17:12:05]line [17:12:05]line [17:12:05]line [17:12:05]line [17:12:05]written 0, free lines is 3599 [17:12:06]MH_Cut [17:12:06]Write to MH i2c: D1 01 00 1F 09 01 FA [17:12:06]Write i2c OK [17:12:06]MH_I2C_Read... [17:12:06]Read from MH i2c: D1 [17:12:06]MH_I2C_Read... [17:12:06]Read from MH i2c: D1 01 00 [17:12:06]MH_I2C_Read... [17:12:06]Read from MH i2c: D1 01 00 1F 09 00 F9 [17:12:06]Write to MH i2c: 01 00 00 20 09 29 [17:12:06]Write i2c OK [17:12:06]MH_I2C_Read... [17:12:06]OFD Sender: No OFD packet to send [17:12:06]*** Cut start [17:12:06]*** Purtial cut [17:12:06]*** Stage 1: CUTSNS_PIN = 1 [17:12:06]Read from MH i2c: 01 [17:12:06]MH_I2C_Read... [17:12:06]*** Stop cut motor [17:12:06]*** Cut end [17:12:06]Read from MH i2c: 01 07 00 [17:12:06]MH_I2C_Read... [17:12:06]Read from MH i2c: 01 07 00 20 09 00 00 00 00 00 FF 0F 3E [17:12:06]process_action print_text done [17:12:06]requested_data is exist [17:12:06]produce_requested_data [17:12:06]requested_item fm.sn is exist - process it [17:12:06]wFMCommunicate request_size=4 [17:12:06]MH_SAM_APDU [17:12:06]CAPDU: 80 11 00 00 [17:12:06]Write to MH i2c: E2 08 00 21 09 80 11 00 00 00 00 00 00 A4 [17:12:06]Write i2c OK [17:12:06]MH_I2C_Read... [17:12:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:12:06]Read from MH i2c: E2 [17:12:06]MH_I2C_Read... [17:12:06]Read from MH i2c: E2 17 00 [17:12:06]MH_I2C_Read... [17:12:06]Read from MH i2c: E2 17 00 21 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 FA [17:12:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [17:12:06]wFMCommunicate OK [17:12:06]requested_item fd.num is exist - process it [17:12:06]SAM_PROTO_GetFieldsCounters [17:12:06]wFMCommunicate request_size=4 [17:12:06]MH_SAM_APDU [17:12:06]CAPDU: 80 13 00 00 [17:12:06]Write to MH i2c: E2 08 00 22 09 80 13 00 00 00 00 00 00 A7 [17:12:06]Write i2c OK [17:12:06]MH_I2C_Read... [17:12:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:12:07]Read from MH i2c: E2 [17:12:07]MH_I2C_Read... [17:12:07]Read from MH i2c: E2 62 00 [17:12:07]MH_I2C_Read... [17:12:07]Read from MH i2c: E2 62 00 22 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 03 09 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 38 [17:12:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 03 09 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:12:07]wFMCommunicate OK [17:12:07]SAM_PROTO_GetFieldsCounters done [17:12:07]requested_item shift.num is exist - process it [17:12:07]requested_item shift.opened is exist - process it [17:12:07]req_shift_opened [17:12:07]FM_GetShiftState [17:12:07]SAM_PROTO_GetShiftState [17:12:07]wFMCommunicate request_size=4 [17:12:07]MH_SAM_APDU [17:12:07]CAPDU: 80 13 01 00 [17:12:07]Write to MH i2c: E2 08 00 23 09 80 13 01 00 00 00 00 00 A9 [17:12:07]Write i2c OK [17:12:07]MH_I2C_Read... [17:12:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:12:07]Read from MH i2c: E2 [17:12:07]MH_I2C_Read... [17:12:07]Read from MH i2c: E2 0E 00 [17:12:07]MH_I2C_Read... [17:12:07]Read from MH i2c: E2 0E 00 23 09 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 10 [17:12:07]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [17:12:07]wFMCommunicate OK [17:12:07]SAM_PROTO_GetShiftState done [17:12:07]FM_GetShiftState done [17:12:07]req_shift_opened done [17:12:07]requested_item shift.open_date is exist - process it [17:12:07]req_shift_open_date [17:12:07]req_shift_open_date done [17:12:07]produce_requested_data done [17:12:07]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67843,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [17:12:07]process_action_free print_text [17:12:07]json_value_free [17:12:07]json_value_free done [17:12:07]process_json_proto returns [17:12:07]Send response to host [17:12:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67843,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [17:12:07]free response buf [17:12:07]execute_script done [17:12:07]execute_script returns [17:12:07]free content buf [17:12:07]Sock 9.Close socket [17:12:07]Sock 9.Thread stoped [17:12:11]OFD Sender: No OFD packet to send [17:12:16]OFD Sender: No OFD packet to send [17:12:21]OFD Sender: No OFD packet to send [17:12:26]OFD Sender: No OFD packet to send [17:12:31]OFD Sender: No OFD packet to send [17:12:36]OFD Sender: No OFD packet to send [17:12:41]OFD Sender: No OFD packet to send [17:12:46]OFD Sender: No OFD packet to send [17:12:51]OFD Sender: No OFD packet to send [17:12:56]OFD Sender: No OFD packet to send [17:13:01]OFD Sender: No OFD packet to send [17:13:06]OFD Sender: No OFD packet to send [17:13:11]OFD Sender: No OFD packet to send [17:13:16]OFD Sender: No OFD packet to send [17:13:21]OFD Sender: No OFD packet to send [17:13:26]OFD Sender: No OFD packet to send [17:13:31]OFD Sender: No OFD packet to send [17:13:36]OFD Sender: No OFD packet to send [17:13:41]OFD Sender: No OFD packet to send [17:13:46]OFD Sender: No OFD packet to send [17:13:51]OFD Sender: No OFD packet to send [17:13:56]OFD Sender: No OFD packet to send [17:14:01]OFD Sender: No OFD packet to send [17:14:06]OFD Sender: No OFD packet to send [17:14:11]OFD Sender: No OFD packet to send [17:14:16]OFD Sender: No OFD packet to send [17:14:21]OFD Sender: No OFD packet to send [17:14:26]OFD Sender: No OFD packet to send [17:14:31]OFD Sender: No OFD packet to send [17:14:36]OFD Sender: No OFD packet to send [17:14:41]OFD Sender: No OFD packet to send [17:14:46]OFD Sender: No OFD packet to send [17:14:51]OFD Sender: No OFD packet to send [17:14:56]OFD Sender: No OFD packet to send [17:15:01]OFD Sender: No OFD packet to send [17:15:06]OFD Sender: No OFD packet to send [17:15:11]OFD Sender: No OFD packet to send [17:15:16]OFD Sender: No OFD packet to send [17:15:21]OFD Sender: No OFD packet to send [17:15:26]OFD Sender: No OFD packet to send [17:15:31]OFD Sender: No OFD packet to send [17:15:36]OFD Sender: No OFD packet to send [17:15:41]OFD Sender: No OFD packet to send [17:15:46]OFD Sender: No OFD packet to send [17:15:51]OFD Sender: No OFD packet to send [17:15:56]OFD Sender: No OFD packet to send [17:16:01]OFD Sender: No OFD packet to send [17:16:06]OFD Sender: No OFD packet to send [17:16:11]OFD Sender: No OFD packet to send [17:16:16]OFD Sender: No OFD packet to send [17:16:21]OFD Sender: No OFD packet to send [17:16:26]OFD Sender: No OFD packet to send [17:16:31]OFD Sender: No OFD packet to send [17:16:36]OFD Sender: No OFD packet to send [17:16:41]OFD Sender: No OFD packet to send [17:16:46]OFD Sender: No OFD packet to send [17:16:48]accept exits with 7 [17:16:48]New connection [17:16:48]New thread 3067202916 created [17:16:48]Thread 3067059556 joined [17:16:48]Waiting for new connection... [17:16:48] Sock 7.Parse request [17:16:48]Sock 7.Check first char [17:16:48]Sock 7.First char is OK [17:16:48]request: POST /json_proto HTTP/1.0 [17:16:48]Method: POST [17:16:48]URL: /json_proto [17:16:48]Method is POST - this is cgi request [17:16:48]url: /json_proto [17:16:48]query_string will be loaded in cgi processing [17:16:48]execute_cgi json_proto POST (null) [17:16:48]execute_cgi path=json_proto method=POST [17:16:48]POST find Content-Length [17:16:48]Host: 172.17.41.195:8080 [17:16:48]Content-Length: 796 [17:16:48]Content-Type: application/json [17:16:48] [17:16:48]POST finish read [17:16:48]Found Content-Length = 796 [17:16:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)508104", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.80, "quantity" : 17.700, "sum" : 1200.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1200.06 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:16:48]execute_script... [17:16:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)508104", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.80, "quantity" : 17.700, "sum" : 1200.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1200.06 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:16:48]POST & json_proto [17:16:48]process_json_proto [17:16:48]json parsed OK: [17:16:48]protocol is kg_v1.0 [17:16:48]action value=close_receipt [17:16:48]process_action close_receipt [17:16:48]cmd_close_receipt [17:16:48]MH_GetDate [17:16:48]Write to MH i2c: F0 00 00 24 09 1C [17:16:48]Write i2c OK [17:16:48]MH_I2C_Read... [17:16:48]Read from MH i2c: F0 [17:16:48]MH_I2C_Read... [17:16:48]Read from MH i2c: F0 09 00 [17:16:48]MH_I2C_Read... [17:16:48]Read from MH i2c: F0 09 00 24 09 00 81 E2 48 66 FC 21 6F 64 26 [17:16:48]GetLastDocTimeStamp 1716052054 [17:16:48]current date 1716052609 [17:16:48]FM_GetShiftState [17:16:48]SAM_PROTO_GetShiftState [17:16:48]wFMCommunicate request_size=4 [17:16:48]MH_SAM_APDU [17:16:48]CAPDU: 80 13 01 00 [17:16:48]Write to MH i2c: E2 08 00 25 09 80 13 01 00 00 00 00 00 AB [17:16:48]Write i2c OK [17:16:48]MH_I2C_Read... [17:16:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:16:48]Read from MH i2c: E2 [17:16:48]MH_I2C_Read... [17:16:48]Read from MH i2c: E2 0E 00 [17:16:48]MH_I2C_Read... [17:16:48]Read from MH i2c: E2 0E 00 25 09 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 12 [17:16:48]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [17:16:48]wFMCommunicate OK [17:16:48]SAM_PROTO_GetShiftState done [17:16:48]FM_GetShiftState done [17:16:48]opened in 1715991483 [17:16:48]opened+sec_in_day 1716077883 [17:16:48]quantity*price = 120006 [17:16:48]sum+1 = 120007 [17:16:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1200.06 НСП 1% : 10.62 НДС 12% : 127.44 Наличными: 0.00 Безнал.: 1200.06 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 83 18.05.2024 17:16 Смена: 359 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67844 ФПД: 232363774612549 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T171649&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67844&fm=232363774612549&tin=02508201610067®Number=0000000000091845&sum=120006 [17:16:49]StoreToDocumentArchive [17:16:49]shift 359 fd 67844 [17:16:49]save to /storage/0359/doc_00067844 [17:16:49]save last doc name /storage/0359/doc_00067844 to /storage/kkm_last_doc_name [17:16:49]save OK [17:16:49]Clear old archive folders... [17:16:49]ProcessDocumentItem done err = 0, tmpTLVsize=252 [17:16:49]tlvbuf is 00A0BF80 [17:16:49]SAM_PROTO_ClearQueue [17:16:49]wFMCommunicate request_size=4 [17:16:49]MH_SAM_APDU [17:16:49]CAPDU: 80 09 00 00 [17:16:49]Write to MH i2c: E2 08 00 32 09 80 09 00 00 00 00 00 00 AD [17:16:49]Write i2c OK [17:16:49]MH_I2C_Read... [17:16:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:16:49]Read from MH i2c: E2 [17:16:49]MH_I2C_Read... [17:16:49]Read from MH i2c: E2 03 00 [17:16:49]MH_I2C_Read... [17:16:49]Read from MH i2c: E2 03 00 32 09 00 90 00 AF [17:16:49]RAPDU: 90 00 [17:16:49]wFMCommunicate OK [17:16:49]SAM_PROTO_ClearQueue done [17:16:49]KKMCreateOFDPacket [17:16:49]OFDProtocolAddRootSTLVToBuf [17:16:49]FM_MakeSignedData [17:16:49]FM_MakeSignedData [17:16:49]SAM_PROTO_SignData [17:16:49]wFMCommunicate request_size=4 [17:16:49]MH_SAM_APDU [17:16:49]CAPDU: 80 0D 01 02 [17:16:49]Write to MH i2c: E2 08 00 33 09 80 0D 01 02 00 00 00 00 B5 [17:16:49]Write i2c OK [17:16:49]MH_I2C_Read... [17:16:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:16:49]Read from MH i2c: E2 [17:16:49]MH_I2C_Read... [17:16:49]Read from MH i2c: E2 03 00 [17:16:49]MH_I2C_Read... [17:16:49]Read from MH i2c: E2 03 00 33 09 00 90 00 B0 [17:16:49]RAPDU: 90 00 [17:16:49]wFMCommunicate OK [17:16:49]wFMCommunicate request_size=255 [17:16:49]MH_SAM_APDU [17:16:49]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 24 45 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 C6 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C6 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C6 D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 81 E2 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 04 09 01 00 35 04 06 00 [17:16:49]Write to MH i2c: E2 02 01 34 09 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 24 45 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 C6 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C6 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C6 D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 81 E2 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 04 09 01 00 35 04 06 00 00 00 BB [17:16:49]Write i2c OK [17:16:49]MH_I2C_Read... [17:16:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:16:49]Read from MH i2c: E2 [17:16:49]MH_I2C_Read... [17:16:49]Read from MH i2c: E2 03 00 [17:16:49]MH_I2C_Read... [17:16:49]Read from MH i2c: E2 03 00 34 09 00 90 00 B1 [17:16:49]RAPDU: 90 00 [17:16:49]wFMCommunicate OK [17:16:49]wFMCommunicate request_size=11 [17:16:49]MH_SAM_APDU [17:16:49]CAPDU: 80 0D 02 02 06 D3 55 68 3E 94 45 [17:16:49]Write to MH i2c: E2 0E 00 35 09 80 0D 02 02 06 00 D3 55 68 3E 94 45 00 00 6B [17:16:49]Write i2c OK [17:16:49]MH_I2C_Read... [17:16:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:16:49]Read from MH i2c: E2 [17:16:49]MH_I2C_Read... [17:16:49]Read from MH i2c: E2 03 00 [17:16:49]MH_I2C_Read... [17:16:49]Read from MH i2c: E2 03 00 35 09 00 90 00 B2 [17:16:49]RAPDU: 90 00 [17:16:49]wFMCommunicate OK [17:16:49]wFMCommunicate request_size=4 [17:16:49]MH_SAM_APDU [17:16:49]CAPDU: 80 0D 03 02 [17:16:49]Write to MH i2c: E2 08 00 36 09 80 0D 03 02 00 00 00 00 BA [17:16:49]Write i2c OK [17:16:49]MH_I2C_Read... [17:16:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:16:49]Read from MH i2c: E2 [17:16:49]MH_I2C_Read... [17:16:49]Read from MH i2c: E2 0B 00 [17:16:49]MH_I2C_Read... [17:16:49]Read from MH i2c: E2 0B 00 36 09 00 90 49 88 17 3D 23 68 86 90 00 81 [17:16:49]RAPDU: 90 49 88 17 3D 23 68 86 90 00 [17:16:49]wFMCommunicate OK [17:16:49]SAM_PROTO_SignData done [17:16:49]FM_MakeSignedData done [17:16:49]CreateOFDProtocolMessage [17:16:49]wFMCommunicate request_size=4 [17:16:49]MH_SAM_APDU [17:16:49]CAPDU: 80 11 00 00 [17:16:49]Write to MH i2c: E2 08 00 37 09 80 11 00 00 00 00 00 00 BA [17:16:49]Write i2c OK [17:16:49]MH_I2C_Read... [17:16:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:16:49]Read from MH i2c: E2 [17:16:49]MH_I2C_Read... [17:16:49]Read from MH i2c: E2 17 00 [17:16:49]MH_I2C_Read... [17:16:49]Read from MH i2c: E2 17 00 37 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 10 [17:16:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [17:16:49]wFMCommunicate OK [17:16:49]CreateOFDProtocolMessage done [17:16:49]OFDSenderStorePacket 67844 [17:16:49]StoreOFDPacket docnum=67844 [17:16:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 01 00 00 19 5B 08 01 24 81 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 24 45 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 C6 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C6 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C6 D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 81 E2 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 04 09 01 00 35 04 06 00 D3 55 68 3E 94 45 90 49 88 17 3D 23 68 86 [17:16:49]CheckFolder [17:16:49]dirname=/storage/ofd_packets [17:16:49]CheckFolder done [17:16:49]ProducePacketName [17:16:49]name=ofd_packets/00067844 [17:16:49]NVStorageSaveData ofd_packets/00067844 [17:16:49]File name is /storage/ofd_packets/00067844 [17:16:49]Write 302 bytes [17:16:49]NVStorageSaveData done [17:16:49]OFDSenderStorePacket done [17:16:49]KKMCreateOFDPacket done [17:16:49]NVStorageSaveData kkm_last_timestamp [17:16:49]File name is /storage/kkm_last_timestamp [17:16:49]Write 4 bytes [17:16:49]NVStorageSaveData done [17:16:49]ExternCall_PrintAddStr [17:16:49]wPrintStart [17:16:49]Write to MH i2c: 01 00 00 38 09 41 [17:16:49]Write i2c OK [17:16:49]MH_I2C_Read... [17:16:49]Read from MH i2c: 01 [17:16:49]MH_I2C_Read... [17:16:49]Read from MH i2c: 01 07 00 [17:16:49]MH_I2C_Read... [17:16:49]Read from MH i2c: 01 07 00 38 09 00 00 00 00 00 FF 0F 56 [17:16:49]RasterBufferAndPrint [17:16:49]line Счет N : (1)508104 [17:16:49]line ИНН: 02508201610067 [17:16:49]line Контрольно-Кассовый Чек [17:16:49]line ПРОДАЖА [17:16:49]line ТРК (МРК, ГНК) : 32 [17:16:49]line Товар: 2710124130 [17:16:49]line Super-92-К-5 [17:16:49]line 17.700 * 67.80 [17:16:49]line = 1200.06 [17:16:49]line НДС 12% НСП 1% [17:16:49]line > о реализуемом товаре [17:16:49]line ИТОГО: 1200.06 [17:16:49]line НСП 1% : 10.62 [17:16:49]line НДС 12% : 127.44 [17:16:49]line Наличными: 0.00 [17:16:49]line Безнал.: 1200.06 [17:16:49]line Место: АЗС № 91 "Партнер Нефть" [17:16:49]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [17:16:49]line СНО: Общий режим [17:16:49]line Чек 83 18.05.2024 17:16 [17:16:49]line Смена: 359 ФФД: 1.0 [17:16:49]line ЗНМ: 0300000119 [17:16:49]line РНМ: 0000000000091845 [17:16:49]line Версия ККМ: 001 [17:16:49]line Платежная система: O! деньги [17:16:49]line ФМ: 0000000000871829 [17:16:49]line ФД: 67844 [17:16:49]line ФПД: 232363774612549 [17:16:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T171649&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67844&fm=232363774612549&tin=02508201610067®Number=0000000000091845&sum=120006 [17:16:50]OFD Sender: Processing packet 67844 [packets to send 35, broken 34] [17:16:50]ProducePacketName [17:16:50]name=ofd_packets/00067844 [17:16:50]OFD Sender: To server: pG, [17:16:50]CommunicateWithHost lk.salyk.kg:30040 [17:16:50]ConnectInit lk.salyk.kg [17:16:50]written 0, free lines is 4095 [17:16:50]Connected sock=10 [17:16:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 01 00 00 19 5B 08 01 24 81 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 24 45 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 C6 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C6 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C6 D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 81 E2 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 04 09 01 00 35 04 06 00 D3 55 68 3E 94 45 90 49 88 17 3D 23 68 86 [17:16:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 59 A1 47 00 B6 AD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 04 09 01 00 F4 03 04 00 56 8A 48 66 B6 04 01 00 00 8C A9 25 DE 75 6C 54 D8 [17:16:50]CommunicateWithHost err = 0 [17:16:50]CheckOFDResponse [17:16:50]1017 (14) - 77093643461234 [17:16:50]1041 (16) - 0000000000871829 [17:16:50]1040 (4) - 67844 [17:16:50]1012 (4) - 18.05.2024 11:00 [17:16:50]1206 (1) - 0 [17:16:50]OFD Sender: Remove packet 67844 [17:16:50]ProducePacketName [17:16:50]name=ofd_packets/00067844 [17:16:50]NVStorageDeleteData [17:16:50]Write to MH i2c: 01 00 00 61 09 6A [17:16:50]Write i2c OK [17:16:50]MH_I2C_Read... [17:16:50]Read from MH i2c: 01 [17:16:50]MH_I2C_Read... [17:16:50]Read from MH i2c: 01 07 00 [17:16:50]MH_I2C_Read... [17:16:50]Read from MH i2c: 01 07 00 61 09 00 00 00 00 00 D1 0C 4E [17:16:50]RasterBufferAndPrint [17:16:50]line [17:16:50]line [17:16:50]line [17:16:50]line [17:16:50]line [17:16:50]written 0, free lines is 3285 [17:16:50]MH_Cut [17:16:50]Write to MH i2c: D1 01 00 68 09 01 43 [17:16:50]Write i2c OK [17:16:50]MH_I2C_Read... [17:16:50]Read from MH i2c: D1 [17:16:50]MH_I2C_Read... [17:16:50]Read from MH i2c: D1 01 00 [17:16:50]MH_I2C_Read... [17:16:50]Read from MH i2c: D1 01 00 68 09 00 42 [17:16:50]Write to MH i2c: 01 00 00 69 09 72 [17:16:50]Write i2c OK [17:16:50]MH_I2C_Read... [17:16:51]OFD Sender: No OFD packet to send [17:16:51]*** Cut start [17:16:51]*** Purtial cut [17:16:51]*** Stage 1: CUTSNS_PIN = 1 [17:16:51]Read from MH i2c: 01 [17:16:51]MH_I2C_Read... [17:16:51]*** Stop cut motor [17:16:51]*** Cut end [17:16:51]Read from MH i2c: 01 07 00 [17:16:51]MH_I2C_Read... [17:16:51]Read from MH i2c: 01 07 00 69 09 00 00 00 00 00 FF 0F 87 [17:16:51]process_action close_receipt done [17:16:51]requested_data is exist [17:16:51]produce_requested_data [17:16:51]requested_item fm.sn is exist - process it [17:16:51]wFMCommunicate request_size=4 [17:16:51]MH_SAM_APDU [17:16:51]CAPDU: 80 11 00 00 [17:16:51]Write to MH i2c: E2 08 00 6A 09 80 11 00 00 00 00 00 00 ED [17:16:51]Write i2c OK [17:16:51]MH_I2C_Read... [17:16:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:16:51]Read from MH i2c: E2 [17:16:51]MH_I2C_Read... [17:16:51]Read from MH i2c: E2 17 00 [17:16:51]MH_I2C_Read... [17:16:51]Read from MH i2c: E2 17 00 6A 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 43 [17:16:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [17:16:51]wFMCommunicate OK [17:16:51]requested_item fd.num is exist - process it [17:16:51]SAM_PROTO_GetFieldsCounters [17:16:51]wFMCommunicate request_size=4 [17:16:51]MH_SAM_APDU [17:16:51]CAPDU: 80 13 00 00 [17:16:51]Write to MH i2c: E2 08 00 6B 09 80 13 00 00 00 00 00 00 F0 [17:16:51]Write i2c OK [17:16:51]MH_I2C_Read... [17:16:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:16:51]Read from MH i2c: E2 [17:16:51]MH_I2C_Read... [17:16:51]Read from MH i2c: E2 62 00 [17:16:51]MH_I2C_Read... [17:16:51]Read from MH i2c: E2 62 00 6B 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 04 09 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 85 [17:16:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 04 09 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:16:51]wFMCommunicate OK [17:16:51]SAM_PROTO_GetFieldsCounters done [17:16:51]requested_item shift.num is exist - process it [17:16:51]requested_item shift.opened is exist - process it [17:16:51]req_shift_opened [17:16:51]FM_GetShiftState [17:16:51]SAM_PROTO_GetShiftState [17:16:51]wFMCommunicate request_size=4 [17:16:51]MH_SAM_APDU [17:16:51]CAPDU: 80 13 01 00 [17:16:51]Write to MH i2c: E2 08 00 6C 09 80 13 01 00 00 00 00 00 F2 [17:16:51]Write i2c OK [17:16:51]MH_I2C_Read... [17:16:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:16:52]Read from MH i2c: E2 [17:16:52]MH_I2C_Read... [17:16:52]Read from MH i2c: E2 0E 00 [17:16:52]MH_I2C_Read... [17:16:52]Read from MH i2c: E2 0E 00 6C 09 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 59 [17:16:52]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [17:16:52]wFMCommunicate OK [17:16:52]SAM_PROTO_GetShiftState done [17:16:52]FM_GetShiftState done [17:16:52]req_shift_opened done [17:16:52]requested_item shift.open_date is exist - process it [17:16:52]req_shift_open_date [17:16:52]req_shift_open_date done [17:16:52]produce_requested_data done [17:16:52]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67844,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [17:16:52]process_action_free close_receipt [17:16:52]json_value_free [17:16:52]json_value_free done [17:16:52]process_json_proto returns [17:16:52]Send response to host [17:16:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67844,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [17:16:52]free response buf [17:16:52]execute_script done [17:16:52]execute_script returns [17:16:52]free content buf [17:16:52]Sock 7.Close socket [17:16:52]Sock 7.Thread stoped [17:16:56]OFD Sender: No OFD packet to send [17:17:01]OFD Sender: No OFD packet to send [17:17:06]OFD Sender: No OFD packet to send [17:17:11]OFD Sender: No OFD packet to send [17:17:16]OFD Sender: No OFD packet to send [17:17:21]OFD Sender: No OFD packet to send [17:17:26]OFD Sender: No OFD packet to send [17:17:31]OFD Sender: No OFD packet to send [17:17:36]OFD Sender: No OFD packet to send [17:17:41]OFD Sender: No OFD packet to send [17:17:46]OFD Sender: No OFD packet to send [17:17:51]OFD Sender: No OFD packet to send [17:17:56]OFD Sender: No OFD packet to send [17:18:01]OFD Sender: No OFD packet to send [17:18:06]OFD Sender: No OFD packet to send [17:18:11]OFD Sender: No OFD packet to send [17:18:16]OFD Sender: No OFD packet to send [17:18:21]OFD Sender: No OFD packet to send [17:18:26]OFD Sender: No OFD packet to send [17:18:31]OFD Sender: No OFD packet to send [17:18:36]OFD Sender: No OFD packet to send [17:18:41]OFD Sender: No OFD packet to send [17:18:46]OFD Sender: No OFD packet to send [17:18:51]OFD Sender: No OFD packet to send [17:18:56]OFD Sender: No OFD packet to send [17:19:01]OFD Sender: No OFD packet to send [17:19:06]OFD Sender: No OFD packet to send [17:19:11]OFD Sender: No OFD packet to send [17:19:16]OFD Sender: No OFD packet to send [17:19:21]OFD Sender: No OFD packet to send [17:19:26]OFD Sender: No OFD packet to send [17:19:31]OFD Sender: No OFD packet to send [17:19:36]OFD Sender: No OFD packet to send [17:19:41]OFD Sender: No OFD packet to send [17:19:46]OFD Sender: No OFD packet to send [17:19:51]OFD Sender: No OFD packet to send [17:19:56]OFD Sender: No OFD packet to send [17:20:01]OFD Sender: No OFD packet to send [17:20:06]OFD Sender: No OFD packet to send [17:20:11]OFD Sender: No OFD packet to send [17:20:16]OFD Sender: No OFD packet to send [17:20:21]OFD Sender: No OFD packet to send [17:20:26]OFD Sender: No OFD packet to send [17:20:31]OFD Sender: No OFD packet to send [17:20:36]OFD Sender: No OFD packet to send [17:20:37]accept exits with 9 [17:20:37]New connection [17:20:37]New thread 3067059556 created [17:20:37]Thread 3067202916 joined [17:20:37]Waiting for new connection... [17:20:37] Sock 9.Parse request [17:20:37]Sock 9.Check first char [17:20:37]Sock 9.First char is OK [17:20:37]request: POST /json_proto HTTP/1.0 [17:20:37]Method: POST [17:20:37]URL: /json_proto [17:20:37]Method is POST - this is cgi request [17:20:37]url: /json_proto [17:20:37]query_string will be loaded in cgi processing [17:20:37]execute_cgi json_proto POST (null) [17:20:37]execute_cgi path=json_proto method=POST [17:20:37]POST find Content-Length [17:20:37]Host: 172.17.41.195:8080 [17:20:37]Content-Length: 803 [17:20:37]Content-Type: application/json [17:20:37] [17:20:37]POST finish read [17:20:37]Found Content-Length = 803 [17:20:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)508105", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.80, "quantity" : 14.980, "sum" : 1000.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.66 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:20:37]execute_script... [17:20:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)508105", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.80, "quantity" : 14.980, "sum" : 1000.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.66 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:20:37]POST & json_proto [17:20:37]process_json_proto [17:20:37]json parsed OK: [17:20:37]protocol is kg_v1.0 [17:20:37]action value=close_receipt [17:20:37]process_action close_receipt [17:20:37]cmd_close_receipt [17:20:37]MH_GetDate [17:20:37]Write to MH i2c: F0 00 00 6D 09 65 [17:20:37]Write i2c OK [17:20:37]MH_I2C_Read... [17:20:37]Read from MH i2c: F0 [17:20:37]MH_I2C_Read... [17:20:37]Read from MH i2c: F0 09 00 [17:20:37]MH_I2C_Read... [17:20:37]Read from MH i2c: F0 09 00 6D 09 00 67 E3 48 66 FC 21 6F 64 56 [17:20:37]GetLastDocTimeStamp 1716052609 [17:20:37]current date 1716052839 [17:20:37]FM_GetShiftState [17:20:37]SAM_PROTO_GetShiftState [17:20:37]wFMCommunicate request_size=4 [17:20:37]MH_SAM_APDU [17:20:37]CAPDU: 80 13 01 00 [17:20:37]Write to MH i2c: E2 08 00 6E 09 80 13 01 00 00 00 00 00 F4 [17:20:37]Write i2c OK [17:20:37]MH_I2C_Read... [17:20:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:20:37]Read from MH i2c: E2 [17:20:37]MH_I2C_Read... [17:20:37]Read from MH i2c: E2 0E 00 [17:20:37]MH_I2C_Read... [17:20:37]Read from MH i2c: E2 0E 00 6E 09 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 5B [17:20:37]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [17:20:37]wFMCommunicate OK [17:20:37]SAM_PROTO_GetShiftState done [17:20:37]FM_GetShiftState done [17:20:37]opened in 1715991483 [17:20:37]opened+sec_in_day 1716077883 [17:20:37]quantity*price = 100066 [17:20:37]sum+1 = 100067 [17:20:37]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.66 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 0.00 Безнал.: 1000.66 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 84 18.05.2024 17:20 Смена: 359 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67845 ФПД: 215616689746365 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T172039&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67845&fm=215616689746365&tin=02508201610067®Number=0000000000091845&sum=100066 [17:20:38]StoreToDocumentArchive [17:20:38]shift 359 fd 67845 [17:20:38]save to /storage/0359/doc_00067845 [17:20:38]save last doc name /storage/0359/doc_00067845 to /storage/kkm_last_doc_name [17:20:38]save OK [17:20:38]Clear old archive folders... [17:20:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:20:38]tlvbuf is 00A09890 [17:20:38]SAM_PROTO_ClearQueue [17:20:38]wFMCommunicate request_size=4 [17:20:38]MH_SAM_APDU [17:20:38]CAPDU: 80 09 00 00 [17:20:38]Write to MH i2c: E2 08 00 7B 09 80 09 00 00 00 00 00 00 F6 [17:20:38]Write i2c OK [17:20:38]MH_I2C_Read... [17:20:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:20:38]Read from MH i2c: E2 [17:20:38]MH_I2C_Read... [17:20:38]Read from MH i2c: E2 03 00 [17:20:38]MH_I2C_Read... [17:20:38]Read from MH i2c: E2 03 00 7B 09 00 90 00 F8 [17:20:38]RAPDU: 90 00 [17:20:38]wFMCommunicate OK [17:20:38]SAM_PROTO_ClearQueue done [17:20:38]KKMCreateOFDPacket [17:20:38]OFDProtocolAddRootSTLVToBuf [17:20:38]FM_MakeSignedData [17:20:38]FM_MakeSignedData [17:20:38]SAM_PROTO_SignData [17:20:38]wFMCommunicate request_size=4 [17:20:38]MH_SAM_APDU [17:20:38]CAPDU: 80 0D 01 02 [17:20:38]Write to MH i2c: E2 08 00 7C 09 80 0D 01 02 00 00 00 00 FE [17:20:38]Write i2c OK [17:20:38]MH_I2C_Read... [17:20:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:20:39]Read from MH i2c: E2 [17:20:39]MH_I2C_Read... [17:20:39]Read from MH i2c: E2 03 00 [17:20:39]MH_I2C_Read... [17:20:39]Read from MH i2c: E2 03 00 7C 09 00 90 00 F9 [17:20:39]RAPDU: 90 00 [17:20:39]wFMCommunicate OK [17:20:39]wFMCommunicate request_size=255 [17:20:39]MH_SAM_APDU [17:20:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 84 3A 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E2 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E2 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 67 E3 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 05 09 01 00 35 04 06 00 C4 [17:20:39]Write to MH i2c: E2 02 01 7D 09 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 84 3A 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E2 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E2 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 67 E3 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 05 09 01 00 35 04 06 00 C4 00 00 E2 [17:20:39]Write i2c OK [17:20:39]MH_I2C_Read... [17:20:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:20:39]Read from MH i2c: E2 [17:20:39]MH_I2C_Read... [17:20:39]Read from MH i2c: E2 03 00 [17:20:39]MH_I2C_Read... [17:20:39]Read from MH i2c: E2 03 00 7D 09 00 90 00 FA [17:20:39]RAPDU: 90 00 [17:20:39]wFMCommunicate OK [17:20:39]wFMCommunicate request_size=10 [17:20:39]MH_SAM_APDU [17:20:39]CAPDU: 80 0D 02 02 05 1A 2C 33 31 BD [17:20:39]Write to MH i2c: E2 0D 00 7E 09 80 0D 02 02 05 00 1A 2C 33 31 BD 00 00 72 [17:20:39]Write i2c OK [17:20:39]MH_I2C_Read... [17:20:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:20:39]Read from MH i2c: E2 [17:20:39]MH_I2C_Read... [17:20:39]Read from MH i2c: E2 03 00 [17:20:39]MH_I2C_Read... [17:20:39]Read from MH i2c: E2 03 00 7E 09 00 90 00 FB [17:20:39]RAPDU: 90 00 [17:20:39]wFMCommunicate OK [17:20:39]wFMCommunicate request_size=4 [17:20:39]MH_SAM_APDU [17:20:39]CAPDU: 80 0D 03 02 [17:20:39]Write to MH i2c: E2 08 00 7F 09 80 0D 03 02 00 00 00 00 03 [17:20:39]Write i2c OK [17:20:39]MH_I2C_Read... [17:20:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:20:39]Read from MH i2c: E2 [17:20:39]MH_I2C_Read... [17:20:39]Read from MH i2c: E2 0B 00 [17:20:39]MH_I2C_Read... [17:20:39]Read from MH i2c: E2 0B 00 7F 09 00 CC FE C0 4C 12 98 69 04 90 00 F1 [17:20:39]RAPDU: CC FE C0 4C 12 98 69 04 90 00 [17:20:39]wFMCommunicate OK [17:20:39]SAM_PROTO_SignData done [17:20:39]FM_MakeSignedData done [17:20:39]CreateOFDProtocolMessage [17:20:39]wFMCommunicate request_size=4 [17:20:39]MH_SAM_APDU [17:20:39]CAPDU: 80 11 00 00 [17:20:39]Write to MH i2c: E2 08 00 80 09 80 11 00 00 00 00 00 00 03 [17:20:39]Write i2c OK [17:20:39]MH_I2C_Read... [17:20:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:20:39]Read from MH i2c: E2 [17:20:39]MH_I2C_Read... [17:20:39]Read from MH i2c: E2 17 00 [17:20:39]MH_I2C_Read... [17:20:39]Read from MH i2c: E2 17 00 80 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 59 [17:20:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [17:20:39]wFMCommunicate OK [17:20:39]CreateOFDProtocolMessage done [17:20:39]OFDSenderStorePacket 67845 [17:20:39]StoreOFDPacket docnum=67845 [17:20:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 D9 1B 07 01 31 D4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 84 3A 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E2 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E2 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 67 E3 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 05 09 01 00 35 04 06 00 C4 1A 2C 33 31 BD CC FE C0 4C 12 98 69 04 [17:20:39]CheckFolder [17:20:39]dirname=/storage/ofd_packets [17:20:39]CheckFolder done [17:20:39]ProducePacketName [17:20:39]name=ofd_packets/00067845 [17:20:39]NVStorageSaveData ofd_packets/00067845 [17:20:39]File name is /storage/ofd_packets/00067845 [17:20:39]Write 301 bytes [17:20:39]NVStorageSaveData done [17:20:39]OFDSenderStorePacket done [17:20:39]KKMCreateOFDPacket done [17:20:39]NVStorageSaveData kkm_last_timestamp [17:20:39]File name is /storage/kkm_last_timestamp [17:20:39]Write 4 bytes [17:20:39]NVStorageSaveData done [17:20:39]ExternCall_PrintAddStr [17:20:39]wPrintStart [17:20:39]Write to MH i2c: 01 00 00 81 09 8A [17:20:39]Write i2c OK [17:20:39]MH_I2C_Read... [17:20:39]Read from MH i2c: 01 [17:20:39]MH_I2C_Read... [17:20:39]Read from MH i2c: 01 07 00 [17:20:39]MH_I2C_Read... [17:20:39]Read from MH i2c: 01 07 00 81 09 00 00 00 00 00 FF 0F 9F [17:20:39]RasterBufferAndPrint [17:20:39]line Счет N : (1)508105 [17:20:39]line ИНН: 02508201610067 [17:20:39]line Контрольно-Кассовый Чек [17:20:39]line ПРОДАЖА [17:20:39]line ТРК (МРК, ГНК) : 33 [17:20:39]line Товар: 2710124130 [17:20:39]line Аи-92-К-5 [17:20:39]line 14.980 * 66.80 [17:20:39]line = 1000.66 [17:20:39]line НДС 12% НСП 1% [17:20:39]line > о реализуемом товаре [17:20:39]line ИТОГО: 1000.66 [17:20:39]line НСП 1% : 8.85 [17:20:39]line НДС 12% : 106.26 [17:20:39]line Наличными: 0.00 [17:20:39]line Безнал.: 1000.66 [17:20:39]line Место: АЗС № 91 "Партнер Нефть" [17:20:39]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [17:20:39]line СНО: Общий режим [17:20:39]line Чек 84 18.05.2024 17:20 [17:20:39]line Смена: 359 ФФД: 1.0 [17:20:39]line ЗНМ: 0300000119 [17:20:39]line РНМ: 0000000000091845 [17:20:39]line Версия ККМ: 001 [17:20:39]line Платежная система: O! деньги [17:20:39]line ФМ: 0000000000871829 [17:20:39]line ФД: 67845 [17:20:39]line ФПД: 215616689746365 [17:20:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T172039&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67845&fm=215616689746365&tin=02508201610067®Number=0000000000091845&sum=100066 [17:20:39]OFD Sender: Processing packet 67845 [packets to send 35, broken 34] [17:20:39]ProducePacketName [17:20:39]name=ofd_packets/00067845 [17:20:39]OFD Sender: To server: pG, [17:20:39]CommunicateWithHost lk.salyk.kg:30040 [17:20:39]ConnectInit lk.salyk.kg [17:20:39]written 0, free lines is 4095 [17:20:39]Connected sock=10 [17:20:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 D9 1B 07 01 31 D4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 84 3A 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E2 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E2 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 67 E3 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 05 09 01 00 35 04 06 00 C4 1A 2C 33 31 BD CC FE C0 4C 12 98 69 04 [17:20:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 97 77 47 00 A1 2F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 05 09 01 00 F4 03 04 00 3B 8B 48 66 B6 04 01 00 00 8F 29 54 ED 46 14 6E CC [17:20:40]CommunicateWithHost err = 0 [17:20:40]CheckOFDResponse [17:20:40]1017 (14) - 77093643461234 [17:20:40]1041 (16) - 0000000000871829 [17:20:40]1040 (4) - 67845 [17:20:40]1012 (4) - 18.05.2024 11:04 [17:20:40]1206 (1) - 0 [17:20:40]OFD Sender: Remove packet 67845 [17:20:40]ProducePacketName [17:20:40]name=ofd_packets/00067845 [17:20:40]NVStorageDeleteData [17:20:40]Write to MH i2c: 01 00 00 AA 09 B3 [17:20:40]Write i2c OK [17:20:40]MH_I2C_Read... [17:20:40]Read from MH i2c: 01 [17:20:40]MH_I2C_Read... [17:20:40]Read from MH i2c: 01 07 00 [17:20:40]MH_I2C_Read... [17:20:40]Read from MH i2c: 01 07 00 AA 09 00 00 00 00 00 D7 0C 9D [17:20:40]RasterBufferAndPrint [17:20:40]line [17:20:40]line [17:20:40]line [17:20:40]line [17:20:40]line [17:20:40]written 0, free lines is 3295 [17:20:40]MH_Cut [17:20:40]Write to MH i2c: D1 01 00 B1 09 01 8C [17:20:40]Write i2c OK [17:20:40]MH_I2C_Read... [17:20:40]Read from MH i2c: D1 [17:20:40]MH_I2C_Read... [17:20:40]Read from MH i2c: D1 01 00 [17:20:40]MH_I2C_Read... [17:20:40]Read from MH i2c: D1 01 00 B1 09 00 8B [17:20:40]Write to MH i2c: 01 00 00 B2 09 BB [17:20:40]Write i2c OK [17:20:40]MH_I2C_Read... [17:20:40]OFD Sender: No OFD packet to send [17:20:41]*** Cut start [17:20:41]*** Purtial cut [17:20:41]*** CUTSNS_PIN = 0 [17:20:41]*** Stage 1: CUTSNS_PIN = 1 [17:20:43]Read from MH i2c: 01 [17:20:43]MH_I2C_Read... [17:20:43]*** Stop cut motor [17:20:43]*** Cut end [17:20:43]Read from MH i2c: 01 07 00 [17:20:43]MH_I2C_Read... [17:20:43]Read from MH i2c: 01 07 00 B2 09 00 00 00 00 00 FF 0F D0 [17:20:43]process_action close_receipt done [17:20:43]requested_data is exist [17:20:43]produce_requested_data [17:20:43]requested_item fm.sn is exist - process it [17:20:43]wFMCommunicate request_size=4 [17:20:43]MH_SAM_APDU [17:20:43]CAPDU: 80 11 00 00 [17:20:43]Write to MH i2c: E2 08 00 B3 09 80 11 00 00 00 00 00 00 36 [17:20:43]Write i2c OK [17:20:43]MH_I2C_Read... [17:20:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:20:43]Read from MH i2c: E2 [17:20:43]MH_I2C_Read... [17:20:43]Read from MH i2c: E2 17 00 [17:20:43]MH_I2C_Read... [17:20:43]Read from MH i2c: E2 17 00 B3 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 8C [17:20:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [17:20:43]wFMCommunicate OK [17:20:43]requested_item fd.num is exist - process it [17:20:43]SAM_PROTO_GetFieldsCounters [17:20:43]wFMCommunicate request_size=4 [17:20:43]MH_SAM_APDU [17:20:43]CAPDU: 80 13 00 00 [17:20:43]Write to MH i2c: E2 08 00 B4 09 80 13 00 00 00 00 00 00 39 [17:20:43]Write i2c OK [17:20:43]MH_I2C_Read... [17:20:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:20:43]Read from MH i2c: E2 [17:20:43]MH_I2C_Read... [17:20:43]Read from MH i2c: E2 62 00 [17:20:43]MH_I2C_Read... [17:20:43]Read from MH i2c: E2 62 00 B4 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 05 09 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 55 00 00 00 19 04 04 00 00 00 00 00 90 00 D2 [17:20:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 05 09 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 55 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:20:43]wFMCommunicate OK [17:20:43]SAM_PROTO_GetFieldsCounters done [17:20:43]requested_item shift.num is exist - process it [17:20:43]requested_item shift.opened is exist - process it [17:20:43]req_shift_opened [17:20:43]FM_GetShiftState [17:20:43]SAM_PROTO_GetShiftState [17:20:43]wFMCommunicate request_size=4 [17:20:43]MH_SAM_APDU [17:20:43]CAPDU: 80 13 01 00 [17:20:43]Write to MH i2c: E2 08 00 B5 09 80 13 01 00 00 00 00 00 3B [17:20:43]Write i2c OK [17:20:43]MH_I2C_Read... [17:20:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:20:43]Read from MH i2c: E2 [17:20:43]MH_I2C_Read... [17:20:43]Read from MH i2c: E2 0E 00 [17:20:43]MH_I2C_Read... [17:20:43]Read from MH i2c: E2 0E 00 B5 09 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 A2 [17:20:43]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [17:20:43]wFMCommunicate OK [17:20:43]SAM_PROTO_GetShiftState done [17:20:43]FM_GetShiftState done [17:20:43]req_shift_opened done [17:20:43]requested_item shift.open_date is exist - process it [17:20:43]req_shift_open_date [17:20:43]req_shift_open_date done [17:20:43]produce_requested_data done [17:20:43]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67845,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [17:20:43]process_action_free close_receipt [17:20:43]json_value_free [17:20:43]json_value_free done [17:20:43]process_json_proto returns [17:20:43]Send response to host [17:20:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67845,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [17:20:43]free response buf [17:20:43]execute_script done [17:20:43]execute_script returns [17:20:43]free content buf [17:20:43]Sock 9.Close socket [17:20:43]Sock 9.Thread stoped [17:20:45]OFD Sender: No OFD packet to send [17:20:50]OFD Sender: No OFD packet to send [17:20:55]OFD Sender: No OFD packet to send [17:21:00]OFD Sender: No OFD packet to send [17:21:05]OFD Sender: No OFD packet to send [17:21:10]OFD Sender: No OFD packet to send [17:21:15]OFD Sender: No OFD packet to send [17:21:20]OFD Sender: No OFD packet to send [17:21:25]OFD Sender: No OFD packet to send [17:21:30]OFD Sender: No OFD packet to send [17:21:35]OFD Sender: No OFD packet to send [17:21:40]OFD Sender: No OFD packet to send [17:21:45]OFD Sender: No OFD packet to send [17:21:50]OFD Sender: No OFD packet to send [17:21:55]OFD Sender: No OFD packet to send [17:22:00]OFD Sender: No OFD packet to send [17:22:05]OFD Sender: No OFD packet to send [17:22:10]OFD Sender: No OFD packet to send [17:22:15]OFD Sender: No OFD packet to send [17:22:20]OFD Sender: No OFD packet to send [17:22:25]OFD Sender: No OFD packet to send [17:22:30]OFD Sender: No OFD packet to send [17:22:35]OFD Sender: No OFD packet to send [17:22:40]OFD Sender: No OFD packet to send [17:22:45]OFD Sender: No OFD packet to send [17:22:50]OFD Sender: No OFD packet to send [17:22:55]OFD Sender: No OFD packet to send [17:23:00]OFD Sender: No OFD packet to send [17:23:05]OFD Sender: No OFD packet to send [17:23:10]OFD Sender: No OFD packet to send [17:23:15]OFD Sender: No OFD packet to send [17:23:20]OFD Sender: No OFD packet to send [17:23:25]OFD Sender: No OFD packet to send [17:23:30]OFD Sender: No OFD packet to send [17:23:35]OFD Sender: No OFD packet to send [17:23:40]OFD Sender: No OFD packet to send [17:23:45]OFD Sender: No OFD packet to send [17:23:50]OFD Sender: No OFD packet to send [17:23:55]OFD Sender: No OFD packet to send [17:24:00]OFD Sender: No OFD packet to send [17:24:05]OFD Sender: No OFD packet to send [17:24:10]OFD Sender: No OFD packet to send [17:24:15]OFD Sender: No OFD packet to send [17:24:20]OFD Sender: No OFD packet to send [17:24:25]OFD Sender: No OFD packet to send [17:24:30]OFD Sender: No OFD packet to send [17:24:35]OFD Sender: No OFD packet to send [17:24:40]OFD Sender: No OFD packet to send [17:24:45]OFD Sender: No OFD packet to send [17:24:50]OFD Sender: No OFD packet to send [17:24:55]OFD Sender: No OFD packet to send [17:25:00]OFD Sender: No OFD packet to send [17:25:05]OFD Sender: No OFD packet to send [17:25:10]OFD Sender: No OFD packet to send [17:25:15]OFD Sender: No OFD packet to send [17:25:20]OFD Sender: No OFD packet to send [17:25:25]OFD Sender: No OFD packet to send [17:25:30]OFD Sender: No OFD packet to send [17:25:35]OFD Sender: No OFD packet to send [17:25:40]OFD Sender: No OFD packet to send [17:25:45]OFD Sender: No OFD packet to send [17:25:50]OFD Sender: No OFD packet to send [17:25:55]OFD Sender: No OFD packet to send [17:26:00]OFD Sender: No OFD packet to send [17:26:05]OFD Sender: No OFD packet to send [17:26:10]OFD Sender: No OFD packet to send [17:26:15]OFD Sender: No OFD packet to send [17:26:20]OFD Sender: No OFD packet to send [17:26:25]OFD Sender: No OFD packet to send [17:26:30]OFD Sender: No OFD packet to send [17:26:35]OFD Sender: No OFD packet to send [17:26:40]OFD Sender: No OFD packet to send [17:26:45]OFD Sender: No OFD packet to send [17:26:50]OFD Sender: No OFD packet to send [17:26:55]OFD Sender: No OFD packet to send [17:27:00]OFD Sender: No OFD packet to send [17:27:05]OFD Sender: No OFD packet to send [17:27:10]OFD Sender: No OFD packet to send [17:27:15]accept exits with 7 [17:27:15]New connection [17:27:15]New thread 3067202916 created [17:27:15]Thread 3067059556 joined [17:27:15]Waiting for new connection... [17:27:15] Sock 7.Parse request [17:27:15]Sock 7.Check first char [17:27:15]Sock 7.First char is OK [17:27:15]request: POST /json_proto HTTP/1.0 [17:27:15]Method: POST [17:27:15]URL: /json_proto [17:27:15]Method is POST - this is cgi request [17:27:15]url: /json_proto [17:27:15]query_string will be loaded in cgi processing [17:27:15]execute_cgi json_proto POST (null) [17:27:15]execute_cgi path=json_proto method=POST [17:27:15]POST find Content-Length [17:27:15]Host: 172.17.41.195:8080 [17:27:15]Content-Length: 797 [17:27:15]Content-Type: application/json [17:27:15] [17:27:15]POST finish read [17:27:15]Found Content-Length = 797 [17:27:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)508106", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 6.700, "sum" : 500.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.49 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:27:15]execute_script... [17:27:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)508106", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 6.700, "sum" : 500.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.49 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:27:15]POST & json_proto [17:27:15]process_json_proto [17:27:15]json parsed OK: [17:27:15]protocol is kg_v1.0 [17:27:15]action value=close_receipt [17:27:15]process_action close_receipt [17:27:15]cmd_close_receipt [17:27:15]MH_GetDate [17:27:15]Write to MH i2c: F0 00 00 B6 09 AE [17:27:15]Write i2c OK [17:27:15]MH_I2C_Read... [17:27:15]Read from MH i2c: F0 [17:27:15]MH_I2C_Read... [17:27:15]Read from MH i2c: F0 09 00 [17:27:15]MH_I2C_Read... [17:27:15]Read from MH i2c: F0 09 00 B6 09 00 F5 E4 48 66 FC 21 6F 64 2E [17:27:15]GetLastDocTimeStamp 1716052839 [17:27:15]current date 1716053237 [17:27:15]FM_GetShiftState [17:27:15]SAM_PROTO_GetShiftState [17:27:15]wFMCommunicate request_size=4 [17:27:15]MH_SAM_APDU [17:27:15]CAPDU: 80 13 01 00 [17:27:15]Write to MH i2c: E2 08 00 B7 09 80 13 01 00 00 00 00 00 3D [17:27:15]Write i2c OK [17:27:15]MH_I2C_Read... [17:27:15]OFD Sender: No OFD packet to send [17:27:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:27:15]Read from MH i2c: E2 [17:27:15]MH_I2C_Read... [17:27:15]Read from MH i2c: E2 0E 00 [17:27:15]MH_I2C_Read... [17:27:15]Read from MH i2c: E2 0E 00 B7 09 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 A4 [17:27:15]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [17:27:15]wFMCommunicate OK [17:27:15]SAM_PROTO_GetShiftState done [17:27:15]FM_GetShiftState done [17:27:15]opened in 1715991483 [17:27:15]opened+sec_in_day 1716077883 [17:27:15]quantity*price = 50049 [17:27:15]sum+1 = 50050 [17:27:15]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.49 НСП 1% : 4.43 НДС 12% : 53.15 Наличными: 0.00 Безнал.: 500.49 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 85 18.05.2024 17:27 Смена: 359 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67846 ФПД: 28585445702438 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T172717&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67846&fm=28585445702438&tin=02508201610067®Number=0000000000091845&sum=50049 [17:27:17]StoreToDocumentArchive [17:27:17]shift 359 fd 67846 [17:27:17]save to /storage/0359/doc_00067846 [17:27:17]save last doc name /storage/0359/doc_00067846 to /storage/kkm_last_doc_name [17:27:17]save OK [17:27:17]Clear old archive folders... [17:27:17]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:27:17]tlvbuf is 009F3520 [17:27:17]SAM_PROTO_ClearQueue [17:27:17]wFMCommunicate request_size=4 [17:27:17]MH_SAM_APDU [17:27:17]CAPDU: 80 09 00 00 [17:27:17]Write to MH i2c: E2 08 00 C4 09 80 09 00 00 00 00 00 00 3F [17:27:17]Write i2c OK [17:27:17]MH_I2C_Read... [17:27:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:27:17]Read from MH i2c: E2 [17:27:17]MH_I2C_Read... [17:27:17]Read from MH i2c: E2 03 00 [17:27:17]MH_I2C_Read... [17:27:17]Read from MH i2c: E2 03 00 C4 09 00 90 00 41 [17:27:17]RAPDU: 90 00 [17:27:17]wFMCommunicate OK [17:27:17]SAM_PROTO_ClearQueue done [17:27:17]KKMCreateOFDPacket [17:27:17]OFDProtocolAddRootSTLVToBuf [17:27:17]FM_MakeSignedData [17:27:17]FM_MakeSignedData [17:27:17]SAM_PROTO_SignData [17:27:17]wFMCommunicate request_size=4 [17:27:17]MH_SAM_APDU [17:27:17]CAPDU: 80 0D 01 02 [17:27:17]Write to MH i2c: E2 08 00 C5 09 80 0D 01 02 00 00 00 00 47 [17:27:17]Write i2c OK [17:27:17]MH_I2C_Read... [17:27:17]Read from MH i2c: E2 [17:27:17]MH_I2C_Read... [17:27:17]Read from MH i2c: E2 03 00 [17:27:17]MH_I2C_Read... [17:27:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:27:17]Read from MH i2c: E2 03 00 C5 09 00 90 00 42 [17:27:17]RAPDU: 90 00 [17:27:17]wFMCommunicate OK [17:27:17]wFMCommunicate request_size=255 [17:27:17]MH_SAM_APDU [17:27:17]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2C 1A 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 81 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 81 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 F5 E4 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 06 09 01 00 35 04 06 00 19 FF 91 56 [17:27:17]Write to MH i2c: E2 02 01 C6 09 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2C 1A 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 81 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 81 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 F5 E4 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 06 09 01 00 35 04 06 00 19 FF 91 56 00 00 EC [17:27:17]Write i2c OK [17:27:17]MH_I2C_Read... [17:27:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:27:17]Read from MH i2c: E2 [17:27:17]MH_I2C_Read... [17:27:17]Read from MH i2c: E2 03 00 [17:27:17]MH_I2C_Read... [17:27:17]Read from MH i2c: E2 03 00 C6 09 00 90 00 43 [17:27:17]RAPDU: 90 00 [17:27:17]wFMCommunicate OK [17:27:17]wFMCommunicate request_size=7 [17:27:17]MH_SAM_APDU [17:27:17]CAPDU: 80 0D 02 02 02 3B 26 [17:27:17]Write to MH i2c: E2 0A 00 C7 09 80 0D 02 02 02 00 3B 26 00 00 AF [17:27:17]Write i2c OK [17:27:17]MH_I2C_Read... [17:27:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:27:17]Read from MH i2c: E2 [17:27:17]MH_I2C_Read... [17:27:17]Read from MH i2c: E2 03 00 [17:27:17]MH_I2C_Read... [17:27:17]Read from MH i2c: E2 03 00 C7 09 00 90 00 44 [17:27:17]RAPDU: 90 00 [17:27:17]wFMCommunicate OK [17:27:17]wFMCommunicate request_size=4 [17:27:17]MH_SAM_APDU [17:27:17]CAPDU: 80 0D 03 02 [17:27:17]Write to MH i2c: E2 08 00 C8 09 80 0D 03 02 00 00 00 00 4C [17:27:17]Write i2c OK [17:27:17]MH_I2C_Read... [17:27:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:27:17]Read from MH i2c: E2 [17:27:17]MH_I2C_Read... [17:27:17]Read from MH i2c: E2 0B 00 [17:27:17]MH_I2C_Read... [17:27:17]Read from MH i2c: E2 0B 00 C8 09 00 00 54 D6 34 99 A8 69 B4 90 00 09 [17:27:17]RAPDU: 00 54 D6 34 99 A8 69 B4 90 00 [17:27:17]wFMCommunicate OK [17:27:17]SAM_PROTO_SignData done [17:27:17]FM_MakeSignedData done [17:27:17]CreateOFDProtocolMessage [17:27:17]wFMCommunicate request_size=4 [17:27:17]MH_SAM_APDU [17:27:17]CAPDU: 80 11 00 00 [17:27:17]Write to MH i2c: E2 08 00 C9 09 80 11 00 00 00 00 00 00 4C [17:27:17]Write i2c OK [17:27:17]MH_I2C_Read... [17:27:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:27:17]Read from MH i2c: E2 [17:27:17]MH_I2C_Read... [17:27:17]Read from MH i2c: E2 17 00 [17:27:17]MH_I2C_Read... [17:27:17]Read from MH i2c: E2 17 00 C9 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 A2 [17:27:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [17:27:17]wFMCommunicate OK [17:27:17]CreateOFDProtocolMessage done [17:27:17]OFDSenderStorePacket 67846 [17:27:17]StoreOFDPacket docnum=67846 [17:27:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 B1 83 04 01 DC 10 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2C 1A 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 81 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 81 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 F5 E4 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 06 09 01 00 35 04 06 00 19 FF 91 56 3B 26 00 54 D6 34 99 A8 69 B4 [17:27:17]CheckFolder [17:27:17]dirname=/storage/ofd_packets [17:27:17]CheckFolder done [17:27:17]ProducePacketName [17:27:17]name=ofd_packets/00067846 [17:27:17]NVStorageSaveData ofd_packets/00067846 [17:27:17]File name is /storage/ofd_packets/00067846 [17:27:17]Write 298 bytes [17:27:17]NVStorageSaveData done [17:27:17]OFDSenderStorePacket done [17:27:17]KKMCreateOFDPacket done [17:27:17]NVStorageSaveData kkm_last_timestamp [17:27:17]File name is /storage/kkm_last_timestamp [17:27:17]Write 4 bytes [17:27:17]NVStorageSaveData done [17:27:17]ExternCall_PrintAddStr [17:27:17]wPrintStart [17:27:17]Write to MH i2c: 01 00 00 CA 09 D3 [17:27:17]Write i2c OK [17:27:17]MH_I2C_Read... [17:27:17]Read from MH i2c: 01 [17:27:17]MH_I2C_Read... [17:27:17]Read from MH i2c: 01 07 00 [17:27:17]MH_I2C_Read... [17:27:17]Read from MH i2c: 01 07 00 CA 09 00 00 00 00 00 FF 0F E8 [17:27:17]RasterBufferAndPrint [17:27:17]line Счет N : (1)508106 [17:27:17]line ИНН: 02508201610067 [17:27:17]line Контрольно-Кассовый Чек [17:27:17]line ПРОДАЖА [17:27:17]line ТРК (МРК, ГНК) : 41 [17:27:17]line Товар: 2710194210 [17:27:17]line ДТ-К-5 [17:27:17]line 6.700 * 74.70 [17:27:17]line = 500.49 [17:27:17]line НДС 12% НСП 1% [17:27:17]line > о реализуемом товаре [17:27:17]line ИТОГО: 500.49 [17:27:17]line НСП 1% : 4.43 [17:27:17]line НДС 12% : 53.15 [17:27:17]line Наличными: 0.00 [17:27:17]line Безнал.: 500.49 [17:27:17]line Место: АЗС № 91 "Партнер Нефть" [17:27:17]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [17:27:17]line СНО: Общий режим [17:27:17]line Чек 85 18.05.2024 17:27 [17:27:17]line Смена: 359 ФФД: 1.0 [17:27:17]line ЗНМ: 0300000119 [17:27:17]line РНМ: 0000000000091845 [17:27:17]line Версия ККМ: 001 [17:27:17]line Платежная система: O! деньги [17:27:17]line ФМ: 0000000000871829 [17:27:17]line ФД: 67846 [17:27:17]line ФПД: 28585445702438 [17:27:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T172717&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67846&fm=28585445702438&tin=02508201610067®Number=0000000000091845&sum=50049 [17:27:17]OFD Sender: Processing packet 67846 [packets to send 35, broken 34] [17:27:17]ProducePacketName [17:27:17]name=ofd_packets/00067846 [17:27:17]OFD Sender: To server: pG, [17:27:17]CommunicateWithHost lk.salyk.kg:30040 [17:27:17]ConnectInit lk.salyk.kg [17:27:17]written 0, free lines is 4095 [17:27:17]Connected sock=10 [17:27:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 B1 83 04 01 DC 10 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2C 1A 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 81 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 81 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 F5 E4 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 06 09 01 00 35 04 06 00 19 FF 91 56 3B 26 00 54 D6 34 99 A8 69 B4 [17:27:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 EB 5D 47 00 87 F9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 06 09 01 00 F4 03 04 00 CA 8C 48 66 B6 04 01 00 00 D4 EF 60 00 C6 F5 E9 1F [17:27:18]CommunicateWithHost err = 0 [17:27:18]CheckOFDResponse [17:27:18]1017 (14) - 77093643461234 [17:27:18]1041 (16) - 0000000000871829 [17:27:18]1040 (4) - 67846 [17:27:18]1012 (4) - 18.05.2024 11:11 [17:27:18]1206 (1) - 0 [17:27:18]OFD Sender: Remove packet 67846 [17:27:18]ProducePacketName [17:27:18]name=ofd_packets/00067846 [17:27:18]NVStorageDeleteData [17:27:18]Write to MH i2c: 01 00 00 F3 09 FC [17:27:18]Write i2c OK [17:27:18]MH_I2C_Read... [17:27:18]Read from MH i2c: 01 [17:27:18]MH_I2C_Read... [17:27:18]Read from MH i2c: 01 07 00 [17:27:18]MH_I2C_Read... [17:27:18]Read from MH i2c: 01 07 00 F3 09 00 00 00 00 00 D7 0C E6 [17:27:18]RasterBufferAndPrint [17:27:18]line [17:27:18]line [17:27:18]line [17:27:18]line [17:27:18]line [17:27:18]written 0, free lines is 3292 [17:27:18]MH_Cut [17:27:18]Write to MH i2c: D1 01 00 FA 09 01 D5 [17:27:18]Write i2c OK [17:27:18]MH_I2C_Read... [17:27:18]Read from MH i2c: D1 [17:27:18]MH_I2C_Read... [17:27:18]Read from MH i2c: D1 01 00 [17:27:18]MH_I2C_Read... [17:27:18]Read from MH i2c: D1 01 00 FA 09 00 D4 [17:27:18]Write to MH i2c: 01 00 00 FB 09 04 [17:27:18]Write i2c OK [17:27:18]MH_I2C_Read... [17:27:18]OFD Sender: No OFD packet to send [17:27:19]*** Cut start [17:27:19]*** Purtial cut [17:27:19]*** Stage 1: CUTSNS_PIN = 1 [17:27:19]Read from MH i2c: 01 [17:27:19]MH_I2C_Read... [17:27:19]*** Stop cut motor [17:27:19]*** Cut end [17:27:19]Read from MH i2c: 01 07 00 [17:27:19]MH_I2C_Read... [17:27:19]Read from MH i2c: 01 07 00 FB 09 00 00 00 00 00 FF 0F 19 [17:27:19]process_action close_receipt done [17:27:19]requested_data is exist [17:27:19]produce_requested_data [17:27:19]requested_item fm.sn is exist - process it [17:27:19]wFMCommunicate request_size=4 [17:27:19]MH_SAM_APDU [17:27:19]CAPDU: 80 11 00 00 [17:27:19]Write to MH i2c: E2 08 00 FC 09 80 11 00 00 00 00 00 00 7F [17:27:19]Write i2c OK [17:27:19]MH_I2C_Read... [17:27:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:27:19]Read from MH i2c: E2 [17:27:19]MH_I2C_Read... [17:27:19]Read from MH i2c: E2 17 00 [17:27:19]MH_I2C_Read... [17:27:19]Read from MH i2c: E2 17 00 FC 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 D5 [17:27:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [17:27:19]wFMCommunicate OK [17:27:19]requested_item fd.num is exist - process it [17:27:19]SAM_PROTO_GetFieldsCounters [17:27:19]wFMCommunicate request_size=4 [17:27:19]MH_SAM_APDU [17:27:19]CAPDU: 80 13 00 00 [17:27:19]Write to MH i2c: E2 08 00 FD 09 80 13 00 00 00 00 00 00 82 [17:27:19]Write i2c OK [17:27:19]MH_I2C_Read... [17:27:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:27:19]Read from MH i2c: E2 [17:27:19]MH_I2C_Read... [17:27:19]Read from MH i2c: E2 62 00 [17:27:19]MH_I2C_Read... [17:27:19]Read from MH i2c: E2 62 00 FD 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 06 09 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 55 00 00 00 5E 04 04 00 55 00 00 00 57 04 04 00 56 00 00 00 19 04 04 00 00 00 00 00 90 00 1F [17:27:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 06 09 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 55 00 00 00 5E 04 04 00 55 00 00 00 57 04 04 00 56 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:27:19]wFMCommunicate OK [17:27:19]SAM_PROTO_GetFieldsCounters done [17:27:19]requested_item shift.num is exist - process it [17:27:19]requested_item shift.opened is exist - process it [17:27:19]req_shift_opened [17:27:19]FM_GetShiftState [17:27:19]SAM_PROTO_GetShiftState [17:27:19]wFMCommunicate request_size=4 [17:27:19]MH_SAM_APDU [17:27:19]CAPDU: 80 13 01 00 [17:27:19]Write to MH i2c: E2 08 00 FE 09 80 13 01 00 00 00 00 00 84 [17:27:19]Write i2c OK [17:27:19]MH_I2C_Read... [17:27:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:27:19]Read from MH i2c: E2 [17:27:19]MH_I2C_Read... [17:27:19]Read from MH i2c: E2 0E 00 [17:27:19]MH_I2C_Read... [17:27:19]Read from MH i2c: E2 0E 00 FE 09 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 EB [17:27:19]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [17:27:19]wFMCommunicate OK [17:27:19]SAM_PROTO_GetShiftState done [17:27:19]FM_GetShiftState done [17:27:19]req_shift_opened done [17:27:19]requested_item shift.open_date is exist - process it [17:27:19]req_shift_open_date [17:27:19]req_shift_open_date done [17:27:19]produce_requested_data done [17:27:19]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67846,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [17:27:19]process_action_free close_receipt [17:27:19]json_value_free [17:27:19]json_value_free done [17:27:19]process_json_proto returns [17:27:19]Send response to host [17:27:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67846,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [17:27:19]free response buf [17:27:19]execute_script done [17:27:19]execute_script returns [17:27:19]free content buf [17:27:19]Sock 7.Close socket [17:27:19]Sock 7.Thread stoped [17:27:23]OFD Sender: No OFD packet to send [17:27:28]OFD Sender: No OFD packet to send [17:27:33]OFD Sender: No OFD packet to send [17:27:38]OFD Sender: No OFD packet to send [17:27:43]OFD Sender: No OFD packet to send [17:27:48]OFD Sender: No OFD packet to send [17:27:53]OFD Sender: No OFD packet to send [17:27:56]accept exits with 9 [17:27:56]New connection [17:27:56]New thread 3067059556 created [17:27:56]Thread 3067202916 joined [17:27:56]Waiting for new connection... [17:27:56] Sock 9.Parse request [17:27:56]Sock 9.Check first char [17:27:56]Sock 9.First char is OK [17:27:56]request: POST /json_proto HTTP/1.0 [17:27:56]Method: POST [17:27:56]URL: /json_proto [17:27:56]Method is POST - this is cgi request [17:27:56]url: /json_proto [17:27:56]query_string will be loaded in cgi processing [17:27:56]execute_cgi json_proto POST (null) [17:27:56]execute_cgi path=json_proto method=POST [17:27:56]POST find Content-Length [17:27:56]Host: 172.17.41.195:8080 [17:27:56]Content-Length: 800 [17:27:56]Content-Type: application/json [17:27:56] [17:27:56]POST finish read [17:27:56]Found Content-Length = 800 [17:27:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)508107", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 15.000, "sum" : 1120.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1120.50 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:27:56]execute_script... [17:27:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)508107", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 15.000, "sum" : 1120.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1120.50 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:27:56]POST & json_proto [17:27:56]process_json_proto [17:27:56]json parsed OK: [17:27:56]protocol is kg_v1.0 [17:27:56]action value=close_receipt [17:27:56]process_action close_receipt [17:27:56]cmd_close_receipt [17:27:56]MH_GetDate [17:27:56]Write to MH i2c: F0 00 00 FF 09 F7 [17:27:56]Write i2c OK [17:27:56]MH_I2C_Read... [17:27:56]Read from MH i2c: F0 [17:27:56]MH_I2C_Read... [17:27:56]Read from MH i2c: F0 09 00 [17:27:56]MH_I2C_Read... [17:27:56]Read from MH i2c: F0 09 00 FF 09 00 1D E5 48 66 FC 21 6F 64 A0 [17:27:56]GetLastDocTimeStamp 1716053237 [17:27:56]current date 1716053277 [17:27:56]FM_GetShiftState [17:27:56]SAM_PROTO_GetShiftState [17:27:56]wFMCommunicate request_size=4 [17:27:56]MH_SAM_APDU [17:27:56]CAPDU: 80 13 01 00 [17:27:56]Write to MH i2c: E2 08 00 00 0A 80 13 01 00 00 00 00 00 87 [17:27:56]Write i2c OK [17:27:56]MH_I2C_Read... [17:27:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:27:56]Read from MH i2c: E2 [17:27:56]MH_I2C_Read... [17:27:56]Read from MH i2c: E2 0E 00 [17:27:56]MH_I2C_Read... [17:27:56]Read from MH i2c: E2 0E 00 00 0A 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 EE [17:27:56]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [17:27:56]wFMCommunicate OK [17:27:56]SAM_PROTO_GetShiftState done [17:27:56]FM_GetShiftState done [17:27:56]opened in 1715991483 [17:27:56]opened+sec_in_day 1716077883 [17:27:56]quantity*price = 112050 [17:27:56]sum+1 = 112051 [17:27:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1120.50 НСП 1% : 9.92 НДС 12% : 118.99 Наличными: 0.00 Безнал.: 1120.50 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 86 18.05.2024 17:27 Смена: 359 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67847 ФПД: 72921444177623 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T172757&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67847&fm=72921444177623&tin=02508201610067®Number=0000000000091845&sum=112050 [17:27:57]StoreToDocumentArchive [17:27:57]shift 359 fd 67847 [17:27:57]save to /storage/0359/doc_00067847 [17:27:57]save last doc name /storage/0359/doc_00067847 to /storage/kkm_last_doc_name [17:27:57]save OK [17:27:57]Clear old archive folders... [17:27:57]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:27:57]tlvbuf is 009F3130 [17:27:57]SAM_PROTO_ClearQueue [17:27:57]wFMCommunicate request_size=4 [17:27:57]MH_SAM_APDU [17:27:57]CAPDU: 80 09 00 00 [17:27:57]Write to MH i2c: E2 08 00 0D 0A 80 09 00 00 00 00 00 00 89 [17:27:57]Write i2c OK [17:27:57]MH_I2C_Read... [17:27:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:27:57]Read from MH i2c: E2 [17:27:57]MH_I2C_Read... [17:27:57]Read from MH i2c: E2 03 00 [17:27:57]MH_I2C_Read... [17:27:57]Read from MH i2c: E2 03 00 0D 0A 00 90 00 8B [17:27:57]RAPDU: 90 00 [17:27:57]wFMCommunicate OK [17:27:57]SAM_PROTO_ClearQueue done [17:27:57]KKMCreateOFDPacket [17:27:57]OFDProtocolAddRootSTLVToBuf [17:27:57]FM_MakeSignedData [17:27:57]FM_MakeSignedData [17:27:57]SAM_PROTO_SignData [17:27:57]wFMCommunicate request_size=4 [17:27:57]MH_SAM_APDU [17:27:57]CAPDU: 80 0D 01 02 [17:27:57]Write to MH i2c: E2 08 00 0E 0A 80 0D 01 02 00 00 00 00 91 [17:27:57]Write i2c OK [17:27:57]MH_I2C_Read... [17:27:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:27:57]Read from MH i2c: E2 [17:27:57]MH_I2C_Read... [17:27:57]Read from MH i2c: E2 03 00 [17:27:57]MH_I2C_Read... [17:27:57]Read from MH i2c: E2 03 00 0E 0A 00 90 00 8C [17:27:57]RAPDU: 90 00 [17:27:57]wFMCommunicate OK [17:27:57]wFMCommunicate request_size=255 [17:27:57]MH_SAM_APDU [17:27:57]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 B2 B5 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B2 B5 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E0 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 2E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B2 B5 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 1D E5 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 07 09 01 00 35 04 06 00 42 52 58 C6 [17:27:57]Write to MH i2c: E2 02 01 0F 0A 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 B2 B5 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B2 B5 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E0 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 2E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B2 B5 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 1D E5 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 07 09 01 00 35 04 06 00 42 52 58 C6 00 00 05 [17:27:57]Write i2c OK [17:27:57]MH_I2C_Read... [17:27:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:27:57]Read from MH i2c: E2 [17:27:57]MH_I2C_Read... [17:27:57]Read from MH i2c: E2 03 00 [17:27:57]MH_I2C_Read... [17:27:57]Read from MH i2c: E2 03 00 0F 0A 00 90 00 8D [17:27:57]RAPDU: 90 00 [17:27:57]wFMCommunicate OK [17:27:57]wFMCommunicate request_size=7 [17:27:57]MH_SAM_APDU [17:27:57]CAPDU: 80 0D 02 02 02 D6 D7 [17:27:57]Write to MH i2c: E2 0A 00 10 0A 80 0D 02 02 02 00 D6 D7 00 00 45 [17:27:57]Write i2c OK [17:27:57]MH_I2C_Read... [17:27:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:27:57]Read from MH i2c: E2 [17:27:57]MH_I2C_Read... [17:27:57]Read from MH i2c: E2 03 00 [17:27:57]MH_I2C_Read... [17:27:57]Read from MH i2c: E2 03 00 10 0A 00 90 00 8E [17:27:57]RAPDU: 90 00 [17:27:57]wFMCommunicate OK [17:27:57]wFMCommunicate request_size=4 [17:27:57]MH_SAM_APDU [17:27:57]CAPDU: 80 0D 03 02 [17:27:57]Write to MH i2c: E2 08 00 11 0A 80 0D 03 02 00 00 00 00 96 [17:27:57]Write i2c OK [17:27:57]MH_I2C_Read... [17:27:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:27:57]Read from MH i2c: E2 [17:27:57]MH_I2C_Read... [17:27:57]Read from MH i2c: E2 0B 00 [17:27:57]MH_I2C_Read... [17:27:57]Read from MH i2c: E2 0B 00 11 0A 00 5A 03 AB F7 85 7E F5 13 90 00 A1 [17:27:57]RAPDU: 5A 03 AB F7 85 7E F5 13 90 00 [17:27:57]wFMCommunicate OK [17:27:57]SAM_PROTO_SignData done [17:27:57]FM_MakeSignedData done [17:27:57]CreateOFDProtocolMessage [17:27:57]wFMCommunicate request_size=4 [17:27:57]MH_SAM_APDU [17:27:57]CAPDU: 80 11 00 00 [17:27:57]Write to MH i2c: E2 08 00 12 0A 80 11 00 00 00 00 00 00 96 [17:27:57]Write i2c OK [17:27:57]MH_I2C_Read... [17:27:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:27:57]Read from MH i2c: E2 [17:27:57]MH_I2C_Read... [17:27:57]Read from MH i2c: E2 17 00 [17:27:57]MH_I2C_Read... [17:27:57]Read from MH i2c: E2 17 00 12 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 EC [17:27:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [17:27:57]wFMCommunicate OK [17:27:57]CreateOFDProtocolMessage done [17:27:57]OFDSenderStorePacket 67847 [17:27:57]StoreOFDPacket docnum=67847 [17:27:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 69 DF 04 01 21 44 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 B2 B5 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B2 B5 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E0 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 2E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B2 B5 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 1D E5 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 07 09 01 00 35 04 06 00 42 52 58 C6 D6 D7 5A 03 AB F7 85 7E F5 13 [17:27:57]CheckFolder [17:27:57]dirname=/storage/ofd_packets [17:27:57]CheckFolder done [17:27:57]ProducePacketName [17:27:57]name=ofd_packets/00067847 [17:27:57]NVStorageSaveData ofd_packets/00067847 [17:27:57]File name is /storage/ofd_packets/00067847 [17:27:57]Write 298 bytes [17:27:57]NVStorageSaveData done [17:27:57]OFDSenderStorePacket done [17:27:57]KKMCreateOFDPacket done [17:27:57]NVStorageSaveData kkm_last_timestamp [17:27:57]File name is /storage/kkm_last_timestamp [17:27:57]Write 4 bytes [17:27:57]NVStorageSaveData done [17:27:57]ExternCall_PrintAddStr [17:27:57]wPrintStart [17:27:57]Write to MH i2c: 01 00 00 13 0A 1D [17:27:57]Write i2c OK [17:27:57]MH_I2C_Read... [17:27:57]Read from MH i2c: 01 [17:27:57]MH_I2C_Read... [17:27:57]Read from MH i2c: 01 07 00 [17:27:57]MH_I2C_Read... [17:27:57]Read from MH i2c: 01 07 00 13 0A 00 00 00 00 00 FF 0F 32 [17:27:57]RasterBufferAndPrint [17:27:57]line Счет N : (1)508107 [17:27:57]line ИНН: 02508201610067 [17:27:57]line Контрольно-Кассовый Чек [17:27:57]line ПРОДАЖА [17:27:57]line ТРК (МРК, ГНК) : 11 [17:27:57]line Товар: 2710194210 [17:27:57]line ДТ-К-5 [17:27:57]line 15.000 * 74.70 [17:27:57]line = 1120.50 [17:27:57]line НДС 12% НСП 1% [17:27:57]line > о реализуемом товаре [17:27:57]line ИТОГО: 1120.50 [17:27:57]line НСП 1% : 9.92 [17:27:57]line НДС 12% : 118.99 [17:27:57]line Наличными: 0.00 [17:27:57]line Безнал.: 1120.50 [17:27:57]line Место: АЗС № 91 "Партнер Нефть" [17:27:57]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [17:27:57]line СНО: Общий режим [17:27:57]line Чек 86 18.05.2024 17:27 [17:27:57]line Смена: 359 ФФД: 1.0 [17:27:57]line ЗНМ: 0300000119 [17:27:57]line РНМ: 0000000000091845 [17:27:57]line Версия ККМ: 001 [17:27:57]line Платежная система: O! деньги [17:27:57]line ФМ: 0000000000871829 [17:27:57]line ФД: 67847 [17:27:57]line ФПД: 72921444177623 [17:27:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T172757&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67847&fm=72921444177623&tin=02508201610067®Number=0000000000091845&sum=112050 [17:27:58]OFD Sender: Processing packet 67847 [packets to send 35, broken 34] [17:27:58]ProducePacketName [17:27:58]name=ofd_packets/00067847 [17:27:58]OFD Sender: To server: pG, [17:27:58]CommunicateWithHost lk.salyk.kg:30040 [17:27:58]ConnectInit lk.salyk.kg [17:27:58]written 0, free lines is 4095 [17:27:58]Connected sock=10 [17:27:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 69 DF 04 01 21 44 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 B2 B5 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B2 B5 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E0 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 2E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B2 B5 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 1D E5 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 07 09 01 00 35 04 06 00 42 52 58 C6 D6 D7 5A 03 AB F7 85 7E F5 13 [17:27:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 81 86 47 00 B2 A6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 07 09 01 00 F4 03 04 00 F2 8C 48 66 B6 04 01 00 00 07 52 83 4B AD 4F 88 AF [17:27:58]CommunicateWithHost err = 0 [17:27:58]CheckOFDResponse [17:27:58]1017 (14) - 77093643461234 [17:27:58]1041 (16) - 0000000000871829 [17:27:58]1040 (4) - 67847 [17:27:58]1012 (4) - 18.05.2024 11:11 [17:27:58]1206 (1) - 0 [17:27:58]OFD Sender: Remove packet 67847 [17:27:58]ProducePacketName [17:27:58]name=ofd_packets/00067847 [17:27:58]NVStorageDeleteData [17:27:58]Write to MH i2c: 01 00 00 3C 0A 46 [17:27:58]Write i2c OK [17:27:58]MH_I2C_Read... [17:27:58]Read from MH i2c: 01 [17:27:58]MH_I2C_Read... [17:27:58]Read from MH i2c: 01 07 00 [17:27:58]MH_I2C_Read... [17:27:58]Read from MH i2c: 01 07 00 3C 0A 00 00 00 00 00 CB 0C 24 [17:27:58]RasterBufferAndPrint [17:27:58]line [17:27:58]line [17:27:58]line [17:27:58]line [17:27:58]line [17:27:58]written 0, free lines is 3280 [17:27:58]MH_Cut [17:27:58]Write to MH i2c: D1 01 00 43 0A 01 1F [17:27:58]Write i2c OK [17:27:58]MH_I2C_Read... [17:27:58]Read from MH i2c: D1 [17:27:58]MH_I2C_Read... [17:27:58]Read from MH i2c: D1 01 00 [17:27:58]MH_I2C_Read... [17:27:58]Read from MH i2c: D1 01 00 43 0A 00 1E [17:27:58]Write to MH i2c: 01 00 00 44 0A 4E [17:27:58]Write i2c OK [17:27:58]MH_I2C_Read... [17:27:58]OFD Sender: No OFD packet to send [17:27:59]*** Cut start [17:27:59]*** Purtial cut [17:27:59]*** Stage 1: CUTSNS_PIN = 1 [17:27:59]Read from MH i2c: 01 [17:27:59]MH_I2C_Read... [17:27:59]*** Stop cut motor [17:27:59]*** Cut end [17:27:59]Read from MH i2c: 01 07 00 [17:27:59]MH_I2C_Read... [17:27:59]Read from MH i2c: 01 07 00 44 0A 00 00 00 00 00 FF 0F 63 [17:27:59]process_action close_receipt done [17:27:59]requested_data is exist [17:27:59]produce_requested_data [17:27:59]requested_item fm.sn is exist - process it [17:27:59]wFMCommunicate request_size=4 [17:27:59]MH_SAM_APDU [17:27:59]CAPDU: 80 11 00 00 [17:27:59]Write to MH i2c: E2 08 00 45 0A 80 11 00 00 00 00 00 00 C9 [17:27:59]Write i2c OK [17:27:59]MH_I2C_Read... [17:27:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:27:59]Read from MH i2c: E2 [17:27:59]MH_I2C_Read... [17:27:59]Read from MH i2c: E2 17 00 [17:27:59]MH_I2C_Read... [17:27:59]Read from MH i2c: E2 17 00 45 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 1F [17:27:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [17:27:59]wFMCommunicate OK [17:27:59]requested_item fd.num is exist - process it [17:27:59]SAM_PROTO_GetFieldsCounters [17:27:59]wFMCommunicate request_size=4 [17:27:59]MH_SAM_APDU [17:27:59]CAPDU: 80 13 00 00 [17:27:59]Write to MH i2c: E2 08 00 46 0A 80 13 00 00 00 00 00 00 CC [17:27:59]Write i2c OK [17:27:59]MH_I2C_Read... [17:27:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:27:59]Read from MH i2c: E2 [17:27:59]MH_I2C_Read... [17:27:59]Read from MH i2c: E2 62 00 [17:27:59]MH_I2C_Read... [17:27:59]Read from MH i2c: E2 62 00 46 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 07 09 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 56 00 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 57 00 00 00 19 04 04 00 00 00 00 00 90 00 6D [17:27:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 07 09 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 56 00 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 57 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:27:59]wFMCommunicate OK [17:27:59]SAM_PROTO_GetFieldsCounters done [17:27:59]requested_item shift.num is exist - process it [17:27:59]requested_item shift.opened is exist - process it [17:27:59]req_shift_opened [17:27:59]FM_GetShiftState [17:27:59]SAM_PROTO_GetShiftState [17:27:59]wFMCommunicate request_size=4 [17:27:59]MH_SAM_APDU [17:27:59]CAPDU: 80 13 01 00 [17:27:59]Write to MH i2c: E2 08 00 47 0A 80 13 01 00 00 00 00 00 CE [17:27:59]Write i2c OK [17:27:59]MH_I2C_Read... [17:27:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:27:59]Read from MH i2c: E2 [17:27:59]MH_I2C_Read... [17:27:59]Read from MH i2c: E2 0E 00 [17:27:59]MH_I2C_Read... [17:27:59]Read from MH i2c: E2 0E 00 47 0A 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 35 [17:27:59]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [17:27:59]wFMCommunicate OK [17:27:59]SAM_PROTO_GetShiftState done [17:27:59]FM_GetShiftState done [17:27:59]req_shift_opened done [17:27:59]requested_item shift.open_date is exist - process it [17:27:59]req_shift_open_date [17:27:59]req_shift_open_date done [17:27:59]produce_requested_data done [17:27:59]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67847,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [17:27:59]process_action_free close_receipt [17:27:59]json_value_free [17:27:59]json_value_free done [17:27:59]process_json_proto returns [17:27:59]Send response to host [17:27:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67847,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [17:27:59]free response buf [17:27:59]execute_script done [17:27:59]execute_script returns [17:27:59]free content buf [17:27:59]Sock 9.Close socket [17:27:59]Sock 9.Thread stoped [17:28:03]OFD Sender: No OFD packet to send [17:28:08]OFD Sender: No OFD packet to send [17:28:13]OFD Sender: No OFD packet to send [17:28:18]OFD Sender: No OFD packet to send [17:28:23]OFD Sender: No OFD packet to send [17:28:28]OFD Sender: No OFD packet to send [17:28:33]OFD Sender: No OFD packet to send [17:28:38]OFD Sender: No OFD packet to send [17:28:43]OFD Sender: No OFD packet to send [17:28:48]OFD Sender: No OFD packet to send [17:28:53]OFD Sender: No OFD packet to send [17:28:58]OFD Sender: No OFD packet to send [17:29:03]OFD Sender: No OFD packet to send [17:29:08]OFD Sender: No OFD packet to send [17:29:13]OFD Sender: No OFD packet to send [17:29:18]OFD Sender: No OFD packet to send [17:29:23]OFD Sender: No OFD packet to send [17:29:28]OFD Sender: No OFD packet to send [17:29:33]OFD Sender: No OFD packet to send [17:29:38]OFD Sender: No OFD packet to send [17:29:43]OFD Sender: No OFD packet to send [17:29:48]OFD Sender: No OFD packet to send [17:29:53]OFD Sender: No OFD packet to send [17:29:58]OFD Sender: No OFD packet to send [17:30:03]OFD Sender: No OFD packet to send [17:30:08]OFD Sender: No OFD packet to send [17:30:13]OFD Sender: No OFD packet to send [17:30:18]OFD Sender: No OFD packet to send [17:30:23]OFD Sender: No OFD packet to send [17:30:28]OFD Sender: No OFD packet to send [17:30:33]OFD Sender: No OFD packet to send [17:30:38]OFD Sender: No OFD packet to send [17:30:43]OFD Sender: No OFD packet to send [17:30:48]OFD Sender: No OFD packet to send [17:30:54]OFD Sender: No OFD packet to send [17:30:59]OFD Sender: No OFD packet to send [17:31:04]OFD Sender: No OFD packet to send [17:31:09]OFD Sender: No OFD packet to send [17:31:14]OFD Sender: No OFD packet to send [17:31:19]OFD Sender: No OFD packet to send [17:31:24]OFD Sender: No OFD packet to send [17:31:29]OFD Sender: No OFD packet to send [17:31:34]OFD Sender: No OFD packet to send [17:31:39]OFD Sender: No OFD packet to send [17:31:44]OFD Sender: No OFD packet to send [17:31:49]OFD Sender: No OFD packet to send [17:31:54]OFD Sender: No OFD packet to send [17:31:59]OFD Sender: No OFD packet to send [17:32:04]OFD Sender: No OFD packet to send [17:32:09]OFD Sender: No OFD packet to send [17:32:14]OFD Sender: No OFD packet to send [17:32:19]OFD Sender: No OFD packet to send [17:32:24]OFD Sender: No OFD packet to send [17:32:29]OFD Sender: No OFD packet to send [17:32:34]OFD Sender: No OFD packet to send [17:32:39]OFD Sender: No OFD packet to send [17:32:44]OFD Sender: No OFD packet to send [17:32:49]OFD Sender: No OFD packet to send [17:32:54]OFD Sender: No OFD packet to send [17:32:59]OFD Sender: No OFD packet to send [17:33:04]OFD Sender: No OFD packet to send [17:33:09]OFD Sender: No OFD packet to send [17:33:14]OFD Sender: No OFD packet to send [17:33:19]OFD Sender: No OFD packet to send [17:33:24]OFD Sender: No OFD packet to send [17:33:29]OFD Sender: No OFD packet to send [17:33:34]OFD Sender: No OFD packet to send [17:33:39]OFD Sender: No OFD packet to send [17:33:44]OFD Sender: No OFD packet to send [17:33:49]OFD Sender: No OFD packet to send [17:33:54]OFD Sender: No OFD packet to send [17:33:59]OFD Sender: No OFD packet to send [17:34:04]OFD Sender: No OFD packet to send [17:34:09]OFD Sender: No OFD packet to send [17:34:14]OFD Sender: No OFD packet to send [17:34:19]OFD Sender: No OFD packet to send [17:34:24]OFD Sender: No OFD packet to send [17:34:29]OFD Sender: No OFD packet to send [17:34:34]OFD Sender: No OFD packet to send [17:34:39]OFD Sender: No OFD packet to send [17:34:44]OFD Sender: No OFD packet to send [17:34:49]OFD Sender: No OFD packet to send [17:34:54]OFD Sender: No OFD packet to send [17:34:59]OFD Sender: No OFD packet to send [17:35:04]OFD Sender: No OFD packet to send [17:35:09]OFD Sender: No OFD packet to send [17:35:14]OFD Sender: No OFD packet to send [17:35:19]OFD Sender: No OFD packet to send [17:35:24]OFD Sender: No OFD packet to send [17:35:29]OFD Sender: No OFD packet to send [17:35:34]OFD Sender: No OFD packet to send [17:35:39]OFD Sender: No OFD packet to send [17:35:44]OFD Sender: No OFD packet to send [17:35:49]OFD Sender: No OFD packet to send [17:35:54]OFD Sender: No OFD packet to send [17:35:59]OFD Sender: No OFD packet to send [17:36:04]OFD Sender: No OFD packet to send [17:36:09]OFD Sender: No OFD packet to send [17:36:13]accept exits with 7 [17:36:13]New connection [17:36:13]New thread 3067202916 created [17:36:13]Thread 3067059556 joined [17:36:13]Waiting for new connection... [17:36:13] Sock 7.Parse request [17:36:13]Sock 7.Check first char [17:36:13]Sock 7.First char is OK [17:36:13]request: POST /json_proto HTTP/1.0 [17:36:13]Method: POST [17:36:13]URL: /json_proto [17:36:13]Method is POST - this is cgi request [17:36:13]url: /json_proto [17:36:13]query_string will be loaded in cgi processing [17:36:13]execute_cgi json_proto POST (null) [17:36:13]execute_cgi path=json_proto method=POST [17:36:13]POST find Content-Length [17:36:13]Host: 172.17.41.195:8080 [17:36:13]Content-Length: 800 [17:36:13]Content-Type: application/json [17:36:13] [17:36:13]POST finish read [17:36:13]Found Content-Length = 800 [17:36:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)508109", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.80, "quantity" : 4.500, "sum" : 300.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 300.60 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:36:13]execute_script... [17:36:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)508109", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.80, "quantity" : 4.500, "sum" : 300.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 300.60 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:36:13]POST & json_proto [17:36:13]process_json_proto [17:36:13]json parsed OK: [17:36:13]protocol is kg_v1.0 [17:36:13]action value=close_receipt [17:36:13]process_action close_receipt [17:36:13]cmd_close_receipt [17:36:13]MH_GetDate [17:36:13]Write to MH i2c: F0 00 00 48 0A 41 [17:36:13]Write i2c OK [17:36:13]MH_I2C_Read... [17:36:13]Read from MH i2c: F0 [17:36:13]MH_I2C_Read... [17:36:13]Read from MH i2c: F0 09 00 [17:36:13]MH_I2C_Read... [17:36:13]Read from MH i2c: F0 09 00 48 0A 00 0F E7 48 66 FC 21 6F 64 DE [17:36:13]GetLastDocTimeStamp 1716053277 [17:36:13]current date 1716053775 [17:36:13]FM_GetShiftState [17:36:13]SAM_PROTO_GetShiftState [17:36:13]wFMCommunicate request_size=4 [17:36:13]MH_SAM_APDU [17:36:13]CAPDU: 80 13 01 00 [17:36:13]Write to MH i2c: E2 08 00 49 0A 80 13 01 00 00 00 00 00 D0 [17:36:13]Write i2c OK [17:36:13]MH_I2C_Read... [17:36:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:36:13]Read from MH i2c: E2 [17:36:13]MH_I2C_Read... [17:36:13]Read from MH i2c: E2 0E 00 [17:36:13]MH_I2C_Read... [17:36:13]Read from MH i2c: E2 0E 00 49 0A 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 37 [17:36:13]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [17:36:13]wFMCommunicate OK [17:36:13]SAM_PROTO_GetShiftState done [17:36:13]FM_GetShiftState done [17:36:13]opened in 1715991483 [17:36:13]opened+sec_in_day 1716077883 [17:36:13]quantity*price = 30060 [17:36:13]sum+1 = 30061 [17:36:13]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.60 НСП 1% : 2.66 НДС 12% : 31.92 Наличными: 0.00 Безнал.: 300.60 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 87 18.05.2024 17:36 Смена: 359 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67848 ФПД: 47663381020533 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T173615&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67848&fm=47663381020533&tin=02508201610067®Number=0000000000091845&sum=30060 [17:36:15]StoreToDocumentArchive [17:36:15]shift 359 fd 67848 [17:36:15]save to /storage/0359/doc_00067848 [17:36:15]save last doc name /storage/0359/doc_00067848 to /storage/kkm_last_doc_name [17:36:15]save OK [17:36:15]Clear old archive folders... [17:36:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:36:15]tlvbuf is 009E7820 [17:36:15]SAM_PROTO_ClearQueue [17:36:15]wFMCommunicate request_size=4 [17:36:15]MH_SAM_APDU [17:36:15]CAPDU: 80 09 00 00 [17:36:15]Write to MH i2c: E2 08 00 56 0A 80 09 00 00 00 00 00 00 D2 [17:36:15]Write i2c OK [17:36:15]MH_I2C_Read... [17:36:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:36:15]Read from MH i2c: E2 [17:36:15]MH_I2C_Read... [17:36:15]Read from MH i2c: E2 03 00 [17:36:15]MH_I2C_Read... [17:36:15]Read from MH i2c: E2 03 00 56 0A 00 90 00 D4 [17:36:15]RAPDU: 90 00 [17:36:15]wFMCommunicate OK [17:36:15]SAM_PROTO_ClearQueue done [17:36:15]KKMCreateOFDPacket [17:36:15]OFDProtocolAddRootSTLVToBuf [17:36:15]FM_MakeSignedData [17:36:15]FM_MakeSignedData [17:36:15]SAM_PROTO_SignData [17:36:15]wFMCommunicate request_size=4 [17:36:15]MH_SAM_APDU [17:36:15]CAPDU: 80 0D 01 02 [17:36:15]Write to MH i2c: E2 08 00 57 0A 80 0D 01 02 00 00 00 00 DA [17:36:15]Write i2c OK [17:36:15]MH_I2C_Read... [17:36:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:36:15]Read from MH i2c: E2 [17:36:15]MH_I2C_Read... [17:36:15]Read from MH i2c: E2 03 00 [17:36:15]MH_I2C_Read... [17:36:15]Read from MH i2c: E2 03 00 57 0A 00 90 00 D5 [17:36:15]RAPDU: 90 00 [17:36:15]wFMCommunicate OK [17:36:15]wFMCommunicate request_size=255 [17:36:15]MH_SAM_APDU [17:36:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 94 11 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 6C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6C 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 0F E7 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 08 09 01 00 35 04 06 00 2B [17:36:15]Write to MH i2c: E2 02 01 58 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 94 11 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 6C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6C 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 0F E7 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 08 09 01 00 35 04 06 00 2B 00 00 92 [17:36:15]Write i2c OK [17:36:15]MH_I2C_Read... [17:36:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:36:15]Read from MH i2c: E2 [17:36:15]MH_I2C_Read... [17:36:15]Read from MH i2c: E2 03 00 [17:36:15]MH_I2C_Read... [17:36:15]Read from MH i2c: E2 03 00 58 0A 00 90 00 D6 [17:36:15]RAPDU: 90 00 [17:36:15]wFMCommunicate OK [17:36:15]wFMCommunicate request_size=10 [17:36:15]MH_SAM_APDU [17:36:15]CAPDU: 80 0D 02 02 05 59 7E E4 FF 75 [17:36:15]Write to MH i2c: E2 0D 00 59 0A 80 0D 02 02 05 00 59 7E E4 FF 75 00 00 16 [17:36:15]Write i2c OK [17:36:15]MH_I2C_Read... [17:36:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:36:15]Read from MH i2c: E2 [17:36:15]MH_I2C_Read... [17:36:15]Read from MH i2c: E2 03 00 [17:36:15]MH_I2C_Read... [17:36:15]Read from MH i2c: E2 03 00 59 0A 00 90 00 D7 [17:36:15]RAPDU: 90 00 [17:36:15]wFMCommunicate OK [17:36:15]wFMCommunicate request_size=4 [17:36:15]MH_SAM_APDU [17:36:15]CAPDU: 80 0D 03 02 [17:36:15]Write to MH i2c: E2 08 00 5A 0A 80 0D 03 02 00 00 00 00 DF [17:36:15]Write i2c OK [17:36:15]MH_I2C_Read... [17:36:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:36:15]Read from MH i2c: E2 [17:36:15]MH_I2C_Read... [17:36:15]Read from MH i2c: E2 0B 00 [17:36:15]MH_I2C_Read... [17:36:15]Read from MH i2c: E2 0B 00 5A 0A 00 99 14 A4 AF BD 4A 45 EA 90 00 16 [17:36:15]RAPDU: 99 14 A4 AF BD 4A 45 EA 90 00 [17:36:15]wFMCommunicate OK [17:36:15]SAM_PROTO_SignData done [17:36:15]FM_MakeSignedData done [17:36:15]CreateOFDProtocolMessage [17:36:15]wFMCommunicate request_size=4 [17:36:15]MH_SAM_APDU [17:36:15]CAPDU: 80 11 00 00 [17:36:15]Write to MH i2c: E2 08 00 5B 0A 80 11 00 00 00 00 00 00 DF [17:36:15]Write i2c OK [17:36:15]MH_I2C_Read... [17:36:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:36:15]Read from MH i2c: E2 [17:36:15]MH_I2C_Read... [17:36:15]Read from MH i2c: E2 17 00 [17:36:15]MH_I2C_Read... [17:36:15]Read from MH i2c: E2 17 00 5B 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 35 [17:36:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [17:36:15]wFMCommunicate OK [17:36:15]CreateOFDProtocolMessage done [17:36:15]OFDSenderStorePacket 67848 [17:36:15]StoreOFDPacket docnum=67848 [17:36:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 5F 80 07 01 A6 A3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 94 11 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 6C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6C 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 0F E7 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 08 09 01 00 35 04 06 00 2B 59 7E E4 FF 75 99 14 A4 AF BD 4A 45 EA [17:36:15]CheckFolder [17:36:15]dirname=/storage/ofd_packets [17:36:15]CheckFolder done [17:36:15]ProducePacketName [17:36:15]name=ofd_packets/00067848 [17:36:15]NVStorageSaveData ofd_packets/00067848 [17:36:15]File name is /storage/ofd_packets/00067848 [17:36:15]Write 301 bytes [17:36:15]NVStorageSaveData done [17:36:15]OFDSenderStorePacket done [17:36:15]KKMCreateOFDPacket done [17:36:15]NVStorageSaveData kkm_last_timestamp [17:36:15]File name is /storage/kkm_last_timestamp [17:36:15]Write 4 bytes [17:36:15]NVStorageSaveData done [17:36:15]ExternCall_PrintAddStr [17:36:15]wPrintStart [17:36:15]Write to MH i2c: 01 00 00 5C 0A 66 [17:36:15]Write i2c OK [17:36:15]MH_I2C_Read... [17:36:15]Read from MH i2c: 01 [17:36:15]MH_I2C_Read... [17:36:15]Read from MH i2c: 01 07 00 [17:36:15]MH_I2C_Read... [17:36:15]Read from MH i2c: 01 07 00 5C 0A 00 00 00 00 00 FF 0F 7B [17:36:15]RasterBufferAndPrint [17:36:15]line Счет N : (1)508109 [17:36:15]line ИНН: 02508201610067 [17:36:15]line Контрольно-Кассовый Чек [17:36:15]line ПРОДАЖА [17:36:15]line ТРК (МРК, ГНК) : 43 [17:36:15]line Товар: 2710124130 [17:36:15]line Аи-92-К-5 [17:36:15]line 4.500 * 66.80 [17:36:15]line = 300.60 [17:36:15]line НДС 12% НСП 1% [17:36:15]line > о реализуемом товаре [17:36:15]line ИТОГО: 300.60 [17:36:15]line НСП 1% : 2.66 [17:36:15]line НДС 12% : 31.92 [17:36:15]line Наличными: 0.00 [17:36:15]line Безнал.: 300.60 [17:36:15]line Место: АЗС № 91 "Партнер Нефть" [17:36:15]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [17:36:15]line СНО: Общий режим [17:36:15]line Чек 87 18.05.2024 17:36 [17:36:15]line Смена: 359 ФФД: 1.0 [17:36:15]line ЗНМ: 0300000119 [17:36:15]line РНМ: 0000000000091845 [17:36:15]line Версия ККМ: 001 [17:36:15]line Платежная система: O! деньги [17:36:15]line ФМ: 0000000000871829 [17:36:15]line ФД: 67848 [17:36:15]line ФПД: 47663381020533 [17:36:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T173615&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67848&fm=47663381020533&tin=02508201610067®Number=0000000000091845&sum=30060 [17:36:15]written 0, free lines is 4095 [17:36:15]OFD Sender: Processing packet 67848 [packets to send 35, broken 34] [17:36:15]ProducePacketName [17:36:15]name=ofd_packets/00067848 [17:36:15]OFD Sender: To server: pG, [17:36:15]CommunicateWithHost lk.salyk.kg:30040 [17:36:15]ConnectInit lk.salyk.kg [17:36:15]Connected sock=10 [17:36:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 5F 80 07 01 A6 A3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 94 11 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 6C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6C 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 0F E7 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 08 09 01 00 35 04 06 00 2B 59 7E E4 FF 75 99 14 A4 AF BD 4A 45 EA [17:36:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 EA 3C 47 00 6F 70 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 08 09 01 00 F4 03 04 00 E4 8E 48 66 B6 04 01 00 00 F9 88 BA 55 84 52 66 05 [17:36:16]CommunicateWithHost err = 0 [17:36:16]CheckOFDResponse [17:36:16]1017 (14) - 77093643461234 [17:36:16]1041 (16) - 0000000000871829 [17:36:16]1040 (4) - 67848 [17:36:16]1012 (4) - 18.05.2024 11:20 [17:36:16]1206 (1) - 0 [17:36:16]OFD Sender: Remove packet 67848 [17:36:16]ProducePacketName [17:36:16]name=ofd_packets/00067848 [17:36:16]NVStorageDeleteData [17:36:16]Write to MH i2c: 01 00 00 85 0A 8F [17:36:16]Write i2c OK [17:36:16]MH_I2C_Read... [17:36:16]Read from MH i2c: 01 [17:36:16]MH_I2C_Read... [17:36:16]Read from MH i2c: 01 07 00 [17:36:16]MH_I2C_Read... [17:36:16]Read from MH i2c: 01 07 00 85 0A 00 00 00 00 00 D7 0C 79 [17:36:16]RasterBufferAndPrint [17:36:16]line [17:36:16]line [17:36:16]line [17:36:16]line [17:36:16]line [17:36:16]written 0, free lines is 3292 [17:36:16]MH_Cut [17:36:16]Write to MH i2c: D1 01 00 8C 0A 01 68 [17:36:16]Write i2c OK [17:36:16]MH_I2C_Read... [17:36:16]Read from MH i2c: D1 [17:36:16]MH_I2C_Read... [17:36:16]Read from MH i2c: D1 01 00 [17:36:16]MH_I2C_Read... [17:36:16]Read from MH i2c: D1 01 00 8C 0A 00 67 [17:36:16]Write to MH i2c: 01 00 00 8D 0A 97 [17:36:16]Write i2c OK [17:36:16]MH_I2C_Read... [17:36:16]OFD Sender: No OFD packet to send [17:36:17]*** Cut start [17:36:17]*** Purtial cut [17:36:17]*** Stage 1: CUTSNS_PIN = 1 [17:36:17]Read from MH i2c: 01 [17:36:17]MH_I2C_Read... [17:36:17]*** Stop cut motor [17:36:17]*** Cut end [17:36:17]Read from MH i2c: 01 07 00 [17:36:17]MH_I2C_Read... [17:36:17]Read from MH i2c: 01 07 00 8D 0A 00 00 00 00 00 FF 0F AC [17:36:17]process_action close_receipt done [17:36:17]requested_data is exist [17:36:17]produce_requested_data [17:36:17]requested_item fm.sn is exist - process it [17:36:17]wFMCommunicate request_size=4 [17:36:17]MH_SAM_APDU [17:36:17]CAPDU: 80 11 00 00 [17:36:17]Write to MH i2c: E2 08 00 8E 0A 80 11 00 00 00 00 00 00 12 [17:36:17]Write i2c OK [17:36:17]MH_I2C_Read... [17:36:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:36:17]Read from MH i2c: E2 [17:36:17]MH_I2C_Read... [17:36:17]Read from MH i2c: E2 17 00 [17:36:17]MH_I2C_Read... [17:36:17]Read from MH i2c: E2 17 00 8E 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 68 [17:36:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [17:36:17]wFMCommunicate OK [17:36:17]requested_item fd.num is exist - process it [17:36:17]SAM_PROTO_GetFieldsCounters [17:36:17]wFMCommunicate request_size=4 [17:36:17]MH_SAM_APDU [17:36:17]CAPDU: 80 13 00 00 [17:36:17]Write to MH i2c: E2 08 00 8F 0A 80 13 00 00 00 00 00 00 15 [17:36:17]Write i2c OK [17:36:17]MH_I2C_Read... [17:36:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:36:17]Read from MH i2c: E2 [17:36:17]MH_I2C_Read... [17:36:17]Read from MH i2c: E2 62 00 [17:36:17]MH_I2C_Read... [17:36:17]Read from MH i2c: E2 62 00 8F 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 08 09 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 57 00 00 00 5E 04 04 00 57 00 00 00 57 04 04 00 58 00 00 00 19 04 04 00 00 00 00 00 90 00 BA [17:36:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 08 09 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 57 00 00 00 5E 04 04 00 57 00 00 00 57 04 04 00 58 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:36:17]wFMCommunicate OK [17:36:17]SAM_PROTO_GetFieldsCounters done [17:36:17]requested_item shift.num is exist - process it [17:36:17]requested_item shift.opened is exist - process it [17:36:17]req_shift_opened [17:36:17]FM_GetShiftState [17:36:17]SAM_PROTO_GetShiftState [17:36:17]wFMCommunicate request_size=4 [17:36:17]MH_SAM_APDU [17:36:17]CAPDU: 80 13 01 00 [17:36:17]Write to MH i2c: E2 08 00 90 0A 80 13 01 00 00 00 00 00 17 [17:36:17]Write i2c OK [17:36:17]MH_I2C_Read... [17:36:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:36:17]Read from MH i2c: E2 [17:36:17]MH_I2C_Read... [17:36:17]Read from MH i2c: E2 0E 00 [17:36:17]MH_I2C_Read... [17:36:17]Read from MH i2c: E2 0E 00 90 0A 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 7E [17:36:17]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [17:36:17]wFMCommunicate OK [17:36:17]SAM_PROTO_GetShiftState done [17:36:17]FM_GetShiftState done [17:36:17]req_shift_opened done [17:36:17]requested_item shift.open_date is exist - process it [17:36:17]req_shift_open_date [17:36:17]req_shift_open_date done [17:36:17]produce_requested_data done [17:36:17]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67848,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [17:36:17]process_action_free close_receipt [17:36:17]json_value_free [17:36:17]json_value_free done [17:36:17]process_json_proto returns [17:36:17]Send response to host [17:36:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67848,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [17:36:17]free response buf [17:36:17]execute_script done [17:36:17]execute_script returns [17:36:17]free content buf [17:36:17]Sock 7.Close socket [17:36:17]Sock 7.Thread stoped [17:36:21]OFD Sender: No OFD packet to send [17:36:24]accept exits with 9 [17:36:24]New connection [17:36:24]New thread 3067059556 created [17:36:24]Thread 3067202916 joined [17:36:24]Waiting for new connection... [17:36:24] Sock 9.Parse request [17:36:24]Sock 9.Check first char [17:36:24]Sock 9.First char is OK [17:36:24]request: POST /json_proto HTTP/1.0 [17:36:24]Method: POST [17:36:24]URL: /json_proto [17:36:24]Method is POST - this is cgi request [17:36:24]url: /json_proto [17:36:24]query_string will be loaded in cgi processing [17:36:24]execute_cgi json_proto POST (null) [17:36:24]execute_cgi path=json_proto method=POST [17:36:24]POST find Content-Length [17:36:24]Host: 172.17.41.195:8080 [17:36:24]Content-Length: 803 [17:36:24]Content-Type: application/json [17:36:24] [17:36:24]POST finish read [17:36:24]Found Content-Length = 803 [17:36:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)508108", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.80, "quantity" : 14.980, "sum" : 1000.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.66 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:36:24]execute_script... [17:36:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)508108", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.80, "quantity" : 14.980, "sum" : 1000.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.66 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:36:24]POST & json_proto [17:36:24]process_json_proto [17:36:24]json parsed OK: [17:36:24]protocol is kg_v1.0 [17:36:24]action value=close_receipt [17:36:24]process_action close_receipt [17:36:24]cmd_close_receipt [17:36:24]MH_GetDate [17:36:24]Write to MH i2c: F0 00 00 91 0A 8A [17:36:24]Write i2c OK [17:36:24]MH_I2C_Read... [17:36:24]Read from MH i2c: F0 [17:36:24]MH_I2C_Read... [17:36:24]Read from MH i2c: F0 09 00 [17:36:24]MH_I2C_Read... [17:36:24]Read from MH i2c: F0 09 00 91 0A 00 19 E7 48 66 FC 21 6F 64 31 [17:36:24]GetLastDocTimeStamp 1716053775 [17:36:24]current date 1716053785 [17:36:24]FM_GetShiftState [17:36:24]SAM_PROTO_GetShiftState [17:36:24]wFMCommunicate request_size=4 [17:36:24]MH_SAM_APDU [17:36:24]CAPDU: 80 13 01 00 [17:36:24]Write to MH i2c: E2 08 00 92 0A 80 13 01 00 00 00 00 00 19 [17:36:24]Write i2c OK [17:36:24]MH_I2C_Read... [17:36:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:36:24]Read from MH i2c: E2 [17:36:24]MH_I2C_Read... [17:36:24]Read from MH i2c: E2 0E 00 [17:36:24]MH_I2C_Read... [17:36:24]Read from MH i2c: E2 0E 00 92 0A 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 80 [17:36:24]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [17:36:24]wFMCommunicate OK [17:36:24]SAM_PROTO_GetShiftState done [17:36:24]FM_GetShiftState done [17:36:24]opened in 1715991483 [17:36:24]opened+sec_in_day 1716077883 [17:36:24]quantity*price = 100066 [17:36:24]sum+1 = 100067 [17:36:24]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.66 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 0.00 Безнал.: 1000.66 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 88 18.05.2024 17:36 Смена: 359 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67849 ФПД: 24457989269069 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T173625&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67849&fm=24457989269069&tin=02508201610067®Number=0000000000091845&sum=100066 [17:36:25]StoreToDocumentArchive [17:36:25]shift 359 fd 67849 [17:36:25]save to /storage/0359/doc_00067849 [17:36:25]save last doc name /storage/0359/doc_00067849 to /storage/kkm_last_doc_name [17:36:25]save OK [17:36:25]Clear old archive folders... [17:36:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:36:25]tlvbuf is 009E8110 [17:36:25]SAM_PROTO_ClearQueue [17:36:25]wFMCommunicate request_size=4 [17:36:25]MH_SAM_APDU [17:36:25]CAPDU: 80 09 00 00 [17:36:25]Write to MH i2c: E2 08 00 9F 0A 80 09 00 00 00 00 00 00 1B [17:36:25]Write i2c OK [17:36:25]MH_I2C_Read... [17:36:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:36:25]Read from MH i2c: E2 [17:36:25]MH_I2C_Read... [17:36:25]Read from MH i2c: E2 03 00 [17:36:25]MH_I2C_Read... [17:36:25]Read from MH i2c: E2 03 00 9F 0A 00 90 00 1D [17:36:25]RAPDU: 90 00 [17:36:25]wFMCommunicate OK [17:36:25]SAM_PROTO_ClearQueue done [17:36:25]KKMCreateOFDPacket [17:36:25]OFDProtocolAddRootSTLVToBuf [17:36:25]FM_MakeSignedData [17:36:25]FM_MakeSignedData [17:36:25]SAM_PROTO_SignData [17:36:25]wFMCommunicate request_size=4 [17:36:25]MH_SAM_APDU [17:36:25]CAPDU: 80 0D 01 02 [17:36:25]Write to MH i2c: E2 08 00 A0 0A 80 0D 01 02 00 00 00 00 23 [17:36:25]Write i2c OK [17:36:25]MH_I2C_Read... [17:36:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:36:25]Read from MH i2c: E2 [17:36:25]MH_I2C_Read... [17:36:25]Read from MH i2c: E2 03 00 [17:36:25]MH_I2C_Read... [17:36:25]Read from MH i2c: E2 03 00 A0 0A 00 90 00 1E [17:36:25]RAPDU: 90 00 [17:36:25]wFMCommunicate OK [17:36:25]wFMCommunicate request_size=255 [17:36:25]MH_SAM_APDU [17:36:25]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 84 3A 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E2 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E2 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 19 E7 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 09 09 01 00 35 04 06 00 16 [17:36:25]Write to MH i2c: E2 02 01 A1 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 84 3A 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E2 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E2 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 19 E7 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 09 09 01 00 35 04 06 00 16 00 00 17 [17:36:25]Write i2c OK [17:36:25]MH_I2C_Read... [17:36:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:36:25]Read from MH i2c: E2 [17:36:25]MH_I2C_Read... [17:36:25]Read from MH i2c: E2 03 00 [17:36:25]MH_I2C_Read... [17:36:25]Read from MH i2c: E2 03 00 A1 0A 00 90 00 1F [17:36:25]RAPDU: 90 00 [17:36:25]wFMCommunicate OK [17:36:25]wFMCommunicate request_size=10 [17:36:25]MH_SAM_APDU [17:36:25]CAPDU: 80 0D 02 02 05 3E 91 C3 26 4D [17:36:25]Write to MH i2c: E2 0D 00 A2 0A 80 0D 02 02 05 00 3E 91 C3 26 4D 00 00 35 [17:36:25]Write i2c OK [17:36:25]MH_I2C_Read... [17:36:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:36:25]Read from MH i2c: E2 [17:36:25]MH_I2C_Read... [17:36:25]Read from MH i2c: E2 03 00 [17:36:25]MH_I2C_Read... [17:36:25]Read from MH i2c: E2 03 00 A2 0A 00 90 00 20 [17:36:25]RAPDU: 90 00 [17:36:25]wFMCommunicate OK [17:36:25]wFMCommunicate request_size=4 [17:36:25]MH_SAM_APDU [17:36:25]CAPDU: 80 0D 03 02 [17:36:25]Write to MH i2c: E2 08 00 A3 0A 80 0D 03 02 00 00 00 00 28 [17:36:25]Write i2c OK [17:36:25]MH_I2C_Read... [17:36:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:36:26]Read from MH i2c: E2 [17:36:26]MH_I2C_Read... [17:36:26]Read from MH i2c: E2 0B 00 [17:36:26]MH_I2C_Read... [17:36:26]Read from MH i2c: E2 0B 00 A3 0A 00 C9 52 2A 4A AE A9 F9 92 90 00 9A [17:36:26]RAPDU: C9 52 2A 4A AE A9 F9 92 90 00 [17:36:26]wFMCommunicate OK [17:36:26]SAM_PROTO_SignData done [17:36:26]FM_MakeSignedData done [17:36:26]CreateOFDProtocolMessage [17:36:26]wFMCommunicate request_size=4 [17:36:26]MH_SAM_APDU [17:36:26]CAPDU: 80 11 00 00 [17:36:26]Write to MH i2c: E2 08 00 A4 0A 80 11 00 00 00 00 00 00 28 [17:36:26]Write i2c OK [17:36:26]MH_I2C_Read... [17:36:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:36:26]Read from MH i2c: E2 [17:36:26]MH_I2C_Read... [17:36:26]Read from MH i2c: E2 17 00 [17:36:26]MH_I2C_Read... [17:36:26]Read from MH i2c: E2 17 00 A4 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 7E [17:36:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [17:36:26]wFMCommunicate OK [17:36:26]CreateOFDProtocolMessage done [17:36:26]OFDSenderStorePacket 67849 [17:36:26]StoreOFDPacket docnum=67849 [17:36:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 A7 81 07 01 F5 51 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 84 3A 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E2 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E2 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 19 E7 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 09 09 01 00 35 04 06 00 16 3E 91 C3 26 4D C9 52 2A 4A AE A9 F9 92 [17:36:26]CheckFolder [17:36:26]dirname=/storage/ofd_packets [17:36:26]CheckFolder done [17:36:26]ProducePacketName [17:36:26]name=ofd_packets/00067849 [17:36:26]NVStorageSaveData ofd_packets/00067849 [17:36:26]File name is /storage/ofd_packets/00067849 [17:36:26]Write 301 bytes [17:36:26]NVStorageSaveData done [17:36:26]OFDSenderStorePacket done [17:36:26]KKMCreateOFDPacket done [17:36:26]NVStorageSaveData kkm_last_timestamp [17:36:26]File name is /storage/kkm_last_timestamp [17:36:26]Write 4 bytes [17:36:26]NVStorageSaveData done [17:36:26]ExternCall_PrintAddStr [17:36:26]wPrintStart [17:36:26]Write to MH i2c: 01 00 00 A5 0A AF [17:36:26]Write i2c OK [17:36:26]MH_I2C_Read... [17:36:26]Read from MH i2c: 01 [17:36:26]MH_I2C_Read... [17:36:26]Read from MH i2c: 01 07 00 [17:36:26]MH_I2C_Read... [17:36:26]Read from MH i2c: 01 07 00 A5 0A 00 00 00 00 00 FF 0F C4 [17:36:26]RasterBufferAndPrint [17:36:26]line Счет N : (1)508108 [17:36:26]line ИНН: 02508201610067 [17:36:26]line Контрольно-Кассовый Чек [17:36:26]line ПРОДАЖА [17:36:26]line ТРК (МРК, ГНК) : 23 [17:36:26]line Товар: 2710124130 [17:36:26]line Аи-92-К-5 [17:36:26]line 14.980 * 66.80 [17:36:26]line = 1000.66 [17:36:26]line НДС 12% НСП 1% [17:36:26]line > о реализуемом товаре [17:36:26]line ИТОГО: 1000.66 [17:36:26]line НСП 1% : 8.85 [17:36:26]line НДС 12% : 106.26 [17:36:26]line Наличными: 0.00 [17:36:26]line Безнал.: 1000.66 [17:36:26]line Место: АЗС № 91 "Партнер Нефть" [17:36:26]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [17:36:26]line СНО: Общий режим [17:36:26]line Чек 88 18.05.2024 17:36 [17:36:26]line Смена: 359 ФФД: 1.0 [17:36:26]line ЗНМ: 0300000119 [17:36:26]line РНМ: 0000000000091845 [17:36:26]line Версия ККМ: 001 [17:36:26]line Платежная система: O! деньги [17:36:26]line ФМ: 0000000000871829 [17:36:26]line ФД: 67849 [17:36:26]line ФПД: 24457989269069 [17:36:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T173625&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67849&fm=24457989269069&tin=02508201610067®Number=0000000000091845&sum=100066 [17:36:26]written 0, free lines is 4095 [17:36:26]OFD Sender: Processing packet 67849 [packets to send 35, broken 34] [17:36:26]ProducePacketName [17:36:26]name=ofd_packets/00067849 [17:36:26]OFD Sender: To server: pG, [17:36:26]CommunicateWithHost lk.salyk.kg:30040 [17:36:26]ConnectInit lk.salyk.kg [17:36:26]Connected sock=10 [17:36:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 A7 81 07 01 F5 51 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 84 3A 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E2 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E2 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 19 E7 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 09 09 01 00 35 04 06 00 16 3E 91 C3 26 4D C9 52 2A 4A AE A9 F9 92 [17:36:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 6C 38 47 00 24 31 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 09 09 01 00 F4 03 04 00 EE 8E 48 66 B6 04 01 00 00 7D 9C AD B4 AA 76 D9 AC [17:36:26]CommunicateWithHost err = 0 [17:36:26]CheckOFDResponse [17:36:26]1017 (14) - 77093643461234 [17:36:26]1041 (16) - 0000000000871829 [17:36:26]1040 (4) - 67849 [17:36:26]1012 (4) - 18.05.2024 11:20 [17:36:26]1206 (1) - 0 [17:36:26]OFD Sender: Remove packet 67849 [17:36:26]ProducePacketName [17:36:26]name=ofd_packets/00067849 [17:36:26]NVStorageDeleteData [17:36:26]Write to MH i2c: 01 00 00 CE 0A D8 [17:36:26]Write i2c OK [17:36:26]MH_I2C_Read... [17:36:26]Read from MH i2c: 01 [17:36:26]MH_I2C_Read... [17:36:26]Read from MH i2c: 01 07 00 [17:36:26]MH_I2C_Read... [17:36:26]Read from MH i2c: 01 07 00 CE 0A 00 00 00 00 00 D6 0C C1 [17:36:26]RasterBufferAndPrint [17:36:26]line [17:36:26]line [17:36:26]line [17:36:26]line [17:36:26]line [17:36:26]written 0, free lines is 3295 [17:36:26]MH_Cut [17:36:26]Write to MH i2c: D1 01 00 D5 0A 01 B1 [17:36:26]Write i2c OK [17:36:26]MH_I2C_Read... [17:36:26]Read from MH i2c: D1 [17:36:26]MH_I2C_Read... [17:36:26]Read from MH i2c: D1 01 00 [17:36:26]MH_I2C_Read... [17:36:26]Read from MH i2c: D1 01 00 D5 0A 00 B0 [17:36:26]Write to MH i2c: 01 00 00 D6 0A E0 [17:36:26]Write i2c OK [17:36:26]MH_I2C_Read... [17:36:26]OFD Sender: No OFD packet to send [17:36:27]*** Cut start [17:36:27]*** Purtial cut [17:36:27]*** Stage 1: CUTSNS_PIN = 1 [17:36:27]Read from MH i2c: 01 [17:36:27]MH_I2C_Read... [17:36:27]*** Stop cut motor [17:36:27]*** Cut end [17:36:27]Read from MH i2c: 01 07 00 [17:36:27]MH_I2C_Read... [17:36:27]Read from MH i2c: 01 07 00 D6 0A 00 00 00 00 00 FF 0F F5 [17:36:27]process_action close_receipt done [17:36:27]requested_data is exist [17:36:27]produce_requested_data [17:36:27]requested_item fm.sn is exist - process it [17:36:27]wFMCommunicate request_size=4 [17:36:27]MH_SAM_APDU [17:36:27]CAPDU: 80 11 00 00 [17:36:27]Write to MH i2c: E2 08 00 D7 0A 80 11 00 00 00 00 00 00 5B [17:36:27]Write i2c OK [17:36:27]MH_I2C_Read... [17:36:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:36:27]Read from MH i2c: E2 [17:36:27]MH_I2C_Read... [17:36:27]Read from MH i2c: E2 17 00 [17:36:27]MH_I2C_Read... [17:36:27]Read from MH i2c: E2 17 00 D7 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 B1 [17:36:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [17:36:27]wFMCommunicate OK [17:36:27]requested_item fd.num is exist - process it [17:36:27]SAM_PROTO_GetFieldsCounters [17:36:27]wFMCommunicate request_size=4 [17:36:27]MH_SAM_APDU [17:36:27]CAPDU: 80 13 00 00 [17:36:27]Write to MH i2c: E2 08 00 D8 0A 80 13 00 00 00 00 00 00 5E [17:36:27]Write i2c OK [17:36:27]MH_I2C_Read... [17:36:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:36:27]Read from MH i2c: E2 [17:36:27]MH_I2C_Read... [17:36:27]Read from MH i2c: E2 62 00 [17:36:27]MH_I2C_Read... [17:36:27]Read from MH i2c: E2 62 00 D8 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 09 09 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 58 00 00 00 5E 04 04 00 58 00 00 00 57 04 04 00 59 00 00 00 19 04 04 00 00 00 00 00 90 00 07 [17:36:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 09 09 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 58 00 00 00 5E 04 04 00 58 00 00 00 57 04 04 00 59 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:36:27]wFMCommunicate OK [17:36:27]SAM_PROTO_GetFieldsCounters done [17:36:27]requested_item shift.num is exist - process it [17:36:27]requested_item shift.opened is exist - process it [17:36:27]req_shift_opened [17:36:27]FM_GetShiftState [17:36:27]SAM_PROTO_GetShiftState [17:36:27]wFMCommunicate request_size=4 [17:36:27]MH_SAM_APDU [17:36:27]CAPDU: 80 13 01 00 [17:36:27]Write to MH i2c: E2 08 00 D9 0A 80 13 01 00 00 00 00 00 60 [17:36:27]Write i2c OK [17:36:27]MH_I2C_Read... [17:36:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:36:27]Read from MH i2c: E2 [17:36:27]MH_I2C_Read... [17:36:27]Read from MH i2c: E2 0E 00 [17:36:27]MH_I2C_Read... [17:36:27]Read from MH i2c: E2 0E 00 D9 0A 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 C7 [17:36:27]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [17:36:27]wFMCommunicate OK [17:36:27]SAM_PROTO_GetShiftState done [17:36:27]FM_GetShiftState done [17:36:27]req_shift_opened done [17:36:27]requested_item shift.open_date is exist - process it [17:36:27]req_shift_open_date [17:36:27]req_shift_open_date done [17:36:27]produce_requested_data done [17:36:27]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67849,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [17:36:27]process_action_free close_receipt [17:36:27]json_value_free [17:36:27]json_value_free done [17:36:27]process_json_proto returns [17:36:27]Send response to host [17:36:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67849,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [17:36:27]free response buf [17:36:27]execute_script done [17:36:27]execute_script returns [17:36:27]free content buf [17:36:27]Sock 9.Close socket [17:36:27]Sock 9.Thread stoped [17:36:31]OFD Sender: No OFD packet to send [17:36:36]OFD Sender: No OFD packet to send [17:36:41]OFD Sender: No OFD packet to send [17:36:46]OFD Sender: No OFD packet to send [17:36:51]OFD Sender: No OFD packet to send [17:36:56]OFD Sender: No OFD packet to send [17:37:02]OFD Sender: No OFD packet to send [17:37:07]OFD Sender: No OFD packet to send [17:37:12]OFD Sender: No OFD packet to send [17:37:17]OFD Sender: No OFD packet to send [17:37:22]OFD Sender: No OFD packet to send [17:37:27]OFD Sender: No OFD packet to send [17:37:29]accept exits with 7 [17:37:29]New connection [17:37:29]New thread 3067202916 created [17:37:29]Thread 3067059556 joined [17:37:29]Waiting for new connection... [17:37:29] Sock 7.Parse request [17:37:29]Sock 7.Check first char [17:37:29]Sock 7.First char is OK [17:37:29]request: POST /json_proto HTTP/1.0 [17:37:29]Method: POST [17:37:29]URL: /json_proto [17:37:29]Method is POST - this is cgi request [17:37:29]url: /json_proto [17:37:29]query_string will be loaded in cgi processing [17:37:29]execute_cgi json_proto POST (null) [17:37:29]execute_cgi path=json_proto method=POST [17:37:29]POST find Content-Length [17:37:29]Host: 172.17.41.195:8080 [17:37:29]Content-Length: 803 [17:37:29]Content-Type: application/json [17:37:29] [17:37:29]POST finish read [17:37:29]Found Content-Length = 803 [17:37:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)508110", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.80, "quantity" : 14.980, "sum" : 1000.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.66 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:37:29]execute_script... [17:37:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)508110", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.80, "quantity" : 14.980, "sum" : 1000.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.66 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:37:29]POST & json_proto [17:37:29]process_json_proto [17:37:29]json parsed OK: [17:37:29]protocol is kg_v1.0 [17:37:29]action value=close_receipt [17:37:29]process_action close_receipt [17:37:29]cmd_close_receipt [17:37:29]MH_GetDate [17:37:29]Write to MH i2c: F0 00 00 DA 0A D3 [17:37:29]Write i2c OK [17:37:29]MH_I2C_Read... [17:37:29]Read from MH i2c: F0 [17:37:29]MH_I2C_Read... [17:37:29]Read from MH i2c: F0 09 00 [17:37:29]MH_I2C_Read... [17:37:29]Read from MH i2c: F0 09 00 DA 0A 00 5A E7 48 66 FC 21 6F 64 BB [17:37:29]GetLastDocTimeStamp 1716053785 [17:37:29]current date 1716053850 [17:37:29]FM_GetShiftState [17:37:29]SAM_PROTO_GetShiftState [17:37:29]wFMCommunicate request_size=4 [17:37:29]MH_SAM_APDU [17:37:29]CAPDU: 80 13 01 00 [17:37:29]Write to MH i2c: E2 08 00 DB 0A 80 13 01 00 00 00 00 00 62 [17:37:29]Write i2c OK [17:37:29]MH_I2C_Read... [17:37:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:37:29]Read from MH i2c: E2 [17:37:29]MH_I2C_Read... [17:37:29]Read from MH i2c: E2 0E 00 [17:37:29]MH_I2C_Read... [17:37:29]Read from MH i2c: E2 0E 00 DB 0A 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 C9 [17:37:29]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [17:37:29]wFMCommunicate OK [17:37:29]SAM_PROTO_GetShiftState done [17:37:29]FM_GetShiftState done [17:37:29]opened in 1715991483 [17:37:29]opened+sec_in_day 1716077883 [17:37:29]quantity*price = 100066 [17:37:29]sum+1 = 100067 [17:37:29]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.66 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 0.00 Безнал.: 1000.66 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 89 18.05.2024 17:37 Смена: 359 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67850 ФПД: 122009822480346 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T173730&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67850&fm=122009822480346&tin=02508201610067®Number=0000000000091845&sum=100066 [17:37:30]StoreToDocumentArchive [17:37:30]shift 359 fd 67850 [17:37:30]save to /storage/0359/doc_00067850 [17:37:30]save last doc name /storage/0359/doc_00067850 to /storage/kkm_last_doc_name [17:37:30]save OK [17:37:30]Clear old archive folders... [17:37:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:37:30]tlvbuf is 009E6430 [17:37:30]SAM_PROTO_ClearQueue [17:37:30]wFMCommunicate request_size=4 [17:37:30]MH_SAM_APDU [17:37:30]CAPDU: 80 09 00 00 [17:37:30]Write to MH i2c: E2 08 00 E8 0A 80 09 00 00 00 00 00 00 64 [17:37:30]Write i2c OK [17:37:30]MH_I2C_Read... [17:37:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:37:30]Read from MH i2c: E2 [17:37:30]MH_I2C_Read... [17:37:30]Read from MH i2c: E2 03 00 [17:37:30]MH_I2C_Read... [17:37:30]Read from MH i2c: E2 03 00 E8 0A 00 90 00 66 [17:37:30]RAPDU: 90 00 [17:37:30]wFMCommunicate OK [17:37:30]SAM_PROTO_ClearQueue done [17:37:30]KKMCreateOFDPacket [17:37:30]OFDProtocolAddRootSTLVToBuf [17:37:30]FM_MakeSignedData [17:37:30]FM_MakeSignedData [17:37:30]SAM_PROTO_SignData [17:37:30]wFMCommunicate request_size=4 [17:37:30]MH_SAM_APDU [17:37:30]CAPDU: 80 0D 01 02 [17:37:30]Write to MH i2c: E2 08 00 E9 0A 80 0D 01 02 00 00 00 00 6C [17:37:30]Write i2c OK [17:37:30]MH_I2C_Read... [17:37:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:37:30]Read from MH i2c: E2 [17:37:30]MH_I2C_Read... [17:37:30]Read from MH i2c: E2 03 00 [17:37:30]MH_I2C_Read... [17:37:30]Read from MH i2c: E2 03 00 E9 0A 00 90 00 67 [17:37:30]RAPDU: 90 00 [17:37:30]wFMCommunicate OK [17:37:30]wFMCommunicate request_size=255 [17:37:30]MH_SAM_APDU [17:37:30]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 84 3A 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E2 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E2 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 5A E7 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 0A 09 01 00 35 04 06 00 6E [17:37:30]Write to MH i2c: E2 02 01 EA 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 84 3A 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E2 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E2 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 5A E7 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 0A 09 01 00 35 04 06 00 6E 00 00 FB [17:37:30]Write i2c OK [17:37:30]MH_I2C_Read... [17:37:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:37:30]Read from MH i2c: E2 [17:37:30]MH_I2C_Read... [17:37:30]Read from MH i2c: E2 03 00 [17:37:30]MH_I2C_Read... [17:37:30]Read from MH i2c: E2 03 00 EA 0A 00 90 00 68 [17:37:30]RAPDU: 90 00 [17:37:30]wFMCommunicate OK [17:37:30]wFMCommunicate request_size=10 [17:37:30]MH_SAM_APDU [17:37:30]CAPDU: 80 0D 02 02 05 F7 A0 20 C7 DA [17:37:30]Write to MH i2c: E2 0D 00 EB 0A 80 0D 02 02 05 00 F7 A0 20 C7 DA 00 00 D1 [17:37:30]Write i2c OK [17:37:30]MH_I2C_Read... [17:37:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:37:30]Read from MH i2c: E2 [17:37:30]MH_I2C_Read... [17:37:30]Read from MH i2c: E2 03 00 [17:37:30]MH_I2C_Read... [17:37:30]Read from MH i2c: E2 03 00 EB 0A 00 90 00 69 [17:37:30]RAPDU: 90 00 [17:37:30]wFMCommunicate OK [17:37:30]wFMCommunicate request_size=4 [17:37:30]MH_SAM_APDU [17:37:30]CAPDU: 80 0D 03 02 [17:37:30]Write to MH i2c: E2 08 00 EC 0A 80 0D 03 02 00 00 00 00 71 [17:37:30]Write i2c OK [17:37:30]MH_I2C_Read... [17:37:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:37:30]Read from MH i2c: E2 [17:37:30]MH_I2C_Read... [17:37:30]Read from MH i2c: E2 0B 00 [17:37:30]MH_I2C_Read... [17:37:30]Read from MH i2c: E2 0B 00 EC 0A 00 53 61 AE 23 7C 52 F4 AE 90 00 67 [17:37:30]RAPDU: 53 61 AE 23 7C 52 F4 AE 90 00 [17:37:30]wFMCommunicate OK [17:37:30]SAM_PROTO_SignData done [17:37:30]FM_MakeSignedData done [17:37:30]CreateOFDProtocolMessage [17:37:30]wFMCommunicate request_size=4 [17:37:30]MH_SAM_APDU [17:37:30]CAPDU: 80 11 00 00 [17:37:30]Write to MH i2c: E2 08 00 ED 0A 80 11 00 00 00 00 00 00 71 [17:37:30]Write i2c OK [17:37:30]MH_I2C_Read... [17:37:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:37:30]Read from MH i2c: E2 [17:37:30]MH_I2C_Read... [17:37:30]Read from MH i2c: E2 17 00 [17:37:30]MH_I2C_Read... [17:37:30]Read from MH i2c: E2 17 00 ED 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 C7 [17:37:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [17:37:30]wFMCommunicate OK [17:37:30]CreateOFDProtocolMessage done [17:37:30]OFDSenderStorePacket 67850 [17:37:30]StoreOFDPacket docnum=67850 [17:37:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 C7 B4 07 01 0B 51 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 84 3A 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E2 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E2 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 5A E7 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 0A 09 01 00 35 04 06 00 6E F7 A0 20 C7 DA 53 61 AE 23 7C 52 F4 AE [17:37:30]CheckFolder [17:37:30]dirname=/storage/ofd_packets [17:37:30]CheckFolder done [17:37:30]ProducePacketName [17:37:30]name=ofd_packets/00067850 [17:37:30]NVStorageSaveData ofd_packets/00067850 [17:37:30]File name is /storage/ofd_packets/00067850 [17:37:30]Write 301 bytes [17:37:30]NVStorageSaveData done [17:37:30]OFDSenderStorePacket done [17:37:30]KKMCreateOFDPacket done [17:37:30]NVStorageSaveData kkm_last_timestamp [17:37:30]File name is /storage/kkm_last_timestamp [17:37:30]Write 4 bytes [17:37:30]NVStorageSaveData done [17:37:30]ExternCall_PrintAddStr [17:37:30]wPrintStart [17:37:30]Write to MH i2c: 01 00 00 EE 0A F8 [17:37:30]Write i2c OK [17:37:30]MH_I2C_Read... [17:37:30]Read from MH i2c: 01 [17:37:30]MH_I2C_Read... [17:37:30]Read from MH i2c: 01 07 00 [17:37:30]MH_I2C_Read... [17:37:30]Read from MH i2c: 01 07 00 EE 0A 00 00 00 00 00 FF 0F 0D [17:37:30]RasterBufferAndPrint [17:37:30]line Счет N : (1)508110 [17:37:30]line ИНН: 02508201610067 [17:37:30]line Контрольно-Кассовый Чек [17:37:30]line ПРОДАЖА [17:37:30]line ТРК (МРК, ГНК) : 23 [17:37:30]line Товар: 2710124130 [17:37:30]line Аи-92-К-5 [17:37:30]line 14.980 * 66.80 [17:37:30]line = 1000.66 [17:37:30]line НДС 12% НСП 1% [17:37:30]line > о реализуемом товаре [17:37:30]line ИТОГО: 1000.66 [17:37:30]line НСП 1% : 8.85 [17:37:30]line НДС 12% : 106.26 [17:37:30]line Наличными: 0.00 [17:37:30]line Безнал.: 1000.66 [17:37:30]line Место: АЗС № 91 "Партнер Нефть" [17:37:30]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [17:37:30]line СНО: Общий режим [17:37:30]line Чек 89 18.05.2024 17:37 [17:37:30]line Смена: 359 ФФД: 1.0 [17:37:30]line ЗНМ: 0300000119 [17:37:30]line РНМ: 0000000000091845 [17:37:30]line Версия ККМ: 001 [17:37:30]line Платежная система: O! деньги [17:37:30]line ФМ: 0000000000871829 [17:37:30]line ФД: 67850 [17:37:30]line ФПД: 122009822480346 [17:37:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T173730&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67850&fm=122009822480346&tin=02508201610067®Number=0000000000091845&sum=100066 [17:37:31]OFD Sender: Processing packet 67850 [packets to send 35, broken 34] [17:37:31]ProducePacketName [17:37:31]name=ofd_packets/00067850 [17:37:31]OFD Sender: To server: pG, [17:37:31]CommunicateWithHost lk.salyk.kg:30040 [17:37:31]ConnectInit lk.salyk.kg [17:37:31]written 0, free lines is 4095 [17:37:31]Connected sock=9 [17:37:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 C7 B4 07 01 0B 51 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 84 3A 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E2 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E2 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 5A E7 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 0A 09 01 00 35 04 06 00 6E F7 A0 20 C7 DA 53 61 AE 23 7C 52 F4 AE [17:37:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 30 83 47 00 99 7E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 0A 09 01 00 F4 03 04 00 2F 8F 48 66 B6 04 01 00 00 91 1A 11 3A 78 4B A5 65 [17:37:31]CommunicateWithHost err = 0 [17:37:31]CheckOFDResponse [17:37:31]1017 (14) - 77093643461234 [17:37:31]1041 (16) - 0000000000871829 [17:37:31]1040 (4) - 67850 [17:37:31]1012 (4) - 18.05.2024 11:21 [17:37:31]1206 (1) - 0 [17:37:31]OFD Sender: Remove packet 67850 [17:37:31]ProducePacketName [17:37:31]name=ofd_packets/00067850 [17:37:31]NVStorageDeleteData [17:37:31]Write to MH i2c: 01 00 00 17 0B 22 [17:37:31]Write i2c OK [17:37:31]MH_I2C_Read... [17:37:31]Read from MH i2c: 01 [17:37:31]MH_I2C_Read... [17:37:31]Read from MH i2c: 01 07 00 [17:37:31]MH_I2C_Read... [17:37:31]Read from MH i2c: 01 07 00 17 0B 00 00 00 00 00 D7 0C 0C [17:37:31]RasterBufferAndPrint [17:37:31]line [17:37:31]line [17:37:31]line [17:37:31]line [17:37:31]line [17:37:31]written 0, free lines is 3295 [17:37:31]MH_Cut [17:37:31]Write to MH i2c: D1 01 00 1E 0B 01 FB [17:37:31]Write i2c OK [17:37:31]MH_I2C_Read... [17:37:31]Read from MH i2c: D1 [17:37:31]MH_I2C_Read... [17:37:31]Read from MH i2c: D1 01 00 [17:37:31]MH_I2C_Read... [17:37:31]Read from MH i2c: D1 01 00 1E 0B 00 FA [17:37:31]Write to MH i2c: 01 00 00 1F 0B 2A [17:37:31]Write i2c OK [17:37:31]MH_I2C_Read... [17:37:31]OFD Sender: No OFD packet to send [17:37:32]*** Cut start [17:37:32]*** Purtial cut [17:37:32]*** CUTSNS_PIN = 0 [17:37:32]*** Stage 1: CUTSNS_PIN = 1 [17:37:34]Read from MH i2c: 01 [17:37:34]MH_I2C_Read... [17:37:34]*** Stop cut motor [17:37:34]*** Cut end [17:37:34]Read from MH i2c: 01 07 00 [17:37:34]MH_I2C_Read... [17:37:34]Read from MH i2c: 01 07 00 1F 0B 00 00 00 00 00 FF 0F 3F [17:37:34]process_action close_receipt done [17:37:34]requested_data is exist [17:37:34]produce_requested_data [17:37:34]requested_item fm.sn is exist - process it [17:37:34]wFMCommunicate request_size=4 [17:37:34]MH_SAM_APDU [17:37:34]CAPDU: 80 11 00 00 [17:37:34]Write to MH i2c: E2 08 00 20 0B 80 11 00 00 00 00 00 00 A5 [17:37:34]Write i2c OK [17:37:34]MH_I2C_Read... [17:37:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:37:34]Read from MH i2c: E2 [17:37:34]MH_I2C_Read... [17:37:34]Read from MH i2c: E2 17 00 [17:37:34]MH_I2C_Read... [17:37:34]Read from MH i2c: E2 17 00 20 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 FB [17:37:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [17:37:34]wFMCommunicate OK [17:37:34]requested_item fd.num is exist - process it [17:37:34]SAM_PROTO_GetFieldsCounters [17:37:34]wFMCommunicate request_size=4 [17:37:34]MH_SAM_APDU [17:37:34]CAPDU: 80 13 00 00 [17:37:34]Write to MH i2c: E2 08 00 21 0B 80 13 00 00 00 00 00 00 A8 [17:37:34]Write i2c OK [17:37:34]MH_I2C_Read... [17:37:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:37:34]Read from MH i2c: E2 [17:37:34]MH_I2C_Read... [17:37:34]Read from MH i2c: E2 62 00 [17:37:34]MH_I2C_Read... [17:37:34]Read from MH i2c: E2 62 00 21 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 0A 09 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 59 00 00 00 5E 04 04 00 59 00 00 00 57 04 04 00 5A 00 00 00 19 04 04 00 00 00 00 00 90 00 55 [17:37:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 0A 09 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 59 00 00 00 5E 04 04 00 59 00 00 00 57 04 04 00 5A 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:37:34]wFMCommunicate OK [17:37:34]SAM_PROTO_GetFieldsCounters done [17:37:34]requested_item shift.num is exist - process it [17:37:34]requested_item shift.opened is exist - process it [17:37:34]req_shift_opened [17:37:34]FM_GetShiftState [17:37:34]SAM_PROTO_GetShiftState [17:37:34]wFMCommunicate request_size=4 [17:37:34]MH_SAM_APDU [17:37:34]CAPDU: 80 13 01 00 [17:37:34]Write to MH i2c: E2 08 00 22 0B 80 13 01 00 00 00 00 00 AA [17:37:34]Write i2c OK [17:37:34]MH_I2C_Read... [17:37:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:37:34]Read from MH i2c: E2 [17:37:34]MH_I2C_Read... [17:37:34]Read from MH i2c: E2 0E 00 [17:37:34]MH_I2C_Read... [17:37:34]Read from MH i2c: E2 0E 00 22 0B 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 11 [17:37:34]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [17:37:34]wFMCommunicate OK [17:37:34]SAM_PROTO_GetShiftState done [17:37:34]FM_GetShiftState done [17:37:34]req_shift_opened done [17:37:34]requested_item shift.open_date is exist - process it [17:37:34]req_shift_open_date [17:37:34]req_shift_open_date done [17:37:34]produce_requested_data done [17:37:34]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67850,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [17:37:34]process_action_free close_receipt [17:37:34]json_value_free [17:37:34]json_value_free done [17:37:34]process_json_proto returns [17:37:34]Send response to host [17:37:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67850,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [17:37:34]free response buf [17:37:34]execute_script done [17:37:34]execute_script returns [17:37:34]free content buf [17:37:34]Sock 7.Close socket [17:37:34]Sock 7.Thread stoped [17:37:36]OFD Sender: No OFD packet to send [17:37:41]OFD Sender: No OFD packet to send [17:37:46]OFD Sender: No OFD packet to send [17:37:51]OFD Sender: No OFD packet to send [17:37:56]OFD Sender: No OFD packet to send [17:38:01]OFD Sender: No OFD packet to send [17:38:06]OFD Sender: No OFD packet to send [17:38:11]OFD Sender: No OFD packet to send [17:38:16]OFD Sender: No OFD packet to send [17:38:21]OFD Sender: No OFD packet to send [17:38:26]OFD Sender: No OFD packet to send [17:38:31]OFD Sender: No OFD packet to send [17:38:36]OFD Sender: No OFD packet to send [17:38:41]OFD Sender: No OFD packet to send [17:38:46]OFD Sender: No OFD packet to send [17:38:49]accept exits with 10 [17:38:49]New connection [17:38:49]New thread 3067059556 created [17:38:49]Thread 3067202916 joined [17:38:49]Waiting for new connection... [17:38:49] Sock 10.Parse request [17:38:49]Sock 10.Check first char [17:38:49]Sock 10.First char is OK [17:38:49]request: POST /json_proto HTTP/1.0 [17:38:49]Method: POST [17:38:49]URL: /json_proto [17:38:49]Method is POST - this is cgi request [17:38:49]url: /json_proto [17:38:49]query_string will be loaded in cgi processing [17:38:49]execute_cgi json_proto POST (null) [17:38:49]execute_cgi path=json_proto method=POST [17:38:49]POST find Content-Length [17:38:49]Host: 172.17.41.195:8080 [17:38:49]Content-Length: 796 [17:38:49]Content-Type: application/json [17:38:49] [17:38:49]POST finish read [17:38:49]Found Content-Length = 796 [17:38:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)508111", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.05 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:38:49]execute_script... [17:38:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)508111", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.05 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:38:49]POST & json_proto [17:38:49]process_json_proto [17:38:49]json parsed OK: [17:38:49]protocol is kg_v1.0 [17:38:49]action value=close_receipt [17:38:49]process_action close_receipt [17:38:49]cmd_close_receipt [17:38:49]MH_GetDate [17:38:49]Write to MH i2c: F0 00 00 23 0B 1D [17:38:49]Write i2c OK [17:38:49]MH_I2C_Read... [17:38:49]Read from MH i2c: F0 [17:38:49]MH_I2C_Read... [17:38:49]Read from MH i2c: F0 09 00 [17:38:49]MH_I2C_Read... [17:38:49]Read from MH i2c: F0 09 00 23 0B 00 AA E7 48 66 FC 21 6F 64 55 [17:38:49]GetLastDocTimeStamp 1716053850 [17:38:49]current date 1716053930 [17:38:49]FM_GetShiftState [17:38:49]SAM_PROTO_GetShiftState [17:38:49]wFMCommunicate request_size=4 [17:38:49]MH_SAM_APDU [17:38:49]CAPDU: 80 13 01 00 [17:38:49]Write to MH i2c: E2 08 00 24 0B 80 13 01 00 00 00 00 00 AC [17:38:49]Write i2c OK [17:38:49]MH_I2C_Read... [17:38:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:38:49]Read from MH i2c: E2 [17:38:49]MH_I2C_Read... [17:38:49]Read from MH i2c: E2 0E 00 [17:38:49]MH_I2C_Read... [17:38:49]Read from MH i2c: E2 0E 00 24 0B 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 13 [17:38:49]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [17:38:49]wFMCommunicate OK [17:38:49]SAM_PROTO_GetShiftState done [17:38:49]FM_GetShiftState done [17:38:49]opened in 1715991483 [17:38:49]opened+sec_in_day 1716077883 [17:38:49]quantity*price = 100005 [17:38:49]sum+1 = 100006 [17:38:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.05 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 0.00 Безнал.: 1000.05 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 90 18.05.2024 17:38 Смена: 359 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67851 ФПД: 165106149674963 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T173850&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67851&fm=165106149674963&tin=02508201610067®Number=0000000000091845&sum=100005 [17:38:50]StoreToDocumentArchive [17:38:50]shift 359 fd 67851 [17:38:50]save to /storage/0359/doc_00067851 [17:38:50]save last doc name /storage/0359/doc_00067851 to /storage/kkm_last_doc_name [17:38:50]save OK [17:38:50]Clear old archive folders... [17:38:50]ProcessDocumentItem done err = 0, tmpTLVsize=252 [17:38:50]tlvbuf is 009E6010 [17:38:50]SAM_PROTO_ClearQueue [17:38:50]wFMCommunicate request_size=4 [17:38:50]MH_SAM_APDU [17:38:50]CAPDU: 80 09 00 00 [17:38:50]Write to MH i2c: E2 08 00 31 0B 80 09 00 00 00 00 00 00 AE [17:38:50]Write i2c OK [17:38:50]MH_I2C_Read... [17:38:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:38:50]Read from MH i2c: E2 [17:38:50]MH_I2C_Read... [17:38:50]Read from MH i2c: E2 03 00 [17:38:50]MH_I2C_Read... [17:38:50]Read from MH i2c: E2 03 00 31 0B 00 90 00 B0 [17:38:50]RAPDU: 90 00 [17:38:50]wFMCommunicate OK [17:38:50]SAM_PROTO_ClearQueue done [17:38:50]KKMCreateOFDPacket [17:38:50]OFDProtocolAddRootSTLVToBuf [17:38:50]FM_MakeSignedData [17:38:50]FM_MakeSignedData [17:38:50]SAM_PROTO_SignData [17:38:50]wFMCommunicate request_size=4 [17:38:50]MH_SAM_APDU [17:38:50]CAPDU: 80 0D 01 02 [17:38:50]Write to MH i2c: E2 08 00 32 0B 80 0D 01 02 00 00 00 00 B6 [17:38:50]Write i2c OK [17:38:50]MH_I2C_Read... [17:38:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:38:50]Read from MH i2c: E2 [17:38:50]MH_I2C_Read... [17:38:50]Read from MH i2c: E2 03 00 [17:38:50]MH_I2C_Read... [17:38:50]Read from MH i2c: E2 03 00 32 0B 00 90 00 B1 [17:38:50]RAPDU: 90 00 [17:38:50]wFMCommunicate OK [17:38:50]wFMCommunicate request_size=255 [17:38:50]MH_SAM_APDU [17:38:50]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A5 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A5 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 AA E7 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 0B 09 01 00 35 04 06 00 [17:38:50]Write to MH i2c: E2 02 01 33 0B 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A5 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A5 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 AA E7 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 0B 09 01 00 35 04 06 00 00 00 13 [17:38:50]Write i2c OK [17:38:50]MH_I2C_Read... [17:38:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:38:50]Read from MH i2c: E2 [17:38:50]MH_I2C_Read... [17:38:50]Read from MH i2c: E2 03 00 [17:38:50]MH_I2C_Read... [17:38:50]Read from MH i2c: E2 03 00 33 0B 00 90 00 B2 [17:38:50]RAPDU: 90 00 [17:38:50]wFMCommunicate OK [17:38:50]wFMCommunicate request_size=11 [17:38:50]MH_SAM_APDU [17:38:50]CAPDU: 80 0D 02 02 06 96 29 C5 66 CF D3 [17:38:50]Write to MH i2c: E2 0E 00 34 0B 80 0D 02 02 06 00 96 29 C5 66 CF D3 00 00 51 [17:38:50]Write i2c OK [17:38:50]MH_I2C_Read... [17:38:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:38:50]Read from MH i2c: E2 [17:38:50]MH_I2C_Read... [17:38:50]Read from MH i2c: E2 03 00 [17:38:50]MH_I2C_Read... [17:38:50]Read from MH i2c: E2 03 00 34 0B 00 90 00 B3 [17:38:50]RAPDU: 90 00 [17:38:50]wFMCommunicate OK [17:38:50]wFMCommunicate request_size=4 [17:38:50]MH_SAM_APDU [17:38:50]CAPDU: 80 0D 03 02 [17:38:50]Write to MH i2c: E2 08 00 35 0B 80 0D 03 02 00 00 00 00 BB [17:38:50]Write i2c OK [17:38:50]MH_I2C_Read... [17:38:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:38:50]Read from MH i2c: E2 [17:38:50]MH_I2C_Read... [17:38:50]Read from MH i2c: E2 0B 00 [17:38:50]MH_I2C_Read... [17:38:50]Read from MH i2c: E2 0B 00 35 0B 00 CD F4 FA F6 75 05 9E E7 90 00 6C [17:38:50]RAPDU: CD F4 FA F6 75 05 9E E7 90 00 [17:38:50]wFMCommunicate OK [17:38:50]SAM_PROTO_SignData done [17:38:50]FM_MakeSignedData done [17:38:50]CreateOFDProtocolMessage [17:38:50]wFMCommunicate request_size=4 [17:38:50]MH_SAM_APDU [17:38:50]CAPDU: 80 11 00 00 [17:38:50]Write to MH i2c: E2 08 00 36 0B 80 11 00 00 00 00 00 00 BB [17:38:50]Write i2c OK [17:38:50]MH_I2C_Read... [17:38:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:38:50]Read from MH i2c: E2 [17:38:50]MH_I2C_Read... [17:38:50]Read from MH i2c: E2 17 00 [17:38:50]MH_I2C_Read... [17:38:50]Read from MH i2c: E2 17 00 36 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 11 [17:38:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [17:38:50]wFMCommunicate OK [17:38:50]CreateOFDProtocolMessage done [17:38:50]OFDSenderStorePacket 67851 [17:38:50]StoreOFDPacket docnum=67851 [17:38:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 01 00 00 23 89 08 01 9C 8B 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A5 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A5 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 AA E7 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 0B 09 01 00 35 04 06 00 96 29 C5 66 CF D3 CD F4 FA F6 75 05 9E E7 [17:38:50]CheckFolder [17:38:50]dirname=/storage/ofd_packets [17:38:50]CheckFolder done [17:38:50]ProducePacketName [17:38:50]name=ofd_packets/00067851 [17:38:50]NVStorageSaveData ofd_packets/00067851 [17:38:50]File name is /storage/ofd_packets/00067851 [17:38:50]Write 302 bytes [17:38:50]NVStorageSaveData done [17:38:50]OFDSenderStorePacket done [17:38:50]KKMCreateOFDPacket done [17:38:50]NVStorageSaveData kkm_last_timestamp [17:38:50]File name is /storage/kkm_last_timestamp [17:38:50]Write 4 bytes [17:38:50]NVStorageSaveData done [17:38:50]ExternCall_PrintAddStr [17:38:50]wPrintStart [17:38:50]Write to MH i2c: 01 00 00 37 0B 42 [17:38:50]Write i2c OK [17:38:50]MH_I2C_Read... [17:38:50]Read from MH i2c: 01 [17:38:50]MH_I2C_Read... [17:38:50]Read from MH i2c: 01 07 00 [17:38:50]MH_I2C_Read... [17:38:50]Read from MH i2c: 01 07 00 37 0B 00 00 00 00 00 FF 0F 57 [17:38:50]RasterBufferAndPrint [17:38:50]line Счет N : (1)508111 [17:38:50]line ИНН: 02508201610067 [17:38:50]line Контрольно-Кассовый Чек [17:38:50]line ПРОДАЖА [17:38:50]line ТРК (МРК, ГНК) : 42 [17:38:50]line Товар: 2710124130 [17:38:50]line Super-92-К-5 [17:38:50]line 14.750 * 67.80 [17:38:50]line = 1000.05 [17:38:50]line НДС 12% НСП 1% [17:38:50]line > о реализуемом товаре [17:38:50]line ИТОГО: 1000.05 [17:38:50]line НСП 1% : 8.85 [17:38:50]line НДС 12% : 106.20 [17:38:50]line Наличными: 0.00 [17:38:50]line Безнал.: 1000.05 [17:38:50]line Место: АЗС № 91 "Партнер Нефть" [17:38:50]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [17:38:50]line СНО: Общий режим [17:38:50]line Чек 90 18.05.2024 17:38 [17:38:50]line Смена: 359 ФФД: 1.0 [17:38:50]line ЗНМ: 0300000119 [17:38:50]line РНМ: 0000000000091845 [17:38:50]line Версия ККМ: 001 [17:38:50]line Платежная система: O! деньги [17:38:50]line ФМ: 0000000000871829 [17:38:50]line ФД: 67851 [17:38:50]line ФПД: 165106149674963 [17:38:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T173850&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67851&fm=165106149674963&tin=02508201610067®Number=0000000000091845&sum=100005 [17:38:51]OFD Sender: Processing packet 67851 [packets to send 35, broken 34] [17:38:51]ProducePacketName [17:38:51]name=ofd_packets/00067851 [17:38:51]OFD Sender: To server: pG, [17:38:51]CommunicateWithHost lk.salyk.kg:30040 [17:38:51]ConnectInit lk.salyk.kg [17:38:51]written 0, free lines is 4095 [17:38:51]Connected sock=9 [17:38:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 01 00 00 23 89 08 01 9C 8B 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A5 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A5 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 AA E7 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 0B 09 01 00 35 04 06 00 96 29 C5 66 CF D3 CD F4 FA F6 75 05 9E E7 [17:38:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 73 E1 47 00 75 E0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 0B 09 01 00 F4 03 04 00 7F 8F 48 66 B6 04 01 00 00 37 99 CD 72 D9 03 80 C4 [17:38:51]CommunicateWithHost err = 0 [17:38:51]CheckOFDResponse [17:38:51]1017 (14) - 77093643461234 [17:38:51]1041 (16) - 0000000000871829 [17:38:51]1040 (4) - 67851 [17:38:51]1012 (4) - 18.05.2024 11:22 [17:38:51]1206 (1) - 0 [17:38:51]OFD Sender: Remove packet 67851 [17:38:51]ProducePacketName [17:38:51]name=ofd_packets/00067851 [17:38:51]NVStorageDeleteData [17:38:51]Write to MH i2c: 01 00 00 60 0B 6B [17:38:51]Write i2c OK [17:38:51]MH_I2C_Read... [17:38:51]Read from MH i2c: 01 [17:38:51]MH_I2C_Read... [17:38:51]Read from MH i2c: 01 07 00 [17:38:51]MH_I2C_Read... [17:38:51]Read from MH i2c: 01 07 00 60 0B 00 00 00 00 00 D1 0C 4F [17:38:51]RasterBufferAndPrint [17:38:51]line [17:38:51]line [17:38:51]line [17:38:51]line [17:38:51]line [17:38:51]written 0, free lines is 3287 [17:38:51]MH_Cut [17:38:51]Write to MH i2c: D1 01 00 67 0B 01 44 [17:38:51]Write i2c OK [17:38:51]MH_I2C_Read... [17:38:51]Read from MH i2c: D1 [17:38:51]MH_I2C_Read... [17:38:51]Read from MH i2c: D1 01 00 [17:38:51]MH_I2C_Read... [17:38:51]Read from MH i2c: D1 01 00 67 0B 00 43 [17:38:51]Write to MH i2c: 01 00 00 68 0B 73 [17:38:51]Write i2c OK [17:38:51]MH_I2C_Read... [17:38:52]OFD Sender: No OFD packet to send [17:38:52]*** Cut start [17:38:52]*** Purtial cut [17:38:52]*** Stage 1: CUTSNS_PIN = 1 [17:38:52]Read from MH i2c: 01 [17:38:52]MH_I2C_Read... [17:38:52]*** Stop cut motor [17:38:52]*** Cut end [17:38:52]Read from MH i2c: 01 07 00 [17:38:52]MH_I2C_Read... [17:38:52]Read from MH i2c: 01 07 00 68 0B 00 00 00 00 00 FF 0F 88 [17:38:52]process_action close_receipt done [17:38:52]requested_data is exist [17:38:52]produce_requested_data [17:38:52]requested_item fm.sn is exist - process it [17:38:52]wFMCommunicate request_size=4 [17:38:52]MH_SAM_APDU [17:38:52]CAPDU: 80 11 00 00 [17:38:52]Write to MH i2c: E2 08 00 69 0B 80 11 00 00 00 00 00 00 EE [17:38:52]Write i2c OK [17:38:52]MH_I2C_Read... [17:38:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:38:52]Read from MH i2c: E2 [17:38:52]MH_I2C_Read... [17:38:52]Read from MH i2c: E2 17 00 [17:38:52]MH_I2C_Read... [17:38:52]Read from MH i2c: E2 17 00 69 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 44 [17:38:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [17:38:52]wFMCommunicate OK [17:38:52]requested_item fd.num is exist - process it [17:38:52]SAM_PROTO_GetFieldsCounters [17:38:52]wFMCommunicate request_size=4 [17:38:52]MH_SAM_APDU [17:38:52]CAPDU: 80 13 00 00 [17:38:52]Write to MH i2c: E2 08 00 6A 0B 80 13 00 00 00 00 00 00 F1 [17:38:52]Write i2c OK [17:38:52]MH_I2C_Read... [17:38:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:38:53]Read from MH i2c: E2 [17:38:53]MH_I2C_Read... [17:38:53]Read from MH i2c: E2 62 00 [17:38:53]MH_I2C_Read... [17:38:53]Read from MH i2c: E2 62 00 6A 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 0B 09 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 5A 00 00 00 5E 04 04 00 5A 00 00 00 57 04 04 00 5B 00 00 00 19 04 04 00 00 00 00 00 90 00 A2 [17:38:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 0B 09 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 5A 00 00 00 5E 04 04 00 5A 00 00 00 57 04 04 00 5B 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:38:53]wFMCommunicate OK [17:38:53]SAM_PROTO_GetFieldsCounters done [17:38:53]requested_item shift.num is exist - process it [17:38:53]requested_item shift.opened is exist - process it [17:38:53]req_shift_opened [17:38:53]FM_GetShiftState [17:38:53]SAM_PROTO_GetShiftState [17:38:53]wFMCommunicate request_size=4 [17:38:53]MH_SAM_APDU [17:38:53]CAPDU: 80 13 01 00 [17:38:53]Write to MH i2c: E2 08 00 6B 0B 80 13 01 00 00 00 00 00 F3 [17:38:53]Write i2c OK [17:38:53]MH_I2C_Read... [17:38:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:38:53]Read from MH i2c: E2 [17:38:53]MH_I2C_Read... [17:38:53]Read from MH i2c: E2 0E 00 [17:38:53]MH_I2C_Read... [17:38:53]Read from MH i2c: E2 0E 00 6B 0B 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 5A [17:38:53]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [17:38:53]wFMCommunicate OK [17:38:53]SAM_PROTO_GetShiftState done [17:38:53]FM_GetShiftState done [17:38:53]req_shift_opened done [17:38:53]requested_item shift.open_date is exist - process it [17:38:53]req_shift_open_date [17:38:53]req_shift_open_date done [17:38:53]produce_requested_data done [17:38:53]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67851,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [17:38:53]process_action_free close_receipt [17:38:53]json_value_free [17:38:53]json_value_free done [17:38:53]process_json_proto returns [17:38:53]Send response to host [17:38:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67851,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [17:38:53]free response buf [17:38:53]execute_script done [17:38:53]execute_script returns [17:38:53]free content buf [17:38:53]Sock 10.Close socket [17:38:53]Sock 10.Thread stoped [17:38:57]OFD Sender: No OFD packet to send [17:39:02]OFD Sender: No OFD packet to send [17:39:07]OFD Sender: No OFD packet to send [17:39:12]OFD Sender: No OFD packet to send [17:39:17]OFD Sender: No OFD packet to send [17:39:22]OFD Sender: No OFD packet to send [17:39:27]OFD Sender: No OFD packet to send [17:39:32]OFD Sender: No OFD packet to send [17:39:37]OFD Sender: No OFD packet to send [17:39:42]OFD Sender: No OFD packet to send [17:39:47]OFD Sender: No OFD packet to send [17:39:52]OFD Sender: No OFD packet to send [17:39:57]OFD Sender: No OFD packet to send [17:40:02]OFD Sender: No OFD packet to send [17:40:07]OFD Sender: No OFD packet to send [17:40:12]OFD Sender: No OFD packet to send [17:40:17]OFD Sender: No OFD packet to send [17:40:22]OFD Sender: No OFD packet to send [17:40:27]OFD Sender: No OFD packet to send [17:40:32]OFD Sender: No OFD packet to send [17:40:37]OFD Sender: No OFD packet to send [17:40:42]OFD Sender: No OFD packet to send [17:40:47]OFD Sender: No OFD packet to send [17:40:52]OFD Sender: No OFD packet to send [17:40:57]OFD Sender: No OFD packet to send [17:41:02]OFD Sender: No OFD packet to send [17:41:07]OFD Sender: No OFD packet to send [17:41:12]OFD Sender: No OFD packet to send [17:41:17]OFD Sender: No OFD packet to send [17:41:22]OFD Sender: No OFD packet to send [17:41:27]OFD Sender: No OFD packet to send [17:41:31]accept exits with 7 [17:41:31]New connection [17:41:31]New thread 3067202916 created [17:41:31]Thread 3067059556 joined [17:41:31]Waiting for new connection... [17:41:31] Sock 7.Parse request [17:41:31]Sock 7.Check first char [17:41:31]Sock 7.First char is OK [17:41:31]request: POST /json_proto HTTP/1.0 [17:41:31]Method: POST [17:41:31]URL: /json_proto [17:41:31]Method is POST - this is cgi request [17:41:31]url: /json_proto [17:41:31]query_string will be loaded in cgi processing [17:41:31]execute_cgi json_proto POST (null) [17:41:31]execute_cgi path=json_proto method=POST [17:41:31]POST find Content-Length [17:41:31]Host: 172.17.41.195:8080 [17:41:31]Content-Length: 800 [17:41:31]Content-Type: application/json [17:41:31] [17:41:31]POST finish read [17:41:31]Found Content-Length = 800 [17:41:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)508112", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 13.390, "sum" : 1000.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.23 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:41:31]execute_script... [17:41:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)508112", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 13.390, "sum" : 1000.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.23 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:41:31]POST & json_proto [17:41:31]process_json_proto [17:41:31]json parsed OK: [17:41:31]protocol is kg_v1.0 [17:41:31]action value=close_receipt [17:41:31]process_action close_receipt [17:41:31]cmd_close_receipt [17:41:31]MH_GetDate [17:41:31]Write to MH i2c: F0 00 00 6C 0B 66 [17:41:31]Write i2c OK [17:41:31]MH_I2C_Read... [17:41:31]Read from MH i2c: F0 [17:41:31]MH_I2C_Read... [17:41:31]Read from MH i2c: F0 09 00 [17:41:31]MH_I2C_Read... [17:41:31]Read from MH i2c: F0 09 00 6C 0B 00 4C E8 48 66 FC 21 6F 64 41 [17:41:31]GetLastDocTimeStamp 1716053930 [17:41:31]current date 1716054092 [17:41:31]FM_GetShiftState [17:41:31]SAM_PROTO_GetShiftState [17:41:31]wFMCommunicate request_size=4 [17:41:31]MH_SAM_APDU [17:41:31]CAPDU: 80 13 01 00 [17:41:31]Write to MH i2c: E2 08 00 6D 0B 80 13 01 00 00 00 00 00 F5 [17:41:31]Write i2c OK [17:41:31]MH_I2C_Read... [17:41:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:41:31]Read from MH i2c: E2 [17:41:31]MH_I2C_Read... [17:41:31]Read from MH i2c: E2 0E 00 [17:41:31]MH_I2C_Read... [17:41:31]Read from MH i2c: E2 0E 00 6D 0B 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 5C [17:41:31]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [17:41:31]wFMCommunicate OK [17:41:31]SAM_PROTO_GetShiftState done [17:41:31]FM_GetShiftState done [17:41:31]opened in 1715991483 [17:41:31]opened+sec_in_day 1716077883 [17:41:31]quantity*price = 100023 [17:41:31]sum+1 = 100024 [17:41:31]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.23 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.23 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 91 18.05.2024 17:41 Смена: 359 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67852 ФПД: 70699815920641 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T174132&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67852&fm=70699815920641&tin=02508201610067®Number=0000000000091845&sum=100023 [17:41:32]StoreToDocumentArchive [17:41:32]shift 359 fd 67852 [17:41:32]save to /storage/0359/doc_00067852 [17:41:32]save last doc name /storage/0359/doc_00067852 to /storage/kkm_last_doc_name [17:41:32]save OK [17:41:32]Clear old archive folders... [17:41:32]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:41:32]tlvbuf is 0098F100 [17:41:32]SAM_PROTO_ClearQueue [17:41:32]wFMCommunicate request_size=4 [17:41:32]MH_SAM_APDU [17:41:32]CAPDU: 80 09 00 00 [17:41:32]Write to MH i2c: E2 08 00 7A 0B 80 09 00 00 00 00 00 00 F7 [17:41:32]Write i2c OK [17:41:32]MH_I2C_Read... [17:41:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:41:32]Read from MH i2c: E2 [17:41:32]MH_I2C_Read... [17:41:32]Read from MH i2c: E2 03 00 [17:41:32]MH_I2C_Read... [17:41:32]Read from MH i2c: E2 03 00 7A 0B 00 90 00 F9 [17:41:32]RAPDU: 90 00 [17:41:32]wFMCommunicate OK [17:41:32]SAM_PROTO_ClearQueue done [17:41:32]KKMCreateOFDPacket [17:41:32]OFDProtocolAddRootSTLVToBuf [17:41:32]FM_MakeSignedData [17:41:32]FM_MakeSignedData [17:41:32]SAM_PROTO_SignData [17:41:32]wFMCommunicate request_size=4 [17:41:32]MH_SAM_APDU [17:41:32]CAPDU: 80 0D 01 02 [17:41:32]Write to MH i2c: E2 08 00 7B 0B 80 0D 01 02 00 00 00 00 FF [17:41:32]Write i2c OK [17:41:32]MH_I2C_Read... [17:41:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:41:32]Read from MH i2c: E2 [17:41:32]MH_I2C_Read... [17:41:32]Read from MH i2c: E2 03 00 [17:41:32]MH_I2C_Read... [17:41:32]Read from MH i2c: E2 03 00 7B 0B 00 90 00 FA [17:41:32]RAPDU: 90 00 [17:41:32]wFMCommunicate OK [17:41:32]wFMCommunicate request_size=255 [17:41:32]MH_SAM_APDU [17:41:32]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4E 34 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 B7 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B7 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B7 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 4C E8 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 0C 09 01 00 35 04 06 00 40 4D 15 69 [17:41:32]Write to MH i2c: E2 02 01 7C 0B 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4E 34 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 B7 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B7 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B7 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 4C E8 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 0C 09 01 00 35 04 06 00 40 4D 15 69 00 00 CD [17:41:32]Write i2c OK [17:41:32]MH_I2C_Read... [17:41:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:41:32]Read from MH i2c: E2 [17:41:32]MH_I2C_Read... [17:41:32]Read from MH i2c: E2 03 00 [17:41:32]MH_I2C_Read... [17:41:32]Read from MH i2c: E2 03 00 7C 0B 00 90 00 FB [17:41:32]RAPDU: 90 00 [17:41:32]wFMCommunicate OK [17:41:32]wFMCommunicate request_size=7 [17:41:32]MH_SAM_APDU [17:41:32]CAPDU: 80 0D 02 02 02 E4 01 [17:41:32]Write to MH i2c: E2 0A 00 7D 0B 80 0D 02 02 02 00 E4 01 00 00 EB [17:41:32]Write i2c OK [17:41:32]MH_I2C_Read... [17:41:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:41:32]Read from MH i2c: E2 [17:41:32]MH_I2C_Read... [17:41:32]Read from MH i2c: E2 03 00 [17:41:32]MH_I2C_Read... [17:41:32]Read from MH i2c: E2 03 00 7D 0B 00 90 00 FC [17:41:32]RAPDU: 90 00 [17:41:32]wFMCommunicate OK [17:41:32]wFMCommunicate request_size=4 [17:41:32]MH_SAM_APDU [17:41:32]CAPDU: 80 0D 03 02 [17:41:32]Write to MH i2c: E2 08 00 7E 0B 80 0D 03 02 00 00 00 00 04 [17:41:32]Write i2c OK [17:41:32]MH_I2C_Read... [17:41:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:41:33]Read from MH i2c: E2 [17:41:33]MH_I2C_Read... [17:41:33]Read from MH i2c: E2 0B 00 [17:41:33]MH_I2C_Read... [17:41:33]Read from MH i2c: E2 0B 00 7E 0B 00 7A 54 24 21 9B EE 4E CD 90 00 BC [17:41:33]RAPDU: 7A 54 24 21 9B EE 4E CD 90 00 [17:41:33]wFMCommunicate OK [17:41:33]SAM_PROTO_SignData done [17:41:33]FM_MakeSignedData done [17:41:33]CreateOFDProtocolMessage [17:41:33]wFMCommunicate request_size=4 [17:41:33]MH_SAM_APDU [17:41:33]CAPDU: 80 11 00 00 [17:41:33]Write to MH i2c: E2 08 00 7F 0B 80 11 00 00 00 00 00 00 04 [17:41:33]Write i2c OK [17:41:33]MH_I2C_Read... [17:41:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:41:33]Read from MH i2c: E2 [17:41:33]MH_I2C_Read... [17:41:33]Read from MH i2c: E2 17 00 [17:41:33]MH_I2C_Read... [17:41:33]Read from MH i2c: E2 17 00 7F 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 5A [17:41:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [17:41:33]wFMCommunicate OK [17:41:33]CreateOFDProtocolMessage done [17:41:33]OFDSenderStorePacket 67852 [17:41:33]StoreOFDPacket docnum=67852 [17:41:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 EF E2 04 01 C3 BC 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4E 34 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 B7 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B7 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B7 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 4C E8 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 0C 09 01 00 35 04 06 00 40 4D 15 69 E4 01 7A 54 24 21 9B EE 4E CD [17:41:33]CheckFolder [17:41:33]dirname=/storage/ofd_packets [17:41:33]CheckFolder done [17:41:33]ProducePacketName [17:41:33]name=ofd_packets/00067852 [17:41:33]NVStorageSaveData ofd_packets/00067852 [17:41:33]File name is /storage/ofd_packets/00067852 [17:41:33]Write 298 bytes [17:41:33]NVStorageSaveData done [17:41:33]OFDSenderStorePacket done [17:41:33]KKMCreateOFDPacket done [17:41:33]NVStorageSaveData kkm_last_timestamp [17:41:33]File name is /storage/kkm_last_timestamp [17:41:33]Write 4 bytes [17:41:33]NVStorageSaveData done [17:41:33]ExternCall_PrintAddStr [17:41:33]wPrintStart [17:41:33]Write to MH i2c: 01 00 00 80 0B 8B [17:41:33]Write i2c OK [17:41:33]MH_I2C_Read... [17:41:33]Read from MH i2c: 01 [17:41:33]MH_I2C_Read... [17:41:33]Read from MH i2c: 01 07 00 [17:41:33]MH_I2C_Read... [17:41:33]Read from MH i2c: 01 07 00 80 0B 00 00 00 00 00 FF 0F A0 [17:41:33]RasterBufferAndPrint [17:41:33]line Счет N : (1)508112 [17:41:33]line ИНН: 02508201610067 [17:41:33]line Контрольно-Кассовый Чек [17:41:33]line ПРОДАЖА [17:41:33]line ТРК (МРК, ГНК) : 31 [17:41:33]line Товар: 2710194210 [17:41:33]line ДТ-К-5 [17:41:33]line 13.390 * 74.70 [17:41:33]line = 1000.23 [17:41:33]line НДС 12% НСП 1% [17:41:33]line > о реализуемом товаре [17:41:33]line ИТОГО: 1000.23 [17:41:33]line НСП 1% : 8.85 [17:41:33]line НДС 12% : 106.22 [17:41:33]line Наличными: 0.00 [17:41:33]line Безнал.: 1000.23 [17:41:33]line Место: АЗС № 91 "Партнер Нефть" [17:41:33]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [17:41:33]line СНО: Общий режим [17:41:33]line Чек 91 18.05.2024 17:41 [17:41:33]line Смена: 359 ФФД: 1.0 [17:41:33]line ЗНМ: 0300000119 [17:41:33]line РНМ: 0000000000091845 [17:41:33]line Версия ККМ: 001 [17:41:33]line Платежная система: O! деньги [17:41:33]line ФМ: 0000000000871829 [17:41:33]line ФД: 67852 [17:41:33]line ФПД: 70699815920641 [17:41:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T174132&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67852&fm=70699815920641&tin=02508201610067®Number=0000000000091845&sum=100023 [17:41:33]OFD Sender: Processing packet 67852 [packets to send 35, broken 34] [17:41:33]ProducePacketName [17:41:33]name=ofd_packets/00067852 [17:41:33]OFD Sender: To server: pG, [17:41:33]CommunicateWithHost lk.salyk.kg:30040 [17:41:33]ConnectInit lk.salyk.kg [17:41:33]written 0, free lines is 4095 [17:41:33]Connected sock=10 [17:41:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 EF E2 04 01 C3 BC 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4E 34 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 B7 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B7 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B7 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 4C E8 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 0C 09 01 00 35 04 06 00 40 4D 15 69 E4 01 7A 54 24 21 9B EE 4E CD [17:41:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 C4 1B 47 00 06 C3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 0C 09 01 00 F4 03 04 00 21 90 48 66 B6 04 01 00 00 57 CE C1 19 87 09 D4 4B [17:41:33]CommunicateWithHost err = 0 [17:41:33]CheckOFDResponse [17:41:33]1017 (14) - 77093643461234 [17:41:33]1041 (16) - 0000000000871829 [17:41:33]1040 (4) - 67852 [17:41:33]1012 (4) - 18.05.2024 11:25 [17:41:33]1206 (1) - 0 [17:41:33]OFD Sender: Remove packet 67852 [17:41:33]ProducePacketName [17:41:33]name=ofd_packets/00067852 [17:41:33]NVStorageDeleteData [17:41:33]Write to MH i2c: 01 00 00 A9 0B B4 [17:41:33]Write i2c OK [17:41:33]MH_I2C_Read... [17:41:33]Read from MH i2c: 01 [17:41:33]MH_I2C_Read... [17:41:33]Read from MH i2c: 01 07 00 [17:41:33]MH_I2C_Read... [17:41:33]Read from MH i2c: 01 07 00 A9 0B 00 00 00 00 00 CA 0C 91 [17:41:33]RasterBufferAndPrint [17:41:33]line [17:41:33]line [17:41:33]line [17:41:33]line [17:41:33]line [17:41:33]written 0, free lines is 3278 [17:41:33]MH_Cut [17:41:33]Write to MH i2c: D1 01 00 B0 0B 01 8D [17:41:33]Write i2c OK [17:41:33]MH_I2C_Read... [17:41:33]Read from MH i2c: D1 [17:41:33]MH_I2C_Read... [17:41:33]Read from MH i2c: D1 01 00 [17:41:33]MH_I2C_Read... [17:41:33]Read from MH i2c: D1 01 00 B0 0B 00 8C [17:41:33]Write to MH i2c: 01 00 00 B1 0B BC [17:41:33]Write i2c OK [17:41:33]MH_I2C_Read... [17:41:34]OFD Sender: No OFD packet to send [17:41:34]*** Cut start [17:41:34]*** Purtial cut [17:41:34]*** Stage 1: CUTSNS_PIN = 1 [17:41:34]Read from MH i2c: 01 [17:41:34]MH_I2C_Read... [17:41:34]*** Stop cut motor [17:41:34]*** Cut end [17:41:34]Read from MH i2c: 01 07 00 [17:41:34]MH_I2C_Read... [17:41:34]Read from MH i2c: 01 07 00 B1 0B 00 00 00 00 00 FF 0F D1 [17:41:34]process_action close_receipt done [17:41:34]requested_data is exist [17:41:34]produce_requested_data [17:41:34]requested_item fm.sn is exist - process it [17:41:34]wFMCommunicate request_size=4 [17:41:34]MH_SAM_APDU [17:41:34]CAPDU: 80 11 00 00 [17:41:34]Write to MH i2c: E2 08 00 B2 0B 80 11 00 00 00 00 00 00 37 [17:41:34]Write i2c OK [17:41:34]MH_I2C_Read... [17:41:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:41:35]Read from MH i2c: E2 [17:41:35]MH_I2C_Read... [17:41:35]Read from MH i2c: E2 17 00 [17:41:35]MH_I2C_Read... [17:41:35]Read from MH i2c: E2 17 00 B2 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 8D [17:41:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [17:41:35]wFMCommunicate OK [17:41:35]requested_item fd.num is exist - process it [17:41:35]SAM_PROTO_GetFieldsCounters [17:41:35]wFMCommunicate request_size=4 [17:41:35]MH_SAM_APDU [17:41:35]CAPDU: 80 13 00 00 [17:41:35]Write to MH i2c: E2 08 00 B3 0B 80 13 00 00 00 00 00 00 3A [17:41:35]Write i2c OK [17:41:35]MH_I2C_Read... [17:41:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:41:35]Read from MH i2c: E2 [17:41:35]MH_I2C_Read... [17:41:35]Read from MH i2c: E2 62 00 [17:41:35]MH_I2C_Read... [17:41:35]Read from MH i2c: E2 62 00 B3 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 0C 09 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 5B 00 00 00 5E 04 04 00 5B 00 00 00 57 04 04 00 5C 00 00 00 19 04 04 00 00 00 00 00 90 00 EF [17:41:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 0C 09 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 5B 00 00 00 5E 04 04 00 5B 00 00 00 57 04 04 00 5C 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:41:35]wFMCommunicate OK [17:41:35]SAM_PROTO_GetFieldsCounters done [17:41:35]requested_item shift.num is exist - process it [17:41:35]requested_item shift.opened is exist - process it [17:41:35]req_shift_opened [17:41:35]FM_GetShiftState [17:41:35]SAM_PROTO_GetShiftState [17:41:35]wFMCommunicate request_size=4 [17:41:35]MH_SAM_APDU [17:41:35]CAPDU: 80 13 01 00 [17:41:35]Write to MH i2c: E2 08 00 B4 0B 80 13 01 00 00 00 00 00 3C [17:41:35]Write i2c OK [17:41:35]MH_I2C_Read... [17:41:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:41:35]Read from MH i2c: E2 [17:41:35]MH_I2C_Read... [17:41:35]Read from MH i2c: E2 0E 00 [17:41:35]MH_I2C_Read... [17:41:35]Read from MH i2c: E2 0E 00 B4 0B 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 A3 [17:41:35]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [17:41:35]wFMCommunicate OK [17:41:35]SAM_PROTO_GetShiftState done [17:41:35]FM_GetShiftState done [17:41:35]req_shift_opened done [17:41:35]requested_item shift.open_date is exist - process it [17:41:35]req_shift_open_date [17:41:35]req_shift_open_date done [17:41:35]produce_requested_data done [17:41:35]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67852,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [17:41:35]process_action_free close_receipt [17:41:35]json_value_free [17:41:35]json_value_free done [17:41:35]process_json_proto returns [17:41:35]Send response to host [17:41:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67852,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [17:41:35]free response buf [17:41:35]execute_script done [17:41:35]execute_script returns [17:41:35]free content buf [17:41:35]Sock 7.Close socket [17:41:35]Sock 7.Thread stoped [17:41:39]OFD Sender: No OFD packet to send [17:41:44]OFD Sender: No OFD packet to send [17:41:49]OFD Sender: No OFD packet to send [17:41:54]OFD Sender: No OFD packet to send [17:41:59]OFD Sender: No OFD packet to send [17:42:04]OFD Sender: No OFD packet to send [17:42:09]OFD Sender: No OFD packet to send [17:42:14]OFD Sender: No OFD packet to send [17:42:19]OFD Sender: No OFD packet to send [17:42:24]OFD Sender: No OFD packet to send [17:42:29]OFD Sender: No OFD packet to send [17:42:34]OFD Sender: No OFD packet to send [17:42:39]OFD Sender: No OFD packet to send [17:42:44]OFD Sender: No OFD packet to send [17:42:49]OFD Sender: No OFD packet to send [17:42:54]OFD Sender: No OFD packet to send [17:42:59]OFD Sender: No OFD packet to send [17:43:04]OFD Sender: No OFD packet to send [17:43:09]OFD Sender: No OFD packet to send [17:43:14]OFD Sender: No OFD packet to send [17:43:19]OFD Sender: No OFD packet to send [17:43:24]OFD Sender: No OFD packet to send [17:43:29]OFD Sender: No OFD packet to send [17:43:34]OFD Sender: No OFD packet to send [17:43:39]OFD Sender: No OFD packet to send [17:43:44]OFD Sender: No OFD packet to send [17:43:49]OFD Sender: No OFD packet to send [17:43:54]OFD Sender: No OFD packet to send [17:43:59]OFD Sender: No OFD packet to send [17:44:04]OFD Sender: No OFD packet to send [17:44:09]OFD Sender: No OFD packet to send [17:44:14]OFD Sender: No OFD packet to send [17:44:19]OFD Sender: No OFD packet to send [17:44:24]OFD Sender: No OFD packet to send [17:44:29]OFD Sender: No OFD packet to send [17:44:34]OFD Sender: No OFD packet to send [17:44:39]OFD Sender: No OFD packet to send [17:44:44]OFD Sender: No OFD packet to send [17:44:49]OFD Sender: No OFD packet to send [17:44:54]OFD Sender: No OFD packet to send [17:44:59]OFD Sender: No OFD packet to send [17:45:04]OFD Sender: No OFD packet to send [17:45:09]OFD Sender: No OFD packet to send [17:45:14]OFD Sender: No OFD packet to send [17:45:15]accept exits with 9 [17:45:15]New connection [17:45:15]New thread 3067059556 created [17:45:15]Thread 3067202916 joined [17:45:15]Waiting for new connection... [17:45:15] Sock 9.Parse request [17:45:15]Sock 9.Check first char [17:45:15]Sock 9.First char is OK [17:45:15]request: POST /json_proto HTTP/1.0 [17:45:15]Method: POST [17:45:15]URL: /json_proto [17:45:15]Method is POST - this is cgi request [17:45:15]url: /json_proto [17:45:15]query_string will be loaded in cgi processing [17:45:15]execute_cgi json_proto POST (null) [17:45:15]execute_cgi path=json_proto method=POST [17:45:15]POST find Content-Length [17:45:15]Host: 172.17.41.195:8080 [17:45:15]Content-Length: 812 [17:45:15]Content-Type: application/json [17:45:15] [17:45:15]POST finish read [17:45:15]Found Content-Length = 812 [17:45:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)508113", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.05 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:45:15]execute_script... [17:45:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)508113", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.05 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:45:15]POST & json_proto [17:45:15]process_json_proto [17:45:15]json parsed OK: [17:45:15]protocol is kg_v1.0 [17:45:15]action value=close_receipt [17:45:15]process_action close_receipt [17:45:15]cmd_close_receipt [17:45:15]MH_GetDate [17:45:15]Write to MH i2c: F0 00 00 B5 0B AF [17:45:15]Write i2c OK [17:45:15]MH_I2C_Read... [17:45:15]Read from MH i2c: F0 [17:45:15]MH_I2C_Read... [17:45:15]Read from MH i2c: F0 09 00 [17:45:15]MH_I2C_Read... [17:45:15]Read from MH i2c: F0 09 00 B5 0B 00 2C E9 48 66 FC 21 6F 64 6B [17:45:15]GetLastDocTimeStamp 1716054092 [17:45:15]current date 1716054316 [17:45:15]FM_GetShiftState [17:45:15]SAM_PROTO_GetShiftState [17:45:15]wFMCommunicate request_size=4 [17:45:15]MH_SAM_APDU [17:45:15]CAPDU: 80 13 01 00 [17:45:15]Write to MH i2c: E2 08 00 B6 0B 80 13 01 00 00 00 00 00 3E [17:45:15]Write i2c OK [17:45:15]MH_I2C_Read... [17:45:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:45:15]Read from MH i2c: E2 [17:45:15]MH_I2C_Read... [17:45:15]Read from MH i2c: E2 0E 00 [17:45:15]MH_I2C_Read... [17:45:15]Read from MH i2c: E2 0E 00 B6 0B 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 A5 [17:45:15]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [17:45:15]wFMCommunicate OK [17:45:15]SAM_PROTO_GetShiftState done [17:45:15]FM_GetShiftState done [17:45:15]opened in 1715991483 [17:45:15]opened+sec_in_day 1716077883 [17:45:15]quantity*price = 100005 [17:45:15]sum+1 = 100006 [17:45:15]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.05 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 0.00 Безнал.: 1000.05 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 92 18.05.2024 17:45 Смена: 359 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871829 ФД: 67853 ФПД: 19026920021629 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T174516&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67853&fm=19026920021629&tin=02508201610067®Number=0000000000091845&sum=100005 [17:45:16]StoreToDocumentArchive [17:45:16]shift 359 fd 67853 [17:45:16]save to /storage/0359/doc_00067853 [17:45:16]save last doc name /storage/0359/doc_00067853 to /storage/kkm_last_doc_name [17:45:16]save OK [17:45:16]Clear old archive folders... [17:45:16]ProcessDocumentItem done err = 0, tmpTLVsize=252 [17:45:16]tlvbuf is 00A05E40 [17:45:16]SAM_PROTO_ClearQueue [17:45:16]wFMCommunicate request_size=4 [17:45:16]MH_SAM_APDU [17:45:16]CAPDU: 80 09 00 00 [17:45:16]Write to MH i2c: E2 08 00 C3 0B 80 09 00 00 00 00 00 00 40 [17:45:16]Write i2c OK [17:45:16]MH_I2C_Read... [17:45:16]Read from MH i2c: E2 [17:45:16]MH_I2C_Read... [17:45:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:45:16]Read from MH i2c: E2 03 00 [17:45:16]MH_I2C_Read... [17:45:16]Read from MH i2c: E2 03 00 C3 0B 00 90 00 42 [17:45:16]RAPDU: 90 00 [17:45:16]wFMCommunicate OK [17:45:16]SAM_PROTO_ClearQueue done [17:45:16]KKMCreateOFDPacket [17:45:16]OFDProtocolAddRootSTLVToBuf [17:45:16]FM_MakeSignedData [17:45:16]FM_MakeSignedData [17:45:16]SAM_PROTO_SignData [17:45:16]wFMCommunicate request_size=4 [17:45:16]MH_SAM_APDU [17:45:16]CAPDU: 80 0D 01 02 [17:45:16]Write to MH i2c: E2 08 00 C4 0B 80 0D 01 02 00 00 00 00 48 [17:45:16]Write i2c OK [17:45:16]MH_I2C_Read... [17:45:16]Read from MH i2c: E2 [17:45:16]MH_I2C_Read... [17:45:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:45:16]Read from MH i2c: E2 03 00 [17:45:16]MH_I2C_Read... [17:45:16]Read from MH i2c: E2 03 00 C4 0B 00 90 00 43 [17:45:16]RAPDU: 90 00 [17:45:16]wFMCommunicate OK [17:45:16]wFMCommunicate request_size=255 [17:45:16]MH_SAM_APDU [17:45:16]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A5 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A5 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 2C E9 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 0D 09 01 00 35 04 06 00 [17:45:16]Write to MH i2c: E2 02 01 C5 0B 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A5 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A5 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 2C E9 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 0D 09 01 00 35 04 06 00 00 00 2D [17:45:16]Write i2c OK [17:45:16]MH_I2C_Read... [17:45:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:45:16]Read from MH i2c: E2 [17:45:16]MH_I2C_Read... [17:45:16]Read from MH i2c: E2 03 00 [17:45:16]MH_I2C_Read... [17:45:16]Read from MH i2c: E2 03 00 C5 0B 00 90 00 44 [17:45:16]RAPDU: 90 00 [17:45:16]wFMCommunicate OK [17:45:16]wFMCommunicate request_size=11 [17:45:16]MH_SAM_APDU [17:45:16]CAPDU: 80 0D 02 02 06 11 4E 0C CF 1E 7D [17:45:16]Write to MH i2c: E2 0E 00 C6 0B 80 0D 02 02 06 00 11 4E 0C CF 1E 7D 00 00 2C [17:45:16]Write i2c OK [17:45:16]MH_I2C_Read... [17:45:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:45:17]Read from MH i2c: E2 [17:45:17]MH_I2C_Read... [17:45:17]Read from MH i2c: E2 03 00 [17:45:17]MH_I2C_Read... [17:45:17]Read from MH i2c: E2 03 00 C6 0B 00 90 00 45 [17:45:17]RAPDU: 90 00 [17:45:17]wFMCommunicate OK [17:45:17]wFMCommunicate request_size=4 [17:45:17]MH_SAM_APDU [17:45:17]CAPDU: 80 0D 03 02 [17:45:17]Write to MH i2c: E2 08 00 C7 0B 80 0D 03 02 00 00 00 00 4D [17:45:17]Write i2c OK [17:45:17]MH_I2C_Read... [17:45:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:45:17]Read from MH i2c: E2 [17:45:17]MH_I2C_Read... [17:45:17]Read from MH i2c: E2 0B 00 [17:45:17]MH_I2C_Read... [17:45:17]Read from MH i2c: E2 0B 00 C7 0B 00 53 83 15 36 A7 0D CD CE 90 00 BE [17:45:17]RAPDU: 53 83 15 36 A7 0D CD CE 90 00 [17:45:17]wFMCommunicate OK [17:45:17]SAM_PROTO_SignData done [17:45:17]FM_MakeSignedData done [17:45:17]CreateOFDProtocolMessage [17:45:17]wFMCommunicate request_size=4 [17:45:17]MH_SAM_APDU [17:45:17]CAPDU: 80 11 00 00 [17:45:17]Write to MH i2c: E2 08 00 C8 0B 80 11 00 00 00 00 00 00 4D [17:45:17]Write i2c OK [17:45:17]MH_I2C_Read... [17:45:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:45:17]Read from MH i2c: E2 [17:45:17]MH_I2C_Read... [17:45:17]Read from MH i2c: E2 17 00 [17:45:17]MH_I2C_Read... [17:45:17]Read from MH i2c: E2 17 00 C8 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 A3 [17:45:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [17:45:17]wFMCommunicate OK [17:45:17]CreateOFDProtocolMessage done [17:45:17]OFDSenderStorePacket 67853 [17:45:17]StoreOFDPacket docnum=67853 [17:45:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 01 00 00 10 CB 08 01 F0 0F 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A5 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A5 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 2C E9 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 0D 09 01 00 35 04 06 00 11 4E 0C CF 1E 7D 53 83 15 36 A7 0D CD CE [17:45:17]CheckFolder [17:45:17]dirname=/storage/ofd_packets [17:45:17]CheckFolder done [17:45:17]ProducePacketName [17:45:17]name=ofd_packets/00067853 [17:45:17]NVStorageSaveData ofd_packets/00067853 [17:45:17]File name is /storage/ofd_packets/00067853 [17:45:17]Write 302 bytes [17:45:17]NVStorageSaveData done [17:45:17]OFDSenderStorePacket done [17:45:17]KKMCreateOFDPacket done [17:45:17]NVStorageSaveData kkm_last_timestamp [17:45:17]File name is /storage/kkm_last_timestamp [17:45:17]Write 4 bytes [17:45:17]NVStorageSaveData done [17:45:17]ExternCall_PrintAddStr [17:45:17]wPrintStart [17:45:17]Write to MH i2c: 01 00 00 C9 0B D4 [17:45:17]Write i2c OK [17:45:17]MH_I2C_Read... [17:45:17]Read from MH i2c: 01 [17:45:17]MH_I2C_Read... [17:45:17]Read from MH i2c: 01 07 00 [17:45:17]MH_I2C_Read... [17:45:17]Read from MH i2c: 01 07 00 C9 0B 00 00 00 00 00 FF 0F E9 [17:45:17]RasterBufferAndPrint [17:45:17]line Счет N : (1)508113 [17:45:17]line ИНН: 02508201610067 [17:45:17]line Контрольно-Кассовый Чек [17:45:17]line ПРОДАЖА [17:45:17]line ТРК (МРК, ГНК) : 32 [17:45:17]line Товар: 2710124130 [17:45:17]line Super-92-К-5 [17:45:17]line 14.750 * 67.80 [17:45:17]line = 1000.05 [17:45:17]line НДС 12% НСП 1% [17:45:17]line > о реализуемом товаре [17:45:17]line ИТОГО: 1000.05 [17:45:17]line НСП 1% : 8.85 [17:45:17]line НДС 12% : 106.20 [17:45:17]line Наличными: 0.00 [17:45:17]line Безнал.: 1000.05 [17:45:17]line Место: АЗС № 91 "Партнер Нефть" [17:45:17]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [17:45:17]line СНО: Общий режим [17:45:17]line Чек 92 18.05.2024 17:45 [17:45:17]line Смена: 359 ФФД: 1.0 [17:45:17]line ЗНМ: 0300000119 [17:45:17]line РНМ: 0000000000091845 [17:45:17]line Версия ККМ: 001 [17:45:17]line Платежная система: Бакай Банк [17:45:17]line ФМ: 0000000000871829 [17:45:17]line ФД: 67853 [17:45:17]line ФПД: 19026920021629 [17:45:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T174516&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67853&fm=19026920021629&tin=02508201610067®Number=0000000000091845&sum=100005 [17:45:17]written 0, free lines is 4095 [17:45:17]OFD Sender: Processing packet 67853 [packets to send 35, broken 34] [17:45:17]ProducePacketName [17:45:17]name=ofd_packets/00067853 [17:45:17]OFD Sender: To server: pG, [17:45:17]CommunicateWithHost lk.salyk.kg:30040 [17:45:17]ConnectInit lk.salyk.kg [17:45:17]Connected sock=10 [17:45:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 01 00 00 10 CB 08 01 F0 0F 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A5 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A5 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 2C E9 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 0D 09 01 00 35 04 06 00 11 4E 0C CF 1E 7D 53 83 15 36 A7 0D CD CE [17:45:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 A0 F7 47 00 B2 5C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 0D 09 01 00 F4 03 04 00 01 91 48 66 B6 04 01 00 00 75 CC 8C 58 1A 95 0A 43 [17:45:17]CommunicateWithHost err = 0 [17:45:17]CheckOFDResponse [17:45:17]1017 (14) - 77093643461234 [17:45:17]1041 (16) - 0000000000871829 [17:45:17]1040 (4) - 67853 [17:45:17]1012 (4) - 18.05.2024 11:29 [17:45:17]1206 (1) - 0 [17:45:17]OFD Sender: Remove packet 67853 [17:45:17]ProducePacketName [17:45:17]name=ofd_packets/00067853 [17:45:17]NVStorageDeleteData [17:45:17]Write to MH i2c: 01 00 00 F2 0B FD [17:45:17]Write i2c OK [17:45:17]MH_I2C_Read... [17:45:17]Read from MH i2c: 01 [17:45:17]MH_I2C_Read... [17:45:17]Read from MH i2c: 01 07 00 [17:45:17]MH_I2C_Read... [17:45:17]Read from MH i2c: 01 07 00 F2 0B 00 00 00 00 00 E0 0C F0 [17:45:17]RasterBufferAndPrint [17:45:17]line [17:45:17]line [17:45:17]line [17:45:17]line [17:45:17]line [17:45:17]written 0, free lines is 3302 [17:45:17]MH_Cut [17:45:17]Write to MH i2c: D1 01 00 F9 0B 01 D6 [17:45:17]Write i2c OK [17:45:17]MH_I2C_Read... [17:45:17]Read from MH i2c: D1 [17:45:17]MH_I2C_Read... [17:45:17]Read from MH i2c: D1 01 00 [17:45:17]MH_I2C_Read... [17:45:17]Read from MH i2c: D1 01 00 F9 0B 00 D5 [17:45:17]Write to MH i2c: 01 00 00 FA 0B 05 [17:45:17]Write i2c OK [17:45:17]MH_I2C_Read... [17:45:18]OFD Sender: No OFD packet to send [17:45:18]*** Cut start [17:45:18]*** Purtial cut [17:45:18]*** Stage 1: CUTSNS_PIN = 1 [17:45:18]Read from MH i2c: 01 [17:45:18]MH_I2C_Read... [17:45:18]*** Stop cut motor [17:45:18]*** Cut end [17:45:18]Read from MH i2c: 01 07 00 [17:45:18]MH_I2C_Read... [17:45:18]Read from MH i2c: 01 07 00 FA 0B 00 00 00 00 00 FF 0F 1A [17:45:18]process_action close_receipt done [17:45:18]requested_data is exist [17:45:18]produce_requested_data [17:45:18]requested_item fm.sn is exist - process it [17:45:18]wFMCommunicate request_size=4 [17:45:18]MH_SAM_APDU [17:45:18]CAPDU: 80 11 00 00 [17:45:18]Write to MH i2c: E2 08 00 FB 0B 80 11 00 00 00 00 00 00 80 [17:45:18]Write i2c OK [17:45:18]MH_I2C_Read... [17:45:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:45:18]Read from MH i2c: E2 [17:45:18]MH_I2C_Read... [17:45:18]Read from MH i2c: E2 17 00 [17:45:18]MH_I2C_Read... [17:45:18]Read from MH i2c: E2 17 00 FB 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 D6 [17:45:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [17:45:18]wFMCommunicate OK [17:45:18]requested_item fd.num is exist - process it [17:45:18]SAM_PROTO_GetFieldsCounters [17:45:18]wFMCommunicate request_size=4 [17:45:18]MH_SAM_APDU [17:45:18]CAPDU: 80 13 00 00 [17:45:18]Write to MH i2c: E2 08 00 FC 0B 80 13 00 00 00 00 00 00 83 [17:45:18]Write i2c OK [17:45:18]MH_I2C_Read... [17:45:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:45:18]Read from MH i2c: E2 [17:45:18]MH_I2C_Read... [17:45:18]Read from MH i2c: E2 62 00 [17:45:18]MH_I2C_Read... [17:45:18]Read from MH i2c: E2 62 00 FC 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 0D 09 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 5C 00 00 00 5E 04 04 00 5C 00 00 00 57 04 04 00 5D 00 00 00 19 04 04 00 00 00 00 00 90 00 3C [17:45:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 0D 09 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 5C 00 00 00 5E 04 04 00 5C 00 00 00 57 04 04 00 5D 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:45:18]wFMCommunicate OK [17:45:18]SAM_PROTO_GetFieldsCounters done [17:45:18]requested_item shift.num is exist - process it [17:45:18]requested_item shift.opened is exist - process it [17:45:18]req_shift_opened [17:45:18]FM_GetShiftState [17:45:18]SAM_PROTO_GetShiftState [17:45:18]wFMCommunicate request_size=4 [17:45:18]MH_SAM_APDU [17:45:18]CAPDU: 80 13 01 00 [17:45:18]Write to MH i2c: E2 08 00 FD 0B 80 13 01 00 00 00 00 00 85 [17:45:18]Write i2c OK [17:45:18]MH_I2C_Read... [17:45:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:45:18]Read from MH i2c: E2 [17:45:18]MH_I2C_Read... [17:45:18]Read from MH i2c: E2 0E 00 [17:45:18]MH_I2C_Read... [17:45:18]Read from MH i2c: E2 0E 00 FD 0B 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 EC [17:45:18]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [17:45:18]wFMCommunicate OK [17:45:18]SAM_PROTO_GetShiftState done [17:45:18]FM_GetShiftState done [17:45:18]req_shift_opened done [17:45:18]requested_item shift.open_date is exist - process it [17:45:18]req_shift_open_date [17:45:18]req_shift_open_date done [17:45:18]produce_requested_data done [17:45:18]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67853,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [17:45:18]process_action_free close_receipt [17:45:18]json_value_free [17:45:18]json_value_free done [17:45:18]process_json_proto returns [17:45:18]Send response to host [17:45:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67853,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [17:45:18]free response buf [17:45:18]execute_script done [17:45:18]execute_script returns [17:45:18]free content buf [17:45:18]Sock 9.Close socket [17:45:18]Sock 9.Thread stoped [17:45:23]OFD Sender: No OFD packet to send [17:45:28]OFD Sender: No OFD packet to send [17:45:33]OFD Sender: No OFD packet to send [17:45:38]OFD Sender: No OFD packet to send [17:45:43]OFD Sender: No OFD packet to send [17:45:48]OFD Sender: No OFD packet to send [17:45:53]OFD Sender: No OFD packet to send [17:45:58]OFD Sender: No OFD packet to send [17:46:03]OFD Sender: No OFD packet to send [17:46:08]OFD Sender: No OFD packet to send [17:46:13]OFD Sender: No OFD packet to send [17:46:18]OFD Sender: No OFD packet to send [17:46:23]OFD Sender: No OFD packet to send [17:46:28]OFD Sender: No OFD packet to send [17:46:33]OFD Sender: No OFD packet to send [17:46:38]OFD Sender: No OFD packet to send [17:46:43]OFD Sender: No OFD packet to send [17:46:48]OFD Sender: No OFD packet to send [17:46:53]OFD Sender: No OFD packet to send [17:46:58]OFD Sender: No OFD packet to send [17:47:03]OFD Sender: No OFD packet to send [17:47:08]OFD Sender: No OFD packet to send [17:47:13]OFD Sender: No OFD packet to send [17:47:18]OFD Sender: No OFD packet to send [17:47:23]OFD Sender: No OFD packet to send [17:47:28]OFD Sender: No OFD packet to send [17:47:33]OFD Sender: No OFD packet to send [17:47:38]OFD Sender: No OFD packet to send [17:47:43]OFD Sender: No OFD packet to send [17:47:48]OFD Sender: No OFD packet to send [17:47:53]OFD Sender: No OFD packet to send [17:47:58]OFD Sender: No OFD packet to send [17:48:03]OFD Sender: No OFD packet to send [17:48:08]OFD Sender: No OFD packet to send [17:48:13]OFD Sender: No OFD packet to send [17:48:18]OFD Sender: No OFD packet to send [17:48:23]OFD Sender: No OFD packet to send [17:48:28]OFD Sender: No OFD packet to send [17:48:33]OFD Sender: No OFD packet to send [17:48:38]OFD Sender: No OFD packet to send [17:48:43]OFD Sender: No OFD packet to send [17:48:48]OFD Sender: No OFD packet to send [17:48:53]OFD Sender: No OFD packet to send [17:48:58]OFD Sender: No OFD packet to send [17:49:03]OFD Sender: No OFD packet to send [17:49:08]OFD Sender: No OFD packet to send [17:49:13]OFD Sender: No OFD packet to send [17:49:18]OFD Sender: No OFD packet to send [17:49:23]OFD Sender: No OFD packet to send [17:49:28]OFD Sender: No OFD packet to send [17:49:33]OFD Sender: No OFD packet to send [17:49:38]OFD Sender: No OFD packet to send [17:49:43]OFD Sender: No OFD packet to send [17:49:48]OFD Sender: No OFD packet to send [17:49:53]OFD Sender: No OFD packet to send [17:49:54]accept exits with 7 [17:49:54]New connection [17:49:54]New thread 3067202916 created [17:49:54]Thread 3067059556 joined [17:49:54]Waiting for new connection... [17:49:54] Sock 7.Parse request [17:49:54]Sock 7.Check first char [17:49:54]Sock 7.First char is OK [17:49:54]request: POST /json_proto HTTP/1.0 [17:49:54]Method: POST [17:49:54]URL: /json_proto [17:49:54]Method is POST - this is cgi request [17:49:54]url: /json_proto [17:49:54]query_string will be loaded in cgi processing [17:49:54]execute_cgi json_proto POST (null) [17:49:54]execute_cgi path=json_proto method=POST [17:49:54]POST find Content-Length [17:49:54]Host: 172.17.41.195:8080 [17:49:54]Content-Length: 800 [17:49:54]Content-Type: application/json [17:49:54] [17:49:54]POST finish read [17:49:54]Found Content-Length = 800 [17:49:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)508114", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 53.550, "sum" : 4000.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 4000.19 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:49:54]execute_script... [17:49:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)508114", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 53.550, "sum" : 4000.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 4000.19 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:49:54]POST & json_proto [17:49:54]process_json_proto [17:49:54]json parsed OK: [17:49:54]protocol is kg_v1.0 [17:49:54]action value=close_receipt [17:49:54]process_action close_receipt [17:49:54]cmd_close_receipt [17:49:54]MH_GetDate [17:49:54]Write to MH i2c: F0 00 00 FE 0B F8 [17:49:54]Write i2c OK [17:49:54]MH_I2C_Read... [17:49:54]Read from MH i2c: F0 [17:49:54]MH_I2C_Read... [17:49:54]Read from MH i2c: F0 09 00 [17:49:54]MH_I2C_Read... [17:49:54]Read from MH i2c: F0 09 00 FE 0B 00 43 EA 48 66 FC 21 6F 64 CC [17:49:54]GetLastDocTimeStamp 1716054316 [17:49:54]current date 1716054595 [17:49:54]FM_GetShiftState [17:49:54]SAM_PROTO_GetShiftState [17:49:54]wFMCommunicate request_size=4 [17:49:54]MH_SAM_APDU [17:49:54]CAPDU: 80 13 01 00 [17:49:54]Write to MH i2c: E2 08 00 FF 0B 80 13 01 00 00 00 00 00 87 [17:49:54]Write i2c OK [17:49:54]MH_I2C_Read... [17:49:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:49:54]Read from MH i2c: E2 [17:49:54]MH_I2C_Read... [17:49:54]Read from MH i2c: E2 0E 00 [17:49:54]MH_I2C_Read... [17:49:54]Read from MH i2c: E2 0E 00 FF 0B 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 EE [17:49:54]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [17:49:54]wFMCommunicate OK [17:49:54]SAM_PROTO_GetShiftState done [17:49:54]FM_GetShiftState done [17:49:54]opened in 1715991483 [17:49:54]opened+sec_in_day 1716077883 [17:49:54]quantity*price = 400018 [17:49:54]sum+1 = 400020 [17:49:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 4000.19 НСП 1% : 35.40 НДС 12% : 424.80 Наличными: 0.00 Безнал.: 4000.19 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 93 18.05.2024 17:49 Смена: 359 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67854 ФПД: 202355639477792 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T174955&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67854&fm=202355639477792&tin=02508201610067®Number=0000000000091845&sum=400019 [17:49:55]StoreToDocumentArchive [17:49:55]shift 359 fd 67854 [17:49:55]save to /storage/0359/doc_00067854 [17:49:55]save last doc name /storage/0359/doc_00067854 to /storage/kkm_last_doc_name [17:49:55]save OK [17:49:55]Clear old archive folders... [17:49:55]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:49:55]tlvbuf is 009EAEE0 [17:49:55]SAM_PROTO_ClearQueue [17:49:55]wFMCommunicate request_size=4 [17:49:55]MH_SAM_APDU [17:49:55]CAPDU: 80 09 00 00 [17:49:55]Write to MH i2c: E2 08 00 0C 0C 80 09 00 00 00 00 00 00 8A [17:49:55]Write i2c OK [17:49:55]MH_I2C_Read... [17:49:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:49:55]Read from MH i2c: E2 [17:49:55]MH_I2C_Read... [17:49:55]Read from MH i2c: E2 03 00 [17:49:55]MH_I2C_Read... [17:49:55]Read from MH i2c: E2 03 00 0C 0C 00 90 00 8C [17:49:55]RAPDU: 90 00 [17:49:55]wFMCommunicate OK [17:49:55]SAM_PROTO_ClearQueue done [17:49:55]KKMCreateOFDPacket [17:49:55]OFDProtocolAddRootSTLVToBuf [17:49:55]FM_MakeSignedData [17:49:55]FM_MakeSignedData [17:49:55]SAM_PROTO_SignData [17:49:55]wFMCommunicate request_size=4 [17:49:55]MH_SAM_APDU [17:49:55]CAPDU: 80 0D 01 02 [17:49:55]Write to MH i2c: E2 08 00 0D 0C 80 0D 01 02 00 00 00 00 92 [17:49:55]Write i2c OK [17:49:55]MH_I2C_Read... [17:49:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:49:55]Read from MH i2c: E2 [17:49:55]MH_I2C_Read... [17:49:55]Read from MH i2c: E2 03 00 [17:49:55]MH_I2C_Read... [17:49:55]Read from MH i2c: E2 03 00 0D 0C 00 90 00 8D [17:49:55]RAPDU: 90 00 [17:49:55]wFMCommunicate OK [17:49:55]wFMCommunicate request_size=255 [17:49:55]MH_SAM_APDU [17:49:55]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2E D1 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 93 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 93 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F0 A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 93 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 43 EA 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 0E 09 01 00 35 04 06 00 B8 0A 98 02 [17:49:55]Write to MH i2c: E2 02 01 0E 0C 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2E D1 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 93 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 93 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F0 A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 93 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 43 EA 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 0E 09 01 00 35 04 06 00 B8 0A 98 02 00 00 E1 [17:49:55]Write i2c OK [17:49:55]MH_I2C_Read... [17:49:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:49:56]Read from MH i2c: E2 [17:49:56]MH_I2C_Read... [17:49:56]Read from MH i2c: E2 03 00 [17:49:56]MH_I2C_Read... [17:49:56]Read from MH i2c: E2 03 00 0E 0C 00 90 00 8E [17:49:56]RAPDU: 90 00 [17:49:56]wFMCommunicate OK [17:49:56]wFMCommunicate request_size=7 [17:49:56]MH_SAM_APDU [17:49:56]CAPDU: 80 0D 02 02 02 66 20 [17:49:56]Write to MH i2c: E2 0A 00 0F 0C 80 0D 02 02 02 00 66 20 00 00 1F [17:49:56]Write i2c OK [17:49:56]MH_I2C_Read... [17:49:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:49:56]Read from MH i2c: E2 [17:49:56]MH_I2C_Read... [17:49:56]Read from MH i2c: E2 03 00 [17:49:56]MH_I2C_Read... [17:49:56]Read from MH i2c: E2 03 00 0F 0C 00 90 00 8F [17:49:56]RAPDU: 90 00 [17:49:56]wFMCommunicate OK [17:49:56]wFMCommunicate request_size=4 [17:49:56]MH_SAM_APDU [17:49:56]CAPDU: 80 0D 03 02 [17:49:56]Write to MH i2c: E2 08 00 10 0C 80 0D 03 02 00 00 00 00 97 [17:49:56]Write i2c OK [17:49:56]MH_I2C_Read... [17:49:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:49:56]Read from MH i2c: E2 [17:49:56]MH_I2C_Read... [17:49:56]Read from MH i2c: E2 0B 00 [17:49:56]MH_I2C_Read... [17:49:56]Read from MH i2c: E2 0B 00 10 0C 00 D5 2D 41 BF 0F F1 FC C6 90 00 5C [17:49:56]RAPDU: D5 2D 41 BF 0F F1 FC C6 90 00 [17:49:56]wFMCommunicate OK [17:49:56]SAM_PROTO_SignData done [17:49:56]FM_MakeSignedData done [17:49:56]CreateOFDProtocolMessage [17:49:56]wFMCommunicate request_size=4 [17:49:56]MH_SAM_APDU [17:49:56]CAPDU: 80 11 00 00 [17:49:56]Write to MH i2c: E2 08 00 11 0C 80 11 00 00 00 00 00 00 97 [17:49:56]Write i2c OK [17:49:56]MH_I2C_Read... [17:49:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:49:56]Read from MH i2c: E2 [17:49:56]MH_I2C_Read... [17:49:56]Read from MH i2c: E2 17 00 [17:49:56]MH_I2C_Read... [17:49:56]Read from MH i2c: E2 17 00 11 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 ED [17:49:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [17:49:56]wFMCommunicate OK [17:49:56]CreateOFDProtocolMessage done [17:49:56]OFDSenderStorePacket 67854 [17:49:56]StoreOFDPacket docnum=67854 [17:49:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 79 DD 04 01 73 81 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2E D1 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 93 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 93 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F0 A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 93 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 43 EA 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 0E 09 01 00 35 04 06 00 B8 0A 98 02 66 20 D5 2D 41 BF 0F F1 FC C6 [17:49:56]CheckFolder [17:49:56]dirname=/storage/ofd_packets [17:49:56]CheckFolder done [17:49:56]ProducePacketName [17:49:56]name=ofd_packets/00067854 [17:49:56]NVStorageSaveData ofd_packets/00067854 [17:49:56]File name is /storage/ofd_packets/00067854 [17:49:56]Write 298 bytes [17:49:56]NVStorageSaveData done [17:49:56]OFDSenderStorePacket done [17:49:56]KKMCreateOFDPacket done [17:49:56]NVStorageSaveData kkm_last_timestamp [17:49:56]File name is /storage/kkm_last_timestamp [17:49:56]Write 4 bytes [17:49:56]NVStorageSaveData done [17:49:56]ExternCall_PrintAddStr [17:49:56]wPrintStart [17:49:56]Write to MH i2c: 01 00 00 12 0C 1E [17:49:56]Write i2c OK [17:49:56]MH_I2C_Read... [17:49:56]Read from MH i2c: 01 [17:49:56]MH_I2C_Read... [17:49:56]Read from MH i2c: 01 07 00 [17:49:56]MH_I2C_Read... [17:49:56]Read from MH i2c: 01 07 00 12 0C 00 00 00 00 00 FF 0F 33 [17:49:56]RasterBufferAndPrint [17:49:56]line Счет N : (1)508114 [17:49:56]line ИНН: 02508201610067 [17:49:56]line Контрольно-Кассовый Чек [17:49:56]line ПРОДАЖА [17:49:56]line ТРК (МРК, ГНК) : 31 [17:49:56]line Товар: 2710194210 [17:49:56]line ДТ-К-5 [17:49:56]line 53.550 * 74.70 [17:49:56]line = 4000.19 [17:49:56]line НДС 12% НСП 1% [17:49:56]line > о реализуемом товаре [17:49:56]line ИТОГО: 4000.19 [17:49:56]line НСП 1% : 35.40 [17:49:56]line НДС 12% : 424.80 [17:49:56]line Наличными: 0.00 [17:49:56]line Безнал.: 4000.19 [17:49:56]line Место: АЗС № 91 "Партнер Нефть" [17:49:56]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [17:49:56]line СНО: Общий режим [17:49:56]line Чек 93 18.05.2024 17:49 [17:49:56]line Смена: 359 ФФД: 1.0 [17:49:56]line ЗНМ: 0300000119 [17:49:56]line РНМ: 0000000000091845 [17:49:56]line Версия ККМ: 001 [17:49:56]line Платежная система: O! деньги [17:49:56]line ФМ: 0000000000871829 [17:49:56]line ФД: 67854 [17:49:56]line ФПД: 202355639477792 [17:49:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T174955&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67854&fm=202355639477792&tin=02508201610067®Number=0000000000091845&sum=400019 [17:49:56]OFD Sender: Processing packet 67854 [packets to send 35, broken 34] [17:49:56]ProducePacketName [17:49:56]name=ofd_packets/00067854 [17:49:56]OFD Sender: To server: pG, [17:49:56]CommunicateWithHost lk.salyk.kg:30040 [17:49:56]ConnectInit lk.salyk.kg [17:49:56]written 0, free lines is 4095 [17:49:56]Connected sock=10 [17:49:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 79 DD 04 01 73 81 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2E D1 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 93 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 93 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F0 A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 93 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 43 EA 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 0E 09 01 00 35 04 06 00 B8 0A 98 02 66 20 D5 2D 41 BF 0F F1 FC C6 [17:49:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 2C DB 47 00 1F FE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 0E 09 01 00 F4 03 04 00 18 92 48 66 B6 04 01 00 00 2F 6A F0 22 87 0E A2 6D [17:49:56]CommunicateWithHost err = 0 [17:49:56]CheckOFDResponse [17:49:56]1017 (14) - 77093643461234 [17:49:56]1041 (16) - 0000000000871829 [17:49:56]1040 (4) - 67854 [17:49:56]1012 (4) - 18.05.2024 11:33 [17:49:56]1206 (1) - 0 [17:49:56]OFD Sender: Remove packet 67854 [17:49:56]ProducePacketName [17:49:56]name=ofd_packets/00067854 [17:49:56]NVStorageDeleteData [17:49:56]Write to MH i2c: 01 00 00 3B 0C 47 [17:49:56]Write i2c OK [17:49:56]MH_I2C_Read... [17:49:56]Read from MH i2c: 01 [17:49:56]MH_I2C_Read... [17:49:56]Read from MH i2c: 01 07 00 [17:49:56]MH_I2C_Read... [17:49:56]Read from MH i2c: 01 07 00 3B 0C 00 00 00 00 00 D4 0C 2E [17:49:56]RasterBufferAndPrint [17:49:56]line [17:49:56]line [17:49:56]line [17:49:56]line [17:49:56]line [17:49:56]written 0, free lines is 3290 [17:49:56]MH_Cut [17:49:56]Write to MH i2c: D1 01 00 42 0C 01 20 [17:49:56]Write i2c OK [17:49:56]MH_I2C_Read... [17:49:56]Read from MH i2c: D1 [17:49:56]MH_I2C_Read... [17:49:56]Read from MH i2c: D1 01 00 [17:49:56]MH_I2C_Read... [17:49:56]Read from MH i2c: D1 01 00 42 0C 00 1F [17:49:56]Write to MH i2c: 01 00 00 43 0C 4F [17:49:56]Write i2c OK [17:49:56]MH_I2C_Read... [17:49:57]OFD Sender: No OFD packet to send [17:49:57]*** Cut start [17:49:57]*** Purtial cut [17:49:57]*** Stage 1: CUTSNS_PIN = 1 [17:49:58]Read from MH i2c: 01 [17:49:58]MH_I2C_Read... [17:49:58]*** Stop cut motor [17:49:58]*** Cut end [17:49:58]Read from MH i2c: 01 07 00 [17:49:58]MH_I2C_Read... [17:49:58]Read from MH i2c: 01 07 00 43 0C 00 00 00 00 00 FF 0F 64 [17:49:58]process_action close_receipt done [17:49:58]requested_data is exist [17:49:58]produce_requested_data [17:49:58]requested_item fm.sn is exist - process it [17:49:58]wFMCommunicate request_size=4 [17:49:58]MH_SAM_APDU [17:49:58]CAPDU: 80 11 00 00 [17:49:58]Write to MH i2c: E2 08 00 44 0C 80 11 00 00 00 00 00 00 CA [17:49:58]Write i2c OK [17:49:58]MH_I2C_Read... [17:49:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:49:58]Read from MH i2c: E2 [17:49:58]MH_I2C_Read... [17:49:58]Read from MH i2c: E2 17 00 [17:49:58]MH_I2C_Read... [17:49:58]Read from MH i2c: E2 17 00 44 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 20 [17:49:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [17:49:58]wFMCommunicate OK [17:49:58]requested_item fd.num is exist - process it [17:49:58]SAM_PROTO_GetFieldsCounters [17:49:58]wFMCommunicate request_size=4 [17:49:58]MH_SAM_APDU [17:49:58]CAPDU: 80 13 00 00 [17:49:58]Write to MH i2c: E2 08 00 45 0C 80 13 00 00 00 00 00 00 CD [17:49:58]Write i2c OK [17:49:58]MH_I2C_Read... [17:49:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:49:58]Read from MH i2c: E2 [17:49:58]MH_I2C_Read... [17:49:58]Read from MH i2c: E2 62 00 [17:49:58]MH_I2C_Read... [17:49:58]Read from MH i2c: E2 62 00 45 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 0E 09 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 5D 00 00 00 5E 04 04 00 5D 00 00 00 57 04 04 00 5E 00 00 00 19 04 04 00 00 00 00 00 90 00 8A [17:49:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 0E 09 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 5D 00 00 00 5E 04 04 00 5D 00 00 00 57 04 04 00 5E 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:49:58]wFMCommunicate OK [17:49:58]SAM_PROTO_GetFieldsCounters done [17:49:58]requested_item shift.num is exist - process it [17:49:58]requested_item shift.opened is exist - process it [17:49:58]req_shift_opened [17:49:58]FM_GetShiftState [17:49:58]SAM_PROTO_GetShiftState [17:49:58]wFMCommunicate request_size=4 [17:49:58]MH_SAM_APDU [17:49:58]CAPDU: 80 13 01 00 [17:49:58]Write to MH i2c: E2 08 00 46 0C 80 13 01 00 00 00 00 00 CF [17:49:58]Write i2c OK [17:49:58]MH_I2C_Read... [17:49:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:49:58]Read from MH i2c: E2 [17:49:58]MH_I2C_Read... [17:49:58]Read from MH i2c: E2 0E 00 [17:49:58]MH_I2C_Read... [17:49:58]Read from MH i2c: E2 0E 00 46 0C 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 36 [17:49:58]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [17:49:58]wFMCommunicate OK [17:49:58]SAM_PROTO_GetShiftState done [17:49:58]FM_GetShiftState done [17:49:58]req_shift_opened done [17:49:58]requested_item shift.open_date is exist - process it [17:49:58]req_shift_open_date [17:49:58]req_shift_open_date done [17:49:58]produce_requested_data done [17:49:58]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67854,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [17:49:58]process_action_free close_receipt [17:49:58]json_value_free [17:49:58]json_value_free done [17:49:58]process_json_proto returns [17:49:58]Send response to host [17:49:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67854,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [17:49:58]free response buf [17:49:58]execute_script done [17:49:58]execute_script returns [17:49:58]free content buf [17:49:58]Sock 7.Close socket [17:49:58]Sock 7.Thread stoped [17:50:02]OFD Sender: No OFD packet to send [17:50:07]OFD Sender: No OFD packet to send [17:50:12]OFD Sender: No OFD packet to send [17:50:17]OFD Sender: No OFD packet to send [17:50:22]OFD Sender: No OFD packet to send [17:50:27]OFD Sender: No OFD packet to send [17:50:32]OFD Sender: No OFD packet to send [17:50:37]OFD Sender: No OFD packet to send [17:50:42]OFD Sender: No OFD packet to send [17:50:47]OFD Sender: No OFD packet to send [17:50:52]OFD Sender: No OFD packet to send [17:50:57]OFD Sender: No OFD packet to send [17:51:02]OFD Sender: No OFD packet to send [17:51:07]OFD Sender: No OFD packet to send [17:51:12]OFD Sender: No OFD packet to send [17:51:17]OFD Sender: No OFD packet to send [17:51:22]OFD Sender: No OFD packet to send [17:51:27]OFD Sender: No OFD packet to send [17:51:32]OFD Sender: No OFD packet to send [17:51:37]OFD Sender: No OFD packet to send [17:51:42]OFD Sender: No OFD packet to send [17:51:47]OFD Sender: No OFD packet to send [17:51:52]OFD Sender: No OFD packet to send [17:51:57]OFD Sender: No OFD packet to send [17:52:02]OFD Sender: No OFD packet to send [17:52:07]OFD Sender: No OFD packet to send [17:52:12]OFD Sender: No OFD packet to send [17:52:17]OFD Sender: No OFD packet to send [17:52:22]OFD Sender: No OFD packet to send [17:52:27]OFD Sender: No OFD packet to send [17:52:32]OFD Sender: No OFD packet to send [17:52:37]OFD Sender: No OFD packet to send [17:52:42]OFD Sender: No OFD packet to send [17:52:47]OFD Sender: No OFD packet to send [17:52:52]OFD Sender: No OFD packet to send [17:52:57]OFD Sender: No OFD packet to send [17:53:02]OFD Sender: No OFD packet to send [17:53:07]OFD Sender: No OFD packet to send [17:53:12]OFD Sender: No OFD packet to send [17:53:17]OFD Sender: No OFD packet to send [17:53:22]OFD Sender: No OFD packet to send [17:53:27]OFD Sender: No OFD packet to send [17:53:32]OFD Sender: No OFD packet to send [17:53:34]accept exits with 9 [17:53:34]New connection [17:53:34]New thread 3067059556 created [17:53:34]Thread 3067202916 joined [17:53:34]Waiting for new connection... [17:53:34] Sock 9.Parse request [17:53:34]Sock 9.Check first char [17:53:34]Sock 9.First char is OK [17:53:34]request: POST /json_proto HTTP/1.0 [17:53:34]Method: POST [17:53:34]URL: /json_proto [17:53:34]Method is POST - this is cgi request [17:53:34]url: /json_proto [17:53:34]query_string will be loaded in cgi processing [17:53:34]execute_cgi json_proto POST (null) [17:53:34]execute_cgi path=json_proto method=POST [17:53:34]POST find Content-Length [17:53:34]Host: 172.17.41.195:8080 [17:53:34]Content-Length: 800 [17:53:34]Content-Type: application/json [17:53:34] [17:53:34]POST finish read [17:53:34]Found Content-Length = 800 [17:53:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)508115", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 26.780, "sum" : 2000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.47 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:53:34]execute_script... [17:53:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)508115", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 26.780, "sum" : 2000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.47 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:53:34]POST & json_proto [17:53:34]process_json_proto [17:53:34]json parsed OK: [17:53:34]protocol is kg_v1.0 [17:53:34]action value=close_receipt [17:53:34]process_action close_receipt [17:53:34]cmd_close_receipt [17:53:34]MH_GetDate [17:53:34]Write to MH i2c: F0 00 00 47 0C 42 [17:53:34]Write i2c OK [17:53:34]MH_I2C_Read... [17:53:34]Read from MH i2c: F0 [17:53:34]MH_I2C_Read... [17:53:34]Read from MH i2c: F0 09 00 [17:53:34]MH_I2C_Read... [17:53:34]Read from MH i2c: F0 09 00 47 0C 00 1F EB 48 66 FC 21 6F 64 F3 [17:53:34]GetLastDocTimeStamp 1716054595 [17:53:34]current date 1716054815 [17:53:34]FM_GetShiftState [17:53:34]SAM_PROTO_GetShiftState [17:53:34]wFMCommunicate request_size=4 [17:53:34]MH_SAM_APDU [17:53:34]CAPDU: 80 13 01 00 [17:53:34]Write to MH i2c: E2 08 00 48 0C 80 13 01 00 00 00 00 00 D1 [17:53:34]Write i2c OK [17:53:34]MH_I2C_Read... [17:53:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:53:34]Read from MH i2c: E2 [17:53:34]MH_I2C_Read... [17:53:34]Read from MH i2c: E2 0E 00 [17:53:34]MH_I2C_Read... [17:53:34]Read from MH i2c: E2 0E 00 48 0C 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 38 [17:53:34]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [17:53:34]wFMCommunicate OK [17:53:34]SAM_PROTO_GetShiftState done [17:53:34]FM_GetShiftState done [17:53:34]opened in 1715991483 [17:53:34]opened+sec_in_day 1716077883 [17:53:34]quantity*price = 200046 [17:53:34]sum+1 = 200048 [17:53:34]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.47 НСП 1% : 17.70 НДС 12% : 212.44 Наличными: 0.00 Безнал.: 2000.47 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 94 18.05.2024 17:53 Смена: 359 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67855 ФПД: 57795159681205 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T175335&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67855&fm=57795159681205&tin=02508201610067®Number=0000000000091845&sum=200047 [17:53:35]StoreToDocumentArchive [17:53:35]shift 359 fd 67855 [17:53:35]save to /storage/0359/doc_00067855 [17:53:35]save last doc name /storage/0359/doc_00067855 to /storage/kkm_last_doc_name [17:53:35]save OK [17:53:35]Clear old archive folders... [17:53:35]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:53:35]tlvbuf is 0098E9B0 [17:53:35]SAM_PROTO_ClearQueue [17:53:35]wFMCommunicate request_size=4 [17:53:35]MH_SAM_APDU [17:53:35]CAPDU: 80 09 00 00 [17:53:35]Write to MH i2c: E2 08 00 55 0C 80 09 00 00 00 00 00 00 D3 [17:53:35]Write i2c OK [17:53:35]MH_I2C_Read... [17:53:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:53:35]Read from MH i2c: E2 [17:53:35]MH_I2C_Read... [17:53:35]Read from MH i2c: E2 03 00 [17:53:35]MH_I2C_Read... [17:53:35]Read from MH i2c: E2 03 00 55 0C 00 90 00 D5 [17:53:35]RAPDU: 90 00 [17:53:35]wFMCommunicate OK [17:53:35]SAM_PROTO_ClearQueue done [17:53:35]KKMCreateOFDPacket [17:53:35]OFDProtocolAddRootSTLVToBuf [17:53:35]FM_MakeSignedData [17:53:35]FM_MakeSignedData [17:53:35]SAM_PROTO_SignData [17:53:35]wFMCommunicate request_size=4 [17:53:35]MH_SAM_APDU [17:53:35]CAPDU: 80 0D 01 02 [17:53:35]Write to MH i2c: E2 08 00 56 0C 80 0D 01 02 00 00 00 00 DB [17:53:35]Write i2c OK [17:53:35]MH_I2C_Read... [17:53:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:53:35]Read from MH i2c: E2 [17:53:35]MH_I2C_Read... [17:53:35]Read from MH i2c: E2 03 00 [17:53:35]MH_I2C_Read... [17:53:35]Read from MH i2c: E2 03 00 56 0C 00 90 00 D6 [17:53:35]RAPDU: 90 00 [17:53:35]wFMCommunicate OK [17:53:35]wFMCommunicate request_size=255 [17:53:35]MH_SAM_APDU [17:53:35]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9C 68 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 6F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6F 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FC 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 1F EB 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 0F 09 01 00 35 04 06 00 34 90 7B F6 [17:53:35]Write to MH i2c: E2 02 01 57 0C 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9C 68 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 6F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6F 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FC 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 1F EB 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 0F 09 01 00 35 04 06 00 34 90 7B F6 00 00 13 [17:53:35]Write i2c OK [17:53:35]MH_I2C_Read... [17:53:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:53:35]Read from MH i2c: E2 [17:53:35]MH_I2C_Read... [17:53:35]Read from MH i2c: E2 03 00 [17:53:35]MH_I2C_Read... [17:53:35]Read from MH i2c: E2 03 00 57 0C 00 90 00 D7 [17:53:35]RAPDU: 90 00 [17:53:35]wFMCommunicate OK [17:53:35]wFMCommunicate request_size=7 [17:53:35]MH_SAM_APDU [17:53:35]CAPDU: 80 0D 02 02 02 68 B5 [17:53:35]Write to MH i2c: E2 0A 00 58 0C 80 0D 02 02 02 00 68 B5 00 00 FF [17:53:35]Write i2c OK [17:53:35]MH_I2C_Read... [17:53:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:53:35]Read from MH i2c: E2 [17:53:35]MH_I2C_Read... [17:53:35]Read from MH i2c: E2 03 00 [17:53:35]MH_I2C_Read... [17:53:35]Read from MH i2c: E2 03 00 58 0C 00 90 00 D8 [17:53:35]RAPDU: 90 00 [17:53:35]wFMCommunicate OK [17:53:35]wFMCommunicate request_size=4 [17:53:35]MH_SAM_APDU [17:53:35]CAPDU: 80 0D 03 02 [17:53:35]Write to MH i2c: E2 08 00 59 0C 80 0D 03 02 00 00 00 00 E0 [17:53:35]Write i2c OK [17:53:35]MH_I2C_Read... [17:53:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:53:35]Read from MH i2c: E2 [17:53:35]MH_I2C_Read... [17:53:35]Read from MH i2c: E2 0B 00 [17:53:35]MH_I2C_Read... [17:53:35]Read from MH i2c: E2 0B 00 59 0C 00 27 6F 67 7C 8F 52 D7 45 90 00 57 [17:53:35]RAPDU: 27 6F 67 7C 8F 52 D7 45 90 00 [17:53:35]wFMCommunicate OK [17:53:35]SAM_PROTO_SignData done [17:53:35]FM_MakeSignedData done [17:53:35]CreateOFDProtocolMessage [17:53:35]wFMCommunicate request_size=4 [17:53:35]MH_SAM_APDU [17:53:35]CAPDU: 80 11 00 00 [17:53:35]Write to MH i2c: E2 08 00 5A 0C 80 11 00 00 00 00 00 00 E0 [17:53:35]Write i2c OK [17:53:35]MH_I2C_Read... [17:53:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:53:35]Read from MH i2c: E2 [17:53:35]MH_I2C_Read... [17:53:35]Read from MH i2c: E2 17 00 [17:53:35]MH_I2C_Read... [17:53:35]Read from MH i2c: E2 17 00 5A 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 36 [17:53:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [17:53:35]wFMCommunicate OK [17:53:35]CreateOFDProtocolMessage done [17:53:35]OFDSenderStorePacket 67855 [17:53:35]StoreOFDPacket docnum=67855 [17:53:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 7F B7 04 01 1B FD 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9C 68 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 6F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6F 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FC 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 1F EB 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 0F 09 01 00 35 04 06 00 34 90 7B F6 68 B5 27 6F 67 7C 8F 52 D7 45 [17:53:35]CheckFolder [17:53:35]dirname=/storage/ofd_packets [17:53:35]CheckFolder done [17:53:35]ProducePacketName [17:53:35]name=ofd_packets/00067855 [17:53:35]NVStorageSaveData ofd_packets/00067855 [17:53:35]File name is /storage/ofd_packets/00067855 [17:53:35]Write 298 bytes [17:53:35]NVStorageSaveData done [17:53:35]OFDSenderStorePacket done [17:53:35]KKMCreateOFDPacket done [17:53:35]NVStorageSaveData kkm_last_timestamp [17:53:35]File name is /storage/kkm_last_timestamp [17:53:35]Write 4 bytes [17:53:35]NVStorageSaveData done [17:53:35]ExternCall_PrintAddStr [17:53:35]wPrintStart [17:53:35]Write to MH i2c: 01 00 00 5B 0C 67 [17:53:35]Write i2c OK [17:53:35]MH_I2C_Read... [17:53:35]Read from MH i2c: 01 [17:53:35]MH_I2C_Read... [17:53:35]Read from MH i2c: 01 07 00 [17:53:35]MH_I2C_Read... [17:53:35]Read from MH i2c: 01 07 00 5B 0C 00 00 00 00 00 FF 0F 7C [17:53:35]RasterBufferAndPrint [17:53:35]line Счет N : (1)508115 [17:53:35]line ИНН: 02508201610067 [17:53:35]line Контрольно-Кассовый Чек [17:53:35]line ПРОДАЖА [17:53:35]line ТРК (МРК, ГНК) : 11 [17:53:35]line Товар: 2710194210 [17:53:35]line ДТ-К-5 [17:53:35]line 26.780 * 74.70 [17:53:35]line = 2000.47 [17:53:35]line НДС 12% НСП 1% [17:53:35]line > о реализуемом товаре [17:53:35]line ИТОГО: 2000.47 [17:53:35]line НСП 1% : 17.70 [17:53:35]line НДС 12% : 212.44 [17:53:35]line Наличными: 0.00 [17:53:35]line Безнал.: 2000.47 [17:53:35]line Место: АЗС № 91 "Партнер Нефть" [17:53:35]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [17:53:35]line СНО: Общий режим [17:53:35]line Чек 94 18.05.2024 17:53 [17:53:35]line Смена: 359 ФФД: 1.0 [17:53:35]line ЗНМ: 0300000119 [17:53:35]line РНМ: 0000000000091845 [17:53:35]line Версия ККМ: 001 [17:53:35]line Платежная система: O! деньги [17:53:35]line ФМ: 0000000000871829 [17:53:35]line ФД: 67855 [17:53:35]line ФПД: 57795159681205 [17:53:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T175335&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67855&fm=57795159681205&tin=02508201610067®Number=0000000000091845&sum=200047 [17:53:36]OFD Sender: Processing packet 67855 [packets to send 35, broken 34] [17:53:36]ProducePacketName [17:53:36]name=ofd_packets/00067855 [17:53:36]OFD Sender: To server: pG, [17:53:36]CommunicateWithHost lk.salyk.kg:30040 [17:53:36]ConnectInit lk.salyk.kg [17:53:36]written 0, free lines is 4095 [17:53:36]Connected sock=10 [17:53:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 7F B7 04 01 1B FD 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9C 68 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 6F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6F 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FC 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 1F EB 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 0F 09 01 00 35 04 06 00 34 90 7B F6 68 B5 27 6F 67 7C 8F 52 D7 45 [17:53:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 7B 3D 47 00 E4 6C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 0F 09 01 00 F4 03 04 00 F4 92 48 66 B6 04 01 00 00 FD BF BD 36 B8 E4 32 29 [17:53:36]CommunicateWithHost err = 0 [17:53:36]CheckOFDResponse [17:53:36]1017 (14) - 77093643461234 [17:53:36]1041 (16) - 0000000000871829 [17:53:36]1040 (4) - 67855 [17:53:36]1012 (4) - 18.05.2024 11:37 [17:53:36]1206 (1) - 0 [17:53:36]OFD Sender: Remove packet 67855 [17:53:36]ProducePacketName [17:53:36]name=ofd_packets/00067855 [17:53:36]NVStorageDeleteData [17:53:36]Write to MH i2c: 01 00 00 84 0C 90 [17:53:36]Write i2c OK [17:53:36]MH_I2C_Read... [17:53:36]Read from MH i2c: 01 [17:53:36]MH_I2C_Read... [17:53:36]Read from MH i2c: 01 07 00 [17:53:36]MH_I2C_Read... [17:53:36]Read from MH i2c: 01 07 00 84 0C 00 00 00 00 00 CE 0C 71 [17:53:36]RasterBufferAndPrint [17:53:36]line [17:53:36]line [17:53:36]line [17:53:36]line [17:53:36]line [17:53:36]written 0, free lines is 3284 [17:53:36]MH_Cut [17:53:36]Write to MH i2c: D1 01 00 8B 0C 01 69 [17:53:36]Write i2c OK [17:53:36]MH_I2C_Read... [17:53:36]Read from MH i2c: D1 [17:53:36]MH_I2C_Read... [17:53:36]Read from MH i2c: D1 01 00 [17:53:36]MH_I2C_Read... [17:53:36]Read from MH i2c: D1 01 00 8B 0C 00 68 [17:53:36]Write to MH i2c: 01 00 00 8C 0C 98 [17:53:36]Write i2c OK [17:53:36]MH_I2C_Read... [17:53:36]OFD Sender: No OFD packet to send [17:53:37]*** Cut start [17:53:37]*** Purtial cut [17:53:37]*** Stage 1: CUTSNS_PIN = 1 [17:53:37]Read from MH i2c: 01 [17:53:37]MH_I2C_Read... [17:53:37]*** Stop cut motor [17:53:37]*** Cut end [17:53:37]Read from MH i2c: 01 07 00 [17:53:37]MH_I2C_Read... [17:53:37]Read from MH i2c: 01 07 00 8C 0C 00 00 00 00 00 FF 0F AD [17:53:37]process_action close_receipt done [17:53:37]requested_data is exist [17:53:37]produce_requested_data [17:53:37]requested_item fm.sn is exist - process it [17:53:37]wFMCommunicate request_size=4 [17:53:37]MH_SAM_APDU [17:53:37]CAPDU: 80 11 00 00 [17:53:37]Write to MH i2c: E2 08 00 8D 0C 80 11 00 00 00 00 00 00 13 [17:53:37]Write i2c OK [17:53:37]MH_I2C_Read... [17:53:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:53:37]Read from MH i2c: E2 [17:53:37]MH_I2C_Read... [17:53:37]Read from MH i2c: E2 17 00 [17:53:37]MH_I2C_Read... [17:53:37]Read from MH i2c: E2 17 00 8D 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 69 [17:53:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [17:53:37]wFMCommunicate OK [17:53:37]requested_item fd.num is exist - process it [17:53:37]SAM_PROTO_GetFieldsCounters [17:53:37]wFMCommunicate request_size=4 [17:53:37]MH_SAM_APDU [17:53:37]CAPDU: 80 13 00 00 [17:53:37]Write to MH i2c: E2 08 00 8E 0C 80 13 00 00 00 00 00 00 16 [17:53:37]Write i2c OK [17:53:37]MH_I2C_Read... [17:53:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:53:37]Read from MH i2c: E2 [17:53:37]MH_I2C_Read... [17:53:37]Read from MH i2c: E2 62 00 [17:53:37]MH_I2C_Read... [17:53:37]Read from MH i2c: E2 62 00 8E 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 0F 09 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 5E 00 00 00 5E 04 04 00 5E 00 00 00 57 04 04 00 5F 00 00 00 19 04 04 00 00 00 00 00 90 00 D7 [17:53:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 0F 09 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 5E 00 00 00 5E 04 04 00 5E 00 00 00 57 04 04 00 5F 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:53:37]wFMCommunicate OK [17:53:37]SAM_PROTO_GetFieldsCounters done [17:53:37]requested_item shift.num is exist - process it [17:53:37]requested_item shift.opened is exist - process it [17:53:37]req_shift_opened [17:53:37]FM_GetShiftState [17:53:37]SAM_PROTO_GetShiftState [17:53:37]wFMCommunicate request_size=4 [17:53:37]MH_SAM_APDU [17:53:37]CAPDU: 80 13 01 00 [17:53:37]Write to MH i2c: E2 08 00 8F 0C 80 13 01 00 00 00 00 00 18 [17:53:37]Write i2c OK [17:53:37]MH_I2C_Read... [17:53:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:53:37]Read from MH i2c: E2 [17:53:37]MH_I2C_Read... [17:53:37]Read from MH i2c: E2 0E 00 [17:53:37]MH_I2C_Read... [17:53:37]Read from MH i2c: E2 0E 00 8F 0C 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 7F [17:53:37]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [17:53:37]wFMCommunicate OK [17:53:37]SAM_PROTO_GetShiftState done [17:53:37]FM_GetShiftState done [17:53:37]req_shift_opened done [17:53:37]requested_item shift.open_date is exist - process it [17:53:37]req_shift_open_date [17:53:37]req_shift_open_date done [17:53:37]produce_requested_data done [17:53:37]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67855,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [17:53:37]process_action_free close_receipt [17:53:37]json_value_free [17:53:37]json_value_free done [17:53:37]process_json_proto returns [17:53:37]Send response to host [17:53:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67855,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [17:53:37]free response buf [17:53:37]execute_script done [17:53:37]execute_script returns [17:53:37]free content buf [17:53:37]Sock 9.Close socket [17:53:37]Sock 9.Thread stoped [17:53:41]OFD Sender: No OFD packet to send [17:53:46]OFD Sender: No OFD packet to send [17:53:51]OFD Sender: No OFD packet to send [17:53:56]OFD Sender: No OFD packet to send [17:54:01]OFD Sender: No OFD packet to send [17:54:06]OFD Sender: No OFD packet to send [17:54:12]OFD Sender: No OFD packet to send [17:54:17]OFD Sender: No OFD packet to send [17:54:22]OFD Sender: No OFD packet to send [17:54:27]OFD Sender: No OFD packet to send [17:54:32]OFD Sender: No OFD packet to send [17:54:37]OFD Sender: No OFD packet to send [17:54:42]OFD Sender: No OFD packet to send [17:54:47]OFD Sender: No OFD packet to send [17:54:52]OFD Sender: No OFD packet to send [17:54:57]OFD Sender: No OFD packet to send [17:55:02]OFD Sender: No OFD packet to send [17:55:07]OFD Sender: No OFD packet to send [17:55:12]OFD Sender: No OFD packet to send [17:55:17]OFD Sender: No OFD packet to send [17:55:22]OFD Sender: No OFD packet to send [17:55:27]OFD Sender: No OFD packet to send [17:55:32]OFD Sender: No OFD packet to send [17:55:37]OFD Sender: No OFD packet to send [17:55:42]OFD Sender: No OFD packet to send [17:55:47]OFD Sender: No OFD packet to send [17:55:52]OFD Sender: No OFD packet to send [17:55:57]OFD Sender: No OFD packet to send [17:56:02]OFD Sender: No OFD packet to send [17:56:07]OFD Sender: No OFD packet to send [17:56:12]OFD Sender: No OFD packet to send [17:56:17]OFD Sender: No OFD packet to send [17:56:22]OFD Sender: No OFD packet to send [17:56:27]OFD Sender: No OFD packet to send [17:56:29]accept exits with 7 [17:56:29]New connection [17:56:29]New thread 3067202916 created [17:56:29]Thread 3067059556 joined [17:56:29]Waiting for new connection... [17:56:29] Sock 7.Parse request [17:56:29]Sock 7.Check first char [17:56:29]Sock 7.First char is OK [17:56:29]request: POST /json_proto HTTP/1.0 [17:56:29]Method: POST [17:56:29]URL: /json_proto [17:56:29]Method is POST - this is cgi request [17:56:29]url: /json_proto [17:56:29]query_string will be loaded in cgi processing [17:56:29]execute_cgi json_proto POST (null) [17:56:29]execute_cgi path=json_proto method=POST [17:56:29]POST find Content-Length [17:56:29]Host: 172.17.41.195:8080 [17:56:29]Content-Length: 1210 [17:56:29]Content-Type: application/json [17:56:29] [17:56:29]POST finish read [17:56:29]Found Content-Length = 1210 [17:56:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0440\u0441\u0442\u0430\u043D\u0431\u0435\u043A\u043E\u0432 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)508116\u000A18.05.2024 17:38\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 33\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 4.500 x 66.80\u000A\u0418\u0422\u041E\u0413: 300.60\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:56:29]execute_script... [17:56:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0440\u0441\u0442\u0430\u043D\u0431\u0435\u043A\u043E\u0432 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)508116\u000A18.05.2024 17:38\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 33\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 4.500 x 66.80\u000A\u0418\u0422\u041E\u0413: 300.60\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:56:29]POST & json_proto [17:56:29]process_json_proto [17:56:29]json parsed OK: [17:56:29]protocol is kg_v1.0 [17:56:29]action value=print_text [17:56:29]process_action print_text [17:56:29]cmd_print_text [17:56:29]ExternCall_PrintAddStr [17:56:29]wPrintStart [17:56:29]Write to MH i2c: 01 00 00 90 0C 9C [17:56:29]Write i2c OK [17:56:29]MH_I2C_Read... [17:56:29]Read from MH i2c: 01 [17:56:29]MH_I2C_Read... [17:56:29]Read from MH i2c: 01 07 00 [17:56:29]MH_I2C_Read... [17:56:29]Read from MH i2c: 01 07 00 90 0C 00 00 00 00 00 FF 0F B1 [17:56:29]RasterBufferAndPrint [17:56:29]line *****ТОВАРНЫЙ ЧЕК***** [17:56:29]line АЗС-91 [17:56:29]line Партнер нефть [17:56:29]line 02508201610067 [17:56:29]line Кассир : Арстанбеков Н. [17:56:29]line Счет N : (1)508116 [17:56:29]line 18.05.2024 17:38 [17:56:29]line ПРОДАЖА [17:56:29]line ТРК (МРК, ГНК): 33 [17:56:29]line Вид ГСМ : 2710124130 [17:56:29]line Аи-92-К-5 [17:56:29]line 4.500 x 66.80 [17:56:29]line ИТОГ: 300.60 [17:56:29]line Тип оплаты: Талоны: Топливная Карта [17:56:29]line 02750 [17:56:29]line ______________________ [17:56:29]line (подпись) [17:56:29]written 0, free lines is 4095 [17:56:29]Write to MH i2c: 01 00 00 A4 0C B0 [17:56:29]Write i2c OK [17:56:29]MH_I2C_Read... [17:56:29]Read from MH i2c: 01 [17:56:29]MH_I2C_Read... [17:56:29]Read from MH i2c: 01 07 00 [17:56:29]MH_I2C_Read... [17:56:29]Read from MH i2c: 01 07 00 A4 0C 00 00 00 00 00 10 0E D5 [17:56:29]RasterBufferAndPrint [17:56:29]line [17:56:29]line [17:56:29]line [17:56:29]line [17:56:29]line [17:56:29]written 0, free lines is 3601 [17:56:29]MH_Cut [17:56:29]Write to MH i2c: D1 01 00 AB 0C 01 89 [17:56:29]Write i2c OK [17:56:29]MH_I2C_Read... [17:56:29]Read from MH i2c: D1 [17:56:29]MH_I2C_Read... [17:56:29]Read from MH i2c: D1 01 00 [17:56:29]MH_I2C_Read... [17:56:29]Read from MH i2c: D1 01 00 AB 0C 00 88 [17:56:29]Write to MH i2c: 01 00 00 AC 0C B8 [17:56:29]Write i2c OK [17:56:29]MH_I2C_Read... [17:56:30]*** Cut start [17:56:30]*** Purtial cut [17:56:30]*** Stage 1: CUTSNS_PIN = 1 [17:56:30]Read from MH i2c: 01 [17:56:30]MH_I2C_Read... [17:56:30]Read from MH i2c: 01 07 00 [17:56:30]MH_I2C_Read... [17:56:30]*** Stop cut motor [17:56:30]*** Cut end [17:56:30]Read from MH i2c: 01 07 00 AC 0C 00 00 00 00 00 FF 0F CD [17:56:30]process_action print_text done [17:56:30]requested_data is exist [17:56:30]produce_requested_data [17:56:30]requested_item fm.sn is exist - process it [17:56:30]wFMCommunicate request_size=4 [17:56:30]MH_SAM_APDU [17:56:30]CAPDU: 80 11 00 00 [17:56:30]Write to MH i2c: E2 08 00 AD 0C 80 11 00 00 00 00 00 00 33 [17:56:30]Write i2c OK [17:56:30]MH_I2C_Read... [17:56:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:56:30]Read from MH i2c: E2 [17:56:30]MH_I2C_Read... [17:56:30]Read from MH i2c: E2 17 00 [17:56:30]MH_I2C_Read... [17:56:30]Read from MH i2c: E2 17 00 AD 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 89 [17:56:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [17:56:30]wFMCommunicate OK [17:56:30]requested_item fd.num is exist - process it [17:56:30]SAM_PROTO_GetFieldsCounters [17:56:30]wFMCommunicate request_size=4 [17:56:30]MH_SAM_APDU [17:56:30]CAPDU: 80 13 00 00 [17:56:30]Write to MH i2c: E2 08 00 AE 0C 80 13 00 00 00 00 00 00 36 [17:56:30]Write i2c OK [17:56:30]MH_I2C_Read... [17:56:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:56:30]Read from MH i2c: E2 [17:56:30]MH_I2C_Read... [17:56:30]Read from MH i2c: E2 62 00 [17:56:30]MH_I2C_Read... [17:56:30]Read from MH i2c: E2 62 00 AE 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 0F 09 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 5E 00 00 00 5E 04 04 00 5E 00 00 00 57 04 04 00 5F 00 00 00 19 04 04 00 00 00 00 00 90 00 F7 [17:56:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 0F 09 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 5E 00 00 00 5E 04 04 00 5E 00 00 00 57 04 04 00 5F 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:56:30]wFMCommunicate OK [17:56:30]SAM_PROTO_GetFieldsCounters done [17:56:30]requested_item shift.num is exist - process it [17:56:30]requested_item shift.opened is exist - process it [17:56:30]req_shift_opened [17:56:30]FM_GetShiftState [17:56:30]SAM_PROTO_GetShiftState [17:56:30]wFMCommunicate request_size=4 [17:56:30]MH_SAM_APDU [17:56:30]CAPDU: 80 13 01 00 [17:56:30]Write to MH i2c: E2 08 00 AF 0C 80 13 01 00 00 00 00 00 38 [17:56:30]Write i2c OK [17:56:30]MH_I2C_Read... [17:56:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:56:30]Read from MH i2c: E2 [17:56:30]MH_I2C_Read... [17:56:30]Read from MH i2c: E2 0E 00 [17:56:30]MH_I2C_Read... [17:56:30]Read from MH i2c: E2 0E 00 AF 0C 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 9F [17:56:30]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [17:56:30]wFMCommunicate OK [17:56:30]SAM_PROTO_GetShiftState done [17:56:30]FM_GetShiftState done [17:56:30]req_shift_opened done [17:56:30]requested_item shift.open_date is exist - process it [17:56:30]req_shift_open_date [17:56:30]req_shift_open_date done [17:56:30]produce_requested_data done [17:56:30]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67855,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [17:56:30]process_action_free print_text [17:56:30]json_value_free [17:56:30]json_value_free done [17:56:30]process_json_proto returns [17:56:30]Send response to host [17:56:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67855,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [17:56:30]free response buf [17:56:30]execute_script done [17:56:30]execute_script returns [17:56:30]free content buf [17:56:30]Sock 7.Close socket [17:56:30]Sock 7.Thread stoped [17:56:32]OFD Sender: No OFD packet to send [17:56:37]OFD Sender: No OFD packet to send [17:56:42]OFD Sender: No OFD packet to send [17:56:47]OFD Sender: No OFD packet to send [17:56:52]OFD Sender: No OFD packet to send [17:56:57]OFD Sender: No OFD packet to send [17:57:02]OFD Sender: No OFD packet to send [17:57:07]OFD Sender: No OFD packet to send [17:57:12]OFD Sender: No OFD packet to send [17:57:17]OFD Sender: No OFD packet to send [17:57:22]OFD Sender: No OFD packet to send [17:57:27]OFD Sender: No OFD packet to send [17:57:32]OFD Sender: No OFD packet to send [17:57:37]OFD Sender: No OFD packet to send [17:57:42]OFD Sender: No OFD packet to send [17:57:47]OFD Sender: No OFD packet to send [17:57:52]OFD Sender: No OFD packet to send [17:57:57]OFD Sender: No OFD packet to send [17:58:02]OFD Sender: No OFD packet to send [17:58:07]OFD Sender: No OFD packet to send [17:58:12]OFD Sender: No OFD packet to send [17:58:17]OFD Sender: No OFD packet to send [17:58:22]OFD Sender: No OFD packet to send [17:58:27]OFD Sender: No OFD packet to send [17:58:32]OFD Sender: No OFD packet to send [17:58:37]OFD Sender: No OFD packet to send [17:58:42]OFD Sender: No OFD packet to send [17:58:47]OFD Sender: No OFD packet to send [17:58:52]OFD Sender: No OFD packet to send [17:58:57]OFD Sender: No OFD packet to send [17:59:02]OFD Sender: No OFD packet to send [17:59:07]OFD Sender: No OFD packet to send [17:59:12]OFD Sender: No OFD packet to send [17:59:17]OFD Sender: No OFD packet to send [17:59:22]OFD Sender: No OFD packet to send [17:59:27]OFD Sender: No OFD packet to send [17:59:32]OFD Sender: No OFD packet to send [17:59:37]OFD Sender: No OFD packet to send [17:59:42]OFD Sender: No OFD packet to send [17:59:47]OFD Sender: No OFD packet to send [17:59:52]OFD Sender: No OFD packet to send [17:59:57]OFD Sender: No OFD packet to send [18:00:02]OFD Sender: No OFD packet to send [18:00:07]OFD Sender: No OFD packet to send [18:00:12]OFD Sender: No OFD packet to send [18:00:17]accept exits with 9 [18:00:17]New connection [18:00:17]New thread 3067059556 created [18:00:17]Thread 3067202916 joined [18:00:17]Waiting for new connection... [18:00:17] Sock 9.Parse request [18:00:17]Sock 9.Check first char [18:00:17]Sock 9.First char is OK [18:00:17]request: POST /json_proto HTTP/1.0 [18:00:17]Method: POST [18:00:17]URL: /json_proto [18:00:17]Method is POST - this is cgi request [18:00:17]url: /json_proto [18:00:17]query_string will be loaded in cgi processing [18:00:17]execute_cgi json_proto POST (null) [18:00:17]execute_cgi path=json_proto method=POST [18:00:17]POST find Content-Length [18:00:17]Host: 172.17.41.195:8080 [18:00:17]Content-Length: 797 [18:00:17]Content-Type: application/json [18:00:17] [18:00:17]POST finish read [18:00:17]Found Content-Length = 797 [18:00:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)508117", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 9.380, "sum" : 700.69, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 700.69 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:00:17]execute_script... [18:00:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)508117", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 9.380, "sum" : 700.69, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 700.69 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:00:17]POST & json_proto [18:00:17]process_json_proto [18:00:17]json parsed OK: [18:00:17]protocol is kg_v1.0 [18:00:17]action value=close_receipt [18:00:17]process_action close_receipt [18:00:17]cmd_close_receipt [18:00:17]MH_GetDate [18:00:17]Write to MH i2c: F0 00 00 B0 0C AB [18:00:17]Write i2c OK [18:00:17]MH_I2C_Read... [18:00:17]Read from MH i2c: F0 [18:00:17]MH_I2C_Read... [18:00:17]Read from MH i2c: F0 09 00 [18:00:17]MH_I2C_Read... [18:00:17]Read from MH i2c: F0 09 00 B0 0C 00 B2 EC 48 66 FC 21 6F 64 F0 [18:00:17]GetLastDocTimeStamp 1716054815 [18:00:17]current date 1716055218 [18:00:17]FM_GetShiftState [18:00:17]SAM_PROTO_GetShiftState [18:00:17]wFMCommunicate request_size=4 [18:00:17]MH_SAM_APDU [18:00:17]CAPDU: 80 13 01 00 [18:00:17]Write to MH i2c: E2 08 00 B1 0C 80 13 01 00 00 00 00 00 3A [18:00:17]Write i2c OK [18:00:17]MH_I2C_Read... [18:00:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:00:17]Read from MH i2c: E2 [18:00:17]MH_I2C_Read... [18:00:17]Read from MH i2c: E2 0E 00 [18:00:17]MH_I2C_Read... [18:00:17]Read from MH i2c: E2 0E 00 B1 0C 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 A1 [18:00:17]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [18:00:17]wFMCommunicate OK [18:00:17]SAM_PROTO_GetShiftState done [18:00:17]FM_GetShiftState done [18:00:17]opened in 1715991483 [18:00:17]opened+sec_in_day 1716077883 [18:00:17]quantity*price = 70068 [18:00:17]sum+1 = 70070 [18:00:17]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 700.69 НСП 1% : 6.20 НДС 12% : 74.41 Наличными: 0.00 Безнал.: 700.69 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 95 18.05.2024 18:00 Смена: 359 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67856 ФПД: 171028258377262 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T180018&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67856&fm=171028258377262&tin=02508201610067®Number=0000000000091845&sum=70069 [18:00:18]StoreToDocumentArchive [18:00:18]shift 359 fd 67856 [18:00:18]save to /storage/0359/doc_00067856 [18:00:18]save last doc name /storage/0359/doc_00067856 to /storage/kkm_last_doc_name [18:00:18]save OK [18:00:18]Clear old archive folders... [18:00:18]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:00:18]tlvbuf is 00A10830 [18:00:18]SAM_PROTO_ClearQueue [18:00:18]wFMCommunicate request_size=4 [18:00:18]MH_SAM_APDU [18:00:18]CAPDU: 80 09 00 00 [18:00:18]Write to MH i2c: E2 08 00 BE 0C 80 09 00 00 00 00 00 00 3C [18:00:18]Write i2c OK [18:00:18]MH_I2C_Read... [18:00:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:00:18]Read from MH i2c: E2 [18:00:18]MH_I2C_Read... [18:00:18]Read from MH i2c: E2 03 00 [18:00:18]MH_I2C_Read... [18:00:18]Read from MH i2c: E2 03 00 BE 0C 00 90 00 3E [18:00:18]RAPDU: 90 00 [18:00:18]wFMCommunicate OK [18:00:18]SAM_PROTO_ClearQueue done [18:00:18]KKMCreateOFDPacket [18:00:18]OFDProtocolAddRootSTLVToBuf [18:00:18]FM_MakeSignedData [18:00:18]FM_MakeSignedData [18:00:18]SAM_PROTO_SignData [18:00:18]wFMCommunicate request_size=4 [18:00:18]MH_SAM_APDU [18:00:18]CAPDU: 80 0D 01 02 [18:00:18]Write to MH i2c: E2 08 00 BF 0C 80 0D 01 02 00 00 00 00 44 [18:00:18]Write i2c OK [18:00:18]MH_I2C_Read... [18:00:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:00:18]Read from MH i2c: E2 [18:00:18]MH_I2C_Read... [18:00:18]Read from MH i2c: E2 03 00 [18:00:18]MH_I2C_Read... [18:00:18]Read from MH i2c: E2 03 00 BF 0C 00 90 00 3F [18:00:18]RAPDU: 90 00 [18:00:18]wFMCommunicate OK [18:00:18]wFMCommunicate request_size=255 [18:00:18]MH_SAM_APDU [18:00:18]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A4 24 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 B5 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B5 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 11 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B5 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 B2 EC 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 10 09 01 00 35 04 06 00 9B 8C 9E 96 [18:00:18]Write to MH i2c: E2 02 01 C0 0C 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A4 24 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 B5 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B5 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 11 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B5 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 B2 EC 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 10 09 01 00 35 04 06 00 9B 8C 9E 96 00 00 32 [18:00:18]Write i2c OK [18:00:18]MH_I2C_Read... [18:00:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:00:18]Read from MH i2c: E2 [18:00:18]MH_I2C_Read... [18:00:18]Read from MH i2c: E2 03 00 [18:00:18]MH_I2C_Read... [18:00:18]Read from MH i2c: E2 03 00 C0 0C 00 90 00 40 [18:00:18]RAPDU: 90 00 [18:00:18]wFMCommunicate OK [18:00:18]wFMCommunicate request_size=7 [18:00:18]MH_SAM_APDU [18:00:18]CAPDU: 80 0D 02 02 02 4E 2E [18:00:18]Write to MH i2c: E2 0A 00 C1 0C 80 0D 02 02 02 00 4E 2E 00 00 C7 [18:00:18]Write i2c OK [18:00:18]MH_I2C_Read... [18:00:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:00:18]Read from MH i2c: E2 [18:00:18]MH_I2C_Read... [18:00:18]Read from MH i2c: E2 03 00 [18:00:18]MH_I2C_Read... [18:00:18]Read from MH i2c: E2 03 00 C1 0C 00 90 00 41 [18:00:18]RAPDU: 90 00 [18:00:18]wFMCommunicate OK [18:00:18]wFMCommunicate request_size=4 [18:00:18]MH_SAM_APDU [18:00:18]CAPDU: 80 0D 03 02 [18:00:18]Write to MH i2c: E2 08 00 C2 0C 80 0D 03 02 00 00 00 00 49 [18:00:18]Write i2c OK [18:00:18]MH_I2C_Read... [18:00:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:00:18]Read from MH i2c: E2 [18:00:18]MH_I2C_Read... [18:00:18]Read from MH i2c: E2 0B 00 [18:00:18]MH_I2C_Read... [18:00:18]Read from MH i2c: E2 0B 00 C2 0C 00 39 09 C8 E8 91 B5 72 FE 90 00 F2 [18:00:18]RAPDU: 39 09 C8 E8 91 B5 72 FE 90 00 [18:00:18]wFMCommunicate OK [18:00:18]SAM_PROTO_SignData done [18:00:18]FM_MakeSignedData done [18:00:18]CreateOFDProtocolMessage [18:00:18]wFMCommunicate request_size=4 [18:00:18]MH_SAM_APDU [18:00:18]CAPDU: 80 11 00 00 [18:00:18]Write to MH i2c: E2 08 00 C3 0C 80 11 00 00 00 00 00 00 49 [18:00:18]Write i2c OK [18:00:18]MH_I2C_Read... [18:00:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:00:18]Read from MH i2c: E2 [18:00:18]MH_I2C_Read... [18:00:18]Read from MH i2c: E2 17 00 [18:00:18]MH_I2C_Read... [18:00:18]Read from MH i2c: E2 17 00 C3 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 9F [18:00:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [18:00:18]wFMCommunicate OK [18:00:18]CreateOFDProtocolMessage done [18:00:18]OFDSenderStorePacket 67856 [18:00:18]StoreOFDPacket docnum=67856 [18:00:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 3F 1F 04 01 BD C6 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A4 24 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 B5 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B5 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 11 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B5 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 B2 EC 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 10 09 01 00 35 04 06 00 9B 8C 9E 96 4E 2E 39 09 C8 E8 91 B5 72 FE [18:00:18]CheckFolder [18:00:18]dirname=/storage/ofd_packets [18:00:18]CheckFolder done [18:00:18]ProducePacketName [18:00:18]name=ofd_packets/00067856 [18:00:18]NVStorageSaveData ofd_packets/00067856 [18:00:18]File name is /storage/ofd_packets/00067856 [18:00:18]Write 298 bytes [18:00:18]NVStorageSaveData done [18:00:18]OFDSenderStorePacket done [18:00:18]KKMCreateOFDPacket done [18:00:18]NVStorageSaveData kkm_last_timestamp [18:00:18]File name is /storage/kkm_last_timestamp [18:00:18]Write 4 bytes [18:00:18]NVStorageSaveData done [18:00:18]ExternCall_PrintAddStr [18:00:18]wPrintStart [18:00:18]Write to MH i2c: 01 00 00 C4 0C D0 [18:00:18]Write i2c OK [18:00:18]MH_I2C_Read... [18:00:18]Read from MH i2c: 01 [18:00:18]MH_I2C_Read... [18:00:18]Read from MH i2c: 01 07 00 [18:00:18]MH_I2C_Read... [18:00:18]Read from MH i2c: 01 07 00 C4 0C 00 00 00 00 00 FF 0F E5 [18:00:18]RasterBufferAndPrint [18:00:18]line Счет N : (1)508117 [18:00:18]line ИНН: 02508201610067 [18:00:18]line Контрольно-Кассовый Чек [18:00:18]line ПРОДАЖА [18:00:18]line ТРК (МРК, ГНК) : 31 [18:00:18]line Товар: 2710194210 [18:00:18]line ДТ-К-5 [18:00:18]line 9.380 * 74.70 [18:00:18]line = 700.69 [18:00:18]line НДС 12% НСП 1% [18:00:18]line > о реализуемом товаре [18:00:18]line ИТОГО: 700.69 [18:00:18]line НСП 1% : 6.20 [18:00:18]line НДС 12% : 74.41 [18:00:18]line Наличными: 0.00 [18:00:18]line Безнал.: 700.69 [18:00:18]line Место: АЗС № 91 "Партнер Нефть" [18:00:18]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [18:00:18]line СНО: Общий режим [18:00:18]line Чек 95 18.05.2024 18:00 [18:00:18]line Смена: 359 ФФД: 1.0 [18:00:18]line ЗНМ: 0300000119 [18:00:18]line РНМ: 0000000000091845 [18:00:18]line Версия ККМ: 001 [18:00:18]line Платежная система: O! деньги [18:00:18]line ФМ: 0000000000871829 [18:00:18]line ФД: 67856 [18:00:18]line ФПД: 171028258377262 [18:00:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T180018&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67856&fm=171028258377262&tin=02508201610067®Number=0000000000091845&sum=70069 [18:00:19]OFD Sender: Processing packet 67856 [packets to send 35, broken 34] [18:00:19]ProducePacketName [18:00:19]name=ofd_packets/00067856 [18:00:19]OFD Sender: To server: pG, [18:00:19]CommunicateWithHost lk.salyk.kg:30040 [18:00:19]ConnectInit lk.salyk.kg [18:00:19]written 0, free lines is 4095 [18:00:19]Connected sock=10 [18:00:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 3F 1F 04 01 BD C6 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A4 24 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 B5 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B5 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 11 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B5 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 B2 EC 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 10 09 01 00 35 04 06 00 9B 8C 9E 96 4E 2E 39 09 C8 E8 91 B5 72 FE [18:00:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 75 C0 47 00 43 7B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 10 09 01 00 F4 03 04 00 87 94 48 66 B6 04 01 00 00 E5 D8 1D 2A 36 36 C1 11 [18:00:19]CommunicateWithHost err = 0 [18:00:19]CheckOFDResponse [18:00:19]1017 (14) - 77093643461234 [18:00:19]1041 (16) - 0000000000871829 [18:00:19]1040 (4) - 67856 [18:00:19]1012 (4) - 18.05.2024 11:44 [18:00:19]1206 (1) - 0 [18:00:19]OFD Sender: Remove packet 67856 [18:00:19]ProducePacketName [18:00:19]name=ofd_packets/00067856 [18:00:19]NVStorageDeleteData [18:00:19]Write to MH i2c: 01 00 00 ED 0C F9 [18:00:19]Write i2c OK [18:00:19]MH_I2C_Read... [18:00:19]Read from MH i2c: 01 [18:00:19]MH_I2C_Read... [18:00:19]Read from MH i2c: 01 07 00 [18:00:19]MH_I2C_Read... [18:00:19]Read from MH i2c: 01 07 00 ED 0C 00 00 00 00 00 D2 0C DE [18:00:19]RasterBufferAndPrint [18:00:19]line [18:00:19]line [18:00:19]line [18:00:19]line [18:00:19]line [18:00:19]written 0, free lines is 3289 [18:00:19]MH_Cut [18:00:19]Write to MH i2c: D1 01 00 F4 0C 01 D2 [18:00:19]Write i2c OK [18:00:19]MH_I2C_Read... [18:00:19]Read from MH i2c: D1 [18:00:19]MH_I2C_Read... [18:00:19]Read from MH i2c: D1 01 00 [18:00:19]MH_I2C_Read... [18:00:19]Read from MH i2c: D1 01 00 F4 0C 00 D1 [18:00:19]Write to MH i2c: 01 00 00 F5 0C 01 [18:00:19]Write i2c OK [18:00:19]MH_I2C_Read... [18:00:19]OFD Sender: No OFD packet to send [18:00:20]*** Cut start [18:00:20]*** Purtial cut [18:00:20]*** Stage 1: CUTSNS_PIN = 1 [18:00:20]Read from MH i2c: 01 [18:00:20]MH_I2C_Read... [18:00:20]*** Stop cut motor [18:00:20]*** Cut end [18:00:20]Read from MH i2c: 01 07 00 [18:00:20]MH_I2C_Read... [18:00:20]Read from MH i2c: 01 07 00 F5 0C 00 00 00 00 00 FF 0F 16 [18:00:20]process_action close_receipt done [18:00:20]requested_data is exist [18:00:20]produce_requested_data [18:00:20]requested_item fm.sn is exist - process it [18:00:20]wFMCommunicate request_size=4 [18:00:20]MH_SAM_APDU [18:00:20]CAPDU: 80 11 00 00 [18:00:20]Write to MH i2c: E2 08 00 F6 0C 80 11 00 00 00 00 00 00 7C [18:00:20]Write i2c OK [18:00:20]MH_I2C_Read... [18:00:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:00:20]Read from MH i2c: E2 [18:00:20]MH_I2C_Read... [18:00:20]Read from MH i2c: E2 17 00 [18:00:20]MH_I2C_Read... [18:00:20]Read from MH i2c: E2 17 00 F6 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 D2 [18:00:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [18:00:20]wFMCommunicate OK [18:00:20]requested_item fd.num is exist - process it [18:00:20]SAM_PROTO_GetFieldsCounters [18:00:20]wFMCommunicate request_size=4 [18:00:20]MH_SAM_APDU [18:00:20]CAPDU: 80 13 00 00 [18:00:20]Write to MH i2c: E2 08 00 F7 0C 80 13 00 00 00 00 00 00 7F [18:00:20]Write i2c OK [18:00:20]MH_I2C_Read... [18:00:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:00:20]Read from MH i2c: E2 [18:00:20]MH_I2C_Read... [18:00:20]Read from MH i2c: E2 62 00 [18:00:20]MH_I2C_Read... [18:00:20]Read from MH i2c: E2 62 00 F7 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 10 09 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 5F 00 00 00 5E 04 04 00 5F 00 00 00 57 04 04 00 60 00 00 00 19 04 04 00 00 00 00 00 90 00 44 [18:00:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 10 09 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 5F 00 00 00 5E 04 04 00 5F 00 00 00 57 04 04 00 60 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:00:20]wFMCommunicate OK [18:00:20]SAM_PROTO_GetFieldsCounters done [18:00:20]requested_item shift.num is exist - process it [18:00:20]requested_item shift.opened is exist - process it [18:00:20]req_shift_opened [18:00:20]FM_GetShiftState [18:00:20]SAM_PROTO_GetShiftState [18:00:20]wFMCommunicate request_size=4 [18:00:20]MH_SAM_APDU [18:00:20]CAPDU: 80 13 01 00 [18:00:20]Write to MH i2c: E2 08 00 F8 0C 80 13 01 00 00 00 00 00 81 [18:00:20]Write i2c OK [18:00:20]MH_I2C_Read... [18:00:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:00:20]Read from MH i2c: E2 [18:00:20]MH_I2C_Read... [18:00:20]Read from MH i2c: E2 0E 00 [18:00:20]MH_I2C_Read... [18:00:20]Read from MH i2c: E2 0E 00 F8 0C 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 E8 [18:00:20]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [18:00:20]wFMCommunicate OK [18:00:20]SAM_PROTO_GetShiftState done [18:00:20]FM_GetShiftState done [18:00:20]req_shift_opened done [18:00:20]requested_item shift.open_date is exist - process it [18:00:20]req_shift_open_date [18:00:20]req_shift_open_date done [18:00:20]produce_requested_data done [18:00:20]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67856,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [18:00:20]process_action_free close_receipt [18:00:20]json_value_free [18:00:20]json_value_free done [18:00:20]process_json_proto returns [18:00:20]Send response to host [18:00:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67856,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [18:00:20]free response buf [18:00:20]execute_script done [18:00:20]execute_script returns [18:00:20]free content buf [18:00:20]Sock 9.Close socket [18:00:20]Sock 9.Thread stoped [18:00:24]OFD Sender: No OFD packet to send [18:00:29]OFD Sender: No OFD packet to send [18:00:34]OFD Sender: No OFD packet to send [18:00:39]OFD Sender: No OFD packet to send [18:00:44]OFD Sender: No OFD packet to send [18:00:49]OFD Sender: No OFD packet to send [18:00:54]OFD Sender: No OFD packet to send [18:00:59]OFD Sender: No OFD packet to send [18:01:04]OFD Sender: No OFD packet to send [18:01:09]OFD Sender: No OFD packet to send [18:01:14]OFD Sender: No OFD packet to send [18:01:19]OFD Sender: No OFD packet to send [18:01:24]OFD Sender: No OFD packet to send [18:01:29]OFD Sender: No OFD packet to send [18:01:35]OFD Sender: No OFD packet to send [18:01:40]OFD Sender: No OFD packet to send [18:01:45]OFD Sender: No OFD packet to send [18:01:50]OFD Sender: No OFD packet to send [18:01:55]OFD Sender: No OFD packet to send [18:02:00]OFD Sender: No OFD packet to send [18:02:05]OFD Sender: No OFD packet to send [18:02:10]OFD Sender: No OFD packet to send [18:02:15]OFD Sender: No OFD packet to send [18:02:20]OFD Sender: No OFD packet to send [18:02:25]OFD Sender: No OFD packet to send [18:02:30]OFD Sender: No OFD packet to send [18:02:35]OFD Sender: No OFD packet to send [18:02:40]OFD Sender: No OFD packet to send [18:02:45]OFD Sender: No OFD packet to send [18:02:50]OFD Sender: No OFD packet to send [18:02:55]OFD Sender: No OFD packet to send [18:03:00]OFD Sender: No OFD packet to send [18:03:05]OFD Sender: No OFD packet to send [18:03:10]OFD Sender: No OFD packet to send [18:03:15]OFD Sender: No OFD packet to send [18:03:20]OFD Sender: No OFD packet to send [18:03:25]OFD Sender: No OFD packet to send [18:03:30]OFD Sender: No OFD packet to send [18:03:35]OFD Sender: No OFD packet to send [18:03:40]OFD Sender: No OFD packet to send [18:03:45]OFD Sender: No OFD packet to send [18:03:50]OFD Sender: No OFD packet to send [18:03:55]OFD Sender: No OFD packet to send [18:04:00]OFD Sender: No OFD packet to send [18:04:05]OFD Sender: No OFD packet to send [18:04:10]OFD Sender: No OFD packet to send [18:04:15]OFD Sender: No OFD packet to send [18:04:20]OFD Sender: No OFD packet to send [18:04:25]OFD Sender: No OFD packet to send [18:04:30]OFD Sender: No OFD packet to send [18:04:35]OFD Sender: No OFD packet to send [18:04:40]OFD Sender: No OFD packet to send [18:04:45]OFD Sender: No OFD packet to send [18:04:50]OFD Sender: No OFD packet to send [18:04:55]OFD Sender: No OFD packet to send [18:05:00]OFD Sender: No OFD packet to send [18:05:05]OFD Sender: No OFD packet to send [18:05:10]OFD Sender: No OFD packet to send [18:05:15]OFD Sender: No OFD packet to send [18:05:20]OFD Sender: No OFD packet to send [18:05:25]OFD Sender: No OFD packet to send [18:05:30]OFD Sender: No OFD packet to send [18:05:35]OFD Sender: No OFD packet to send [18:05:40]OFD Sender: No OFD packet to send [18:05:45]OFD Sender: No OFD packet to send [18:05:50]OFD Sender: No OFD packet to send [18:05:55]OFD Sender: No OFD packet to send [18:06:00]OFD Sender: No OFD packet to send [18:06:05]OFD Sender: No OFD packet to send [18:06:10]OFD Sender: No OFD packet to send [18:06:15]OFD Sender: No OFD packet to send [18:06:20]OFD Sender: No OFD packet to send [18:06:25]OFD Sender: No OFD packet to send [18:06:30]OFD Sender: No OFD packet to send [18:06:35]OFD Sender: No OFD packet to send [18:06:40]OFD Sender: No OFD packet to send [18:06:45]OFD Sender: No OFD packet to send [18:06:50]OFD Sender: No OFD packet to send [18:06:55]OFD Sender: No OFD packet to send [18:07:00]OFD Sender: No OFD packet to send [18:07:05]OFD Sender: No OFD packet to send [18:07:10]OFD Sender: No OFD packet to send [18:07:11]accept exits with 7 [18:07:11]New connection [18:07:11]New thread 3067202916 created [18:07:11]Thread 3067059556 joined [18:07:11]Waiting for new connection... [18:07:11] Sock 7.Parse request [18:07:11]Sock 7.Check first char [18:07:11]Sock 7.First char is OK [18:07:11]request: POST /json_proto HTTP/1.0 [18:07:11]Method: POST [18:07:11]URL: /json_proto [18:07:11]Method is POST - this is cgi request [18:07:11]url: /json_proto [18:07:11]query_string will be loaded in cgi processing [18:07:11]execute_cgi json_proto POST (null) [18:07:11]execute_cgi path=json_proto method=POST [18:07:11]POST find Content-Length [18:07:11]Host: 172.17.41.195:8080 [18:07:11]Content-Length: 800 [18:07:11]Content-Type: application/json [18:07:11] [18:07:11]POST finish read [18:07:11]Found Content-Length = 800 [18:07:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)508118", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 24.100, "sum" : 1800.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1800.27 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:07:11]execute_script... [18:07:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)508118", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 24.100, "sum" : 1800.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1800.27 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:07:11]POST & json_proto [18:07:11]process_json_proto [18:07:11]json parsed OK: [18:07:11]protocol is kg_v1.0 [18:07:11]action value=close_receipt [18:07:11]process_action close_receipt [18:07:11]cmd_close_receipt [18:07:11]MH_GetDate [18:07:11]Write to MH i2c: F0 00 00 F9 0C F4 [18:07:11]Write i2c OK [18:07:11]MH_I2C_Read... [18:07:11]Read from MH i2c: F0 [18:07:11]MH_I2C_Read... [18:07:11]Read from MH i2c: F0 09 00 [18:07:11]MH_I2C_Read... [18:07:11]Read from MH i2c: F0 09 00 F9 0C 00 50 EE 48 66 FC 21 6F 64 D9 [18:07:11]GetLastDocTimeStamp 1716055218 [18:07:11]current date 1716055632 [18:07:11]FM_GetShiftState [18:07:11]SAM_PROTO_GetShiftState [18:07:11]wFMCommunicate request_size=4 [18:07:11]MH_SAM_APDU [18:07:11]CAPDU: 80 13 01 00 [18:07:11]Write to MH i2c: E2 08 00 FA 0C 80 13 01 00 00 00 00 00 83 [18:07:11]Write i2c OK [18:07:11]MH_I2C_Read... [18:07:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:07:11]Read from MH i2c: E2 [18:07:11]MH_I2C_Read... [18:07:11]Read from MH i2c: E2 0E 00 [18:07:11]MH_I2C_Read... [18:07:11]Read from MH i2c: E2 0E 00 FA 0C 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 EA [18:07:11]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [18:07:11]wFMCommunicate OK [18:07:11]SAM_PROTO_GetShiftState done [18:07:11]FM_GetShiftState done [18:07:11]opened in 1715991483 [18:07:11]opened+sec_in_day 1716077883 [18:07:11]quantity*price = 180027 [18:07:11]sum+1 = 180028 [18:07:11]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1800.27 НСП 1% : 15.93 НДС 12% : 191.18 Наличными: 0.00 Безнал.: 1800.27 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 96 18.05.2024 18:07 Смена: 359 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67857 ФПД: 241357248967811 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T180712&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67857&fm=241357248967811&tin=02508201610067®Number=0000000000091845&sum=180027 [18:07:12]StoreToDocumentArchive [18:07:12]shift 359 fd 67857 [18:07:12]save to /storage/0359/doc_00067857 [18:07:12]save last doc name /storage/0359/doc_00067857 to /storage/kkm_last_doc_name [18:07:12]save OK [18:07:12]Clear old archive folders... [18:07:12]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:07:12]tlvbuf is B6EE57C0 [18:07:12]SAM_PROTO_ClearQueue [18:07:12]wFMCommunicate request_size=4 [18:07:12]MH_SAM_APDU [18:07:12]CAPDU: 80 09 00 00 [18:07:12]Write to MH i2c: E2 08 00 07 0D 80 09 00 00 00 00 00 00 86 [18:07:12]Write i2c OK [18:07:12]MH_I2C_Read... [18:07:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:07:12]Read from MH i2c: E2 [18:07:12]MH_I2C_Read... [18:07:12]Read from MH i2c: E2 03 00 [18:07:12]MH_I2C_Read... [18:07:12]Read from MH i2c: E2 03 00 07 0D 00 90 00 88 [18:07:12]RAPDU: 90 00 [18:07:12]wFMCommunicate OK [18:07:12]SAM_PROTO_ClearQueue done [18:07:12]KKMCreateOFDPacket [18:07:12]OFDProtocolAddRootSTLVToBuf [18:07:12]FM_MakeSignedData [18:07:12]FM_MakeSignedData [18:07:12]SAM_PROTO_SignData [18:07:12]wFMCommunicate request_size=4 [18:07:12]MH_SAM_APDU [18:07:12]CAPDU: 80 0D 01 02 [18:07:12]Write to MH i2c: E2 08 00 08 0D 80 0D 01 02 00 00 00 00 8E [18:07:12]Write i2c OK [18:07:12]MH_I2C_Read... [18:07:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:07:12]Read from MH i2c: E2 [18:07:12]MH_I2C_Read... [18:07:12]Read from MH i2c: E2 03 00 [18:07:12]MH_I2C_Read... [18:07:12]Read from MH i2c: E2 03 00 08 0D 00 90 00 89 [18:07:12]RAPDU: 90 00 [18:07:12]wFMCommunicate OK [18:07:12]wFMCommunicate request_size=255 [18:07:12]MH_SAM_APDU [18:07:12]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 24 5E 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 3B BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3B BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AE 4A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3B BF 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 50 EE 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 11 09 01 00 35 04 06 00 DB 83 5D 16 [18:07:12]Write to MH i2c: E2 02 01 09 0D 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 24 5E 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 3B BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3B BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AE 4A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3B BF 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 50 EE 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 11 09 01 00 35 04 06 00 DB 83 5D 16 00 00 88 [18:07:12]Write i2c OK [18:07:12]MH_I2C_Read... [18:07:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:07:12]Read from MH i2c: E2 [18:07:12]MH_I2C_Read... [18:07:12]Read from MH i2c: E2 03 00 [18:07:12]MH_I2C_Read... [18:07:12]Read from MH i2c: E2 03 00 09 0D 00 90 00 8A [18:07:12]RAPDU: 90 00 [18:07:12]wFMCommunicate OK [18:07:12]wFMCommunicate request_size=7 [18:07:12]MH_SAM_APDU [18:07:12]CAPDU: 80 0D 02 02 02 B4 83 [18:07:12]Write to MH i2c: E2 0A 00 0A 0D 80 0D 02 02 02 00 B4 83 00 00 CC [18:07:12]Write i2c OK [18:07:12]MH_I2C_Read... [18:07:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:07:12]Read from MH i2c: E2 [18:07:12]MH_I2C_Read... [18:07:12]Read from MH i2c: E2 03 00 [18:07:12]MH_I2C_Read... [18:07:12]Read from MH i2c: E2 03 00 0A 0D 00 90 00 8B [18:07:12]RAPDU: 90 00 [18:07:12]wFMCommunicate OK [18:07:12]wFMCommunicate request_size=4 [18:07:12]MH_SAM_APDU [18:07:12]CAPDU: 80 0D 03 02 [18:07:12]Write to MH i2c: E2 08 00 0B 0D 80 0D 03 02 00 00 00 00 93 [18:07:12]Write i2c OK [18:07:12]MH_I2C_Read... [18:07:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:07:12]Read from MH i2c: E2 [18:07:12]MH_I2C_Read... [18:07:12]Read from MH i2c: E2 0B 00 [18:07:12]MH_I2C_Read... [18:07:12]Read from MH i2c: E2 0B 00 0B 0D 00 C1 C0 0A 07 87 35 D2 E1 90 00 95 [18:07:12]RAPDU: C1 C0 0A 07 87 35 D2 E1 90 00 [18:07:12]wFMCommunicate OK [18:07:12]SAM_PROTO_SignData done [18:07:12]FM_MakeSignedData done [18:07:12]CreateOFDProtocolMessage [18:07:12]wFMCommunicate request_size=4 [18:07:12]MH_SAM_APDU [18:07:12]CAPDU: 80 11 00 00 [18:07:12]Write to MH i2c: E2 08 00 0C 0D 80 11 00 00 00 00 00 00 93 [18:07:12]Write i2c OK [18:07:12]MH_I2C_Read... [18:07:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:07:12]Read from MH i2c: E2 [18:07:12]MH_I2C_Read... [18:07:12]Read from MH i2c: E2 17 00 [18:07:12]MH_I2C_Read... [18:07:12]Read from MH i2c: E2 17 00 0C 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 E9 [18:07:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [18:07:12]wFMCommunicate OK [18:07:12]CreateOFDProtocolMessage done [18:07:12]OFDSenderStorePacket 67857 [18:07:12]StoreOFDPacket docnum=67857 [18:07:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 7A 55 04 01 80 FF 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 24 5E 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 3B BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3B BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AE 4A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3B BF 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 50 EE 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 11 09 01 00 35 04 06 00 DB 83 5D 16 B4 83 C1 C0 0A 07 87 35 D2 E1 [18:07:12]CheckFolder [18:07:12]dirname=/storage/ofd_packets [18:07:12]CheckFolder done [18:07:12]ProducePacketName [18:07:12]name=ofd_packets/00067857 [18:07:12]NVStorageSaveData ofd_packets/00067857 [18:07:12]File name is /storage/ofd_packets/00067857 [18:07:12]Write 298 bytes [18:07:12]NVStorageSaveData done [18:07:12]OFDSenderStorePacket done [18:07:12]KKMCreateOFDPacket done [18:07:12]NVStorageSaveData kkm_last_timestamp [18:07:12]File name is /storage/kkm_last_timestamp [18:07:12]Write 4 bytes [18:07:12]NVStorageSaveData done [18:07:12]ExternCall_PrintAddStr [18:07:12]wPrintStart [18:07:12]Write to MH i2c: 01 00 00 0D 0D 1A [18:07:12]Write i2c OK [18:07:12]MH_I2C_Read... [18:07:12]Read from MH i2c: 01 [18:07:12]MH_I2C_Read... [18:07:12]Read from MH i2c: 01 07 00 [18:07:12]MH_I2C_Read... [18:07:12]Read from MH i2c: 01 07 00 0D 0D 00 00 00 00 00 FF 0F 2F [18:07:12]RasterBufferAndPrint [18:07:12]line Счет N : (1)508118 [18:07:12]line ИНН: 02508201610067 [18:07:12]line Контрольно-Кассовый Чек [18:07:12]line ПРОДАЖА [18:07:12]line ТРК (МРК, ГНК) : 21 [18:07:12]line Товар: 2710194210 [18:07:12]line ДТ-К-5 [18:07:12]line 24.100 * 74.70 [18:07:12]line = 1800.27 [18:07:12]line НДС 12% НСП 1% [18:07:12]line > о реализуемом товаре [18:07:12]line ИТОГО: 1800.27 [18:07:12]line НСП 1% : 15.93 [18:07:12]line НДС 12% : 191.18 [18:07:12]line Наличными: 0.00 [18:07:12]line Безнал.: 1800.27 [18:07:12]line Место: АЗС № 91 "Партнер Нефть" [18:07:12]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [18:07:12]line СНО: Общий режим [18:07:12]line Чек 96 18.05.2024 18:07 [18:07:12]line Смена: 359 ФФД: 1.0 [18:07:13]line ЗНМ: 0300000119 [18:07:13]line РНМ: 0000000000091845 [18:07:13]line Версия ККМ: 001 [18:07:13]line Платежная система: O! деньги [18:07:13]line ФМ: 0000000000871829 [18:07:13]line ФД: 67857 [18:07:13]line ФПД: 241357248967811 [18:07:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T180712&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67857&fm=241357248967811&tin=02508201610067®Number=0000000000091845&sum=180027 [18:07:13]OFD Sender: Processing packet 67857 [packets to send 35, broken 34] [18:07:13]ProducePacketName [18:07:13]name=ofd_packets/00067857 [18:07:13]OFD Sender: To server: pG, [18:07:13]CommunicateWithHost lk.salyk.kg:30040 [18:07:13]ConnectInit lk.salyk.kg [18:07:13]written 0, free lines is 4095 [18:07:13]Connected sock=10 [18:07:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 7A 55 04 01 80 FF 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 24 5E 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 3B BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3B BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AE 4A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3B BF 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 50 EE 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 11 09 01 00 35 04 06 00 DB 83 5D 16 B4 83 C1 C0 0A 07 87 35 D2 E1 [18:07:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 5B 88 47 00 3E 85 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 11 09 01 00 F4 03 04 00 25 96 48 66 B6 04 01 00 00 26 BB C1 F4 63 E1 1E 3F [18:07:13]CommunicateWithHost err = 0 [18:07:13]CheckOFDResponse [18:07:13]1017 (14) - 77093643461234 [18:07:13]1041 (16) - 0000000000871829 [18:07:13]1040 (4) - 67857 [18:07:13]1012 (4) - 18.05.2024 11:51 [18:07:13]1206 (1) - 0 [18:07:13]OFD Sender: Remove packet 67857 [18:07:13]ProducePacketName [18:07:13]name=ofd_packets/00067857 [18:07:13]NVStorageDeleteData [18:07:13]Write to MH i2c: 01 00 00 36 0D 43 [18:07:13]Write i2c OK [18:07:13]MH_I2C_Read... [18:07:13]Read from MH i2c: 01 [18:07:13]MH_I2C_Read... [18:07:13]Read from MH i2c: 01 07 00 [18:07:13]MH_I2C_Read... [18:07:13]Read from MH i2c: 01 07 00 36 0D 00 00 00 00 00 CE 0C 24 [18:07:13]RasterBufferAndPrint [18:07:13]line [18:07:13]line [18:07:13]line [18:07:13]line [18:07:13]line [18:07:13]written 0, free lines is 3284 [18:07:13]MH_Cut [18:07:13]Write to MH i2c: D1 01 00 3D 0D 01 1C [18:07:13]Write i2c OK [18:07:13]MH_I2C_Read... [18:07:13]Read from MH i2c: D1 [18:07:13]MH_I2C_Read... [18:07:13]Read from MH i2c: D1 01 00 [18:07:13]MH_I2C_Read... [18:07:13]Read from MH i2c: D1 01 00 3D 0D 00 1B [18:07:13]Write to MH i2c: 01 00 00 3E 0D 4B [18:07:13]Write i2c OK [18:07:13]MH_I2C_Read... [18:07:14]OFD Sender: No OFD packet to send [18:07:14]*** Cut start [18:07:14]*** Purtial cut [18:07:14]*** Stage 1: CUTSNS_PIN = 1 [18:07:14]Read from MH i2c: 01 [18:07:14]MH_I2C_Read... [18:07:14]*** Stop cut motor [18:07:14]*** Cut end [18:07:14]Read from MH i2c: 01 07 00 [18:07:14]MH_I2C_Read... [18:07:14]Read from MH i2c: 01 07 00 3E 0D 00 00 00 00 00 FF 0F 60 [18:07:14]process_action close_receipt done [18:07:14]requested_data is exist [18:07:14]produce_requested_data [18:07:14]requested_item fm.sn is exist - process it [18:07:14]wFMCommunicate request_size=4 [18:07:14]MH_SAM_APDU [18:07:14]CAPDU: 80 11 00 00 [18:07:14]Write to MH i2c: E2 08 00 3F 0D 80 11 00 00 00 00 00 00 C6 [18:07:14]Write i2c OK [18:07:14]MH_I2C_Read... [18:07:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:07:14]Read from MH i2c: E2 [18:07:14]MH_I2C_Read... [18:07:14]Read from MH i2c: E2 17 00 [18:07:14]MH_I2C_Read... [18:07:14]Read from MH i2c: E2 17 00 3F 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 1C [18:07:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [18:07:14]wFMCommunicate OK [18:07:14]requested_item fd.num is exist - process it [18:07:14]SAM_PROTO_GetFieldsCounters [18:07:14]wFMCommunicate request_size=4 [18:07:14]MH_SAM_APDU [18:07:14]CAPDU: 80 13 00 00 [18:07:14]Write to MH i2c: E2 08 00 40 0D 80 13 00 00 00 00 00 00 C9 [18:07:14]Write i2c OK [18:07:14]MH_I2C_Read... [18:07:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:07:14]Read from MH i2c: E2 [18:07:14]MH_I2C_Read... [18:07:14]Read from MH i2c: E2 62 00 [18:07:14]MH_I2C_Read... [18:07:14]Read from MH i2c: E2 62 00 40 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 11 09 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 60 00 00 00 5E 04 04 00 60 00 00 00 57 04 04 00 61 00 00 00 19 04 04 00 00 00 00 00 90 00 92 [18:07:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 11 09 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 60 00 00 00 5E 04 04 00 60 00 00 00 57 04 04 00 61 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:07:14]wFMCommunicate OK [18:07:14]SAM_PROTO_GetFieldsCounters done [18:07:14]requested_item shift.num is exist - process it [18:07:14]requested_item shift.opened is exist - process it [18:07:14]req_shift_opened [18:07:14]FM_GetShiftState [18:07:14]SAM_PROTO_GetShiftState [18:07:14]wFMCommunicate request_size=4 [18:07:14]MH_SAM_APDU [18:07:14]CAPDU: 80 13 01 00 [18:07:14]Write to MH i2c: E2 08 00 41 0D 80 13 01 00 00 00 00 00 CB [18:07:14]Write i2c OK [18:07:14]MH_I2C_Read... [18:07:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:07:14]Read from MH i2c: E2 [18:07:14]MH_I2C_Read... [18:07:14]Read from MH i2c: E2 0E 00 [18:07:14]MH_I2C_Read... [18:07:14]Read from MH i2c: E2 0E 00 41 0D 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 32 [18:07:14]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [18:07:14]wFMCommunicate OK [18:07:14]SAM_PROTO_GetShiftState done [18:07:14]FM_GetShiftState done [18:07:14]req_shift_opened done [18:07:14]requested_item shift.open_date is exist - process it [18:07:14]req_shift_open_date [18:07:14]req_shift_open_date done [18:07:14]produce_requested_data done [18:07:14]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67857,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [18:07:14]process_action_free close_receipt [18:07:14]json_value_free [18:07:14]json_value_free done [18:07:14]process_json_proto returns [18:07:14]Send response to host [18:07:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67857,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [18:07:14]free response buf [18:07:14]execute_script done [18:07:14]execute_script returns [18:07:14]free content buf [18:07:14]Sock 7.Close socket [18:07:14]Sock 7.Thread stoped [18:07:19]OFD Sender: No OFD packet to send [18:07:24]OFD Sender: No OFD packet to send [18:07:29]OFD Sender: No OFD packet to send [18:07:34]OFD Sender: No OFD packet to send [18:07:39]OFD Sender: No OFD packet to send [18:07:44]OFD Sender: No OFD packet to send [18:07:49]OFD Sender: No OFD packet to send [18:07:54]OFD Sender: No OFD packet to send [18:07:59]OFD Sender: No OFD packet to send [18:08:04]OFD Sender: No OFD packet to send [18:08:09]OFD Sender: No OFD packet to send [18:08:14]OFD Sender: No OFD packet to send [18:08:19]OFD Sender: No OFD packet to send [18:08:24]OFD Sender: No OFD packet to send [18:08:29]OFD Sender: No OFD packet to send [18:08:34]OFD Sender: No OFD packet to send [18:08:39]OFD Sender: No OFD packet to send [18:08:44]OFD Sender: No OFD packet to send [18:08:49]OFD Sender: No OFD packet to send [18:08:54]OFD Sender: No OFD packet to send [18:08:59]OFD Sender: No OFD packet to send [18:09:04]OFD Sender: No OFD packet to send [18:09:09]OFD Sender: No OFD packet to send [18:09:14]OFD Sender: No OFD packet to send [18:09:19]OFD Sender: No OFD packet to send [18:09:24]OFD Sender: No OFD packet to send [18:09:29]OFD Sender: No OFD packet to send [18:09:34]OFD Sender: No OFD packet to send [18:09:39]OFD Sender: No OFD packet to send [18:09:44]OFD Sender: No OFD packet to send [18:09:49]OFD Sender: No OFD packet to send [18:09:54]OFD Sender: No OFD packet to send [18:09:59]OFD Sender: No OFD packet to send [18:10:04]OFD Sender: No OFD packet to send [18:10:09]OFD Sender: No OFD packet to send [18:10:14]OFD Sender: No OFD packet to send [18:10:19]OFD Sender: No OFD packet to send [18:10:24]OFD Sender: No OFD packet to send [18:10:25]accept exits with 9 [18:10:25]New connection [18:10:25]New thread 3067059556 created [18:10:25]Thread 3067202916 joined [18:10:25]Waiting for new connection... [18:10:25] Sock 9.Parse request [18:10:25]Sock 9.Check first char [18:10:25]Sock 9.First char is OK [18:10:25]request: POST /json_proto HTTP/1.0 [18:10:25]Method: POST [18:10:25]URL: /json_proto [18:10:25]Method is POST - this is cgi request [18:10:25]url: /json_proto [18:10:25]query_string will be loaded in cgi processing [18:10:25]execute_cgi json_proto POST (null) [18:10:25]execute_cgi path=json_proto method=POST [18:10:25]POST find Content-Length [18:10:25]Host: 172.17.41.195:8080 [18:10:25]Content-Length: 793 [18:10:25]Content-Type: application/json [18:10:25] [18:10:25]POST finish read [18:10:25]Found Content-Length = 793 [18:10:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)508121", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 400.02 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:10:25]execute_script... [18:10:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)508121", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 400.02 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:10:25]POST & json_proto [18:10:25]process_json_proto [18:10:25]json parsed OK: [18:10:25]protocol is kg_v1.0 [18:10:25]action value=close_receipt [18:10:25]process_action close_receipt [18:10:25]cmd_close_receipt [18:10:25]MH_GetDate [18:10:25]Write to MH i2c: F0 00 00 42 0D 3E [18:10:25]Write i2c OK [18:10:25]MH_I2C_Read... [18:10:25]Read from MH i2c: F0 [18:10:25]MH_I2C_Read... [18:10:25]Read from MH i2c: F0 09 00 [18:10:25]MH_I2C_Read... [18:10:25]Read from MH i2c: F0 09 00 42 0D 00 13 EF 48 66 FC 21 6F 64 E7 [18:10:25]GetLastDocTimeStamp 1716055632 [18:10:25]current date 1716055827 [18:10:25]FM_GetShiftState [18:10:25]SAM_PROTO_GetShiftState [18:10:25]wFMCommunicate request_size=4 [18:10:25]MH_SAM_APDU [18:10:25]CAPDU: 80 13 01 00 [18:10:25]Write to MH i2c: E2 08 00 43 0D 80 13 01 00 00 00 00 00 CD [18:10:25]Write i2c OK [18:10:25]MH_I2C_Read... [18:10:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:10:25]Read from MH i2c: E2 [18:10:25]MH_I2C_Read... [18:10:25]Read from MH i2c: E2 0E 00 [18:10:25]MH_I2C_Read... [18:10:25]Read from MH i2c: E2 0E 00 43 0D 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 34 [18:10:25]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [18:10:25]wFMCommunicate OK [18:10:25]SAM_PROTO_GetShiftState done [18:10:25]FM_GetShiftState done [18:10:25]opened in 1715991483 [18:10:25]opened+sec_in_day 1716077883 [18:10:25]quantity*price = 40002 [18:10:25]sum+1 = 40003 [18:10:25]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 400.02 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 0.00 Безнал.: 400.02 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 97 18.05.2024 18:10 Смена: 359 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67858 ФПД: 34337619290463 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T181027&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67858&fm=34337619290463&tin=02508201610067®Number=0000000000091845&sum=40002 [18:10:26]StoreToDocumentArchive [18:10:26]shift 359 fd 67858 [18:10:26]save to /storage/0359/doc_00067858 [18:10:26]save last doc name /storage/0359/doc_00067858 to /storage/kkm_last_doc_name [18:10:26]save OK [18:10:26]Clear old archive folders... [18:10:26]ProcessDocumentItem done err = 0, tmpTLVsize=252 [18:10:26]tlvbuf is 0098F570 [18:10:26]SAM_PROTO_ClearQueue [18:10:26]wFMCommunicate request_size=4 [18:10:26]MH_SAM_APDU [18:10:26]CAPDU: 80 09 00 00 [18:10:26]Write to MH i2c: E2 08 00 50 0D 80 09 00 00 00 00 00 00 CF [18:10:26]Write i2c OK [18:10:26]MH_I2C_Read... [18:10:26]Read from MH i2c: E2 [18:10:26]MH_I2C_Read... [18:10:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:10:26]Read from MH i2c: E2 03 00 [18:10:26]MH_I2C_Read... [18:10:26]Read from MH i2c: E2 03 00 50 0D 00 90 00 D1 [18:10:26]RAPDU: 90 00 [18:10:26]wFMCommunicate OK [18:10:26]SAM_PROTO_ClearQueue done [18:10:26]KKMCreateOFDPacket [18:10:26]OFDProtocolAddRootSTLVToBuf [18:10:26]FM_MakeSignedData [18:10:26]FM_MakeSignedData [18:10:26]SAM_PROTO_SignData [18:10:26]wFMCommunicate request_size=4 [18:10:26]MH_SAM_APDU [18:10:26]CAPDU: 80 0D 01 02 [18:10:26]Write to MH i2c: E2 08 00 51 0D 80 0D 01 02 00 00 00 00 D7 [18:10:26]Write i2c OK [18:10:26]MH_I2C_Read... [18:10:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:10:26]Read from MH i2c: E2 [18:10:26]MH_I2C_Read... [18:10:26]Read from MH i2c: E2 03 00 [18:10:26]MH_I2C_Read... [18:10:26]Read from MH i2c: E2 03 00 51 0D 00 90 00 D2 [18:10:26]RAPDU: 90 00 [18:10:26]wFMCommunicate OK [18:10:26]wFMCommunicate request_size=255 [18:10:26]MH_SAM_APDU [18:10:26]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 42 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 42 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 13 EF 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 12 09 01 00 35 04 06 00 [18:10:26]Write to MH i2c: E2 02 01 52 0D 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 42 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 42 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 13 EF 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 12 09 01 00 35 04 06 00 00 00 03 [18:10:26]Write i2c OK [18:10:26]MH_I2C_Read... [18:10:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:10:27]Read from MH i2c: E2 [18:10:27]MH_I2C_Read... [18:10:27]Read from MH i2c: E2 03 00 [18:10:27]MH_I2C_Read... [18:10:27]Read from MH i2c: E2 03 00 52 0D 00 90 00 D3 [18:10:27]RAPDU: 90 00 [18:10:27]wFMCommunicate OK [18:10:27]wFMCommunicate request_size=11 [18:10:27]MH_SAM_APDU [18:10:27]CAPDU: 80 0D 02 02 06 1F 3A D9 99 A9 5F [18:10:27]Write to MH i2c: E2 0E 00 53 0D 80 0D 02 02 06 00 1F 3A D9 99 A9 5F 00 00 B9 [18:10:27]Write i2c OK [18:10:27]MH_I2C_Read... [18:10:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:10:27]Read from MH i2c: E2 [18:10:27]MH_I2C_Read... [18:10:27]Read from MH i2c: E2 03 00 [18:10:27]MH_I2C_Read... [18:10:27]Read from MH i2c: E2 03 00 53 0D 00 90 00 D4 [18:10:27]RAPDU: 90 00 [18:10:27]wFMCommunicate OK [18:10:27]wFMCommunicate request_size=4 [18:10:27]MH_SAM_APDU [18:10:27]CAPDU: 80 0D 03 02 [18:10:27]Write to MH i2c: E2 08 00 54 0D 80 0D 03 02 00 00 00 00 DC [18:10:27]Write i2c OK [18:10:27]MH_I2C_Read... [18:10:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:10:27]Read from MH i2c: E2 [18:10:27]MH_I2C_Read... [18:10:27]Read from MH i2c: E2 0B 00 [18:10:27]MH_I2C_Read... [18:10:27]Read from MH i2c: E2 0B 00 54 0D 00 63 DC 10 D0 08 DE 97 1F 90 00 98 [18:10:27]RAPDU: 63 DC 10 D0 08 DE 97 1F 90 00 [18:10:27]wFMCommunicate OK [18:10:27]SAM_PROTO_SignData done [18:10:27]FM_MakeSignedData done [18:10:27]CreateOFDProtocolMessage [18:10:27]wFMCommunicate request_size=4 [18:10:27]MH_SAM_APDU [18:10:27]CAPDU: 80 11 00 00 [18:10:27]Write to MH i2c: E2 08 00 55 0D 80 11 00 00 00 00 00 00 DC [18:10:27]Write i2c OK [18:10:27]MH_I2C_Read... [18:10:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:10:27]Read from MH i2c: E2 [18:10:27]MH_I2C_Read... [18:10:27]Read from MH i2c: E2 17 00 [18:10:27]MH_I2C_Read... [18:10:27]Read from MH i2c: E2 17 00 55 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 32 [18:10:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [18:10:27]wFMCommunicate OK [18:10:27]CreateOFDProtocolMessage done [18:10:27]OFDSenderStorePacket 67858 [18:10:27]StoreOFDPacket docnum=67858 [18:10:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 01 00 00 8B 9C 08 01 A3 D7 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 42 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 42 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 13 EF 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 12 09 01 00 35 04 06 00 1F 3A D9 99 A9 5F 63 DC 10 D0 08 DE 97 1F [18:10:27]CheckFolder [18:10:27]dirname=/storage/ofd_packets [18:10:27]CheckFolder done [18:10:27]ProducePacketName [18:10:27]name=ofd_packets/00067858 [18:10:27]NVStorageSaveData ofd_packets/00067858 [18:10:27]File name is /storage/ofd_packets/00067858 [18:10:27]Write 302 bytes [18:10:27]NVStorageSaveData done [18:10:27]OFDSenderStorePacket done [18:10:27]KKMCreateOFDPacket done [18:10:27]NVStorageSaveData kkm_last_timestamp [18:10:27]File name is /storage/kkm_last_timestamp [18:10:27]Write 4 bytes [18:10:27]NVStorageSaveData done [18:10:27]ExternCall_PrintAddStr [18:10:27]wPrintStart [18:10:27]Write to MH i2c: 01 00 00 56 0D 63 [18:10:27]Write i2c OK [18:10:27]MH_I2C_Read... [18:10:27]Read from MH i2c: 01 [18:10:27]MH_I2C_Read... [18:10:27]Read from MH i2c: 01 07 00 [18:10:27]MH_I2C_Read... [18:10:27]Read from MH i2c: 01 07 00 56 0D 00 00 00 00 00 FF 0F 78 [18:10:27]RasterBufferAndPrint [18:10:27]line Счет N : (1)508121 [18:10:27]line ИНН: 02508201610067 [18:10:27]line Контрольно-Кассовый Чек [18:10:27]line ПРОДАЖА [18:10:27]line ТРК (МРК, ГНК) : 42 [18:10:27]line Товар: 2710124130 [18:10:27]line Super-92-К-5 [18:10:27]line 5.900 * 67.80 [18:10:27]line = 400.02 [18:10:27]line НДС 12% НСП 1% [18:10:27]line > о реализуемом товаре [18:10:27]line ИТОГО: 400.02 [18:10:27]line НСП 1% : 3.54 [18:10:27]line НДС 12% : 42.48 [18:10:27]line Наличными: 0.00 [18:10:27]line Безнал.: 400.02 [18:10:27]line Место: АЗС № 91 "Партнер Нефть" [18:10:27]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [18:10:27]line СНО: Общий режим [18:10:27]line Чек 97 18.05.2024 18:10 [18:10:27]line Смена: 359 ФФД: 1.0 [18:10:27]line ЗНМ: 0300000119 [18:10:27]line РНМ: 0000000000091845 [18:10:27]line Версия ККМ: 001 [18:10:27]line Платежная система: O! деньги [18:10:27]line ФМ: 0000000000871829 [18:10:27]line ФД: 67858 [18:10:27]line ФПД: 34337619290463 [18:10:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T181027&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67858&fm=34337619290463&tin=02508201610067®Number=0000000000091845&sum=40002 [18:10:27]written 0, free lines is 4095 [18:10:27]OFD Sender: Processing packet 67858 [packets to send 35, broken 34] [18:10:27]ProducePacketName [18:10:27]name=ofd_packets/00067858 [18:10:27]OFD Sender: To server: pG, [18:10:27]CommunicateWithHost lk.salyk.kg:30040 [18:10:27]ConnectInit lk.salyk.kg [18:10:27]Connected sock=10 [18:10:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 01 00 00 8B 9C 08 01 A3 D7 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 42 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 42 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 13 EF 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 12 09 01 00 35 04 06 00 1F 3A D9 99 A9 5F 63 DC 10 D0 08 DE 97 1F [18:10:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 6F 40 47 00 4D 57 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 12 09 01 00 F4 03 04 00 E7 96 48 66 B6 04 01 00 00 40 10 BB 83 9E 1E 74 A7 [18:10:27]CommunicateWithHost err = 0 [18:10:27]CheckOFDResponse [18:10:27]1017 (14) - 77093643461234 [18:10:27]1041 (16) - 0000000000871829 [18:10:27]1040 (4) - 67858 [18:10:27]1012 (4) - 18.05.2024 11:54 [18:10:27]1206 (1) - 0 [18:10:27]OFD Sender: Remove packet 67858 [18:10:27]ProducePacketName [18:10:27]name=ofd_packets/00067858 [18:10:27]NVStorageDeleteData [18:10:27]Write to MH i2c: 01 00 00 7F 0D 8C [18:10:27]Write i2c OK [18:10:27]MH_I2C_Read... [18:10:27]Read from MH i2c: 01 [18:10:27]MH_I2C_Read... [18:10:27]Read from MH i2c: 01 07 00 [18:10:27]MH_I2C_Read... [18:10:27]Read from MH i2c: 01 07 00 7F 0D 00 00 00 00 00 D8 0C 77 [18:10:27]RasterBufferAndPrint [18:10:27]line [18:10:27]line [18:10:27]line [18:10:27]line [18:10:27]line [18:10:27]written 0, free lines is 3293 [18:10:27]MH_Cut [18:10:27]Write to MH i2c: D1 01 00 86 0D 01 65 [18:10:27]Write i2c OK [18:10:27]MH_I2C_Read... [18:10:27]Read from MH i2c: D1 [18:10:27]MH_I2C_Read... [18:10:27]Read from MH i2c: D1 01 00 [18:10:27]MH_I2C_Read... [18:10:27]Read from MH i2c: D1 01 00 86 0D 00 64 [18:10:27]Write to MH i2c: 01 00 00 87 0D 94 [18:10:27]Write i2c OK [18:10:27]MH_I2C_Read... [18:10:28]OFD Sender: No OFD packet to send [18:10:28]*** Cut start [18:10:28]*** Purtial cut [18:10:28]*** Stage 1: CUTSNS_PIN = 1 [18:10:28]Read from MH i2c: 01 [18:10:28]MH_I2C_Read... [18:10:28]*** Stop cut motor [18:10:28]*** Cut end [18:10:28]Read from MH i2c: 01 07 00 [18:10:28]MH_I2C_Read... [18:10:28]Read from MH i2c: 01 07 00 87 0D 00 00 00 00 00 FF 0F A9 [18:10:28]process_action close_receipt done [18:10:28]requested_data is exist [18:10:28]produce_requested_data [18:10:28]requested_item fm.sn is exist - process it [18:10:28]wFMCommunicate request_size=4 [18:10:28]MH_SAM_APDU [18:10:28]CAPDU: 80 11 00 00 [18:10:28]Write to MH i2c: E2 08 00 88 0D 80 11 00 00 00 00 00 00 0F [18:10:28]Write i2c OK [18:10:28]MH_I2C_Read... [18:10:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:10:28]Read from MH i2c: E2 [18:10:28]MH_I2C_Read... [18:10:28]Read from MH i2c: E2 17 00 [18:10:28]MH_I2C_Read... [18:10:28]Read from MH i2c: E2 17 00 88 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 65 [18:10:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [18:10:28]wFMCommunicate OK [18:10:28]requested_item fd.num is exist - process it [18:10:28]SAM_PROTO_GetFieldsCounters [18:10:28]wFMCommunicate request_size=4 [18:10:28]MH_SAM_APDU [18:10:28]CAPDU: 80 13 00 00 [18:10:28]Write to MH i2c: E2 08 00 89 0D 80 13 00 00 00 00 00 00 12 [18:10:28]Write i2c OK [18:10:28]MH_I2C_Read... [18:10:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:10:29]Read from MH i2c: E2 [18:10:29]MH_I2C_Read... [18:10:29]Read from MH i2c: E2 62 00 [18:10:29]MH_I2C_Read... [18:10:29]Read from MH i2c: E2 62 00 89 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 12 09 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 61 00 00 00 5E 04 04 00 61 00 00 00 57 04 04 00 62 00 00 00 19 04 04 00 00 00 00 00 90 00 DF [18:10:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 12 09 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 61 00 00 00 5E 04 04 00 61 00 00 00 57 04 04 00 62 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:10:29]wFMCommunicate OK [18:10:29]SAM_PROTO_GetFieldsCounters done [18:10:29]requested_item shift.num is exist - process it [18:10:29]requested_item shift.opened is exist - process it [18:10:29]req_shift_opened [18:10:29]FM_GetShiftState [18:10:29]SAM_PROTO_GetShiftState [18:10:29]wFMCommunicate request_size=4 [18:10:29]MH_SAM_APDU [18:10:29]CAPDU: 80 13 01 00 [18:10:29]Write to MH i2c: E2 08 00 8A 0D 80 13 01 00 00 00 00 00 14 [18:10:29]Write i2c OK [18:10:29]MH_I2C_Read... [18:10:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:10:29]Read from MH i2c: E2 [18:10:29]MH_I2C_Read... [18:10:29]Read from MH i2c: E2 0E 00 [18:10:29]MH_I2C_Read... [18:10:29]Read from MH i2c: E2 0E 00 8A 0D 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 7B [18:10:29]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [18:10:29]wFMCommunicate OK [18:10:29]SAM_PROTO_GetShiftState done [18:10:29]FM_GetShiftState done [18:10:29]req_shift_opened done [18:10:29]requested_item shift.open_date is exist - process it [18:10:29]req_shift_open_date [18:10:29]req_shift_open_date done [18:10:29]produce_requested_data done [18:10:29]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67858,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [18:10:29]process_action_free close_receipt [18:10:29]json_value_free [18:10:29]json_value_free done [18:10:29]process_json_proto returns [18:10:29]Send response to host [18:10:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67858,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [18:10:29]free response buf [18:10:29]execute_script done [18:10:29]execute_script returns [18:10:29]free content buf [18:10:29]Sock 9.Close socket [18:10:29]Sock 9.Thread stoped [18:10:31]accept exits with 7 [18:10:31]New connection [18:10:31]New thread 3067202916 created [18:10:31]Thread 3067059556 joined [18:10:31]Waiting for new connection... [18:10:31] Sock 7.Parse request [18:10:31]Sock 7.Check first char [18:10:31]Sock 7.First char is OK [18:10:31]request: POST /json_proto HTTP/1.0 [18:10:31]Method: POST [18:10:31]URL: /json_proto [18:10:31]Method is POST - this is cgi request [18:10:31]url: /json_proto [18:10:31]query_string will be loaded in cgi processing [18:10:31]execute_cgi json_proto POST (null) [18:10:31]execute_cgi path=json_proto method=POST [18:10:31]POST find Content-Length [18:10:31]Host: 172.17.41.195:8080 [18:10:31]Content-Length: 1209 [18:10:31]Content-Type: application/json [18:10:31] [18:10:31]POST finish read [18:10:31]Found Content-Length = 1209 [18:10:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0440\u0441\u0442\u0430\u043D\u0431\u0435\u043A\u043E\u0432 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)508119\u000A18.05.2024 17:52\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 40.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 2988.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:10:31]execute_script... [18:10:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0440\u0441\u0442\u0430\u043D\u0431\u0435\u043A\u043E\u0432 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)508119\u000A18.05.2024 17:52\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 40.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 2988.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:10:31]POST & json_proto [18:10:31]process_json_proto [18:10:31]json parsed OK: [18:10:31]protocol is kg_v1.0 [18:10:31]action value=print_text [18:10:31]process_action print_text [18:10:31]cmd_print_text [18:10:31]ExternCall_PrintAddStr [18:10:31]wPrintStart [18:10:31]Write to MH i2c: 01 00 00 8B 0D 98 [18:10:31]Write i2c OK [18:10:31]MH_I2C_Read... [18:10:31]Read from MH i2c: 01 [18:10:31]MH_I2C_Read... [18:10:31]Read from MH i2c: 01 07 00 [18:10:31]MH_I2C_Read... [18:10:31]Read from MH i2c: 01 07 00 8B 0D 00 00 00 00 00 FF 0F AD [18:10:31]RasterBufferAndPrint [18:10:31]line *****ТОВАРНЫЙ ЧЕК***** [18:10:31]line АЗС-91 [18:10:31]line Партнер нефть [18:10:31]line 02508201610067 [18:10:31]line Кассир : Арстанбеков Н. [18:10:31]line Счет N : (1)508119 [18:10:31]line 18.05.2024 17:52 [18:10:31]line ПРОДАЖА [18:10:31]line ТРК (МРК, ГНК): 21 [18:10:31]line Вид ГСМ : 2710194210 [18:10:31]line ДТ-К-5 [18:10:31]line 40.000 x 74.70 [18:10:31]line ИТОГ: 2988.00 [18:10:31]line Тип оплаты: Талоны: Топливная Карта [18:10:31]line 02750 [18:10:31]line ______________________ [18:10:31]line (подпись) [18:10:31]written 0, free lines is 4095 [18:10:31]Write to MH i2c: 01 00 00 9F 0D AC [18:10:31]Write i2c OK [18:10:31]MH_I2C_Read... [18:10:31]Read from MH i2c: 01 [18:10:31]MH_I2C_Read... [18:10:31]Read from MH i2c: 01 07 00 [18:10:31]MH_I2C_Read... [18:10:31]Read from MH i2c: 01 07 00 9F 0D 00 00 00 00 00 0F 0E D0 [18:10:31]RasterBufferAndPrint [18:10:31]line [18:10:31]line [18:10:31]line [18:10:31]line [18:10:31]line [18:10:31]written 0, free lines is 3602 [18:10:31]MH_Cut [18:10:31]Write to MH i2c: D1 01 00 A6 0D 01 85 [18:10:31]Write i2c OK [18:10:31]MH_I2C_Read... [18:10:31]Read from MH i2c: D1 [18:10:31]MH_I2C_Read... [18:10:31]Read from MH i2c: D1 01 00 [18:10:31]MH_I2C_Read... [18:10:31]Read from MH i2c: D1 01 00 A6 0D 00 84 [18:10:31]Write to MH i2c: 01 00 00 A7 0D B4 [18:10:31]Write i2c OK [18:10:31]MH_I2C_Read... [18:10:32]*** Cut start [18:10:32]*** Purtial cut [18:10:32]*** Stage 1: CUTSNS_PIN = 1 [18:10:32]Read from MH i2c: 01 [18:10:32]MH_I2C_Read... [18:10:32]*** Stop cut motor [18:10:32]*** Cut end [18:10:32]Read from MH i2c: 01 07 00 [18:10:32]MH_I2C_Read... [18:10:32]Read from MH i2c: 01 07 00 A7 0D 00 00 00 00 00 FF 0F C9 [18:10:32]process_action print_text done [18:10:32]requested_data is exist [18:10:32]produce_requested_data [18:10:32]requested_item fm.sn is exist - process it [18:10:32]wFMCommunicate request_size=4 [18:10:32]MH_SAM_APDU [18:10:32]CAPDU: 80 11 00 00 [18:10:32]Write to MH i2c: E2 08 00 A8 0D 80 11 00 00 00 00 00 00 2F [18:10:32]Write i2c OK [18:10:32]MH_I2C_Read... [18:10:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:10:32]Read from MH i2c: E2 [18:10:32]MH_I2C_Read... [18:10:32]Read from MH i2c: E2 17 00 [18:10:32]MH_I2C_Read... [18:10:32]Read from MH i2c: E2 17 00 A8 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 85 [18:10:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [18:10:32]wFMCommunicate OK [18:10:32]requested_item fd.num is exist - process it [18:10:32]SAM_PROTO_GetFieldsCounters [18:10:32]wFMCommunicate request_size=4 [18:10:32]MH_SAM_APDU [18:10:32]CAPDU: 80 13 00 00 [18:10:32]Write to MH i2c: E2 08 00 A9 0D 80 13 00 00 00 00 00 00 32 [18:10:32]Write i2c OK [18:10:32]MH_I2C_Read... [18:10:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:10:32]Read from MH i2c: E2 [18:10:32]MH_I2C_Read... [18:10:32]Read from MH i2c: E2 62 00 [18:10:32]MH_I2C_Read... [18:10:32]Read from MH i2c: E2 62 00 A9 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 12 09 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 61 00 00 00 5E 04 04 00 61 00 00 00 57 04 04 00 62 00 00 00 19 04 04 00 00 00 00 00 90 00 FF [18:10:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 12 09 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 61 00 00 00 5E 04 04 00 61 00 00 00 57 04 04 00 62 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:10:32]wFMCommunicate OK [18:10:32]SAM_PROTO_GetFieldsCounters done [18:10:32]requested_item shift.num is exist - process it [18:10:32]requested_item shift.opened is exist - process it [18:10:32]req_shift_opened [18:10:32]FM_GetShiftState [18:10:32]SAM_PROTO_GetShiftState [18:10:32]wFMCommunicate request_size=4 [18:10:32]MH_SAM_APDU [18:10:32]CAPDU: 80 13 01 00 [18:10:32]Write to MH i2c: E2 08 00 AA 0D 80 13 01 00 00 00 00 00 34 [18:10:32]Write i2c OK [18:10:32]MH_I2C_Read... [18:10:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:10:32]Read from MH i2c: E2 [18:10:32]MH_I2C_Read... [18:10:32]Read from MH i2c: E2 0E 00 [18:10:32]MH_I2C_Read... [18:10:32]Read from MH i2c: E2 0E 00 AA 0D 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 9B [18:10:32]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [18:10:32]wFMCommunicate OK [18:10:32]SAM_PROTO_GetShiftState done [18:10:32]FM_GetShiftState done [18:10:32]req_shift_opened done [18:10:32]requested_item shift.open_date is exist - process it [18:10:32]req_shift_open_date [18:10:32]req_shift_open_date done [18:10:32]produce_requested_data done [18:10:32]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67858,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [18:10:32]process_action_free print_text [18:10:32]json_value_free [18:10:32]json_value_free done [18:10:32]process_json_proto returns [18:10:32]Send response to host [18:10:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67858,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [18:10:32]free response buf [18:10:32]execute_script done [18:10:32]execute_script returns [18:10:32]free content buf [18:10:32]Sock 7.Close socket [18:10:32]Sock 7.Thread stoped [18:10:33]OFD Sender: No OFD packet to send [18:10:38]OFD Sender: No OFD packet to send [18:10:43]OFD Sender: No OFD packet to send [18:10:48]accept exits with 9 [18:10:48]New connection [18:10:48]New thread 3067059556 created [18:10:48]Thread 3067202916 joined [18:10:48]Waiting for new connection... [18:10:48] Sock 9.Parse request [18:10:48]Sock 9.Check first char [18:10:48]Sock 9.First char is OK [18:10:48]request: POST /json_proto HTTP/1.0 [18:10:48]Method: POST [18:10:48]URL: /json_proto [18:10:48]Method is POST - this is cgi request [18:10:48]url: /json_proto [18:10:48]query_string will be loaded in cgi processing [18:10:48]execute_cgi json_proto POST (null) [18:10:48]execute_cgi path=json_proto method=POST [18:10:48]POST find Content-Length [18:10:48]Host: 172.17.41.195:8080 [18:10:48]Content-Length: 800 [18:10:48]Content-Type: application/json [18:10:48] [18:10:48]POST finish read [18:10:48]Found Content-Length = 800 [18:10:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)508120", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 18.750, "sum" : 1400.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1400.63 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:10:48]execute_script... [18:10:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)508120", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 18.750, "sum" : 1400.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1400.63 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:10:48]POST & json_proto [18:10:48]process_json_proto [18:10:48]json parsed OK: [18:10:48]protocol is kg_v1.0 [18:10:48]action value=close_receipt [18:10:48]process_action close_receipt [18:10:48]cmd_close_receipt [18:10:48]MH_GetDate [18:10:48]Write to MH i2c: F0 00 00 AB 0D A7 [18:10:48]Write i2c OK [18:10:48]MH_I2C_Read... [18:10:48]Read from MH i2c: F0 [18:10:48]MH_I2C_Read... [18:10:48]Read from MH i2c: F0 09 00 [18:10:48]MH_I2C_Read... [18:10:48]Read from MH i2c: F0 09 00 AB 0D 00 29 EF 48 66 FC 21 6F 64 66 [18:10:48]GetLastDocTimeStamp 1716055827 [18:10:48]current date 1716055849 [18:10:48]FM_GetShiftState [18:10:48]SAM_PROTO_GetShiftState [18:10:48]wFMCommunicate request_size=4 [18:10:48]MH_SAM_APDU [18:10:48]CAPDU: 80 13 01 00 [18:10:48]Write to MH i2c: E2 08 00 AC 0D 80 13 01 00 00 00 00 00 36 [18:10:48]Write i2c OK [18:10:48]MH_I2C_Read... [18:10:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:10:48]Read from MH i2c: E2 [18:10:48]MH_I2C_Read... [18:10:48]Read from MH i2c: E2 0E 00 [18:10:48]MH_I2C_Read... [18:10:48]Read from MH i2c: E2 0E 00 AC 0D 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 9D [18:10:48]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [18:10:48]wFMCommunicate OK [18:10:48]SAM_PROTO_GetShiftState done [18:10:48]FM_GetShiftState done [18:10:48]opened in 1715991483 [18:10:48]opened+sec_in_day 1716077883 [18:10:48]quantity*price = 140062 [18:10:48]sum+1 = 140064 [18:10:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1400.63 НСП 1% : 12.39 НДС 12% : 148.74 Наличными: 0.00 Безнал.: 1400.63 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 98 18.05.2024 18:10 Смена: 359 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67859 ФПД: 235557553537604 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T181049&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67859&fm=235557553537604&tin=02508201610067®Number=0000000000091845&sum=140063 [18:10:49]StoreToDocumentArchive [18:10:49]shift 359 fd 67859 [18:10:49]save to /storage/0359/doc_00067859 [18:10:49]save last doc name /storage/0359/doc_00067859 to /storage/kkm_last_doc_name [18:10:49]save OK [18:10:49]Clear old archive folders... [18:10:49]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:10:49]tlvbuf is 00A16DB0 [18:10:49]SAM_PROTO_ClearQueue [18:10:49]wFMCommunicate request_size=4 [18:10:49]MH_SAM_APDU [18:10:49]CAPDU: 80 09 00 00 [18:10:49]Write to MH i2c: E2 08 00 B9 0D 80 09 00 00 00 00 00 00 38 [18:10:49]Write i2c OK [18:10:49]MH_I2C_Read... [18:10:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:10:49]Read from MH i2c: E2 [18:10:49]MH_I2C_Read... [18:10:49]Read from MH i2c: E2 03 00 [18:10:49]MH_I2C_Read... [18:10:49]Read from MH i2c: E2 03 00 B9 0D 00 90 00 3A [18:10:49]RAPDU: 90 00 [18:10:49]wFMCommunicate OK [18:10:49]SAM_PROTO_ClearQueue done [18:10:49]KKMCreateOFDPacket [18:10:49]OFDProtocolAddRootSTLVToBuf [18:10:49]FM_MakeSignedData [18:10:49]FM_MakeSignedData [18:10:49]SAM_PROTO_SignData [18:10:49]wFMCommunicate request_size=4 [18:10:49]MH_SAM_APDU [18:10:49]CAPDU: 80 0D 01 02 [18:10:49]Write to MH i2c: E2 08 00 BA 0D 80 0D 01 02 00 00 00 00 40 [18:10:49]Write i2c OK [18:10:49]MH_I2C_Read... [18:10:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:10:49]Read from MH i2c: E2 [18:10:49]MH_I2C_Read... [18:10:49]Read from MH i2c: E2 03 00 [18:10:49]MH_I2C_Read... [18:10:49]Read from MH i2c: E2 03 00 BA 0D 00 90 00 3B [18:10:49]RAPDU: 90 00 [18:10:49]wFMCommunicate OK [18:10:49]wFMCommunicate request_size=255 [18:10:49]MH_SAM_APDU [18:10:49]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 3E 49 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 1F 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1F 23 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1A 3A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1F 23 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 29 EF 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 13 09 01 00 35 04 06 00 D6 3D 04 4D [18:10:49]Write to MH i2c: E2 02 01 BB 0D 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 3E 49 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 1F 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1F 23 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1A 3A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1F 23 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 29 EF 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 13 09 01 00 35 04 06 00 D6 3D 04 4D 00 00 80 [18:10:49]Write i2c OK [18:10:49]MH_I2C_Read... [18:10:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:10:49]Read from MH i2c: E2 [18:10:49]MH_I2C_Read... [18:10:49]Read from MH i2c: E2 03 00 [18:10:49]MH_I2C_Read... [18:10:49]Read from MH i2c: E2 03 00 BB 0D 00 90 00 3C [18:10:49]RAPDU: 90 00 [18:10:49]wFMCommunicate OK [18:10:49]wFMCommunicate request_size=7 [18:10:49]MH_SAM_APDU [18:10:49]CAPDU: 80 0D 02 02 02 82 44 [18:10:49]Write to MH i2c: E2 0A 00 BC 0D 80 0D 02 02 02 00 82 44 00 00 0D [18:10:49]Write i2c OK [18:10:49]MH_I2C_Read... [18:10:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:10:49]Read from MH i2c: E2 [18:10:49]MH_I2C_Read... [18:10:49]Read from MH i2c: E2 03 00 [18:10:49]MH_I2C_Read... [18:10:49]Read from MH i2c: E2 03 00 BC 0D 00 90 00 3D [18:10:49]RAPDU: 90 00 [18:10:49]wFMCommunicate OK [18:10:49]wFMCommunicate request_size=4 [18:10:49]MH_SAM_APDU [18:10:49]CAPDU: 80 0D 03 02 [18:10:49]Write to MH i2c: E2 08 00 BD 0D 80 0D 03 02 00 00 00 00 45 [18:10:49]Write i2c OK [18:10:49]MH_I2C_Read... [18:10:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:10:49]Read from MH i2c: E2 [18:10:49]MH_I2C_Read... [18:10:49]Read from MH i2c: E2 0B 00 [18:10:49]MH_I2C_Read... [18:10:49]Read from MH i2c: E2 0B 00 BD 0D 00 6C 08 33 75 9F EF ED AC 90 00 89 [18:10:49]RAPDU: 6C 08 33 75 9F EF ED AC 90 00 [18:10:49]wFMCommunicate OK [18:10:49]SAM_PROTO_SignData done [18:10:49]FM_MakeSignedData done [18:10:49]CreateOFDProtocolMessage [18:10:49]wFMCommunicate request_size=4 [18:10:49]MH_SAM_APDU [18:10:49]CAPDU: 80 11 00 00 [18:10:49]Write to MH i2c: E2 08 00 BE 0D 80 11 00 00 00 00 00 00 45 [18:10:49]Write i2c OK [18:10:49]MH_I2C_Read... [18:10:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:10:49]Read from MH i2c: E2 [18:10:49]MH_I2C_Read... [18:10:49]Read from MH i2c: E2 17 00 [18:10:49]MH_I2C_Read... [18:10:49]Read from MH i2c: E2 17 00 BE 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 9B [18:10:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [18:10:49]wFMCommunicate OK [18:10:49]CreateOFDProtocolMessage done [18:10:49]OFDSenderStorePacket 67859 [18:10:49]StoreOFDPacket docnum=67859 [18:10:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 51 DD 04 01 07 8C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 3E 49 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 1F 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1F 23 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1A 3A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1F 23 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 29 EF 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 13 09 01 00 35 04 06 00 D6 3D 04 4D 82 44 6C 08 33 75 9F EF ED AC [18:10:49]CheckFolder [18:10:49]dirname=/storage/ofd_packets [18:10:49]CheckFolder done [18:10:49]ProducePacketName [18:10:49]name=ofd_packets/00067859 [18:10:49]NVStorageSaveData ofd_packets/00067859 [18:10:49]File name is /storage/ofd_packets/00067859 [18:10:49]Write 298 bytes [18:10:49]NVStorageSaveData done [18:10:49]OFDSenderStorePacket done [18:10:49]KKMCreateOFDPacket done [18:10:49]NVStorageSaveData kkm_last_timestamp [18:10:49]File name is /storage/kkm_last_timestamp [18:10:49]Write 4 bytes [18:10:49]NVStorageSaveData done [18:10:49]ExternCall_PrintAddStr [18:10:49]wPrintStart [18:10:49]Write to MH i2c: 01 00 00 BF 0D CC [18:10:49]Write i2c OK [18:10:49]MH_I2C_Read... [18:10:49]Read from MH i2c: 01 [18:10:49]MH_I2C_Read... [18:10:49]Read from MH i2c: 01 07 00 [18:10:49]MH_I2C_Read... [18:10:49]Read from MH i2c: 01 07 00 BF 0D 00 00 00 00 00 FF 0F E1 [18:10:49]RasterBufferAndPrint [18:10:49]line Счет N : (1)508120 [18:10:49]line ИНН: 02508201610067 [18:10:49]line Контрольно-Кассовый Чек [18:10:49]line ПРОДАЖА [18:10:49]line ТРК (МРК, ГНК) : 31 [18:10:49]line Товар: 2710194210 [18:10:49]line ДТ-К-5 [18:10:49]line 18.750 * 74.70 [18:10:49]line = 1400.63 [18:10:49]line НДС 12% НСП 1% [18:10:49]line > о реализуемом товаре [18:10:49]line ИТОГО: 1400.63 [18:10:49]line НСП 1% : 12.39 [18:10:49]line НДС 12% : 148.74 [18:10:49]line Наличными: 0.00 [18:10:49]line Безнал.: 1400.63 [18:10:49]line Место: АЗС № 91 "Партнер Нефть" [18:10:49]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [18:10:49]line СНО: Общий режим [18:10:49]line Чек 98 18.05.2024 18:10 [18:10:49]line Смена: 359 ФФД: 1.0 [18:10:49]line ЗНМ: 0300000119 [18:10:49]line РНМ: 0000000000091845 [18:10:49]line Версия ККМ: 001 [18:10:49]line Платежная система: O! деньги [18:10:49]line ФМ: 0000000000871829 [18:10:49]line ФД: 67859 [18:10:49]line ФПД: 235557553537604 [18:10:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T181049&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67859&fm=235557553537604&tin=02508201610067®Number=0000000000091845&sum=140063 [18:10:50]OFD Sender: Processing packet 67859 [packets to send 35, broken 34] [18:10:50]ProducePacketName [18:10:50]name=ofd_packets/00067859 [18:10:50]OFD Sender: To server: pG, [18:10:50]CommunicateWithHost lk.salyk.kg:30040 [18:10:50]ConnectInit lk.salyk.kg [18:10:50]written 0, free lines is 4095 [18:10:50]Connected sock=7 [18:10:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 51 DD 04 01 07 8C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 3E 49 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 1F 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1F 23 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1A 3A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1F 23 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 29 EF 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 13 09 01 00 35 04 06 00 D6 3D 04 4D 82 44 6C 08 33 75 9F EF ED AC [18:10:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 ED 64 47 00 E2 C5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 13 09 01 00 F4 03 04 00 FE 96 48 66 B6 04 01 00 00 C6 F3 99 C8 2C 16 9F 67 [18:10:50]CommunicateWithHost err = 0 [18:10:50]CheckOFDResponse [18:10:50]1017 (14) - 77093643461234 [18:10:50]1041 (16) - 0000000000871829 [18:10:50]1040 (4) - 67859 [18:10:50]1012 (4) - 18.05.2024 11:54 [18:10:50]1206 (1) - 0 [18:10:50]OFD Sender: Remove packet 67859 [18:10:50]ProducePacketName [18:10:50]name=ofd_packets/00067859 [18:10:50]NVStorageDeleteData [18:10:50]Write to MH i2c: 01 00 00 E8 0D F5 [18:10:50]Write i2c OK [18:10:50]MH_I2C_Read... [18:10:50]Read from MH i2c: 01 [18:10:50]MH_I2C_Read... [18:10:50]Read from MH i2c: 01 07 00 [18:10:50]MH_I2C_Read... [18:10:50]Read from MH i2c: 01 07 00 E8 0D 00 00 00 00 00 D6 0C DE [18:10:50]RasterBufferAndPrint [18:10:50]line [18:10:50]line [18:10:50]line [18:10:50]line [18:10:50]line [18:10:50]written 0, free lines is 3293 [18:10:50]MH_Cut [18:10:50]Write to MH i2c: D1 01 00 EF 0D 01 CE [18:10:50]Write i2c OK [18:10:50]MH_I2C_Read... [18:10:50]Read from MH i2c: D1 [18:10:50]MH_I2C_Read... [18:10:50]Read from MH i2c: D1 01 00 [18:10:50]MH_I2C_Read... [18:10:50]Read from MH i2c: D1 01 00 EF 0D 00 CD [18:10:50]Write to MH i2c: 01 00 00 F0 0D FD [18:10:50]Write i2c OK [18:10:50]MH_I2C_Read... [18:10:50]OFD Sender: No OFD packet to send [18:10:51]*** Cut start [18:10:51]*** Purtial cut [18:10:51]*** Stage 1: CUTSNS_PIN = 1 [18:10:51]Read from MH i2c: 01 [18:10:51]MH_I2C_Read... [18:10:51]*** Stop cut motor [18:10:51]*** Cut end [18:10:51]Read from MH i2c: 01 07 00 [18:10:51]MH_I2C_Read... [18:10:51]Read from MH i2c: 01 07 00 F0 0D 00 00 00 00 00 FF 0F 12 [18:10:51]process_action close_receipt done [18:10:51]requested_data is exist [18:10:51]produce_requested_data [18:10:51]requested_item fm.sn is exist - process it [18:10:51]wFMCommunicate request_size=4 [18:10:51]MH_SAM_APDU [18:10:51]CAPDU: 80 11 00 00 [18:10:51]Write to MH i2c: E2 08 00 F1 0D 80 11 00 00 00 00 00 00 78 [18:10:51]Write i2c OK [18:10:51]MH_I2C_Read... [18:10:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:10:51]Read from MH i2c: E2 [18:10:51]MH_I2C_Read... [18:10:51]Read from MH i2c: E2 17 00 [18:10:51]MH_I2C_Read... [18:10:51]Read from MH i2c: E2 17 00 F1 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 CE [18:10:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [18:10:51]wFMCommunicate OK [18:10:51]requested_item fd.num is exist - process it [18:10:51]SAM_PROTO_GetFieldsCounters [18:10:51]wFMCommunicate request_size=4 [18:10:51]MH_SAM_APDU [18:10:51]CAPDU: 80 13 00 00 [18:10:51]Write to MH i2c: E2 08 00 F2 0D 80 13 00 00 00 00 00 00 7B [18:10:51]Write i2c OK [18:10:51]MH_I2C_Read... [18:10:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:10:51]Read from MH i2c: E2 [18:10:51]MH_I2C_Read... [18:10:51]Read from MH i2c: E2 62 00 [18:10:51]MH_I2C_Read... [18:10:51]Read from MH i2c: E2 62 00 F2 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 13 09 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 62 00 00 00 5E 04 04 00 62 00 00 00 57 04 04 00 63 00 00 00 19 04 04 00 00 00 00 00 90 00 4C [18:10:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 13 09 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 62 00 00 00 5E 04 04 00 62 00 00 00 57 04 04 00 63 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:10:51]wFMCommunicate OK [18:10:51]SAM_PROTO_GetFieldsCounters done [18:10:51]requested_item shift.num is exist - process it [18:10:51]requested_item shift.opened is exist - process it [18:10:51]req_shift_opened [18:10:51]FM_GetShiftState [18:10:51]SAM_PROTO_GetShiftState [18:10:51]wFMCommunicate request_size=4 [18:10:51]MH_SAM_APDU [18:10:51]CAPDU: 80 13 01 00 [18:10:51]Write to MH i2c: E2 08 00 F3 0D 80 13 01 00 00 00 00 00 7D [18:10:51]Write i2c OK [18:10:51]MH_I2C_Read... [18:10:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:10:51]Read from MH i2c: E2 [18:10:51]MH_I2C_Read... [18:10:51]Read from MH i2c: E2 0E 00 [18:10:51]MH_I2C_Read... [18:10:51]Read from MH i2c: E2 0E 00 F3 0D 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 E4 [18:10:51]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [18:10:51]wFMCommunicate OK [18:10:51]SAM_PROTO_GetShiftState done [18:10:51]FM_GetShiftState done [18:10:51]req_shift_opened done [18:10:51]requested_item shift.open_date is exist - process it [18:10:51]req_shift_open_date [18:10:51]req_shift_open_date done [18:10:51]produce_requested_data done [18:10:51]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67859,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [18:10:51]process_action_free close_receipt [18:10:51]json_value_free [18:10:51]json_value_free done [18:10:51]process_json_proto returns [18:10:51]Send response to host [18:10:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67859,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [18:10:51]free response buf [18:10:51]execute_script done [18:10:51]execute_script returns [18:10:51]free content buf [18:10:51]Sock 9.Close socket [18:10:51]Sock 9.Thread stoped [18:10:55]OFD Sender: No OFD packet to send [18:11:00]OFD Sender: No OFD packet to send [18:11:05]OFD Sender: No OFD packet to send [18:11:10]OFD Sender: No OFD packet to send [18:11:15]OFD Sender: No OFD packet to send [18:11:20]OFD Sender: No OFD packet to send [18:11:25]OFD Sender: No OFD packet to send [18:11:30]OFD Sender: No OFD packet to send [18:11:35]OFD Sender: No OFD packet to send [18:11:40]OFD Sender: No OFD packet to send [18:11:46]OFD Sender: No OFD packet to send [18:11:51]OFD Sender: No OFD packet to send [18:11:56]OFD Sender: No OFD packet to send [18:12:01]OFD Sender: No OFD packet to send [18:12:06]OFD Sender: No OFD packet to send [18:12:11]OFD Sender: No OFD packet to send [18:12:16]OFD Sender: No OFD packet to send [18:12:21]OFD Sender: No OFD packet to send [18:12:26]OFD Sender: No OFD packet to send [18:12:31]OFD Sender: No OFD packet to send [18:12:33]accept exits with 10 [18:12:33]New connection [18:12:33]New thread 3067202916 created [18:12:33]Thread 3067059556 joined [18:12:33]Waiting for new connection... [18:12:33] Sock 10.Parse request [18:12:33]Sock 10.Check first char [18:12:33]Sock 10.First char is OK [18:12:33]request: POST /json_proto HTTP/1.0 [18:12:33]Method: POST [18:12:33]URL: /json_proto [18:12:33]Method is POST - this is cgi request [18:12:33]url: /json_proto [18:12:33]query_string will be loaded in cgi processing [18:12:33]execute_cgi json_proto POST (null) [18:12:33]execute_cgi path=json_proto method=POST [18:12:33]POST find Content-Length [18:12:33]Host: 172.17.41.195:8080 [18:12:33]Content-Length: 800 [18:12:33]Content-Type: application/json [18:12:33] [18:12:33]POST finish read [18:12:33]Found Content-Length = 800 [18:12:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)508122", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 30.000, "sum" : 2241.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2241.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:12:33]execute_script... [18:12:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)508122", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 30.000, "sum" : 2241.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2241.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:12:33]POST & json_proto [18:12:33]process_json_proto [18:12:33]json parsed OK: [18:12:33]protocol is kg_v1.0 [18:12:33]action value=close_receipt [18:12:33]process_action close_receipt [18:12:33]cmd_close_receipt [18:12:33]MH_GetDate [18:12:33]Write to MH i2c: F0 00 00 F4 0D F0 [18:12:33]Write i2c OK [18:12:33]MH_I2C_Read... [18:12:33]Read from MH i2c: F0 [18:12:33]MH_I2C_Read... [18:12:33]Read from MH i2c: F0 09 00 [18:12:33]MH_I2C_Read... [18:12:33]Read from MH i2c: F0 09 00 F4 0D 00 93 EF 48 66 FC 21 6F 64 19 [18:12:33]GetLastDocTimeStamp 1716055849 [18:12:33]current date 1716055955 [18:12:33]FM_GetShiftState [18:12:33]SAM_PROTO_GetShiftState [18:12:33]wFMCommunicate request_size=4 [18:12:33]MH_SAM_APDU [18:12:33]CAPDU: 80 13 01 00 [18:12:33]Write to MH i2c: E2 08 00 F5 0D 80 13 01 00 00 00 00 00 7F [18:12:33]Write i2c OK [18:12:33]MH_I2C_Read... [18:12:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:12:33]Read from MH i2c: E2 [18:12:33]MH_I2C_Read... [18:12:33]Read from MH i2c: E2 0E 00 [18:12:33]MH_I2C_Read... [18:12:33]Read from MH i2c: E2 0E 00 F5 0D 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 E6 [18:12:33]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [18:12:33]wFMCommunicate OK [18:12:33]SAM_PROTO_GetShiftState done [18:12:33]FM_GetShiftState done [18:12:33]opened in 1715991483 [18:12:33]opened+sec_in_day 1716077883 [18:12:33]quantity*price = 224100 [18:12:33]sum+1 = 224101 [18:12:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2241.00 НСП 1% : 19.83 НДС 12% : 237.98 Наличными: 0.00 Безнал.: 2241.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 99 18.05.2024 18:12 Смена: 359 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67860 ФПД: 163755423734082 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T181235&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67860&fm=163755423734082&tin=02508201610067®Number=0000000000091845&sum=224100 [18:12:34]StoreToDocumentArchive [18:12:34]shift 359 fd 67860 [18:12:34]save to /storage/0359/doc_00067860 [18:12:34]save last doc name /storage/0359/doc_00067860 to /storage/kkm_last_doc_name [18:12:34]save OK [18:12:34]Clear old archive folders... [18:12:34]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:12:34]tlvbuf is 009D51A0 [18:12:34]SAM_PROTO_ClearQueue [18:12:34]wFMCommunicate request_size=4 [18:12:34]MH_SAM_APDU [18:12:34]CAPDU: 80 09 00 00 [18:12:34]Write to MH i2c: E2 08 00 02 0E 80 09 00 00 00 00 00 00 82 [18:12:34]Write i2c OK [18:12:34]MH_I2C_Read... [18:12:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:12:34]Read from MH i2c: E2 [18:12:34]MH_I2C_Read... [18:12:34]Read from MH i2c: E2 03 00 [18:12:34]MH_I2C_Read... [18:12:34]Read from MH i2c: E2 03 00 02 0E 00 90 00 84 [18:12:34]RAPDU: 90 00 [18:12:34]wFMCommunicate OK [18:12:34]SAM_PROTO_ClearQueue done [18:12:34]KKMCreateOFDPacket [18:12:34]OFDProtocolAddRootSTLVToBuf [18:12:34]FM_MakeSignedData [18:12:34]FM_MakeSignedData [18:12:34]SAM_PROTO_SignData [18:12:34]wFMCommunicate request_size=4 [18:12:34]MH_SAM_APDU [18:12:34]CAPDU: 80 0D 01 02 [18:12:34]Write to MH i2c: E2 08 00 03 0E 80 0D 01 02 00 00 00 00 8A [18:12:34]Write i2c OK [18:12:34]MH_I2C_Read... [18:12:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:12:35]Read from MH i2c: E2 [18:12:35]MH_I2C_Read... [18:12:35]Read from MH i2c: E2 03 00 [18:12:35]MH_I2C_Read... [18:12:35]Read from MH i2c: E2 03 00 03 0E 00 90 00 85 [18:12:35]RAPDU: 90 00 [18:12:35]wFMCommunicate OK [18:12:35]wFMCommunicate request_size=255 [18:12:35]MH_SAM_APDU [18:12:35]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 64 6B 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 6B 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BF 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F6 5C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 64 6B 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 93 EF 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 14 09 01 00 35 04 06 00 94 EF 47 DC [18:12:35]Write to MH i2c: E2 02 01 04 0E 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 64 6B 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 6B 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BF 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F6 5C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 64 6B 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 93 EF 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 14 09 01 00 35 04 06 00 94 EF 47 DC 00 00 29 [18:12:35]Write i2c OK [18:12:35]MH_I2C_Read... [18:12:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:12:35]Read from MH i2c: E2 [18:12:35]MH_I2C_Read... [18:12:35]Read from MH i2c: E2 03 00 [18:12:35]MH_I2C_Read... [18:12:35]Read from MH i2c: E2 03 00 04 0E 00 90 00 86 [18:12:35]RAPDU: 90 00 [18:12:35]wFMCommunicate OK [18:12:35]wFMCommunicate request_size=7 [18:12:35]MH_SAM_APDU [18:12:35]CAPDU: 80 0D 02 02 02 99 42 [18:12:35]Write to MH i2c: E2 0A 00 05 0E 80 0D 02 02 02 00 99 42 00 00 6C [18:12:35]Write i2c OK [18:12:35]MH_I2C_Read... [18:12:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:12:35]Read from MH i2c: E2 [18:12:35]MH_I2C_Read... [18:12:35]Read from MH i2c: E2 03 00 [18:12:35]MH_I2C_Read... [18:12:35]Read from MH i2c: E2 03 00 05 0E 00 90 00 87 [18:12:35]RAPDU: 90 00 [18:12:35]wFMCommunicate OK [18:12:35]wFMCommunicate request_size=4 [18:12:35]MH_SAM_APDU [18:12:35]CAPDU: 80 0D 03 02 [18:12:35]Write to MH i2c: E2 08 00 06 0E 80 0D 03 02 00 00 00 00 8F [18:12:35]Write i2c OK [18:12:35]MH_I2C_Read... [18:12:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:12:35]Read from MH i2c: E2 [18:12:35]MH_I2C_Read... [18:12:35]Read from MH i2c: E2 0B 00 [18:12:35]MH_I2C_Read... [18:12:35]Read from MH i2c: E2 0B 00 06 0E 00 1E 0A E8 E5 51 AB 90 2D 90 00 3E [18:12:35]RAPDU: 1E 0A E8 E5 51 AB 90 2D 90 00 [18:12:35]wFMCommunicate OK [18:12:35]SAM_PROTO_SignData done [18:12:35]FM_MakeSignedData done [18:12:35]CreateOFDProtocolMessage [18:12:35]wFMCommunicate request_size=4 [18:12:35]MH_SAM_APDU [18:12:35]CAPDU: 80 11 00 00 [18:12:35]Write to MH i2c: E2 08 00 07 0E 80 11 00 00 00 00 00 00 8F [18:12:35]Write i2c OK [18:12:35]MH_I2C_Read... [18:12:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:12:35]Read from MH i2c: E2 [18:12:35]MH_I2C_Read... [18:12:35]Read from MH i2c: E2 17 00 [18:12:35]MH_I2C_Read... [18:12:35]Read from MH i2c: E2 17 00 07 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 E5 [18:12:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [18:12:35]wFMCommunicate OK [18:12:35]CreateOFDProtocolMessage done [18:12:35]OFDSenderStorePacket 67860 [18:12:35]StoreOFDPacket docnum=67860 [18:12:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 78 61 04 01 46 B4 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 64 6B 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 6B 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BF 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F6 5C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 64 6B 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 93 EF 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 14 09 01 00 35 04 06 00 94 EF 47 DC 99 42 1E 0A E8 E5 51 AB 90 2D [18:12:35]CheckFolder [18:12:35]dirname=/storage/ofd_packets [18:12:35]CheckFolder done [18:12:35]ProducePacketName [18:12:35]name=ofd_packets/00067860 [18:12:35]NVStorageSaveData ofd_packets/00067860 [18:12:35]File name is /storage/ofd_packets/00067860 [18:12:35]Write 298 bytes [18:12:35]NVStorageSaveData done [18:12:35]OFDSenderStorePacket done [18:12:35]KKMCreateOFDPacket done [18:12:35]NVStorageSaveData kkm_last_timestamp [18:12:35]File name is /storage/kkm_last_timestamp [18:12:35]Write 4 bytes [18:12:35]NVStorageSaveData done [18:12:35]ExternCall_PrintAddStr [18:12:35]wPrintStart [18:12:35]Write to MH i2c: 01 00 00 08 0E 16 [18:12:35]Write i2c OK [18:12:35]MH_I2C_Read... [18:12:35]Read from MH i2c: 01 [18:12:35]MH_I2C_Read... [18:12:35]Read from MH i2c: 01 07 00 [18:12:35]MH_I2C_Read... [18:12:35]Read from MH i2c: 01 07 00 08 0E 00 00 00 00 00 FF 0F 2B [18:12:35]RasterBufferAndPrint [18:12:35]line Счет N : (1)508122 [18:12:35]line ИНН: 02508201610067 [18:12:35]line Контрольно-Кассовый Чек [18:12:35]line ПРОДАЖА [18:12:35]line ТРК (МРК, ГНК) : 11 [18:12:35]line Товар: 2710194210 [18:12:35]line ДТ-К-5 [18:12:35]line 30.000 * 74.70 [18:12:35]line = 2241.00 [18:12:35]line НДС 12% НСП 1% [18:12:35]line > о реализуемом товаре [18:12:35]line ИТОГО: 2241.00 [18:12:35]line НСП 1% : 19.83 [18:12:35]line НДС 12% : 237.98 [18:12:35]line Наличными: 0.00 [18:12:35]line Безнал.: 2241.00 [18:12:35]line Место: АЗС № 91 "Партнер Нефть" [18:12:35]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [18:12:35]line СНО: Общий режим [18:12:35]line Чек 99 18.05.2024 18:12 [18:12:35]line Смена: 359 ФФД: 1.0 [18:12:35]line ЗНМ: 0300000119 [18:12:35]line РНМ: 0000000000091845 [18:12:35]line Версия ККМ: 001 [18:12:35]line Платежная система: O! деньги [18:12:35]line ФМ: 0000000000871829 [18:12:35]line ФД: 67860 [18:12:35]line ФПД: 163755423734082 [18:12:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T181235&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67860&fm=163755423734082&tin=02508201610067®Number=0000000000091845&sum=224100 [18:12:35]OFD Sender: Processing packet 67860 [packets to send 35, broken 34] [18:12:35]ProducePacketName [18:12:35]name=ofd_packets/00067860 [18:12:35]OFD Sender: To server: pG, [18:12:35]CommunicateWithHost lk.salyk.kg:30040 [18:12:35]ConnectInit lk.salyk.kg [18:12:35]written 0, free lines is 4095 [18:12:35]Connected sock=7 [18:12:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 78 61 04 01 46 B4 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 64 6B 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 6B 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BF 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F6 5C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 64 6B 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 93 EF 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 14 09 01 00 35 04 06 00 94 EF 47 DC 99 42 1E 0A E8 E5 51 AB 90 2D [18:12:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 73 00 47 00 FD F7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 14 09 01 00 F4 03 04 00 68 97 48 66 B6 04 01 00 00 95 B2 15 6A 46 DD B1 B7 [18:12:36]CommunicateWithHost err = 0 [18:12:36]CheckOFDResponse [18:12:36]1017 (14) - 77093643461234 [18:12:36]1041 (16) - 0000000000871829 [18:12:36]1040 (4) - 67860 [18:12:36]1012 (4) - 18.05.2024 11:56 [18:12:36]1206 (1) - 0 [18:12:36]OFD Sender: Remove packet 67860 [18:12:36]ProducePacketName [18:12:36]name=ofd_packets/00067860 [18:12:36]NVStorageDeleteData [18:12:36]Write to MH i2c: 01 00 00 31 0E 3F [18:12:36]Write i2c OK [18:12:36]MH_I2C_Read... [18:12:36]Read from MH i2c: 01 [18:12:36]MH_I2C_Read... [18:12:36]Read from MH i2c: 01 07 00 [18:12:36]MH_I2C_Read... [18:12:36]Read from MH i2c: 01 07 00 31 0E 00 00 00 00 00 D4 0C 26 [18:12:36]RasterBufferAndPrint [18:12:36]line [18:12:36]line [18:12:36]line [18:12:36]line [18:12:36]line [18:12:36]written 0, free lines is 3289 [18:12:36]MH_Cut [18:12:36]Write to MH i2c: D1 01 00 38 0E 01 18 [18:12:36]Write i2c OK [18:12:36]MH_I2C_Read... [18:12:36]Read from MH i2c: D1 [18:12:36]MH_I2C_Read... [18:12:36]Read from MH i2c: D1 01 00 [18:12:36]MH_I2C_Read... [18:12:36]Read from MH i2c: D1 01 00 38 0E 00 17 [18:12:36]Write to MH i2c: 01 00 00 39 0E 47 [18:12:36]Write i2c OK [18:12:36]MH_I2C_Read... [18:12:36]OFD Sender: No OFD packet to send [18:12:37]*** Cut start [18:12:37]*** Purtial cut [18:12:37]*** Stage 1: CUTSNS_PIN = 1 [18:12:37]Read from MH i2c: 01 [18:12:37]MH_I2C_Read... [18:12:37]*** Stop cut motor [18:12:37]*** Cut end [18:12:37]Read from MH i2c: 01 07 00 [18:12:37]MH_I2C_Read... [18:12:37]Read from MH i2c: 01 07 00 39 0E 00 00 00 00 00 FF 0F 5C [18:12:37]process_action close_receipt done [18:12:37]requested_data is exist [18:12:37]produce_requested_data [18:12:37]requested_item fm.sn is exist - process it [18:12:37]wFMCommunicate request_size=4 [18:12:37]MH_SAM_APDU [18:12:37]CAPDU: 80 11 00 00 [18:12:37]Write to MH i2c: E2 08 00 3A 0E 80 11 00 00 00 00 00 00 C2 [18:12:37]Write i2c OK [18:12:37]MH_I2C_Read... [18:12:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:12:37]Read from MH i2c: E2 [18:12:37]MH_I2C_Read... [18:12:37]Read from MH i2c: E2 17 00 [18:12:37]MH_I2C_Read... [18:12:37]Read from MH i2c: E2 17 00 3A 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 18 [18:12:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [18:12:37]wFMCommunicate OK [18:12:37]requested_item fd.num is exist - process it [18:12:37]SAM_PROTO_GetFieldsCounters [18:12:37]wFMCommunicate request_size=4 [18:12:37]MH_SAM_APDU [18:12:37]CAPDU: 80 13 00 00 [18:12:37]Write to MH i2c: E2 08 00 3B 0E 80 13 00 00 00 00 00 00 C5 [18:12:37]Write i2c OK [18:12:37]MH_I2C_Read... [18:12:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:12:37]Read from MH i2c: E2 [18:12:37]MH_I2C_Read... [18:12:37]Read from MH i2c: E2 62 00 [18:12:37]MH_I2C_Read... [18:12:37]Read from MH i2c: E2 62 00 3B 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 14 09 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 63 00 00 00 5E 04 04 00 63 00 00 00 57 04 04 00 64 00 00 00 19 04 04 00 00 00 00 00 90 00 9A [18:12:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 14 09 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 63 00 00 00 5E 04 04 00 63 00 00 00 57 04 04 00 64 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:12:37]wFMCommunicate OK [18:12:37]SAM_PROTO_GetFieldsCounters done [18:12:37]requested_item shift.num is exist - process it [18:12:37]requested_item shift.opened is exist - process it [18:12:37]req_shift_opened [18:12:37]FM_GetShiftState [18:12:37]SAM_PROTO_GetShiftState [18:12:37]wFMCommunicate request_size=4 [18:12:37]MH_SAM_APDU [18:12:37]CAPDU: 80 13 01 00 [18:12:37]Write to MH i2c: E2 08 00 3C 0E 80 13 01 00 00 00 00 00 C7 [18:12:37]Write i2c OK [18:12:37]MH_I2C_Read... [18:12:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:12:37]Read from MH i2c: E2 [18:12:37]MH_I2C_Read... [18:12:37]Read from MH i2c: E2 0E 00 [18:12:37]MH_I2C_Read... [18:12:37]Read from MH i2c: E2 0E 00 3C 0E 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 2E [18:12:37]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [18:12:37]wFMCommunicate OK [18:12:37]SAM_PROTO_GetShiftState done [18:12:37]FM_GetShiftState done [18:12:37]req_shift_opened done [18:12:37]requested_item shift.open_date is exist - process it [18:12:37]req_shift_open_date [18:12:37]req_shift_open_date done [18:12:37]produce_requested_data done [18:12:37]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67860,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [18:12:37]process_action_free close_receipt [18:12:37]json_value_free [18:12:37]json_value_free done [18:12:37]process_json_proto returns [18:12:37]Send response to host [18:12:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67860,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [18:12:37]free response buf [18:12:37]execute_script done [18:12:37]execute_script returns [18:12:37]free content buf [18:12:37]Sock 10.Close socket [18:12:37]Sock 10.Thread stoped [18:12:37]accept exits with 9 [18:12:37]New connection [18:12:37]New thread 3067059556 created [18:12:37]Thread 3067202916 joined [18:12:37]Waiting for new connection... [18:12:37] Sock 9.Parse request [18:12:37]Sock 9.Check first char [18:12:37]Sock 9.First char is OK [18:12:37]request: POST /json_proto HTTP/1.0 [18:12:37]Method: POST [18:12:37]URL: /json_proto [18:12:37]Method is POST - this is cgi request [18:12:37]url: /json_proto [18:12:37]query_string will be loaded in cgi processing [18:12:37]execute_cgi json_proto POST (null) [18:12:37]execute_cgi path=json_proto method=POST [18:12:37]POST find Content-Length [18:12:37]Host: 172.17.41.195:8080 [18:12:37]Content-Length: 803 [18:12:37]Content-Type: application/json [18:12:37] [18:12:37]POST finish read [18:12:37]Found Content-Length = 803 [18:12:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)508123", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.80, "quantity" : 14.980, "sum" : 1000.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.66 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:12:37]execute_script... [18:12:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)508123", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.80, "quantity" : 14.980, "sum" : 1000.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.66 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:12:37]POST & json_proto [18:12:37]process_json_proto [18:12:37]json parsed OK: [18:12:37]protocol is kg_v1.0 [18:12:37]action value=close_receipt [18:12:37]process_action close_receipt [18:12:37]cmd_close_receipt [18:12:37]MH_GetDate [18:12:37]Write to MH i2c: F0 00 00 3D 0E 3A [18:12:37]Write i2c OK [18:12:37]MH_I2C_Read... [18:12:37]Read from MH i2c: F0 [18:12:37]MH_I2C_Read... [18:12:37]Read from MH i2c: F0 09 00 [18:12:37]MH_I2C_Read... [18:12:37]Read from MH i2c: F0 09 00 3D 0E 00 97 EF 48 66 FC 21 6F 64 67 [18:12:37]GetLastDocTimeStamp 1716055955 [18:12:37]current date 1716055959 [18:12:37]FM_GetShiftState [18:12:37]SAM_PROTO_GetShiftState [18:12:37]wFMCommunicate request_size=4 [18:12:37]MH_SAM_APDU [18:12:37]CAPDU: 80 13 01 00 [18:12:37]Write to MH i2c: E2 08 00 3E 0E 80 13 01 00 00 00 00 00 C9 [18:12:37]Write i2c OK [18:12:37]MH_I2C_Read... [18:12:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:12:38]Read from MH i2c: E2 [18:12:38]MH_I2C_Read... [18:12:38]Read from MH i2c: E2 0E 00 [18:12:38]MH_I2C_Read... [18:12:38]Read from MH i2c: E2 0E 00 3E 0E 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 30 [18:12:38]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [18:12:38]wFMCommunicate OK [18:12:38]SAM_PROTO_GetShiftState done [18:12:38]FM_GetShiftState done [18:12:38]opened in 1715991483 [18:12:38]opened+sec_in_day 1716077883 [18:12:38]quantity*price = 100066 [18:12:38]sum+1 = 100067 [18:12:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.66 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 0.00 Безнал.: 1000.66 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 100 18.05.2024 18:12 Смена: 359 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67861 ФПД: 177847426068058 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T181239&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67861&fm=177847426068058&tin=02508201610067®Number=0000000000091845&sum=100066 [18:12:39]StoreToDocumentArchive [18:12:39]shift 359 fd 67861 [18:12:39]save to /storage/0359/doc_00067861 [18:12:39]save last doc name /storage/0359/doc_00067861 to /storage/kkm_last_doc_name [18:12:39]save OK [18:12:39]Clear old archive folders... [18:12:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:12:39]tlvbuf is 00A06930 [18:12:39]SAM_PROTO_ClearQueue [18:12:39]wFMCommunicate request_size=4 [18:12:39]MH_SAM_APDU [18:12:39]CAPDU: 80 09 00 00 [18:12:39]Write to MH i2c: E2 08 00 4B 0E 80 09 00 00 00 00 00 00 CB [18:12:39]Write i2c OK [18:12:39]MH_I2C_Read... [18:12:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:12:39]Read from MH i2c: E2 [18:12:39]MH_I2C_Read... [18:12:39]Read from MH i2c: E2 03 00 [18:12:39]MH_I2C_Read... [18:12:39]Read from MH i2c: E2 03 00 4B 0E 00 90 00 CD [18:12:39]RAPDU: 90 00 [18:12:39]wFMCommunicate OK [18:12:39]SAM_PROTO_ClearQueue done [18:12:39]KKMCreateOFDPacket [18:12:39]OFDProtocolAddRootSTLVToBuf [18:12:39]FM_MakeSignedData [18:12:39]FM_MakeSignedData [18:12:39]SAM_PROTO_SignData [18:12:39]wFMCommunicate request_size=4 [18:12:39]MH_SAM_APDU [18:12:39]CAPDU: 80 0D 01 02 [18:12:39]Write to MH i2c: E2 08 00 4C 0E 80 0D 01 02 00 00 00 00 D3 [18:12:39]Write i2c OK [18:12:39]MH_I2C_Read... [18:12:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:12:39]Read from MH i2c: E2 [18:12:39]MH_I2C_Read... [18:12:39]Read from MH i2c: E2 03 00 [18:12:39]MH_I2C_Read... [18:12:39]Read from MH i2c: E2 03 00 4C 0E 00 90 00 CE [18:12:39]RAPDU: 90 00 [18:12:39]wFMCommunicate OK [18:12:39]wFMCommunicate request_size=255 [18:12:39]MH_SAM_APDU [18:12:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 84 3A 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E2 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E2 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 97 EF 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 15 09 01 00 35 04 06 00 A1 [18:12:39]Write to MH i2c: E2 02 01 4D 0E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 84 3A 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E2 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E2 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 97 EF 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 15 09 01 00 35 04 06 00 A1 00 00 F0 [18:12:39]Write i2c OK [18:12:39]MH_I2C_Read... [18:12:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:12:39]Read from MH i2c: E2 [18:12:39]MH_I2C_Read... [18:12:39]Read from MH i2c: E2 03 00 [18:12:39]MH_I2C_Read... [18:12:39]Read from MH i2c: E2 03 00 4D 0E 00 90 00 CF [18:12:39]RAPDU: 90 00 [18:12:39]wFMCommunicate OK [18:12:39]wFMCommunicate request_size=10 [18:12:39]MH_SAM_APDU [18:12:39]CAPDU: 80 0D 02 02 05 C0 54 A7 AE 5A [18:12:39]Write to MH i2c: E2 0D 00 4E 0E 80 0D 02 02 05 00 C0 54 A7 AE 5A 00 00 A3 [18:12:39]Write i2c OK [18:12:39]MH_I2C_Read... [18:12:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:12:39]Read from MH i2c: E2 [18:12:39]MH_I2C_Read... [18:12:39]Read from MH i2c: E2 03 00 [18:12:39]MH_I2C_Read... [18:12:39]Read from MH i2c: E2 03 00 4E 0E 00 90 00 D0 [18:12:39]RAPDU: 90 00 [18:12:39]wFMCommunicate OK [18:12:39]wFMCommunicate request_size=4 [18:12:39]MH_SAM_APDU [18:12:39]CAPDU: 80 0D 03 02 [18:12:39]Write to MH i2c: E2 08 00 4F 0E 80 0D 03 02 00 00 00 00 D8 [18:12:39]Write i2c OK [18:12:39]MH_I2C_Read... [18:12:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:12:39]Read from MH i2c: E2 [18:12:39]MH_I2C_Read... [18:12:39]Read from MH i2c: E2 0B 00 [18:12:39]MH_I2C_Read... [18:12:39]Read from MH i2c: E2 0B 00 4F 0E 00 E8 06 85 24 5E 0A D6 72 90 00 20 [18:12:39]RAPDU: E8 06 85 24 5E 0A D6 72 90 00 [18:12:39]wFMCommunicate OK [18:12:39]SAM_PROTO_SignData done [18:12:39]FM_MakeSignedData done [18:12:39]CreateOFDProtocolMessage [18:12:39]wFMCommunicate request_size=4 [18:12:39]MH_SAM_APDU [18:12:39]CAPDU: 80 11 00 00 [18:12:39]Write to MH i2c: E2 08 00 50 0E 80 11 00 00 00 00 00 00 D8 [18:12:39]Write i2c OK [18:12:39]MH_I2C_Read... [18:12:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:12:40]Read from MH i2c: E2 [18:12:40]MH_I2C_Read... [18:12:40]Read from MH i2c: E2 17 00 [18:12:40]MH_I2C_Read... [18:12:40]Read from MH i2c: E2 17 00 50 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 2E [18:12:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [18:12:40]wFMCommunicate OK [18:12:40]CreateOFDProtocolMessage done [18:12:40]OFDSenderStorePacket 67861 [18:12:40]StoreOFDPacket docnum=67861 [18:12:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 60 3E 07 01 8B 49 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 84 3A 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E2 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E2 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 97 EF 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 15 09 01 00 35 04 06 00 A1 C0 54 A7 AE 5A E8 06 85 24 5E 0A D6 72 [18:12:40]CheckFolder [18:12:40]dirname=/storage/ofd_packets [18:12:40]CheckFolder done [18:12:40]ProducePacketName [18:12:40]name=ofd_packets/00067861 [18:12:40]NVStorageSaveData ofd_packets/00067861 [18:12:40]File name is /storage/ofd_packets/00067861 [18:12:40]Write 301 bytes [18:12:40]NVStorageSaveData done [18:12:40]OFDSenderStorePacket done [18:12:40]KKMCreateOFDPacket done [18:12:40]NVStorageSaveData kkm_last_timestamp [18:12:40]File name is /storage/kkm_last_timestamp [18:12:40]Write 4 bytes [18:12:40]NVStorageSaveData done [18:12:40]ExternCall_PrintAddStr [18:12:40]wPrintStart [18:12:40]Write to MH i2c: 01 00 00 51 0E 5F [18:12:40]Write i2c OK [18:12:40]MH_I2C_Read... [18:12:40]Read from MH i2c: 01 [18:12:40]MH_I2C_Read... [18:12:40]Read from MH i2c: 01 07 00 [18:12:40]MH_I2C_Read... [18:12:40]Read from MH i2c: 01 07 00 51 0E 00 00 00 00 00 FF 0F 74 [18:12:40]RasterBufferAndPrint [18:12:40]line Счет N : (1)508123 [18:12:40]line ИНН: 02508201610067 [18:12:40]line Контрольно-Кассовый Чек [18:12:40]line ПРОДАЖА [18:12:40]line ТРК (МРК, ГНК) : 43 [18:12:40]line Товар: 2710124130 [18:12:40]line Аи-92-К-5 [18:12:40]line 14.980 * 66.80 [18:12:40]line = 1000.66 [18:12:40]line НДС 12% НСП 1% [18:12:40]line > о реализуемом товаре [18:12:40]line ИТОГО: 1000.66 [18:12:40]line НСП 1% : 8.85 [18:12:40]line НДС 12% : 106.26 [18:12:40]line Наличными: 0.00 [18:12:40]line Безнал.: 1000.66 [18:12:40]line Место: АЗС № 91 "Партнер Нефть" [18:12:40]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [18:12:40]line СНО: Общий режим [18:12:40]line Чек 100 18.05.2024 18:12 [18:12:40]line Смена: 359 ФФД: 1.0 [18:12:40]line ЗНМ: 0300000119 [18:12:40]line РНМ: 0000000000091845 [18:12:40]line Версия ККМ: 001 [18:12:40]line Платежная система: O! деньги [18:12:40]line ФМ: 0000000000871829 [18:12:40]line ФД: 67861 [18:12:40]line ФПД: 177847426068058 [18:12:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T181239&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67861&fm=177847426068058&tin=02508201610067®Number=0000000000091845&sum=100066 [18:12:40]OFD Sender: Processing packet 67861 [packets to send 35, broken 34] [18:12:40]ProducePacketName [18:12:40]name=ofd_packets/00067861 [18:12:40]OFD Sender: To server: pG, [18:12:40]CommunicateWithHost lk.salyk.kg:30040 [18:12:40]ConnectInit lk.salyk.kg [18:12:40]written 0, free lines is 4095 [18:12:40]Connected sock=10 [18:12:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 60 3E 07 01 8B 49 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 84 3A 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E2 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E2 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 97 EF 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 15 09 01 00 35 04 06 00 A1 C0 54 A7 AE 5A E8 06 85 24 5E 0A D6 72 [18:12:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 5B CF 47 00 70 A8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 15 09 01 00 F4 03 04 00 6C 97 48 66 B6 04 01 00 00 B9 C6 0C BF DC FD 96 05 [18:12:40]CommunicateWithHost err = 0 [18:12:40]CheckOFDResponse [18:12:40]1017 (14) - 77093643461234 [18:12:40]1041 (16) - 0000000000871829 [18:12:40]1040 (4) - 67861 [18:12:40]1012 (4) - 18.05.2024 11:56 [18:12:40]1206 (1) - 0 [18:12:40]OFD Sender: Remove packet 67861 [18:12:40]ProducePacketName [18:12:40]name=ofd_packets/00067861 [18:12:40]NVStorageDeleteData [18:12:40]Write to MH i2c: 01 00 00 7A 0E 88 [18:12:40]Write i2c OK [18:12:40]MH_I2C_Read... [18:12:40]Read from MH i2c: 01 [18:12:40]MH_I2C_Read... [18:12:40]Read from MH i2c: 01 07 00 [18:12:40]MH_I2C_Read... [18:12:40]Read from MH i2c: 01 07 00 7A 0E 00 00 00 00 00 E6 0C 81 [18:12:40]RasterBufferAndPrint [18:12:40]line [18:12:40]line [18:12:40]line [18:12:40]line [18:12:40]line [18:12:40]written 0, free lines is 3317 [18:12:40]MH_Cut [18:12:40]Write to MH i2c: D1 01 00 81 0E 01 61 [18:12:40]Write i2c OK [18:12:40]MH_I2C_Read... [18:12:40]Read from MH i2c: D1 [18:12:40]MH_I2C_Read... [18:12:40]Read from MH i2c: D1 01 00 [18:12:40]MH_I2C_Read... [18:12:40]Read from MH i2c: D1 01 00 81 0E 00 60 [18:12:40]Write to MH i2c: 01 00 00 82 0E 90 [18:12:40]Write i2c OK [18:12:40]MH_I2C_Read... [18:12:41]OFD Sender: No OFD packet to send [18:12:41]*** Cut start [18:12:41]*** Purtial cut [18:12:41]*** Stage 1: CUTSNS_PIN = 1 [18:12:41]Read from MH i2c: 01 [18:12:41]MH_I2C_Read... [18:12:41]*** Stop cut motor [18:12:41]*** Cut end [18:12:41]Read from MH i2c: 01 07 00 [18:12:41]MH_I2C_Read... [18:12:41]Read from MH i2c: 01 07 00 82 0E 00 00 00 00 00 FF 0F A5 [18:12:41]process_action close_receipt done [18:12:41]requested_data is exist [18:12:41]produce_requested_data [18:12:41]requested_item fm.sn is exist - process it [18:12:41]wFMCommunicate request_size=4 [18:12:41]MH_SAM_APDU [18:12:41]CAPDU: 80 11 00 00 [18:12:41]Write to MH i2c: E2 08 00 83 0E 80 11 00 00 00 00 00 00 0B [18:12:41]Write i2c OK [18:12:41]MH_I2C_Read... [18:12:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:12:42]Read from MH i2c: E2 [18:12:42]MH_I2C_Read... [18:12:42]Read from MH i2c: E2 17 00 [18:12:42]MH_I2C_Read... [18:12:42]Read from MH i2c: E2 17 00 83 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 61 [18:12:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [18:12:42]wFMCommunicate OK [18:12:42]requested_item fd.num is exist - process it [18:12:42]SAM_PROTO_GetFieldsCounters [18:12:42]wFMCommunicate request_size=4 [18:12:42]MH_SAM_APDU [18:12:42]CAPDU: 80 13 00 00 [18:12:42]Write to MH i2c: E2 08 00 84 0E 80 13 00 00 00 00 00 00 0E [18:12:42]Write i2c OK [18:12:42]MH_I2C_Read... [18:12:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:12:42]Read from MH i2c: E2 [18:12:42]MH_I2C_Read... [18:12:42]Read from MH i2c: E2 62 00 [18:12:42]MH_I2C_Read... [18:12:42]Read from MH i2c: E2 62 00 84 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 15 09 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 64 00 00 00 5E 04 04 00 64 00 00 00 57 04 04 00 65 00 00 00 19 04 04 00 00 00 00 00 90 00 E7 [18:12:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 15 09 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 64 00 00 00 5E 04 04 00 64 00 00 00 57 04 04 00 65 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:12:42]wFMCommunicate OK [18:12:42]SAM_PROTO_GetFieldsCounters done [18:12:42]requested_item shift.num is exist - process it [18:12:42]requested_item shift.opened is exist - process it [18:12:42]req_shift_opened [18:12:42]FM_GetShiftState [18:12:42]SAM_PROTO_GetShiftState [18:12:42]wFMCommunicate request_size=4 [18:12:42]MH_SAM_APDU [18:12:42]CAPDU: 80 13 01 00 [18:12:42]Write to MH i2c: E2 08 00 85 0E 80 13 01 00 00 00 00 00 10 [18:12:42]Write i2c OK [18:12:42]MH_I2C_Read... [18:12:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:12:42]Read from MH i2c: E2 [18:12:42]MH_I2C_Read... [18:12:42]Read from MH i2c: E2 0E 00 [18:12:42]MH_I2C_Read... [18:12:42]Read from MH i2c: E2 0E 00 85 0E 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 77 [18:12:42]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [18:12:42]wFMCommunicate OK [18:12:42]SAM_PROTO_GetShiftState done [18:12:42]FM_GetShiftState done [18:12:42]req_shift_opened done [18:12:42]requested_item shift.open_date is exist - process it [18:12:42]req_shift_open_date [18:12:42]req_shift_open_date done [18:12:42]produce_requested_data done [18:12:42]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67861,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [18:12:42]process_action_free close_receipt [18:12:42]json_value_free [18:12:42]json_value_free done [18:12:42]process_json_proto returns [18:12:42]Send response to host [18:12:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67861,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [18:12:42]free response buf [18:12:42]execute_script done [18:12:42]execute_script returns [18:12:42]free content buf [18:12:42]Sock 9.Close socket [18:12:42]Sock 9.Thread stoped [18:12:46]OFD Sender: No OFD packet to send [18:12:51]OFD Sender: No OFD packet to send [18:12:56]OFD Sender: No OFD packet to send [18:13:01]OFD Sender: No OFD packet to send [18:13:06]OFD Sender: No OFD packet to send [18:13:11]OFD Sender: No OFD packet to send [18:13:16]OFD Sender: No OFD packet to send [18:13:21]OFD Sender: No OFD packet to send [18:13:26]OFD Sender: No OFD packet to send [18:13:31]OFD Sender: No OFD packet to send [18:13:36]OFD Sender: No OFD packet to send [18:13:41]OFD Sender: No OFD packet to send [18:13:46]OFD Sender: No OFD packet to send [18:13:51]OFD Sender: No OFD packet to send [18:13:51]accept exits with 7 [18:13:51]New connection [18:13:51]New thread 3067202916 created [18:13:51]Thread 3067059556 joined [18:13:51]Waiting for new connection... [18:13:51] Sock 7.Parse request [18:13:51]Sock 7.Check first char [18:13:51]Sock 7.First char is OK [18:13:51]request: POST /json_proto HTTP/1.0 [18:13:51]Method: POST [18:13:51]URL: /json_proto [18:13:51]Method is POST - this is cgi request [18:13:51]url: /json_proto [18:13:51]query_string will be loaded in cgi processing [18:13:51]execute_cgi json_proto POST (null) [18:13:51]execute_cgi path=json_proto method=POST [18:13:51]POST find Content-Length [18:13:51]Host: 172.17.41.195:8080 [18:13:51]Content-Length: 800 [18:13:51]Content-Type: application/json [18:13:51] [18:13:51]POST finish read [18:13:51]Found Content-Length = 800 [18:13:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)508125", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.80, "quantity" : 4.500, "sum" : 300.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 300.60 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:13:51]execute_script... [18:13:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)508125", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.80, "quantity" : 4.500, "sum" : 300.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 300.60 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:13:51]POST & json_proto [18:13:51]process_json_proto [18:13:51]json parsed OK: [18:13:51]protocol is kg_v1.0 [18:13:51]action value=close_receipt [18:13:51]process_action close_receipt [18:13:51]cmd_close_receipt [18:13:51]MH_GetDate [18:13:51]Write to MH i2c: F0 00 00 86 0E 83 [18:13:51]Write i2c OK [18:13:51]MH_I2C_Read... [18:13:51]Read from MH i2c: F0 [18:13:51]MH_I2C_Read... [18:13:51]Read from MH i2c: F0 09 00 [18:13:51]MH_I2C_Read... [18:13:51]Read from MH i2c: F0 09 00 86 0E 00 E0 EF 48 66 FC 21 6F 64 F9 [18:13:51]GetLastDocTimeStamp 1716055959 [18:13:51]current date 1716056032 [18:13:51]FM_GetShiftState [18:13:51]SAM_PROTO_GetShiftState [18:13:51]wFMCommunicate request_size=4 [18:13:51]MH_SAM_APDU [18:13:51]CAPDU: 80 13 01 00 [18:13:51]Write to MH i2c: E2 08 00 87 0E 80 13 01 00 00 00 00 00 12 [18:13:51]Write i2c OK [18:13:51]MH_I2C_Read... [18:13:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:13:51]Read from MH i2c: E2 [18:13:51]MH_I2C_Read... [18:13:51]Read from MH i2c: E2 0E 00 [18:13:51]MH_I2C_Read... [18:13:51]Read from MH i2c: E2 0E 00 87 0E 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 79 [18:13:51]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [18:13:51]wFMCommunicate OK [18:13:51]SAM_PROTO_GetShiftState done [18:13:51]FM_GetShiftState done [18:13:51]opened in 1715991483 [18:13:51]opened+sec_in_day 1716077883 [18:13:51]quantity*price = 30060 [18:13:51]sum+1 = 30061 [18:13:51]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.60 НСП 1% : 2.66 НДС 12% : 31.92 Наличными: 0.00 Безнал.: 300.60 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 101 18.05.2024 18:13 Смена: 359 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67862 ФПД: 92800698784781 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T181352&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67862&fm=92800698784781&tin=02508201610067®Number=0000000000091845&sum=30060 [18:13:52]StoreToDocumentArchive [18:13:52]shift 359 fd 67862 [18:13:52]save to /storage/0359/doc_00067862 [18:13:52]save last doc name /storage/0359/doc_00067862 to /storage/kkm_last_doc_name [18:13:52]save OK [18:13:52]Clear old archive folders... [18:13:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:13:52]tlvbuf is 00A069C0 [18:13:52]SAM_PROTO_ClearQueue [18:13:52]wFMCommunicate request_size=4 [18:13:52]MH_SAM_APDU [18:13:52]CAPDU: 80 09 00 00 [18:13:52]Write to MH i2c: E2 08 00 94 0E 80 09 00 00 00 00 00 00 14 [18:13:52]Write i2c OK [18:13:52]MH_I2C_Read... [18:13:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:13:52]Read from MH i2c: E2 [18:13:52]MH_I2C_Read... [18:13:52]Read from MH i2c: E2 03 00 [18:13:52]MH_I2C_Read... [18:13:52]Read from MH i2c: E2 03 00 94 0E 00 90 00 16 [18:13:52]RAPDU: 90 00 [18:13:52]wFMCommunicate OK [18:13:52]SAM_PROTO_ClearQueue done [18:13:52]KKMCreateOFDPacket [18:13:52]OFDProtocolAddRootSTLVToBuf [18:13:52]FM_MakeSignedData [18:13:52]FM_MakeSignedData [18:13:52]SAM_PROTO_SignData [18:13:52]wFMCommunicate request_size=4 [18:13:52]MH_SAM_APDU [18:13:52]CAPDU: 80 0D 01 02 [18:13:52]Write to MH i2c: E2 08 00 95 0E 80 0D 01 02 00 00 00 00 1C [18:13:52]Write i2c OK [18:13:52]MH_I2C_Read... [18:13:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:13:52]Read from MH i2c: E2 [18:13:52]MH_I2C_Read... [18:13:52]Read from MH i2c: E2 03 00 [18:13:52]MH_I2C_Read... [18:13:52]Read from MH i2c: E2 03 00 95 0E 00 90 00 17 [18:13:52]RAPDU: 90 00 [18:13:52]wFMCommunicate OK [18:13:52]wFMCommunicate request_size=255 [18:13:52]MH_SAM_APDU [18:13:52]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 94 11 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 6C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6C 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 E0 EF 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 16 09 01 00 35 04 06 00 54 [18:13:52]Write to MH i2c: E2 02 01 96 0E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 94 11 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 6C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6C 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 E0 EF 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 16 09 01 00 35 04 06 00 54 00 00 F2 [18:13:52]Write i2c OK [18:13:52]MH_I2C_Read... [18:13:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:13:52]Read from MH i2c: E2 [18:13:52]MH_I2C_Read... [18:13:52]Read from MH i2c: E2 03 00 [18:13:52]MH_I2C_Read... [18:13:52]Read from MH i2c: E2 03 00 96 0E 00 90 00 18 [18:13:52]RAPDU: 90 00 [18:13:52]wFMCommunicate OK [18:13:52]wFMCommunicate request_size=10 [18:13:52]MH_SAM_APDU [18:13:52]CAPDU: 80 0D 02 02 05 66 D8 AF 9C 0D [18:13:52]Write to MH i2c: E2 0D 00 97 0E 80 0D 02 02 05 00 66 D8 AF 9C 0D 00 00 BF [18:13:52]Write i2c OK [18:13:52]MH_I2C_Read... [18:13:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:13:53]Read from MH i2c: E2 [18:13:53]MH_I2C_Read... [18:13:53]Read from MH i2c: E2 03 00 [18:13:53]MH_I2C_Read... [18:13:53]Read from MH i2c: E2 03 00 97 0E 00 90 00 19 [18:13:53]RAPDU: 90 00 [18:13:53]wFMCommunicate OK [18:13:53]wFMCommunicate request_size=4 [18:13:53]MH_SAM_APDU [18:13:53]CAPDU: 80 0D 03 02 [18:13:53]Write to MH i2c: E2 08 00 98 0E 80 0D 03 02 00 00 00 00 21 [18:13:53]Write i2c OK [18:13:53]MH_I2C_Read... [18:13:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:13:53]Read from MH i2c: E2 [18:13:53]MH_I2C_Read... [18:13:53]Read from MH i2c: E2 0B 00 [18:13:53]MH_I2C_Read... [18:13:53]Read from MH i2c: E2 0B 00 98 0E 00 E7 15 A5 CC F2 29 A5 9D 90 00 EC [18:13:53]RAPDU: E7 15 A5 CC F2 29 A5 9D 90 00 [18:13:53]wFMCommunicate OK [18:13:53]SAM_PROTO_SignData done [18:13:53]FM_MakeSignedData done [18:13:53]CreateOFDProtocolMessage [18:13:53]wFMCommunicate request_size=4 [18:13:53]MH_SAM_APDU [18:13:53]CAPDU: 80 11 00 00 [18:13:53]Write to MH i2c: E2 08 00 99 0E 80 11 00 00 00 00 00 00 21 [18:13:53]Write i2c OK [18:13:53]MH_I2C_Read... [18:13:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:13:53]Read from MH i2c: E2 [18:13:53]MH_I2C_Read... [18:13:53]Read from MH i2c: E2 17 00 [18:13:53]MH_I2C_Read... [18:13:53]Read from MH i2c: E2 17 00 99 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 77 [18:13:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [18:13:53]wFMCommunicate OK [18:13:53]CreateOFDProtocolMessage done [18:13:53]OFDSenderStorePacket 67862 [18:13:53]StoreOFDPacket docnum=67862 [18:13:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 13 95 07 01 7E B7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 94 11 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 6C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6C 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 E0 EF 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 16 09 01 00 35 04 06 00 54 66 D8 AF 9C 0D E7 15 A5 CC F2 29 A5 9D [18:13:53]CheckFolder [18:13:53]dirname=/storage/ofd_packets [18:13:53]CheckFolder done [18:13:53]ProducePacketName [18:13:53]name=ofd_packets/00067862 [18:13:53]NVStorageSaveData ofd_packets/00067862 [18:13:53]File name is /storage/ofd_packets/00067862 [18:13:53]Write 301 bytes [18:13:53]NVStorageSaveData done [18:13:53]OFDSenderStorePacket done [18:13:53]KKMCreateOFDPacket done [18:13:53]NVStorageSaveData kkm_last_timestamp [18:13:53]File name is /storage/kkm_last_timestamp [18:13:53]Write 4 bytes [18:13:53]NVStorageSaveData done [18:13:53]ExternCall_PrintAddStr [18:13:53]wPrintStart [18:13:53]Write to MH i2c: 01 00 00 9A 0E A8 [18:13:53]Write i2c OK [18:13:53]MH_I2C_Read... [18:13:53]Read from MH i2c: 01 [18:13:53]MH_I2C_Read... [18:13:53]Read from MH i2c: 01 07 00 [18:13:53]MH_I2C_Read... [18:13:53]Read from MH i2c: 01 07 00 9A 0E 00 00 00 00 00 FF 0F BD [18:13:53]RasterBufferAndPrint [18:13:53]line Счет N : (1)508125 [18:13:53]line ИНН: 02508201610067 [18:13:53]line Контрольно-Кассовый Чек [18:13:53]line ПРОДАЖА [18:13:53]line ТРК (МРК, ГНК) : 23 [18:13:53]line Товар: 2710124130 [18:13:53]line Аи-92-К-5 [18:13:53]line 4.500 * 66.80 [18:13:53]line = 300.60 [18:13:53]line НДС 12% НСП 1% [18:13:53]line > о реализуемом товаре [18:13:53]line ИТОГО: 300.60 [18:13:53]line НСП 1% : 2.66 [18:13:53]line НДС 12% : 31.92 [18:13:53]line Наличными: 0.00 [18:13:53]line Безнал.: 300.60 [18:13:53]line Место: АЗС № 91 "Партнер Нефть" [18:13:53]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [18:13:53]line СНО: Общий режим [18:13:53]line Чек 101 18.05.2024 18:13 [18:13:53]line Смена: 359 ФФД: 1.0 [18:13:53]line ЗНМ: 0300000119 [18:13:53]line РНМ: 0000000000091845 [18:13:53]line Версия ККМ: 001 [18:13:53]line Платежная система: O! деньги [18:13:53]line ФМ: 0000000000871829 [18:13:53]line ФД: 67862 [18:13:53]line ФПД: 92800698784781 [18:13:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T181352&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67862&fm=92800698784781&tin=02508201610067®Number=0000000000091845&sum=30060 [18:13:53]OFD Sender: Processing packet 67862 [packets to send 35, broken 34] [18:13:53]ProducePacketName [18:13:53]name=ofd_packets/00067862 [18:13:53]OFD Sender: To server: pG, [18:13:53]CommunicateWithHost lk.salyk.kg:30040 [18:13:53]ConnectInit lk.salyk.kg [18:13:53]written 0, free lines is 4095 [18:13:53]Connected sock=10 [18:13:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 13 95 07 01 7E B7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 94 11 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 6C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6C 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 E0 EF 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 16 09 01 00 35 04 06 00 54 66 D8 AF 9C 0D E7 15 A5 CC F2 29 A5 9D [18:13:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 18 D6 47 00 86 36 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 16 09 01 00 F4 03 04 00 B5 97 48 66 B6 04 01 00 00 9D 47 E3 BA 6C 00 57 F9 [18:13:53]CommunicateWithHost err = 0 [18:13:53]CheckOFDResponse [18:13:53]1017 (14) - 77093643461234 [18:13:53]1041 (16) - 0000000000871829 [18:13:53]1040 (4) - 67862 [18:13:53]1012 (4) - 18.05.2024 11:57 [18:13:53]1206 (1) - 0 [18:13:53]OFD Sender: Remove packet 67862 [18:13:53]ProducePacketName [18:13:53]name=ofd_packets/00067862 [18:13:53]NVStorageDeleteData [18:13:53]Write to MH i2c: 01 00 00 C3 0E D1 [18:13:53]Write i2c OK [18:13:53]MH_I2C_Read... [18:13:53]Read from MH i2c: 01 [18:13:53]MH_I2C_Read... [18:13:53]Read from MH i2c: 01 07 00 [18:13:53]MH_I2C_Read... [18:13:53]Read from MH i2c: 01 07 00 C3 0E 00 00 00 00 00 D4 0C B8 [18:13:53]RasterBufferAndPrint [18:13:53]line [18:13:53]line [18:13:53]line [18:13:53]line [18:13:53]line [18:13:53]written 0, free lines is 3288 [18:13:53]MH_Cut [18:13:53]Write to MH i2c: D1 01 00 CA 0E 01 AA [18:13:53]Write i2c OK [18:13:53]MH_I2C_Read... [18:13:53]Read from MH i2c: D1 [18:13:53]MH_I2C_Read... [18:13:53]Read from MH i2c: D1 01 00 [18:13:53]MH_I2C_Read... [18:13:53]Read from MH i2c: D1 01 00 CA 0E 00 A9 [18:13:53]Write to MH i2c: 01 00 00 CB 0E D9 [18:13:53]Write i2c OK [18:13:53]MH_I2C_Read... [18:13:54]OFD Sender: No OFD packet to send [18:13:54]*** Cut start [18:13:54]*** Purtial cut [18:13:54]*** Stage 1: CUTSNS_PIN = 1 [18:13:54]Read from MH i2c: 01 [18:13:54]MH_I2C_Read... [18:13:55]*** Stop cut motor [18:13:55]*** Cut end [18:13:55]Read from MH i2c: 01 07 00 [18:13:55]MH_I2C_Read... [18:13:55]Read from MH i2c: 01 07 00 CB 0E 00 00 00 00 00 FF 0F EE [18:13:55]process_action close_receipt done [18:13:55]requested_data is exist [18:13:55]produce_requested_data [18:13:55]requested_item fm.sn is exist - process it [18:13:55]wFMCommunicate request_size=4 [18:13:55]MH_SAM_APDU [18:13:55]CAPDU: 80 11 00 00 [18:13:55]Write to MH i2c: E2 08 00 CC 0E 80 11 00 00 00 00 00 00 54 [18:13:55]Write i2c OK [18:13:55]MH_I2C_Read... [18:13:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:13:55]Read from MH i2c: E2 [18:13:55]MH_I2C_Read... [18:13:55]Read from MH i2c: E2 17 00 [18:13:55]MH_I2C_Read... [18:13:55]Read from MH i2c: E2 17 00 CC 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 AA [18:13:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [18:13:55]wFMCommunicate OK [18:13:55]requested_item fd.num is exist - process it [18:13:55]SAM_PROTO_GetFieldsCounters [18:13:55]wFMCommunicate request_size=4 [18:13:55]MH_SAM_APDU [18:13:55]CAPDU: 80 13 00 00 [18:13:55]Write to MH i2c: E2 08 00 CD 0E 80 13 00 00 00 00 00 00 57 [18:13:55]Write i2c OK [18:13:55]MH_I2C_Read... [18:13:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:13:55]Read from MH i2c: E2 [18:13:55]MH_I2C_Read... [18:13:55]Read from MH i2c: E2 62 00 [18:13:55]MH_I2C_Read... [18:13:55]Read from MH i2c: E2 62 00 CD 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 16 09 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 65 00 00 00 5E 04 04 00 65 00 00 00 57 04 04 00 66 00 00 00 19 04 04 00 00 00 00 00 90 00 34 [18:13:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 16 09 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 65 00 00 00 5E 04 04 00 65 00 00 00 57 04 04 00 66 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:13:55]wFMCommunicate OK [18:13:55]SAM_PROTO_GetFieldsCounters done [18:13:55]requested_item shift.num is exist - process it [18:13:55]requested_item shift.opened is exist - process it [18:13:55]req_shift_opened [18:13:55]FM_GetShiftState [18:13:55]SAM_PROTO_GetShiftState [18:13:55]wFMCommunicate request_size=4 [18:13:55]MH_SAM_APDU [18:13:55]CAPDU: 80 13 01 00 [18:13:55]Write to MH i2c: E2 08 00 CE 0E 80 13 01 00 00 00 00 00 59 [18:13:55]Write i2c OK [18:13:55]MH_I2C_Read... [18:13:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:13:55]Read from MH i2c: E2 [18:13:55]MH_I2C_Read... [18:13:55]Read from MH i2c: E2 0E 00 [18:13:55]MH_I2C_Read... [18:13:55]Read from MH i2c: E2 0E 00 CE 0E 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 C0 [18:13:55]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [18:13:55]wFMCommunicate OK [18:13:55]SAM_PROTO_GetShiftState done [18:13:55]FM_GetShiftState done [18:13:55]req_shift_opened done [18:13:55]requested_item shift.open_date is exist - process it [18:13:55]req_shift_open_date [18:13:55]req_shift_open_date done [18:13:55]produce_requested_data done [18:13:55]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67862,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [18:13:55]process_action_free close_receipt [18:13:55]json_value_free [18:13:55]json_value_free done [18:13:55]process_json_proto returns [18:13:55]Send response to host [18:13:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67862,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [18:13:55]free response buf [18:13:55]execute_script done [18:13:55]execute_script returns [18:13:55]free content buf [18:13:55]Sock 7.Close socket [18:13:55]Sock 7.Thread stoped [18:13:59]OFD Sender: No OFD packet to send [18:14:02]accept exits with 9 [18:14:02]New connection [18:14:02]New thread 3067059556 created [18:14:02]Thread 3067202916 joined [18:14:02]Waiting for new connection... [18:14:02] Sock 9.Parse request [18:14:02]Sock 9.Check first char [18:14:02]Sock 9.First char is OK [18:14:02]request: POST /json_proto HTTP/1.0 [18:14:02]Method: POST [18:14:02]URL: /json_proto [18:14:02]Method is POST - this is cgi request [18:14:02]url: /json_proto [18:14:02]query_string will be loaded in cgi processing [18:14:02]execute_cgi json_proto POST (null) [18:14:02]execute_cgi path=json_proto method=POST [18:14:02]POST find Content-Length [18:14:02]Host: 172.17.41.195:8080 [18:14:02]Content-Length: 801 [18:14:02]Content-Type: application/json [18:14:02] [18:14:02]POST finish read [18:14:02]Found Content-Length = 801 [18:14:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)508124", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.80, "quantity" : 10.480, "sum" : 700.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 700.06 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:14:02]execute_script... [18:14:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)508124", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.80, "quantity" : 10.480, "sum" : 700.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 700.06 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:14:02]POST & json_proto [18:14:02]process_json_proto [18:14:02]json parsed OK: [18:14:02]protocol is kg_v1.0 [18:14:02]action value=close_receipt [18:14:02]process_action close_receipt [18:14:02]cmd_close_receipt [18:14:02]MH_GetDate [18:14:02]Write to MH i2c: F0 00 00 CF 0E CC [18:14:02]Write i2c OK [18:14:02]MH_I2C_Read... [18:14:02]Read from MH i2c: F0 [18:14:02]MH_I2C_Read... [18:14:02]Read from MH i2c: F0 09 00 [18:14:02]MH_I2C_Read... [18:14:02]Read from MH i2c: F0 09 00 CF 0E 00 EC EF 48 66 FC 21 6F 64 4E [18:14:02]GetLastDocTimeStamp 1716056032 [18:14:02]current date 1716056044 [18:14:02]FM_GetShiftState [18:14:02]SAM_PROTO_GetShiftState [18:14:02]wFMCommunicate request_size=4 [18:14:02]MH_SAM_APDU [18:14:02]CAPDU: 80 13 01 00 [18:14:02]Write to MH i2c: E2 08 00 D0 0E 80 13 01 00 00 00 00 00 5B [18:14:02]Write i2c OK [18:14:02]MH_I2C_Read... [18:14:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:14:02]Read from MH i2c: E2 [18:14:02]MH_I2C_Read... [18:14:02]Read from MH i2c: E2 0E 00 [18:14:02]MH_I2C_Read... [18:14:02]Read from MH i2c: E2 0E 00 D0 0E 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 C2 [18:14:02]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [18:14:02]wFMCommunicate OK [18:14:02]SAM_PROTO_GetShiftState done [18:14:02]FM_GetShiftState done [18:14:02]opened in 1715991483 [18:14:02]opened+sec_in_day 1716077883 [18:14:02]quantity*price = 70006 [18:14:02]sum+1 = 70007 [18:14:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 700.06 НСП 1% : 6.19 НДС 12% : 74.34 Наличными: 0.00 Безнал.: 700.06 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 102 18.05.2024 18:14 Смена: 359 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67863 ФПД: 65941769285037 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T181404&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67863&fm=65941769285037&tin=02508201610067®Number=0000000000091845&sum=70006 [18:14:03]StoreToDocumentArchive [18:14:03]shift 359 fd 67863 [18:14:03]save to /storage/0359/doc_00067863 [18:14:03]save last doc name /storage/0359/doc_00067863 to /storage/kkm_last_doc_name [18:14:03]save OK [18:14:03]Clear old archive folders... [18:14:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:14:03]tlvbuf is 009E1900 [18:14:03]SAM_PROTO_ClearQueue [18:14:03]wFMCommunicate request_size=4 [18:14:03]MH_SAM_APDU [18:14:03]CAPDU: 80 09 00 00 [18:14:03]Write to MH i2c: E2 08 00 DD 0E 80 09 00 00 00 00 00 00 5D [18:14:03]Write i2c OK [18:14:03]MH_I2C_Read... [18:14:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:14:04]Read from MH i2c: E2 [18:14:04]MH_I2C_Read... [18:14:04]Read from MH i2c: E2 03 00 [18:14:04]MH_I2C_Read... [18:14:04]Read from MH i2c: E2 03 00 DD 0E 00 90 00 5F [18:14:04]RAPDU: 90 00 [18:14:04]wFMCommunicate OK [18:14:04]SAM_PROTO_ClearQueue done [18:14:04]KKMCreateOFDPacket [18:14:04]OFDProtocolAddRootSTLVToBuf [18:14:04]FM_MakeSignedData [18:14:04]FM_MakeSignedData [18:14:04]SAM_PROTO_SignData [18:14:04]wFMCommunicate request_size=4 [18:14:04]MH_SAM_APDU [18:14:04]CAPDU: 80 0D 01 02 [18:14:04]Write to MH i2c: E2 08 00 DE 0E 80 0D 01 02 00 00 00 00 65 [18:14:04]Write i2c OK [18:14:04]MH_I2C_Read... [18:14:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:14:04]Read from MH i2c: E2 [18:14:04]MH_I2C_Read... [18:14:04]Read from MH i2c: E2 03 00 [18:14:04]MH_I2C_Read... [18:14:04]Read from MH i2c: E2 03 00 DE 0E 00 90 00 60 [18:14:04]RAPDU: 90 00 [18:14:04]wFMCommunicate OK [18:14:04]wFMCommunicate request_size=255 [18:14:04]MH_SAM_APDU [18:14:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 28 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 76 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 76 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 76 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 EC EF 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 17 09 01 00 35 04 06 00 3B [18:14:04]Write to MH i2c: E2 02 01 DF 0E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 28 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 76 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 76 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 76 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 EC EF 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 17 09 01 00 35 04 06 00 3B 00 00 9D [18:14:04]Write i2c OK [18:14:04]MH_I2C_Read... [18:14:04]OFD Sender: No OFD packet to send [18:14:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:14:04]Read from MH i2c: E2 [18:14:04]MH_I2C_Read... [18:14:04]Read from MH i2c: E2 03 00 [18:14:04]MH_I2C_Read... [18:14:04]Read from MH i2c: E2 03 00 DF 0E 00 90 00 61 [18:14:04]RAPDU: 90 00 [18:14:04]wFMCommunicate OK [18:14:04]wFMCommunicate request_size=10 [18:14:04]MH_SAM_APDU [18:14:04]CAPDU: 80 0D 02 02 05 F9 43 BB ED AD [18:14:04]Write to MH i2c: E2 0D 00 E0 0E 80 0D 02 02 05 00 F9 43 BB ED AD 00 00 03 [18:14:04]Write i2c OK [18:14:04]MH_I2C_Read... [18:14:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:14:04]Read from MH i2c: E2 [18:14:04]MH_I2C_Read... [18:14:04]Read from MH i2c: E2 03 00 [18:14:04]MH_I2C_Read... [18:14:04]Read from MH i2c: E2 03 00 E0 0E 00 90 00 62 [18:14:04]RAPDU: 90 00 [18:14:04]wFMCommunicate OK [18:14:04]wFMCommunicate request_size=4 [18:14:04]MH_SAM_APDU [18:14:04]CAPDU: 80 0D 03 02 [18:14:04]Write to MH i2c: E2 08 00 E1 0E 80 0D 03 02 00 00 00 00 6A [18:14:04]Write i2c OK [18:14:04]MH_I2C_Read... [18:14:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:14:04]Read from MH i2c: E2 [18:14:04]MH_I2C_Read... [18:14:04]Read from MH i2c: E2 0B 00 [18:14:04]MH_I2C_Read... [18:14:04]Read from MH i2c: E2 0B 00 E1 0E 00 D2 E6 E4 5B 4D 3B E4 9F 90 00 6D [18:14:04]RAPDU: D2 E6 E4 5B 4D 3B E4 9F 90 00 [18:14:04]wFMCommunicate OK [18:14:04]SAM_PROTO_SignData done [18:14:04]FM_MakeSignedData done [18:14:04]CreateOFDProtocolMessage [18:14:04]wFMCommunicate request_size=4 [18:14:04]MH_SAM_APDU [18:14:04]CAPDU: 80 11 00 00 [18:14:04]Write to MH i2c: E2 08 00 E2 0E 80 11 00 00 00 00 00 00 6A [18:14:04]Write i2c OK [18:14:04]MH_I2C_Read... [18:14:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:14:04]Read from MH i2c: E2 [18:14:04]MH_I2C_Read... [18:14:04]Read from MH i2c: E2 17 00 [18:14:04]MH_I2C_Read... [18:14:04]Read from MH i2c: E2 17 00 E2 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 C0 [18:14:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [18:14:04]wFMCommunicate OK [18:14:04]CreateOFDProtocolMessage done [18:14:04]OFDSenderStorePacket 67863 [18:14:04]StoreOFDPacket docnum=67863 [18:14:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 99 67 07 01 A9 E8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 28 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 76 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 76 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 76 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 EC EF 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 17 09 01 00 35 04 06 00 3B F9 43 BB ED AD D2 E6 E4 5B 4D 3B E4 9F [18:14:04]CheckFolder [18:14:04]dirname=/storage/ofd_packets [18:14:04]CheckFolder done [18:14:04]ProducePacketName [18:14:04]name=ofd_packets/00067863 [18:14:04]NVStorageSaveData ofd_packets/00067863 [18:14:04]File name is /storage/ofd_packets/00067863 [18:14:04]Write 301 bytes [18:14:04]NVStorageSaveData done [18:14:04]OFDSenderStorePacket done [18:14:04]KKMCreateOFDPacket done [18:14:04]NVStorageSaveData kkm_last_timestamp [18:14:04]File name is /storage/kkm_last_timestamp [18:14:04]Write 4 bytes [18:14:04]NVStorageSaveData done [18:14:04]ExternCall_PrintAddStr [18:14:04]wPrintStart [18:14:04]Write to MH i2c: 01 00 00 E3 0E F1 [18:14:04]Write i2c OK [18:14:04]MH_I2C_Read... [18:14:04]Read from MH i2c: 01 [18:14:04]MH_I2C_Read... [18:14:04]Read from MH i2c: 01 07 00 [18:14:04]MH_I2C_Read... [18:14:04]Read from MH i2c: 01 07 00 E3 0E 00 00 00 00 00 FF 0F 06 [18:14:04]RasterBufferAndPrint [18:14:04]line Счет N : (1)508124 [18:14:04]line ИНН: 02508201610067 [18:14:04]line Контрольно-Кассовый Чек [18:14:04]line ПРОДАЖА [18:14:04]line ТРК (МРК, ГНК) : 33 [18:14:04]line Товар: 2710124130 [18:14:04]line Аи-92-К-5 [18:14:04]line 10.480 * 66.80 [18:14:04]line = 700.06 [18:14:04]line НДС 12% НСП 1% [18:14:04]line > о реализуемом товаре [18:14:04]line ИТОГО: 700.06 [18:14:04]line НСП 1% : 6.19 [18:14:04]line НДС 12% : 74.34 [18:14:04]line Наличными: 0.00 [18:14:04]line Безнал.: 700.06 [18:14:04]line Место: АЗС № 91 "Партнер Нефть" [18:14:04]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [18:14:04]line СНО: Общий режим [18:14:04]line Чек 102 18.05.2024 18:14 [18:14:04]line Смена: 359 ФФД: 1.0 [18:14:04]line ЗНМ: 0300000119 [18:14:04]line РНМ: 0000000000091845 [18:14:04]line Версия ККМ: 001 [18:14:04]line Платежная система: O! деньги [18:14:04]line ФМ: 0000000000871829 [18:14:04]line ФД: 67863 [18:14:04]line ФПД: 65941769285037 [18:14:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T181404&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67863&fm=65941769285037&tin=02508201610067®Number=0000000000091845&sum=70006 [18:14:04]written 0, free lines is 4095 [18:14:04]OFD Sender: Processing packet 67863 [packets to send 35, broken 34] [18:14:04]ProducePacketName [18:14:04]name=ofd_packets/00067863 [18:14:04]OFD Sender: To server: pG, [18:14:04]CommunicateWithHost lk.salyk.kg:30040 [18:14:04]ConnectInit lk.salyk.kg [18:14:04]Connected sock=10 [18:14:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 99 67 07 01 A9 E8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 28 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 76 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 76 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 76 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 EC EF 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 17 09 01 00 35 04 06 00 3B F9 43 BB ED AD D2 E6 E4 5B 4D 3B E4 9F [18:14:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 A8 E1 47 00 05 07 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 17 09 01 00 F4 03 04 00 C0 97 48 66 B6 04 01 00 00 8A 46 55 F9 7D 4B 6B CD [18:14:04]CommunicateWithHost err = 0 [18:14:04]CheckOFDResponse [18:14:04]1017 (14) - 77093643461234 [18:14:04]1041 (16) - 0000000000871829 [18:14:04]1040 (4) - 67863 [18:14:04]1012 (4) - 18.05.2024 11:57 [18:14:04]1206 (1) - 0 [18:14:04]OFD Sender: Remove packet 67863 [18:14:04]ProducePacketName [18:14:04]name=ofd_packets/00067863 [18:14:04]NVStorageDeleteData [18:14:04]Write to MH i2c: 01 00 00 0C 0F 1B [18:14:04]Write i2c OK [18:14:04]MH_I2C_Read... [18:14:04]Read from MH i2c: 01 [18:14:04]MH_I2C_Read... [18:14:04]Read from MH i2c: 01 07 00 [18:14:04]MH_I2C_Read... [18:14:04]Read from MH i2c: 01 07 00 0C 0F 00 00 00 00 00 E2 0C 10 [18:14:04]RasterBufferAndPrint [18:14:04]line [18:14:04]line [18:14:04]line [18:14:04]line [18:14:04]line [18:14:04]written 0, free lines is 3306 [18:14:04]MH_Cut [18:14:04]Write to MH i2c: D1 01 00 13 0F 01 F4 [18:14:04]Write i2c OK [18:14:04]MH_I2C_Read... [18:14:04]Read from MH i2c: D1 [18:14:04]MH_I2C_Read... [18:14:04]Read from MH i2c: D1 01 00 [18:14:04]MH_I2C_Read... [18:14:04]Read from MH i2c: D1 01 00 13 0F 00 F3 [18:14:04]Write to MH i2c: 01 00 00 14 0F 23 [18:14:04]Write i2c OK [18:14:04]MH_I2C_Read... [18:14:05]OFD Sender: No OFD packet to send [18:14:05]*** Cut start [18:14:05]*** Purtial cut [18:14:05]*** Stage 1: CUTSNS_PIN = 1 [18:14:06]Read from MH i2c: 01 [18:14:06]MH_I2C_Read... [18:14:06]*** Stop cut motor [18:14:06]*** Cut end [18:14:06]Read from MH i2c: 01 07 00 [18:14:06]MH_I2C_Read... [18:14:06]Read from MH i2c: 01 07 00 14 0F 00 00 00 00 00 FF 0F 38 [18:14:06]process_action close_receipt done [18:14:06]requested_data is exist [18:14:06]produce_requested_data [18:14:06]requested_item fm.sn is exist - process it [18:14:06]wFMCommunicate request_size=4 [18:14:06]MH_SAM_APDU [18:14:06]CAPDU: 80 11 00 00 [18:14:06]Write to MH i2c: E2 08 00 15 0F 80 11 00 00 00 00 00 00 9E [18:14:06]Write i2c OK [18:14:06]MH_I2C_Read... [18:14:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:14:06]Read from MH i2c: E2 [18:14:06]MH_I2C_Read... [18:14:06]Read from MH i2c: E2 17 00 [18:14:06]MH_I2C_Read... [18:14:06]Read from MH i2c: E2 17 00 15 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 F4 [18:14:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [18:14:06]wFMCommunicate OK [18:14:06]requested_item fd.num is exist - process it [18:14:06]SAM_PROTO_GetFieldsCounters [18:14:06]wFMCommunicate request_size=4 [18:14:06]MH_SAM_APDU [18:14:06]CAPDU: 80 13 00 00 [18:14:06]Write to MH i2c: E2 08 00 16 0F 80 13 00 00 00 00 00 00 A1 [18:14:06]Write i2c OK [18:14:06]MH_I2C_Read... [18:14:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:14:06]Read from MH i2c: E2 [18:14:06]MH_I2C_Read... [18:14:06]Read from MH i2c: E2 62 00 [18:14:06]MH_I2C_Read... [18:14:06]Read from MH i2c: E2 62 00 16 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 17 09 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 66 00 00 00 5E 04 04 00 66 00 00 00 57 04 04 00 67 00 00 00 19 04 04 00 00 00 00 00 90 00 82 [18:14:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 17 09 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 66 00 00 00 5E 04 04 00 66 00 00 00 57 04 04 00 67 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:14:06]wFMCommunicate OK [18:14:06]SAM_PROTO_GetFieldsCounters done [18:14:06]requested_item shift.num is exist - process it [18:14:06]requested_item shift.opened is exist - process it [18:14:06]req_shift_opened [18:14:06]FM_GetShiftState [18:14:06]SAM_PROTO_GetShiftState [18:14:06]wFMCommunicate request_size=4 [18:14:06]MH_SAM_APDU [18:14:06]CAPDU: 80 13 01 00 [18:14:06]Write to MH i2c: E2 08 00 17 0F 80 13 01 00 00 00 00 00 A3 [18:14:06]Write i2c OK [18:14:06]MH_I2C_Read... [18:14:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:14:06]Read from MH i2c: E2 [18:14:06]MH_I2C_Read... [18:14:06]Read from MH i2c: E2 0E 00 [18:14:06]MH_I2C_Read... [18:14:06]Read from MH i2c: E2 0E 00 17 0F 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 0A [18:14:06]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [18:14:06]wFMCommunicate OK [18:14:06]SAM_PROTO_GetShiftState done [18:14:06]FM_GetShiftState done [18:14:06]req_shift_opened done [18:14:06]requested_item shift.open_date is exist - process it [18:14:06]req_shift_open_date [18:14:06]req_shift_open_date done [18:14:06]produce_requested_data done [18:14:06]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67863,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [18:14:06]process_action_free close_receipt [18:14:06]json_value_free [18:14:06]json_value_free done [18:14:06]process_json_proto returns [18:14:06]Send response to host [18:14:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67863,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [18:14:06]free response buf [18:14:06]execute_script done [18:14:06]execute_script returns [18:14:06]free content buf [18:14:06]Sock 9.Close socket [18:14:06]Sock 9.Thread stoped [18:14:10]OFD Sender: No OFD packet to send [18:14:15]OFD Sender: No OFD packet to send [18:14:20]OFD Sender: No OFD packet to send [18:14:25]OFD Sender: No OFD packet to send [18:14:30]OFD Sender: No OFD packet to send [18:14:35]OFD Sender: No OFD packet to send [18:14:40]OFD Sender: No OFD packet to send [18:14:45]OFD Sender: No OFD packet to send [18:14:50]OFD Sender: No OFD packet to send [18:14:55]OFD Sender: No OFD packet to send [18:15:00]OFD Sender: No OFD packet to send [18:15:05]OFD Sender: No OFD packet to send [18:15:10]OFD Sender: No OFD packet to send [18:15:15]OFD Sender: No OFD packet to send [18:15:20]OFD Sender: No OFD packet to send [18:15:25]OFD Sender: No OFD packet to send [18:15:30]OFD Sender: No OFD packet to send [18:15:35]OFD Sender: No OFD packet to send [18:15:40]OFD Sender: No OFD packet to send [18:15:45]OFD Sender: No OFD packet to send [18:15:50]OFD Sender: No OFD packet to send [18:15:55]OFD Sender: No OFD packet to send [18:16:00]OFD Sender: No OFD packet to send [18:16:05]OFD Sender: No OFD packet to send [18:16:10]OFD Sender: No OFD packet to send [18:16:15]OFD Sender: No OFD packet to send [18:16:20]OFD Sender: No OFD packet to send [18:16:25]OFD Sender: No OFD packet to send [18:16:30]OFD Sender: No OFD packet to send [18:16:35]accept exits with 7 [18:16:35]New connection [18:16:35]New thread 3067202916 created [18:16:35]Thread 3067059556 joined [18:16:35]Waiting for new connection... [18:16:35] Sock 7.Parse request [18:16:35]Sock 7.Check first char [18:16:35]Sock 7.First char is OK [18:16:35]request: POST /json_proto HTTP/1.0 [18:16:35]Method: POST [18:16:35]URL: /json_proto [18:16:35]Method is POST - this is cgi request [18:16:35]url: /json_proto [18:16:35]query_string will be loaded in cgi processing [18:16:35]execute_cgi json_proto POST (null) [18:16:35]execute_cgi path=json_proto method=POST [18:16:35]POST find Content-Length [18:16:35]Host: 172.17.41.195:8080 [18:16:35]Content-Length: 803 [18:16:35]Content-Type: application/json [18:16:35] [18:16:35]POST finish read [18:16:35]Found Content-Length = 803 [18:16:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)508126", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.80, "quantity" : 14.980, "sum" : 1000.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.66 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:16:35]execute_script... [18:16:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)508126", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.80, "quantity" : 14.980, "sum" : 1000.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.66 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:16:35]POST & json_proto [18:16:35]process_json_proto [18:16:35]json parsed OK: [18:16:35]protocol is kg_v1.0 [18:16:35]action value=close_receipt [18:16:35]process_action close_receipt [18:16:35]cmd_close_receipt [18:16:35]MH_GetDate [18:16:35]Write to MH i2c: F0 00 00 18 0F 16 [18:16:35]Write i2c OK [18:16:35]MH_I2C_Read... [18:16:35]Read from MH i2c: F0 [18:16:35]MH_I2C_Read... [18:16:35]Read from MH i2c: F0 09 00 [18:16:35]MH_I2C_Read... [18:16:35]Read from MH i2c: F0 09 00 18 0F 00 84 F0 48 66 FC 21 6F 64 31 [18:16:35]GetLastDocTimeStamp 1716056044 [18:16:35]current date 1716056196 [18:16:35]FM_GetShiftState [18:16:35]SAM_PROTO_GetShiftState [18:16:35]wFMCommunicate request_size=4 [18:16:35]MH_SAM_APDU [18:16:35]CAPDU: 80 13 01 00 [18:16:35]Write to MH i2c: E2 08 00 19 0F 80 13 01 00 00 00 00 00 A5 [18:16:35]Write i2c OK [18:16:35]MH_I2C_Read... [18:16:35]OFD Sender: No OFD packet to send [18:16:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:16:35]Read from MH i2c: E2 [18:16:35]MH_I2C_Read... [18:16:35]Read from MH i2c: E2 0E 00 [18:16:35]MH_I2C_Read... [18:16:35]Read from MH i2c: E2 0E 00 19 0F 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 0C [18:16:35]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [18:16:35]wFMCommunicate OK [18:16:35]SAM_PROTO_GetShiftState done [18:16:35]FM_GetShiftState done [18:16:35]opened in 1715991483 [18:16:35]opened+sec_in_day 1716077883 [18:16:35]quantity*price = 100066 [18:16:35]sum+1 = 100067 [18:16:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.66 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 0.00 Безнал.: 1000.66 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 103 18.05.2024 18:16 Смена: 359 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67864 ФПД: 90392716102738 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T181636&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67864&fm=90392716102738&tin=02508201610067®Number=0000000000091845&sum=100066 [18:16:36]StoreToDocumentArchive [18:16:36]shift 359 fd 67864 [18:16:36]save to /storage/0359/doc_00067864 [18:16:36]save last doc name /storage/0359/doc_00067864 to /storage/kkm_last_doc_name [18:16:36]save OK [18:16:36]Clear old archive folders... [18:16:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:16:36]tlvbuf is 009E1DB0 [18:16:36]SAM_PROTO_ClearQueue [18:16:36]wFMCommunicate request_size=4 [18:16:36]MH_SAM_APDU [18:16:36]CAPDU: 80 09 00 00 [18:16:36]Write to MH i2c: E2 08 00 26 0F 80 09 00 00 00 00 00 00 A7 [18:16:36]Write i2c OK [18:16:36]MH_I2C_Read... [18:16:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:16:36]Read from MH i2c: E2 [18:16:36]MH_I2C_Read... [18:16:36]Read from MH i2c: E2 03 00 [18:16:36]MH_I2C_Read... [18:16:36]Read from MH i2c: E2 03 00 26 0F 00 90 00 A9 [18:16:36]RAPDU: 90 00 [18:16:36]wFMCommunicate OK [18:16:36]SAM_PROTO_ClearQueue done [18:16:36]KKMCreateOFDPacket [18:16:36]OFDProtocolAddRootSTLVToBuf [18:16:36]FM_MakeSignedData [18:16:36]FM_MakeSignedData [18:16:36]SAM_PROTO_SignData [18:16:36]wFMCommunicate request_size=4 [18:16:36]MH_SAM_APDU [18:16:36]CAPDU: 80 0D 01 02 [18:16:36]Write to MH i2c: E2 08 00 27 0F 80 0D 01 02 00 00 00 00 AF [18:16:36]Write i2c OK [18:16:36]MH_I2C_Read... [18:16:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:16:36]Read from MH i2c: E2 [18:16:36]MH_I2C_Read... [18:16:36]Read from MH i2c: E2 03 00 [18:16:36]MH_I2C_Read... [18:16:36]Read from MH i2c: E2 03 00 27 0F 00 90 00 AA [18:16:36]RAPDU: 90 00 [18:16:36]wFMCommunicate OK [18:16:36]wFMCommunicate request_size=255 [18:16:36]MH_SAM_APDU [18:16:36]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 84 3A 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E2 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E2 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 84 F0 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 18 09 01 00 35 04 06 00 52 [18:16:36]Write to MH i2c: E2 02 01 28 0F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 84 3A 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E2 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E2 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 84 F0 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 18 09 01 00 35 04 06 00 52 00 00 71 [18:16:36]Write i2c OK [18:16:36]MH_I2C_Read... [18:16:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:16:36]Read from MH i2c: E2 [18:16:36]MH_I2C_Read... [18:16:36]Read from MH i2c: E2 03 00 [18:16:36]MH_I2C_Read... [18:16:36]Read from MH i2c: E2 03 00 28 0F 00 90 00 AB [18:16:36]RAPDU: 90 00 [18:16:36]wFMCommunicate OK [18:16:36]wFMCommunicate request_size=10 [18:16:36]MH_SAM_APDU [18:16:36]CAPDU: 80 0D 02 02 05 36 31 BB CC 52 [18:16:36]Write to MH i2c: E2 0D 00 29 0F 80 0D 02 02 05 00 36 31 BB CC 52 00 00 FC [18:16:36]Write i2c OK [18:16:36]MH_I2C_Read... [18:16:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:16:37]Read from MH i2c: E2 [18:16:37]MH_I2C_Read... [18:16:37]Read from MH i2c: E2 03 00 [18:16:37]MH_I2C_Read... [18:16:37]Read from MH i2c: E2 03 00 29 0F 00 90 00 AC [18:16:37]RAPDU: 90 00 [18:16:37]wFMCommunicate OK [18:16:37]wFMCommunicate request_size=4 [18:16:37]MH_SAM_APDU [18:16:37]CAPDU: 80 0D 03 02 [18:16:37]Write to MH i2c: E2 08 00 2A 0F 80 0D 03 02 00 00 00 00 B4 [18:16:37]Write i2c OK [18:16:37]MH_I2C_Read... [18:16:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:16:37]Read from MH i2c: E2 [18:16:37]MH_I2C_Read... [18:16:37]Read from MH i2c: E2 0B 00 [18:16:37]MH_I2C_Read... [18:16:37]Read from MH i2c: E2 0B 00 2A 0F 00 47 A4 4E DF B1 2F 5E 0B 90 00 16 [18:16:37]RAPDU: 47 A4 4E DF B1 2F 5E 0B 90 00 [18:16:37]wFMCommunicate OK [18:16:37]SAM_PROTO_SignData done [18:16:37]FM_MakeSignedData done [18:16:37]CreateOFDProtocolMessage [18:16:37]wFMCommunicate request_size=4 [18:16:37]MH_SAM_APDU [18:16:37]CAPDU: 80 11 00 00 [18:16:37]Write to MH i2c: E2 08 00 2B 0F 80 11 00 00 00 00 00 00 B4 [18:16:37]Write i2c OK [18:16:37]MH_I2C_Read... [18:16:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:16:37]Read from MH i2c: E2 [18:16:37]MH_I2C_Read... [18:16:37]Read from MH i2c: E2 17 00 [18:16:37]MH_I2C_Read... [18:16:37]Read from MH i2c: E2 17 00 2B 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 0A [18:16:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [18:16:37]wFMCommunicate OK [18:16:37]CreateOFDProtocolMessage done [18:16:37]OFDSenderStorePacket 67864 [18:16:37]StoreOFDPacket docnum=67864 [18:16:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 F3 4A 07 01 F9 64 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 84 3A 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E2 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E2 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 84 F0 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 18 09 01 00 35 04 06 00 52 36 31 BB CC 52 47 A4 4E DF B1 2F 5E 0B [18:16:37]CheckFolder [18:16:37]dirname=/storage/ofd_packets [18:16:37]CheckFolder done [18:16:37]ProducePacketName [18:16:37]name=ofd_packets/00067864 [18:16:37]NVStorageSaveData ofd_packets/00067864 [18:16:37]File name is /storage/ofd_packets/00067864 [18:16:37]Write 301 bytes [18:16:37]NVStorageSaveData done [18:16:37]OFDSenderStorePacket done [18:16:37]KKMCreateOFDPacket done [18:16:37]NVStorageSaveData kkm_last_timestamp [18:16:37]File name is /storage/kkm_last_timestamp [18:16:37]Write 4 bytes [18:16:37]NVStorageSaveData done [18:16:37]ExternCall_PrintAddStr [18:16:37]wPrintStart [18:16:37]Write to MH i2c: 01 00 00 2C 0F 3B [18:16:37]Write i2c OK [18:16:37]MH_I2C_Read... [18:16:37]Read from MH i2c: 01 [18:16:37]MH_I2C_Read... [18:16:37]Read from MH i2c: 01 07 00 [18:16:37]MH_I2C_Read... [18:16:37]Read from MH i2c: 01 07 00 2C 0F 00 00 00 00 00 FF 0F 50 [18:16:37]RasterBufferAndPrint [18:16:37]line Счет N : (1)508126 [18:16:37]line ИНН: 02508201610067 [18:16:37]line Контрольно-Кассовый Чек [18:16:37]line ПРОДАЖА [18:16:37]line ТРК (МРК, ГНК) : 43 [18:16:37]line Товар: 2710124130 [18:16:37]line Аи-92-К-5 [18:16:37]line 14.980 * 66.80 [18:16:37]line = 1000.66 [18:16:37]line НДС 12% НСП 1% [18:16:37]line > о реализуемом товаре [18:16:37]line ИТОГО: 1000.66 [18:16:37]line НСП 1% : 8.85 [18:16:37]line НДС 12% : 106.26 [18:16:37]line Наличными: 0.00 [18:16:37]line Безнал.: 1000.66 [18:16:37]line Место: АЗС № 91 "Партнер Нефть" [18:16:37]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [18:16:37]line СНО: Общий режим [18:16:37]line Чек 103 18.05.2024 18:16 [18:16:37]line Смена: 359 ФФД: 1.0 [18:16:37]line ЗНМ: 0300000119 [18:16:37]line РНМ: 0000000000091845 [18:16:37]line Версия ККМ: 001 [18:16:37]line Платежная система: O! деньги [18:16:37]line ФМ: 0000000000871829 [18:16:37]line ФД: 67864 [18:16:37]line ФПД: 90392716102738 [18:16:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T181636&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67864&fm=90392716102738&tin=02508201610067®Number=0000000000091845&sum=100066 [18:16:37]OFD Sender: Processing packet 67864 [packets to send 35, broken 34] [18:16:37]ProducePacketName [18:16:37]name=ofd_packets/00067864 [18:16:37]OFD Sender: To server: pG, [18:16:37]CommunicateWithHost lk.salyk.kg:30040 [18:16:37]ConnectInit lk.salyk.kg [18:16:37]written 0, free lines is 4095 [18:16:37]Connected sock=10 [18:16:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 F3 4A 07 01 F9 64 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 84 3A 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E2 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E2 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 84 F0 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 18 09 01 00 35 04 06 00 52 36 31 BB CC 52 47 A4 4E DF B1 2F 5E 0B [18:16:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 C6 A8 47 00 3F 81 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 18 09 01 00 F4 03 04 00 59 98 48 66 B6 04 01 00 00 A2 75 33 62 2D 9D D0 B7 [18:16:37]CommunicateWithHost err = 0 [18:16:37]CheckOFDResponse [18:16:37]1017 (14) - 77093643461234 [18:16:37]1041 (16) - 0000000000871829 [18:16:37]1040 (4) - 67864 [18:16:37]1012 (4) - 18.05.2024 12:00 [18:16:37]1206 (1) - 0 [18:16:37]OFD Sender: Remove packet 67864 [18:16:37]ProducePacketName [18:16:37]name=ofd_packets/00067864 [18:16:37]NVStorageDeleteData [18:16:37]Write to MH i2c: 01 00 00 55 0F 64 [18:16:37]Write i2c OK [18:16:37]MH_I2C_Read... [18:16:37]Read from MH i2c: 01 [18:16:37]MH_I2C_Read... [18:16:37]Read from MH i2c: 01 07 00 [18:16:37]MH_I2C_Read... [18:16:37]Read from MH i2c: 01 07 00 55 0F 00 00 00 00 00 D8 0C 4F [18:16:37]RasterBufferAndPrint [18:16:37]line [18:16:37]line [18:16:37]line [18:16:37]line [18:16:37]line [18:16:37]written 0, free lines is 3294 [18:16:37]MH_Cut [18:16:37]Write to MH i2c: D1 01 00 5C 0F 01 3D [18:16:37]Write i2c OK [18:16:37]MH_I2C_Read... [18:16:37]Read from MH i2c: D1 [18:16:37]MH_I2C_Read... [18:16:37]Read from MH i2c: D1 01 00 [18:16:37]MH_I2C_Read... [18:16:37]Read from MH i2c: D1 01 00 5C 0F 00 3C [18:16:37]Write to MH i2c: 01 00 00 5D 0F 6C [18:16:37]Write i2c OK [18:16:37]MH_I2C_Read... [18:16:38]OFD Sender: No OFD packet to send [18:16:38]*** Cut start [18:16:38]*** Purtial cut [18:16:38]*** CUTSNS_PIN = 0 [18:16:38]*** Stage 1: CUTSNS_PIN = 1 [18:16:40]Read from MH i2c: 01 [18:16:40]MH_I2C_Read... [18:16:40]*** Stop cut motor [18:16:40]*** Cut end [18:16:40]Read from MH i2c: 01 07 00 [18:16:40]MH_I2C_Read... [18:16:40]Read from MH i2c: 01 07 00 5D 0F 00 00 00 00 00 FF 0F 81 [18:16:40]process_action close_receipt done [18:16:40]requested_data is exist [18:16:40]produce_requested_data [18:16:40]requested_item fm.sn is exist - process it [18:16:40]wFMCommunicate request_size=4 [18:16:40]MH_SAM_APDU [18:16:40]CAPDU: 80 11 00 00 [18:16:40]Write to MH i2c: E2 08 00 5E 0F 80 11 00 00 00 00 00 00 E7 [18:16:40]Write i2c OK [18:16:40]MH_I2C_Read... [18:16:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:16:40]Read from MH i2c: E2 [18:16:40]MH_I2C_Read... [18:16:40]Read from MH i2c: E2 17 00 [18:16:40]MH_I2C_Read... [18:16:40]Read from MH i2c: E2 17 00 5E 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 3D [18:16:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [18:16:40]wFMCommunicate OK [18:16:40]requested_item fd.num is exist - process it [18:16:40]SAM_PROTO_GetFieldsCounters [18:16:40]wFMCommunicate request_size=4 [18:16:40]MH_SAM_APDU [18:16:40]CAPDU: 80 13 00 00 [18:16:40]Write to MH i2c: E2 08 00 5F 0F 80 13 00 00 00 00 00 00 EA [18:16:40]Write i2c OK [18:16:40]MH_I2C_Read... [18:16:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:16:40]Read from MH i2c: E2 [18:16:40]MH_I2C_Read... [18:16:40]Read from MH i2c: E2 62 00 [18:16:40]MH_I2C_Read... [18:16:40]Read from MH i2c: E2 62 00 5F 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 18 09 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 67 00 00 00 5E 04 04 00 67 00 00 00 57 04 04 00 68 00 00 00 19 04 04 00 00 00 00 00 90 00 CF [18:16:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 18 09 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 67 00 00 00 5E 04 04 00 67 00 00 00 57 04 04 00 68 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:16:40]wFMCommunicate OK [18:16:40]SAM_PROTO_GetFieldsCounters done [18:16:40]requested_item shift.num is exist - process it [18:16:40]requested_item shift.opened is exist - process it [18:16:40]req_shift_opened [18:16:40]FM_GetShiftState [18:16:40]SAM_PROTO_GetShiftState [18:16:40]wFMCommunicate request_size=4 [18:16:40]MH_SAM_APDU [18:16:40]CAPDU: 80 13 01 00 [18:16:40]Write to MH i2c: E2 08 00 60 0F 80 13 01 00 00 00 00 00 EC [18:16:40]Write i2c OK [18:16:40]MH_I2C_Read... [18:16:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:16:40]Read from MH i2c: E2 [18:16:40]MH_I2C_Read... [18:16:40]Read from MH i2c: E2 0E 00 [18:16:40]MH_I2C_Read... [18:16:40]Read from MH i2c: E2 0E 00 60 0F 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 53 [18:16:40]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [18:16:40]wFMCommunicate OK [18:16:40]SAM_PROTO_GetShiftState done [18:16:40]FM_GetShiftState done [18:16:40]req_shift_opened done [18:16:40]requested_item shift.open_date is exist - process it [18:16:40]req_shift_open_date [18:16:40]req_shift_open_date done [18:16:40]produce_requested_data done [18:16:40]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67864,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [18:16:40]process_action_free close_receipt [18:16:40]json_value_free [18:16:40]json_value_free done [18:16:40]process_json_proto returns [18:16:40]Send response to host [18:16:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67864,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [18:16:40]free response buf [18:16:40]execute_script done [18:16:40]execute_script returns [18:16:40]free content buf [18:16:40]Sock 7.Close socket [18:16:40]Sock 7.Thread stoped [18:16:43]OFD Sender: No OFD packet to send [18:16:48]OFD Sender: No OFD packet to send [18:16:53]OFD Sender: No OFD packet to send [18:16:58]OFD Sender: No OFD packet to send [18:17:03]OFD Sender: No OFD packet to send [18:17:08]OFD Sender: No OFD packet to send [18:17:13]OFD Sender: No OFD packet to send [18:17:18]OFD Sender: No OFD packet to send [18:17:23]OFD Sender: No OFD packet to send [18:17:28]OFD Sender: No OFD packet to send [18:17:33]OFD Sender: No OFD packet to send [18:17:38]OFD Sender: No OFD packet to send [18:17:43]OFD Sender: No OFD packet to send [18:17:48]OFD Sender: No OFD packet to send [18:17:53]OFD Sender: No OFD packet to send [18:17:53]accept exits with 9 [18:17:53]New connection [18:17:53]New thread 3067059556 created [18:17:53]Thread 3067202916 joined [18:17:53]Waiting for new connection... [18:17:53] Sock 9.Parse request [18:17:53]Sock 9.Check first char [18:17:53]Sock 9.First char is OK [18:17:53]request: POST /json_proto HTTP/1.0 [18:17:53]Method: POST [18:17:53]URL: /json_proto [18:17:53]Method is POST - this is cgi request [18:17:53]url: /json_proto [18:17:53]query_string will be loaded in cgi processing [18:17:53]execute_cgi json_proto POST (null) [18:17:53]execute_cgi path=json_proto method=POST [18:17:53]POST find Content-Length [18:17:53]Host: 172.17.41.195:8080 [18:17:53]Content-Length: 1174 [18:17:53]Content-Type: application/json [18:17:53] [18:17:53]POST finish read [18:17:53]Found Content-Length = 1174 [18:17:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0440\u0441\u0442\u0430\u043D\u0431\u0435\u043A\u043E\u0432 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)508127\u000A18.05.2024 18:00\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 13\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 30.000 x 66.80\u000A\u0418\u0422\u041E\u0413: 2004.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30015061\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:17:53]execute_script... [18:17:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0440\u0441\u0442\u0430\u043D\u0431\u0435\u043A\u043E\u0432 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)508127\u000A18.05.2024 18:00\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 13\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 30.000 x 66.80\u000A\u0418\u0422\u041E\u0413: 2004.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30015061\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:17:53]POST & json_proto [18:17:53]process_json_proto [18:17:53]json parsed OK: [18:17:53]protocol is kg_v1.0 [18:17:53]action value=print_text [18:17:53]process_action print_text [18:17:53]cmd_print_text [18:17:53]ExternCall_PrintAddStr [18:17:53]wPrintStart [18:17:53]Write to MH i2c: 01 00 00 61 0F 70 [18:17:53]Write i2c OK [18:17:53]MH_I2C_Read... [18:17:53]Read from MH i2c: 01 [18:17:53]MH_I2C_Read... [18:17:53]Read from MH i2c: 01 07 00 [18:17:53]MH_I2C_Read... [18:17:53]Read from MH i2c: 01 07 00 61 0F 00 00 00 00 00 FF 0F 85 [18:17:53]RasterBufferAndPrint [18:17:53]line *****ТОВАРНЫЙ ЧЕК***** [18:17:53]line АЗС-91 [18:17:53]line Партнер нефть [18:17:53]line 02508201610067 [18:17:53]line Кассир : Арстанбеков Н. [18:17:53]line Счет N : (1)508127 [18:17:53]line 18.05.2024 18:00 [18:17:53]line ПРОДАЖА [18:17:53]line ТРК (МРК, ГНК): 13 [18:17:53]line Вид ГСМ : 2710124130 [18:17:53]line Аи-92-К-5 [18:17:53]line 30.000 x 66.80 [18:17:53]line ИТОГ: 2004.00 [18:17:53]line Тип оплаты: Талоны: ТК ГПНА Online [18:17:53]line 30015061 [18:17:53]line ______________________ [18:17:53]line (подпись) [18:17:53]written 0, free lines is 4095 [18:17:53]Write to MH i2c: 01 00 00 75 0F 84 [18:17:53]Write i2c OK [18:17:53]MH_I2C_Read... [18:17:53]Read from MH i2c: 01 [18:17:53]MH_I2C_Read... [18:17:53]Read from MH i2c: 01 07 00 [18:17:53]MH_I2C_Read... [18:17:53]Read from MH i2c: 01 07 00 75 0F 00 00 00 00 00 10 0E A9 [18:17:53]RasterBufferAndPrint [18:17:53]line [18:17:53]line [18:17:53]line [18:17:53]line [18:17:53]line [18:17:53]written 0, free lines is 3602 [18:17:53]MH_Cut [18:17:53]Write to MH i2c: D1 01 00 7C 0F 01 5D [18:17:53]Write i2c OK [18:17:53]MH_I2C_Read... [18:17:53]Read from MH i2c: D1 [18:17:53]MH_I2C_Read... [18:17:53]Read from MH i2c: D1 01 00 [18:17:53]MH_I2C_Read... [18:17:53]Read from MH i2c: D1 01 00 7C 0F 00 5C [18:17:53]Write to MH i2c: 01 00 00 7D 0F 8C [18:17:53]Write i2c OK [18:17:53]MH_I2C_Read... [18:17:54]*** Cut start [18:17:54]*** Purtial cut [18:17:54]*** Stage 1: CUTSNS_PIN = 1 [18:17:54]Read from MH i2c: 01 [18:17:54]MH_I2C_Read... [18:17:54]Read from MH i2c: 01 07 00 [18:17:54]MH_I2C_Read... [18:17:54]*** Stop cut motor [18:17:54]*** Cut end [18:17:54]Read from MH i2c: 01 07 00 7D 0F 00 00 00 00 00 FF 0F A1 [18:17:54]process_action print_text done [18:17:54]requested_data is exist [18:17:54]produce_requested_data [18:17:54]requested_item fm.sn is exist - process it [18:17:54]wFMCommunicate request_size=4 [18:17:54]MH_SAM_APDU [18:17:54]CAPDU: 80 11 00 00 [18:17:54]Write to MH i2c: E2 08 00 7E 0F 80 11 00 00 00 00 00 00 07 [18:17:54]Write i2c OK [18:17:54]MH_I2C_Read... [18:17:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:17:54]Read from MH i2c: E2 [18:17:54]MH_I2C_Read... [18:17:54]Read from MH i2c: E2 17 00 [18:17:54]MH_I2C_Read... [18:17:54]Read from MH i2c: E2 17 00 7E 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 5D [18:17:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [18:17:54]wFMCommunicate OK [18:17:54]requested_item fd.num is exist - process it [18:17:54]SAM_PROTO_GetFieldsCounters [18:17:54]wFMCommunicate request_size=4 [18:17:54]MH_SAM_APDU [18:17:54]CAPDU: 80 13 00 00 [18:17:54]Write to MH i2c: E2 08 00 7F 0F 80 13 00 00 00 00 00 00 0A [18:17:54]Write i2c OK [18:17:54]MH_I2C_Read... [18:17:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:17:54]Read from MH i2c: E2 [18:17:54]MH_I2C_Read... [18:17:54]Read from MH i2c: E2 62 00 [18:17:54]MH_I2C_Read... [18:17:54]Read from MH i2c: E2 62 00 7F 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 18 09 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 67 00 00 00 5E 04 04 00 67 00 00 00 57 04 04 00 68 00 00 00 19 04 04 00 00 00 00 00 90 00 EF [18:17:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 18 09 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 67 00 00 00 5E 04 04 00 67 00 00 00 57 04 04 00 68 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:17:54]wFMCommunicate OK [18:17:54]SAM_PROTO_GetFieldsCounters done [18:17:54]requested_item shift.num is exist - process it [18:17:54]requested_item shift.opened is exist - process it [18:17:54]req_shift_opened [18:17:54]FM_GetShiftState [18:17:54]SAM_PROTO_GetShiftState [18:17:54]wFMCommunicate request_size=4 [18:17:54]MH_SAM_APDU [18:17:54]CAPDU: 80 13 01 00 [18:17:54]Write to MH i2c: E2 08 00 80 0F 80 13 01 00 00 00 00 00 0C [18:17:54]Write i2c OK [18:17:54]MH_I2C_Read... [18:17:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:17:54]Read from MH i2c: E2 [18:17:54]MH_I2C_Read... [18:17:54]Read from MH i2c: E2 0E 00 [18:17:54]MH_I2C_Read... [18:17:54]Read from MH i2c: E2 0E 00 80 0F 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 73 [18:17:54]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [18:17:54]wFMCommunicate OK [18:17:54]SAM_PROTO_GetShiftState done [18:17:54]FM_GetShiftState done [18:17:54]req_shift_opened done [18:17:54]requested_item shift.open_date is exist - process it [18:17:54]req_shift_open_date [18:17:54]req_shift_open_date done [18:17:54]produce_requested_data done [18:17:54]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67864,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [18:17:54]process_action_free print_text [18:17:54]json_value_free [18:17:54]json_value_free done [18:17:54]process_json_proto returns [18:17:54]Send response to host [18:17:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67864,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [18:17:54]free response buf [18:17:54]execute_script done [18:17:54]execute_script returns [18:17:54]free content buf [18:17:54]Sock 9.Close socket [18:17:54]Sock 9.Thread stoped [18:17:58]OFD Sender: No OFD packet to send [18:18:03]OFD Sender: No OFD packet to send [18:18:08]OFD Sender: No OFD packet to send [18:18:13]OFD Sender: No OFD packet to send [18:18:18]OFD Sender: No OFD packet to send [18:18:23]OFD Sender: No OFD packet to send [18:18:28]OFD Sender: No OFD packet to send [18:18:33]OFD Sender: No OFD packet to send [18:18:38]OFD Sender: No OFD packet to send [18:18:43]OFD Sender: No OFD packet to send [18:18:48]OFD Sender: No OFD packet to send [18:18:53]OFD Sender: No OFD packet to send [18:18:58]OFD Sender: No OFD packet to send [18:19:03]OFD Sender: No OFD packet to send [18:19:08]OFD Sender: No OFD packet to send [18:19:13]OFD Sender: No OFD packet to send [18:19:18]OFD Sender: No OFD packet to send [18:19:18]accept exits with 7 [18:19:18]New connection [18:19:18]New thread 3067202916 created [18:19:18]Thread 3067059556 joined [18:19:18]Waiting for new connection... [18:19:18] Sock 7.Parse request [18:19:18]Sock 7.Check first char [18:19:18]Sock 7.First char is OK [18:19:18]request: POST /json_proto HTTP/1.0 [18:19:18]Method: POST [18:19:18]URL: /json_proto [18:19:18]Method is POST - this is cgi request [18:19:18]url: /json_proto [18:19:18]query_string will be loaded in cgi processing [18:19:18]execute_cgi json_proto POST (null) [18:19:18]execute_cgi path=json_proto method=POST [18:19:18]POST find Content-Length [18:19:18]Host: 172.17.41.195:8080 [18:19:18]Content-Length: 675 [18:19:18]Content-Type: application/json [18:19:18] [18:19:18]POST finish read [18:19:18]Found Content-Length = 675 [18:19:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)508128", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 12.050, "sum" : 900.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:19:18]execute_script... [18:19:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)508128", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 12.050, "sum" : 900.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:19:18]POST & json_proto [18:19:18]process_json_proto [18:19:18]json parsed OK: [18:19:18]protocol is kg_v1.0 [18:19:18]action value=close_receipt [18:19:18]process_action close_receipt [18:19:18]cmd_close_receipt [18:19:18]MH_GetDate [18:19:18]Write to MH i2c: F0 00 00 81 0F 7F [18:19:18]Write i2c OK [18:19:18]MH_I2C_Read... [18:19:18]Read from MH i2c: F0 [18:19:18]MH_I2C_Read... [18:19:18]Read from MH i2c: F0 09 00 [18:19:18]MH_I2C_Read... [18:19:18]Read from MH i2c: F0 09 00 81 0F 00 28 F1 48 66 FC 21 6F 64 3F [18:19:18]GetLastDocTimeStamp 1716056196 [18:19:18]current date 1716056360 [18:19:18]FM_GetShiftState [18:19:18]SAM_PROTO_GetShiftState [18:19:18]wFMCommunicate request_size=4 [18:19:18]MH_SAM_APDU [18:19:18]CAPDU: 80 13 01 00 [18:19:18]Write to MH i2c: E2 08 00 82 0F 80 13 01 00 00 00 00 00 0E [18:19:18]Write i2c OK [18:19:18]MH_I2C_Read... [18:19:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:19:18]Read from MH i2c: E2 [18:19:18]MH_I2C_Read... [18:19:18]Read from MH i2c: E2 0E 00 [18:19:18]MH_I2C_Read... [18:19:18]Read from MH i2c: E2 0E 00 82 0F 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 75 [18:19:18]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [18:19:18]wFMCommunicate OK [18:19:18]SAM_PROTO_GetShiftState done [18:19:18]FM_GetShiftState done [18:19:18]opened in 1715991483 [18:19:18]opened+sec_in_day 1716077883 [18:19:18]quantity*price = 90013 [18:19:18]sum+1 = 90015 [18:19:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.14 ИТОГО: 900.00 Внесено: 900.00 СДАЧА: 0.00 НСП 1% : 7.97 НДС 12% : 95.59 Наличными: 900.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 104 18.05.2024 18:19 Смена: 359 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67865 ФПД: 222199628466187 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T181920&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67865&fm=222199628466187&tin=02508201610067®Number=0000000000091845&sum=90000 [18:19:19]StoreToDocumentArchive [18:19:19]shift 359 fd 67865 [18:19:19]save to /storage/0359/doc_00067865 [18:19:19]save last doc name /storage/0359/doc_00067865 to /storage/kkm_last_doc_name [18:19:19]save OK [18:19:19]Clear old archive folders... [18:19:19]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:19:19]tlvbuf is B6EE5380 [18:19:19]SAM_PROTO_ClearQueue [18:19:19]wFMCommunicate request_size=4 [18:19:19]MH_SAM_APDU [18:19:19]CAPDU: 80 09 00 00 [18:19:19]Write to MH i2c: E2 08 00 8F 0F 80 09 00 00 00 00 00 00 10 [18:19:19]Write i2c OK [18:19:19]MH_I2C_Read... [18:19:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:19:19]Read from MH i2c: E2 [18:19:19]MH_I2C_Read... [18:19:19]Read from MH i2c: E2 03 00 [18:19:19]MH_I2C_Read... [18:19:19]Read from MH i2c: E2 03 00 8F 0F 00 90 00 12 [18:19:19]RAPDU: 90 00 [18:19:19]wFMCommunicate OK [18:19:19]SAM_PROTO_ClearQueue done [18:19:19]KKMCreateOFDPacket [18:19:19]OFDProtocolAddRootSTLVToBuf [18:19:19]FM_MakeSignedData [18:19:19]FM_MakeSignedData [18:19:19]SAM_PROTO_SignData [18:19:19]wFMCommunicate request_size=4 [18:19:19]MH_SAM_APDU [18:19:19]CAPDU: 80 0D 01 02 [18:19:19]Write to MH i2c: E2 08 00 90 0F 80 0D 01 02 00 00 00 00 18 [18:19:19]Write i2c OK [18:19:19]MH_I2C_Read... [18:19:19]Read from MH i2c: E2 [18:19:19]MH_I2C_Read... [18:19:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:19:19]Read from MH i2c: E2 03 00 [18:19:19]MH_I2C_Read... [18:19:19]Read from MH i2c: E2 03 00 90 0F 00 90 00 13 [18:19:19]RAPDU: 90 00 [18:19:19]wFMCommunicate OK [18:19:19]wFMCommunicate request_size=255 [18:19:19]MH_SAM_APDU [18:19:19]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 12 2F 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 9E 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 57 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 28 F1 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 19 09 01 00 35 04 06 00 CA 16 E1 EC [18:19:19]Write to MH i2c: E2 02 01 91 0F 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 12 2F 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 9E 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 57 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 28 F1 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 19 09 01 00 35 04 06 00 CA 16 E1 EC 00 00 E7 [18:19:19]Write i2c OK [18:19:19]MH_I2C_Read... [18:19:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:19:20]Read from MH i2c: E2 [18:19:20]MH_I2C_Read... [18:19:20]Read from MH i2c: E2 03 00 [18:19:20]MH_I2C_Read... [18:19:20]Read from MH i2c: E2 03 00 91 0F 00 90 00 14 [18:19:20]RAPDU: 90 00 [18:19:20]wFMCommunicate OK [18:19:20]wFMCommunicate request_size=7 [18:19:20]MH_SAM_APDU [18:19:20]CAPDU: 80 0D 02 02 02 88 0B [18:19:20]Write to MH i2c: E2 0A 00 92 0F 80 0D 02 02 02 00 88 0B 00 00 B2 [18:19:20]Write i2c OK [18:19:20]MH_I2C_Read... [18:19:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:19:20]Read from MH i2c: E2 [18:19:20]MH_I2C_Read... [18:19:20]Read from MH i2c: E2 03 00 [18:19:20]MH_I2C_Read... [18:19:20]Read from MH i2c: E2 03 00 92 0F 00 90 00 15 [18:19:20]RAPDU: 90 00 [18:19:20]wFMCommunicate OK [18:19:20]wFMCommunicate request_size=4 [18:19:20]MH_SAM_APDU [18:19:20]CAPDU: 80 0D 03 02 [18:19:20]Write to MH i2c: E2 08 00 93 0F 80 0D 03 02 00 00 00 00 1D [18:19:20]Write i2c OK [18:19:20]MH_I2C_Read... [18:19:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:19:20]Read from MH i2c: E2 [18:19:20]MH_I2C_Read... [18:19:20]Read from MH i2c: E2 0B 00 [18:19:20]MH_I2C_Read... [18:19:20]Read from MH i2c: E2 0B 00 93 0F 00 8A 98 D0 51 EB 7F C7 40 90 00 D2 [18:19:20]RAPDU: 8A 98 D0 51 EB 7F C7 40 90 00 [18:19:20]wFMCommunicate OK [18:19:20]SAM_PROTO_SignData done [18:19:20]FM_MakeSignedData done [18:19:20]CreateOFDProtocolMessage [18:19:20]wFMCommunicate request_size=4 [18:19:20]MH_SAM_APDU [18:19:20]CAPDU: 80 11 00 00 [18:19:20]Write to MH i2c: E2 08 00 94 0F 80 11 00 00 00 00 00 00 1D [18:19:20]Write i2c OK [18:19:20]MH_I2C_Read... [18:19:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:19:20]Read from MH i2c: E2 [18:19:20]MH_I2C_Read... [18:19:20]Read from MH i2c: E2 17 00 [18:19:20]MH_I2C_Read... [18:19:20]Read from MH i2c: E2 17 00 94 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 73 [18:19:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [18:19:20]wFMCommunicate OK [18:19:20]CreateOFDProtocolMessage done [18:19:20]OFDSenderStorePacket 67865 [18:19:20]StoreOFDPacket docnum=67865 [18:19:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 7D 80 04 01 66 57 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 12 2F 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 9E 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 57 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 28 F1 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 19 09 01 00 35 04 06 00 CA 16 E1 EC 88 0B 8A 98 D0 51 EB 7F C7 40 [18:19:20]CheckFolder [18:19:20]dirname=/storage/ofd_packets [18:19:20]CheckFolder done [18:19:20]ProducePacketName [18:19:20]name=ofd_packets/00067865 [18:19:20]NVStorageSaveData ofd_packets/00067865 [18:19:20]File name is /storage/ofd_packets/00067865 [18:19:20]Write 298 bytes [18:19:20]NVStorageSaveData done [18:19:20]OFDSenderStorePacket done [18:19:20]KKMCreateOFDPacket done [18:19:20]NVStorageSaveData kkm_last_timestamp [18:19:20]File name is /storage/kkm_last_timestamp [18:19:20]Write 4 bytes [18:19:20]NVStorageSaveData done [18:19:20]ExternCall_PrintAddStr [18:19:20]wPrintStart [18:19:20]Write to MH i2c: 01 00 00 95 0F A4 [18:19:20]Write i2c OK [18:19:20]MH_I2C_Read... [18:19:20]Read from MH i2c: 01 [18:19:20]MH_I2C_Read... [18:19:20]Read from MH i2c: 01 07 00 [18:19:20]MH_I2C_Read... [18:19:20]Read from MH i2c: 01 07 00 95 0F 00 00 00 00 00 FF 0F B9 [18:19:20]RasterBufferAndPrint [18:19:20]line Счет N : (1)508128 [18:19:20]line ИНН: 02508201610067 [18:19:20]line Контрольно-Кассовый Чек [18:19:20]line ПРОДАЖА [18:19:20]line ТРК (МРК, ГНК) : 31 [18:19:20]line Товар: 2710194210 [18:19:20]line ДТ-К-5 [18:19:20]line 12.050 * 74.70 [18:19:20]line = 900.14 [18:19:20]line НДС 12% НСП 1% [18:19:20]line > о реализуемом товаре [18:19:20]line ОКРУГЛЕНИЕ: -0.14 [18:19:20]line ИТОГО: 900.00 [18:19:20]line Внесено: 900.00 [18:19:20]line СДАЧА: 0.00 [18:19:20]line НСП 1% : 7.97 [18:19:20]line НДС 12% : 95.59 [18:19:20]line Наличными: 900.00 [18:19:20]line Безнал.: 0.00 [18:19:20]line Место: АЗС № 91 "Партнер Нефть" [18:19:20]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [18:19:20]line СНО: Общий режим [18:19:20]line Чек 104 18.05.2024 18:19 [18:19:20]line Смена: 359 ФФД: 1.0 [18:19:20]line ЗНМ: 0300000119 [18:19:20]line РНМ: 0000000000091845 [18:19:20]line Версия ККМ: 001 [18:19:20]line ФМ: 0000000000871829 [18:19:20]line ФД: 67865 [18:19:20]line ФПД: 222199628466187 [18:19:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T181920&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67865&fm=222199628466187&tin=02508201610067®Number=0000000000091845&sum=90000 [18:19:20]OFD Sender: Processing packet 67865 [packets to send 35, broken 34] [18:19:20]ProducePacketName [18:19:20]name=ofd_packets/00067865 [18:19:20]OFD Sender: To server: pG, [18:19:20]CommunicateWithHost lk.salyk.kg:30040 [18:19:20]ConnectInit lk.salyk.kg [18:19:20]written 0, free lines is 4095 [18:19:20]Connected sock=10 [18:19:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 7D 80 04 01 66 57 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 12 2F 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 9E 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 57 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 28 F1 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 19 09 01 00 35 04 06 00 CA 16 E1 EC 88 0B 8A 98 D0 51 EB 7F C7 40 [18:19:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 08 FC 47 00 AF 49 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 19 09 01 00 F4 03 04 00 FC 98 48 66 B6 04 01 00 00 A0 22 59 3D 86 44 FB 2E [18:19:20]CommunicateWithHost err = 0 [18:19:20]CheckOFDResponse [18:19:20]1017 (14) - 77093643461234 [18:19:20]1041 (16) - 0000000000871829 [18:19:20]1040 (4) - 67865 [18:19:20]1012 (4) - 18.05.2024 12:03 [18:19:20]1206 (1) - 0 [18:19:20]OFD Sender: Remove packet 67865 [18:19:20]ProducePacketName [18:19:20]name=ofd_packets/00067865 [18:19:20]NVStorageDeleteData [18:19:21]Write to MH i2c: 01 00 00 BF 0F CE [18:19:21]Write i2c OK [18:19:21]MH_I2C_Read... [18:19:21]Read from MH i2c: 01 [18:19:21]MH_I2C_Read... [18:19:21]Read from MH i2c: 01 07 00 [18:19:21]MH_I2C_Read... [18:19:21]Read from MH i2c: 01 07 00 BF 0F 00 00 00 00 00 CB 0C AC [18:19:21]RasterBufferAndPrint [18:19:21]line [18:19:21]line [18:19:21]line [18:19:21]line [18:19:21]line [18:19:21]written 0, free lines is 3281 [18:19:21]MH_Cut [18:19:21]Write to MH i2c: D1 01 00 C6 0F 01 A7 [18:19:21]Write i2c OK [18:19:21]MH_I2C_Read... [18:19:21]Read from MH i2c: D1 [18:19:21]MH_I2C_Read... [18:19:21]Read from MH i2c: D1 01 00 [18:19:21]MH_I2C_Read... [18:19:21]Read from MH i2c: D1 01 00 C6 0F 00 A6 [18:19:21]Write to MH i2c: 01 00 00 C7 0F D6 [18:19:21]Write i2c OK [18:19:21]MH_I2C_Read... [18:19:21]OFD Sender: No OFD packet to send [18:19:21]*** Cut start [18:19:21]*** Purtial cut [18:19:21]*** Stage 1: CUTSNS_PIN = 1 [18:19:22]Read from MH i2c: 01 [18:19:22]MH_I2C_Read... [18:19:22]*** Stop cut motor [18:19:22]*** Cut end [18:19:22]Read from MH i2c: 01 07 00 [18:19:22]MH_I2C_Read... [18:19:22]Read from MH i2c: 01 07 00 C7 0F 00 00 00 00 00 FF 0F EB [18:19:22]process_action close_receipt done [18:19:22]requested_data is exist [18:19:22]produce_requested_data [18:19:22]requested_item fm.sn is exist - process it [18:19:22]wFMCommunicate request_size=4 [18:19:22]MH_SAM_APDU [18:19:22]CAPDU: 80 11 00 00 [18:19:22]Write to MH i2c: E2 08 00 C8 0F 80 11 00 00 00 00 00 00 51 [18:19:22]Write i2c OK [18:19:22]MH_I2C_Read... [18:19:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:19:22]Read from MH i2c: E2 [18:19:22]MH_I2C_Read... [18:19:22]Read from MH i2c: E2 17 00 [18:19:22]MH_I2C_Read... [18:19:22]Read from MH i2c: E2 17 00 C8 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 A7 [18:19:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [18:19:22]wFMCommunicate OK [18:19:22]requested_item fd.num is exist - process it [18:19:22]SAM_PROTO_GetFieldsCounters [18:19:22]wFMCommunicate request_size=4 [18:19:22]MH_SAM_APDU [18:19:22]CAPDU: 80 13 00 00 [18:19:22]Write to MH i2c: E2 08 00 C9 0F 80 13 00 00 00 00 00 00 54 [18:19:22]Write i2c OK [18:19:22]MH_I2C_Read... [18:19:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:19:22]Read from MH i2c: E2 [18:19:22]MH_I2C_Read... [18:19:22]Read from MH i2c: E2 62 00 [18:19:22]MH_I2C_Read... [18:19:22]Read from MH i2c: E2 62 00 C9 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 19 09 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 68 00 00 00 5E 04 04 00 68 00 00 00 57 04 04 00 69 00 00 00 19 04 04 00 00 00 00 00 90 00 3D [18:19:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 19 09 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 68 00 00 00 5E 04 04 00 68 00 00 00 57 04 04 00 69 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:19:22]wFMCommunicate OK [18:19:22]SAM_PROTO_GetFieldsCounters done [18:19:22]requested_item shift.num is exist - process it [18:19:22]requested_item shift.opened is exist - process it [18:19:22]req_shift_opened [18:19:22]FM_GetShiftState [18:19:22]SAM_PROTO_GetShiftState [18:19:22]wFMCommunicate request_size=4 [18:19:22]MH_SAM_APDU [18:19:22]CAPDU: 80 13 01 00 [18:19:22]Write to MH i2c: E2 08 00 CA 0F 80 13 01 00 00 00 00 00 56 [18:19:22]Write i2c OK [18:19:22]MH_I2C_Read... [18:19:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:19:22]Read from MH i2c: E2 [18:19:22]MH_I2C_Read... [18:19:22]Read from MH i2c: E2 0E 00 [18:19:22]MH_I2C_Read... [18:19:22]Read from MH i2c: E2 0E 00 CA 0F 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 BD [18:19:22]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [18:19:22]wFMCommunicate OK [18:19:22]SAM_PROTO_GetShiftState done [18:19:22]FM_GetShiftState done [18:19:22]req_shift_opened done [18:19:22]requested_item shift.open_date is exist - process it [18:19:22]req_shift_open_date [18:19:22]req_shift_open_date done [18:19:22]produce_requested_data done [18:19:22]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67865,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [18:19:22]process_action_free close_receipt [18:19:22]json_value_free [18:19:22]json_value_free done [18:19:22]process_json_proto returns [18:19:22]Send response to host [18:19:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67865,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [18:19:22]free response buf [18:19:22]execute_script done [18:19:22]execute_script returns [18:19:22]free content buf [18:19:22]Sock 7.Close socket [18:19:22]Sock 7.Thread stoped [18:19:26]OFD Sender: No OFD packet to send [18:19:31]OFD Sender: No OFD packet to send [18:19:36]OFD Sender: No OFD packet to send [18:19:41]OFD Sender: No OFD packet to send [18:19:46]OFD Sender: No OFD packet to send [18:19:51]OFD Sender: No OFD packet to send [18:19:56]OFD Sender: No OFD packet to send [18:20:01]OFD Sender: No OFD packet to send [18:20:06]OFD Sender: No OFD packet to send [18:20:11]OFD Sender: No OFD packet to send [18:20:16]OFD Sender: No OFD packet to send [18:20:21]OFD Sender: No OFD packet to send [18:20:26]OFD Sender: No OFD packet to send [18:20:31]OFD Sender: No OFD packet to send [18:20:36]OFD Sender: No OFD packet to send [18:20:41]OFD Sender: No OFD packet to send [18:20:46]OFD Sender: No OFD packet to send [18:20:51]OFD Sender: No OFD packet to send [18:20:56]OFD Sender: No OFD packet to send [18:21:01]OFD Sender: No OFD packet to send [18:21:06]OFD Sender: No OFD packet to send [18:21:11]OFD Sender: No OFD packet to send [18:21:16]OFD Sender: No OFD packet to send [18:21:21]OFD Sender: No OFD packet to send [18:21:26]OFD Sender: No OFD packet to send [18:21:31]OFD Sender: No OFD packet to send [18:21:36]OFD Sender: No OFD packet to send [18:21:41]OFD Sender: No OFD packet to send [18:21:46]OFD Sender: No OFD packet to send [18:21:51]OFD Sender: No OFD packet to send [18:21:56]OFD Sender: No OFD packet to send [18:22:01]OFD Sender: No OFD packet to send [18:22:06]OFD Sender: No OFD packet to send [18:22:11]OFD Sender: No OFD packet to send [18:22:16]OFD Sender: No OFD packet to send [18:22:21]OFD Sender: No OFD packet to send [18:22:26]OFD Sender: No OFD packet to send [18:22:31]OFD Sender: No OFD packet to send [18:22:36]OFD Sender: No OFD packet to send [18:22:41]OFD Sender: No OFD packet to send [18:22:46]OFD Sender: No OFD packet to send [18:22:51]OFD Sender: No OFD packet to send [18:22:56]OFD Sender: No OFD packet to send [18:23:01]OFD Sender: No OFD packet to send [18:23:06]OFD Sender: No OFD packet to send [18:23:11]OFD Sender: No OFD packet to send [18:23:16]OFD Sender: No OFD packet to send [18:23:21]OFD Sender: No OFD packet to send [18:23:26]OFD Sender: No OFD packet to send [18:23:31]OFD Sender: No OFD packet to send [18:23:36]OFD Sender: No OFD packet to send [18:23:41]OFD Sender: No OFD packet to send [18:23:46]OFD Sender: No OFD packet to send [18:23:51]OFD Sender: No OFD packet to send [18:23:56]OFD Sender: No OFD packet to send [18:24:01]OFD Sender: No OFD packet to send [18:24:06]OFD Sender: No OFD packet to send [18:24:11]OFD Sender: No OFD packet to send [18:24:16]OFD Sender: No OFD packet to send [18:24:21]OFD Sender: No OFD packet to send [18:24:26]OFD Sender: No OFD packet to send [18:24:31]OFD Sender: No OFD packet to send [18:24:36]OFD Sender: No OFD packet to send [18:24:41]OFD Sender: No OFD packet to send [18:24:46]OFD Sender: No OFD packet to send [18:24:51]OFD Sender: No OFD packet to send [18:24:56]OFD Sender: No OFD packet to send [18:25:01]OFD Sender: No OFD packet to send [18:25:06]OFD Sender: No OFD packet to send [18:25:11]OFD Sender: No OFD packet to send [18:25:16]OFD Sender: No OFD packet to send [18:25:21]OFD Sender: No OFD packet to send [18:25:26]OFD Sender: No OFD packet to send [18:25:31]OFD Sender: No OFD packet to send [18:25:36]OFD Sender: No OFD packet to send [18:25:41]OFD Sender: No OFD packet to send [18:25:46]OFD Sender: No OFD packet to send [18:25:51]OFD Sender: No OFD packet to send [18:25:56]OFD Sender: No OFD packet to send [18:26:01]OFD Sender: No OFD packet to send [18:26:06]OFD Sender: No OFD packet to send [18:26:11]OFD Sender: No OFD packet to send [18:26:16]OFD Sender: No OFD packet to send [18:26:21]OFD Sender: No OFD packet to send [18:26:26]OFD Sender: No OFD packet to send [18:26:31]OFD Sender: No OFD packet to send [18:26:36]OFD Sender: No OFD packet to send [18:26:41]OFD Sender: No OFD packet to send [18:26:46]OFD Sender: No OFD packet to send [18:26:51]OFD Sender: No OFD packet to send [18:26:56]OFD Sender: No OFD packet to send [18:27:01]OFD Sender: No OFD packet to send [18:27:06]OFD Sender: No OFD packet to send [18:27:11]OFD Sender: No OFD packet to send [18:27:16]OFD Sender: No OFD packet to send [18:27:21]OFD Sender: No OFD packet to send [18:27:26]OFD Sender: No OFD packet to send [18:27:31]OFD Sender: No OFD packet to send [18:27:36]OFD Sender: No OFD packet to send [18:27:41]OFD Sender: No OFD packet to send [18:27:46]OFD Sender: No OFD packet to send [18:27:51]OFD Sender: No OFD packet to send [18:27:56]OFD Sender: No OFD packet to send [18:28:01]OFD Sender: No OFD packet to send [18:28:06]OFD Sender: No OFD packet to send [18:28:11]OFD Sender: No OFD packet to send [18:28:12]accept exits with 9 [18:28:12]New connection [18:28:12]New thread 3067059556 created [18:28:12]Thread 3067202916 joined [18:28:12]Waiting for new connection... [18:28:12] Sock 9.Parse request [18:28:12]Sock 9.Check first char [18:28:12]Sock 9.First char is OK [18:28:12]request: POST /json_proto HTTP/1.0 [18:28:12]Method: POST [18:28:12]URL: /json_proto [18:28:12]Method is POST - this is cgi request [18:28:12]url: /json_proto [18:28:12]query_string will be loaded in cgi processing [18:28:12]execute_cgi json_proto POST (null) [18:28:12]execute_cgi path=json_proto method=POST [18:28:12]POST find Content-Length [18:28:12]Host: 172.17.41.195:8080 [18:28:12]Content-Length: 677 [18:28:12]Content-Type: application/json [18:28:12] [18:28:12]POST finish read [18:28:12]Found Content-Length = 677 [18:28:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)508129", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.80, "quantity" : 7.490, "sum" : 500.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:28:12]execute_script... [18:28:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)508129", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.80, "quantity" : 7.490, "sum" : 500.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:28:12]POST & json_proto [18:28:12]process_json_proto [18:28:12]json parsed OK: [18:28:12]protocol is kg_v1.0 [18:28:12]action value=close_receipt [18:28:12]process_action close_receipt [18:28:12]cmd_close_receipt [18:28:12]MH_GetDate [18:28:12]Write to MH i2c: F0 00 00 CB 0F C9 [18:28:12]Write i2c OK [18:28:12]MH_I2C_Read... [18:28:12]Read from MH i2c: F0 [18:28:12]MH_I2C_Read... [18:28:12]Read from MH i2c: F0 09 00 [18:28:12]MH_I2C_Read... [18:28:12]Read from MH i2c: F0 09 00 CB 0F 00 3E F3 48 66 FC 21 6F 64 A1 [18:28:12]GetLastDocTimeStamp 1716056360 [18:28:12]current date 1716056894 [18:28:12]FM_GetShiftState [18:28:12]SAM_PROTO_GetShiftState [18:28:12]wFMCommunicate request_size=4 [18:28:12]MH_SAM_APDU [18:28:12]CAPDU: 80 13 01 00 [18:28:12]Write to MH i2c: E2 08 00 CC 0F 80 13 01 00 00 00 00 00 58 [18:28:12]Write i2c OK [18:28:12]MH_I2C_Read... [18:28:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:28:13]Read from MH i2c: E2 [18:28:13]MH_I2C_Read... [18:28:13]Read from MH i2c: E2 0E 00 [18:28:13]MH_I2C_Read... [18:28:13]Read from MH i2c: E2 0E 00 CC 0F 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 BF [18:28:13]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [18:28:13]wFMCommunicate OK [18:28:13]SAM_PROTO_GetShiftState done [18:28:13]FM_GetShiftState done [18:28:13]opened in 1715991483 [18:28:13]opened+sec_in_day 1716077883 [18:28:13]quantity*price = 50033 [18:28:13]sum+1 = 50034 [18:28:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.33 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.13 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 105 18.05.2024 18:28 Смена: 359 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67866 ФПД: 47721862536911 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T182814&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67866&fm=47721862536911&tin=02508201610067®Number=0000000000091845&sum=50000 [18:28:14]StoreToDocumentArchive [18:28:14]shift 359 fd 67866 [18:28:14]save to /storage/0359/doc_00067866 [18:28:14]save last doc name /storage/0359/doc_00067866 to /storage/kkm_last_doc_name [18:28:14]save OK [18:28:14]Clear old archive folders... [18:28:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:28:14]tlvbuf is 00A0ADC0 [18:28:14]SAM_PROTO_ClearQueue [18:28:14]wFMCommunicate request_size=4 [18:28:14]MH_SAM_APDU [18:28:14]CAPDU: 80 09 00 00 [18:28:14]Write to MH i2c: E2 08 00 D9 0F 80 09 00 00 00 00 00 00 5A [18:28:14]Write i2c OK [18:28:14]MH_I2C_Read... [18:28:14]Read from MH i2c: E2 [18:28:14]MH_I2C_Read... [18:28:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:28:14]Read from MH i2c: E2 03 00 [18:28:14]MH_I2C_Read... [18:28:14]Read from MH i2c: E2 03 00 D9 0F 00 90 00 5C [18:28:14]RAPDU: 90 00 [18:28:14]wFMCommunicate OK [18:28:14]SAM_PROTO_ClearQueue done [18:28:14]KKMCreateOFDPacket [18:28:14]OFDProtocolAddRootSTLVToBuf [18:28:14]FM_MakeSignedData [18:28:14]FM_MakeSignedData [18:28:14]SAM_PROTO_SignData [18:28:14]wFMCommunicate request_size=4 [18:28:14]MH_SAM_APDU [18:28:14]CAPDU: 80 0D 01 02 [18:28:14]Write to MH i2c: E2 08 00 DA 0F 80 0D 01 02 00 00 00 00 62 [18:28:14]Write i2c OK [18:28:14]MH_I2C_Read... [18:28:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:28:14]Read from MH i2c: E2 [18:28:14]MH_I2C_Read... [18:28:14]Read from MH i2c: E2 03 00 [18:28:14]MH_I2C_Read... [18:28:14]Read from MH i2c: E2 03 00 DA 0F 00 90 00 5D [18:28:14]RAPDU: 90 00 [18:28:14]wFMCommunicate OK [18:28:14]wFMCommunicate request_size=255 [18:28:14]MH_SAM_APDU [18:28:14]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 42 1D 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 3E F3 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 1A 09 01 00 35 04 06 00 2B [18:28:14]Write to MH i2c: E2 02 01 DB 0F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 42 1D 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 3E F3 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 1A 09 01 00 35 04 06 00 2B 00 00 EC [18:28:14]Write i2c OK [18:28:14]MH_I2C_Read... [18:28:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:28:14]Read from MH i2c: E2 [18:28:14]MH_I2C_Read... [18:28:14]Read from MH i2c: E2 03 00 [18:28:14]MH_I2C_Read... [18:28:14]Read from MH i2c: E2 03 00 DB 0F 00 90 00 5E [18:28:14]RAPDU: 90 00 [18:28:14]wFMCommunicate OK [18:28:14]wFMCommunicate request_size=10 [18:28:14]MH_SAM_APDU [18:28:14]CAPDU: 80 0D 02 02 05 67 1C AA 1E CF [18:28:14]Write to MH i2c: E2 0D 00 DC 0F 80 0D 02 02 05 00 67 1C AA 1E CF 00 00 89 [18:28:14]Write i2c OK [18:28:14]MH_I2C_Read... [18:28:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:28:14]Read from MH i2c: E2 [18:28:14]MH_I2C_Read... [18:28:14]Read from MH i2c: E2 03 00 [18:28:14]MH_I2C_Read... [18:28:14]Read from MH i2c: E2 03 00 DC 0F 00 90 00 5F [18:28:14]RAPDU: 90 00 [18:28:14]wFMCommunicate OK [18:28:14]wFMCommunicate request_size=4 [18:28:14]MH_SAM_APDU [18:28:14]CAPDU: 80 0D 03 02 [18:28:14]Write to MH i2c: E2 08 00 DD 0F 80 0D 03 02 00 00 00 00 67 [18:28:14]Write i2c OK [18:28:14]MH_I2C_Read... [18:28:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:28:14]Read from MH i2c: E2 [18:28:14]MH_I2C_Read... [18:28:14]Read from MH i2c: E2 0B 00 [18:28:14]MH_I2C_Read... [18:28:14]Read from MH i2c: E2 0B 00 DD 0F 00 D3 C6 AC B0 4B AF DD 49 90 00 7D [18:28:14]RAPDU: D3 C6 AC B0 4B AF DD 49 90 00 [18:28:14]wFMCommunicate OK [18:28:14]SAM_PROTO_SignData done [18:28:14]FM_MakeSignedData done [18:28:14]CreateOFDProtocolMessage [18:28:14]wFMCommunicate request_size=4 [18:28:14]MH_SAM_APDU [18:28:14]CAPDU: 80 11 00 00 [18:28:14]Write to MH i2c: E2 08 00 DE 0F 80 11 00 00 00 00 00 00 67 [18:28:14]Write i2c OK [18:28:14]MH_I2C_Read... [18:28:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:28:14]Read from MH i2c: E2 [18:28:14]MH_I2C_Read... [18:28:14]Read from MH i2c: E2 17 00 [18:28:14]MH_I2C_Read... [18:28:14]Read from MH i2c: E2 17 00 DE 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 BD [18:28:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [18:28:14]wFMCommunicate OK [18:28:14]CreateOFDProtocolMessage done [18:28:14]OFDSenderStorePacket 67866 [18:28:14]StoreOFDPacket docnum=67866 [18:28:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 39 F1 07 01 61 60 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 42 1D 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 3E F3 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 1A 09 01 00 35 04 06 00 2B 67 1C AA 1E CF D3 C6 AC B0 4B AF DD 49 [18:28:14]CheckFolder [18:28:14]dirname=/storage/ofd_packets [18:28:14]CheckFolder done [18:28:14]ProducePacketName [18:28:14]name=ofd_packets/00067866 [18:28:14]NVStorageSaveData ofd_packets/00067866 [18:28:14]File name is /storage/ofd_packets/00067866 [18:28:14]Write 301 bytes [18:28:14]NVStorageSaveData done [18:28:14]OFDSenderStorePacket done [18:28:14]KKMCreateOFDPacket done [18:28:14]NVStorageSaveData kkm_last_timestamp [18:28:14]File name is /storage/kkm_last_timestamp [18:28:14]Write 4 bytes [18:28:14]NVStorageSaveData done [18:28:14]ExternCall_PrintAddStr [18:28:14]wPrintStart [18:28:14]Write to MH i2c: 01 00 00 DF 0F EE [18:28:14]Write i2c OK [18:28:14]MH_I2C_Read... [18:28:14]Read from MH i2c: 01 [18:28:14]MH_I2C_Read... [18:28:14]Read from MH i2c: 01 07 00 [18:28:14]MH_I2C_Read... [18:28:14]Read from MH i2c: 01 07 00 DF 0F 00 00 00 00 00 FF 0F 03 [18:28:14]RasterBufferAndPrint [18:28:14]line Счет N : (1)508129 [18:28:14]line ИНН: 02508201610067 [18:28:14]line Контрольно-Кассовый Чек [18:28:14]line ПРОДАЖА [18:28:14]line ТРК (МРК, ГНК) : 43 [18:28:14]line Товар: 2710124130 [18:28:14]line Аи-92-К-5 [18:28:14]line 7.490 * 66.80 [18:28:14]line = 500.33 [18:28:14]line НДС 12% НСП 1% [18:28:14]line > о реализуемом товаре [18:28:14]line ОКРУГЛЕНИЕ: -0.33 [18:28:14]line ИТОГО: 500.00 [18:28:14]line Внесено: 500.00 [18:28:14]line СДАЧА: 0.00 [18:28:14]line НСП 1% : 4.43 [18:28:14]line НДС 12% : 53.13 [18:28:14]line Наличными: 500.00 [18:28:14]line Безнал.: 0.00 [18:28:14]line Место: АЗС № 91 "Партнер Нефть" [18:28:14]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [18:28:14]line СНО: Общий режим [18:28:14]line Чек 105 18.05.2024 18:28 [18:28:14]line Смена: 359 ФФД: 1.0 [18:28:14]line ЗНМ: 0300000119 [18:28:14]line РНМ: 0000000000091845 [18:28:14]line Версия ККМ: 001 [18:28:14]line ФМ: 0000000000871829 [18:28:14]line ФД: 67866 [18:28:14]line ФПД: 47721862536911 [18:28:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T182814&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67866&fm=47721862536911&tin=02508201610067®Number=0000000000091845&sum=50000 [18:28:15]OFD Sender: Processing packet 67866 [packets to send 35, broken 34] [18:28:15]ProducePacketName [18:28:15]name=ofd_packets/00067866 [18:28:15]OFD Sender: To server: pG, [18:28:15]CommunicateWithHost lk.salyk.kg:30040 [18:28:15]ConnectInit lk.salyk.kg [18:28:15]written 0, free lines is 4095 [18:28:15]Connected sock=10 [18:28:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 39 F1 07 01 61 60 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 42 1D 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 3E F3 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 1A 09 01 00 35 04 06 00 2B 67 1C AA 1E CF D3 C6 AC B0 4B AF DD 49 [18:28:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 CD C6 47 00 A7 46 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 1A 09 01 00 F4 03 04 00 13 9B 48 66 B6 04 01 00 00 69 4D 61 26 44 CD CF 74 [18:28:15]CommunicateWithHost err = 0 [18:28:15]CheckOFDResponse [18:28:15]1017 (14) - 77093643461234 [18:28:15]1041 (16) - 0000000000871829 [18:28:15]1040 (4) - 67866 [18:28:15]1012 (4) - 18.05.2024 12:12 [18:28:15]1206 (1) - 0 [18:28:15]OFD Sender: Remove packet 67866 [18:28:15]ProducePacketName [18:28:15]name=ofd_packets/00067866 [18:28:15]NVStorageDeleteData [18:28:15]Write to MH i2c: 01 00 00 09 10 19 [18:28:15]Write i2c OK [18:28:15]MH_I2C_Read... [18:28:15]Read from MH i2c: 01 [18:28:15]MH_I2C_Read... [18:28:15]Read from MH i2c: 01 07 00 [18:28:15]MH_I2C_Read... [18:28:15]Read from MH i2c: 01 07 00 09 10 00 00 00 00 00 C3 0C EF [18:28:15]RasterBufferAndPrint [18:28:15]line [18:28:15]line [18:28:15]line [18:28:15]line [18:28:15]line [18:28:15]written 0, free lines is 3275 [18:28:15]MH_Cut [18:28:15]Write to MH i2c: D1 01 00 10 10 01 F2 [18:28:15]Write i2c OK [18:28:15]MH_I2C_Read... [18:28:15]Read from MH i2c: D1 [18:28:15]MH_I2C_Read... [18:28:15]Read from MH i2c: D1 01 00 [18:28:15]MH_I2C_Read... [18:28:15]Read from MH i2c: D1 01 00 10 10 00 F1 [18:28:15]Write to MH i2c: 01 00 00 11 10 21 [18:28:15]Write i2c OK [18:28:15]MH_I2C_Read... [18:28:15]OFD Sender: No OFD packet to send [18:28:16]*** Cut start [18:28:16]*** Purtial cut [18:28:16]*** Stage 1: CUTSNS_PIN = 1 [18:28:16]Read from MH i2c: 01 [18:28:16]MH_I2C_Read... [18:28:16]*** Stop cut motor [18:28:16]*** Cut end [18:28:16]Read from MH i2c: 01 07 00 [18:28:16]MH_I2C_Read... [18:28:16]Read from MH i2c: 01 07 00 11 10 00 00 00 00 00 FF 0F 36 [18:28:16]process_action close_receipt done [18:28:16]requested_data is exist [18:28:16]produce_requested_data [18:28:16]requested_item fm.sn is exist - process it [18:28:16]wFMCommunicate request_size=4 [18:28:16]MH_SAM_APDU [18:28:16]CAPDU: 80 11 00 00 [18:28:16]Write to MH i2c: E2 08 00 12 10 80 11 00 00 00 00 00 00 9C [18:28:16]Write i2c OK [18:28:16]MH_I2C_Read... [18:28:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:28:16]Read from MH i2c: E2 [18:28:16]MH_I2C_Read... [18:28:16]Read from MH i2c: E2 17 00 [18:28:16]MH_I2C_Read... [18:28:16]Read from MH i2c: E2 17 00 12 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 F2 [18:28:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [18:28:16]wFMCommunicate OK [18:28:16]requested_item fd.num is exist - process it [18:28:16]SAM_PROTO_GetFieldsCounters [18:28:16]wFMCommunicate request_size=4 [18:28:16]MH_SAM_APDU [18:28:16]CAPDU: 80 13 00 00 [18:28:16]Write to MH i2c: E2 08 00 13 10 80 13 00 00 00 00 00 00 9F [18:28:16]Write i2c OK [18:28:16]MH_I2C_Read... [18:28:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:28:16]Read from MH i2c: E2 [18:28:16]MH_I2C_Read... [18:28:16]Read from MH i2c: E2 62 00 [18:28:16]MH_I2C_Read... [18:28:16]Read from MH i2c: E2 62 00 13 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 1A 09 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 69 00 00 00 5E 04 04 00 69 00 00 00 57 04 04 00 6A 00 00 00 19 04 04 00 00 00 00 00 90 00 8C [18:28:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 1A 09 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 69 00 00 00 5E 04 04 00 69 00 00 00 57 04 04 00 6A 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:28:16]wFMCommunicate OK [18:28:16]SAM_PROTO_GetFieldsCounters done [18:28:16]requested_item shift.num is exist - process it [18:28:16]requested_item shift.opened is exist - process it [18:28:16]req_shift_opened [18:28:16]FM_GetShiftState [18:28:16]SAM_PROTO_GetShiftState [18:28:16]wFMCommunicate request_size=4 [18:28:16]MH_SAM_APDU [18:28:16]CAPDU: 80 13 01 00 [18:28:16]Write to MH i2c: E2 08 00 14 10 80 13 01 00 00 00 00 00 A1 [18:28:16]Write i2c OK [18:28:16]MH_I2C_Read... [18:28:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:28:16]Read from MH i2c: E2 [18:28:16]MH_I2C_Read... [18:28:16]Read from MH i2c: E2 0E 00 [18:28:16]MH_I2C_Read... [18:28:16]Read from MH i2c: E2 0E 00 14 10 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 08 [18:28:16]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [18:28:16]wFMCommunicate OK [18:28:16]SAM_PROTO_GetShiftState done [18:28:16]FM_GetShiftState done [18:28:16]req_shift_opened done [18:28:16]requested_item shift.open_date is exist - process it [18:28:16]req_shift_open_date [18:28:16]req_shift_open_date done [18:28:16]produce_requested_data done [18:28:16]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67866,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [18:28:16]process_action_free close_receipt [18:28:16]json_value_free [18:28:16]json_value_free done [18:28:16]process_json_proto returns [18:28:16]Send response to host [18:28:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67866,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [18:28:16]free response buf [18:28:16]execute_script done [18:28:16]execute_script returns [18:28:16]free content buf [18:28:16]Sock 9.Close socket [18:28:16]Sock 9.Thread stoped [18:28:20]OFD Sender: No OFD packet to send [18:28:25]OFD Sender: No OFD packet to send [18:28:30]OFD Sender: No OFD packet to send [18:28:35]OFD Sender: No OFD packet to send [18:28:40]OFD Sender: No OFD packet to send [18:28:45]OFD Sender: No OFD packet to send [18:28:50]OFD Sender: No OFD packet to send [18:28:55]OFD Sender: No OFD packet to send [18:29:00]OFD Sender: No OFD packet to send [18:29:05]OFD Sender: No OFD packet to send [18:29:10]OFD Sender: No OFD packet to send [18:29:15]OFD Sender: No OFD packet to send [18:29:20]OFD Sender: No OFD packet to send [18:29:22]accept exits with 7 [18:29:22]New connection [18:29:22]New thread 3067202916 created [18:29:22]Thread 3067059556 joined [18:29:22]Waiting for new connection... [18:29:22] Sock 7.Parse request [18:29:22]Sock 7.Check first char [18:29:22]Sock 7.First char is OK [18:29:22]request: POST /json_proto HTTP/1.0 [18:29:22]Method: POST [18:29:22]URL: /json_proto [18:29:22]Method is POST - this is cgi request [18:29:22]url: /json_proto [18:29:22]query_string will be loaded in cgi processing [18:29:22]execute_cgi json_proto POST (null) [18:29:22]execute_cgi path=json_proto method=POST [18:29:22]POST find Content-Length [18:29:22]Host: 172.17.41.195:8080 [18:29:22]Content-Length: 803 [18:29:22]Content-Type: application/json [18:29:22] [18:29:22]POST finish read [18:29:22]Found Content-Length = 803 [18:29:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)508130", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.80, "quantity" : 22.640, "sum" : 1512.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1512.35 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:29:22]execute_script... [18:29:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)508130", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.80, "quantity" : 22.640, "sum" : 1512.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1512.35 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:29:22]POST & json_proto [18:29:22]process_json_proto [18:29:22]json parsed OK: [18:29:22]protocol is kg_v1.0 [18:29:22]action value=close_receipt [18:29:22]process_action close_receipt [18:29:22]cmd_close_receipt [18:29:22]MH_GetDate [18:29:22]Write to MH i2c: F0 00 00 15 10 14 [18:29:22]Write i2c OK [18:29:22]MH_I2C_Read... [18:29:22]Read from MH i2c: F0 [18:29:22]MH_I2C_Read... [18:29:22]Read from MH i2c: F0 09 00 [18:29:22]MH_I2C_Read... [18:29:22]Read from MH i2c: F0 09 00 15 10 00 83 F3 48 66 FC 21 6F 64 31 [18:29:22]GetLastDocTimeStamp 1716056894 [18:29:22]current date 1716056963 [18:29:22]FM_GetShiftState [18:29:22]SAM_PROTO_GetShiftState [18:29:22]wFMCommunicate request_size=4 [18:29:22]MH_SAM_APDU [18:29:22]CAPDU: 80 13 01 00 [18:29:22]Write to MH i2c: E2 08 00 16 10 80 13 01 00 00 00 00 00 A3 [18:29:22]Write i2c OK [18:29:22]MH_I2C_Read... [18:29:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:29:22]Read from MH i2c: E2 [18:29:22]MH_I2C_Read... [18:29:22]Read from MH i2c: E2 0E 00 [18:29:22]MH_I2C_Read... [18:29:22]Read from MH i2c: E2 0E 00 16 10 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 0A [18:29:22]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [18:29:22]wFMCommunicate OK [18:29:22]SAM_PROTO_GetShiftState done [18:29:22]FM_GetShiftState done [18:29:22]opened in 1715991483 [18:29:22]opened+sec_in_day 1716077883 [18:29:22]quantity*price = 151235 [18:29:22]sum+1 = 151236 [18:29:22]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1512.35 НСП 1% : 13.38 НДС 12% : 160.60 Наличными: 0.00 Безнал.: 1512.35 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 106 18.05.2024 18:29 Смена: 359 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67867 ФПД: 14135083261112 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T182923&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67867&fm=14135083261112&tin=02508201610067®Number=0000000000091845&sum=151235 [18:29:23]StoreToDocumentArchive [18:29:23]shift 359 fd 67867 [18:29:23]save to /storage/0359/doc_00067867 [18:29:23]save last doc name /storage/0359/doc_00067867 to /storage/kkm_last_doc_name [18:29:23]save OK [18:29:23]Clear old archive folders... [18:29:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:29:23]tlvbuf is 0098F110 [18:29:23]SAM_PROTO_ClearQueue [18:29:23]wFMCommunicate request_size=4 [18:29:23]MH_SAM_APDU [18:29:23]CAPDU: 80 09 00 00 [18:29:23]Write to MH i2c: E2 08 00 23 10 80 09 00 00 00 00 00 00 A5 [18:29:23]Write i2c OK [18:29:23]MH_I2C_Read... [18:29:23]Read from MH i2c: E2 [18:29:23]MH_I2C_Read... [18:29:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:29:23]Read from MH i2c: E2 03 00 [18:29:23]MH_I2C_Read... [18:29:23]Read from MH i2c: E2 03 00 23 10 00 90 00 A7 [18:29:23]RAPDU: 90 00 [18:29:23]wFMCommunicate OK [18:29:23]SAM_PROTO_ClearQueue done [18:29:23]KKMCreateOFDPacket [18:29:23]OFDProtocolAddRootSTLVToBuf [18:29:23]FM_MakeSignedData [18:29:23]FM_MakeSignedData [18:29:23]SAM_PROTO_SignData [18:29:23]wFMCommunicate request_size=4 [18:29:23]MH_SAM_APDU [18:29:23]CAPDU: 80 0D 01 02 [18:29:23]Write to MH i2c: E2 08 00 24 10 80 0D 01 02 00 00 00 00 AD [18:29:23]Write i2c OK [18:29:23]MH_I2C_Read... [18:29:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:29:23]Read from MH i2c: E2 [18:29:23]MH_I2C_Read... [18:29:23]Read from MH i2c: E2 03 00 [18:29:23]MH_I2C_Read... [18:29:23]Read from MH i2c: E2 03 00 24 10 00 90 00 A8 [18:29:23]RAPDU: 90 00 [18:29:23]wFMCommunicate OK [18:29:23]wFMCommunicate request_size=255 [18:29:23]MH_SAM_APDU [18:29:23]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 70 58 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 C3 4E 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C3 4E 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3A 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C3 4E 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 83 F3 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 1B 09 01 00 35 04 06 00 0C [18:29:23]Write to MH i2c: E2 02 01 25 10 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 70 58 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 C3 4E 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C3 4E 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3A 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C3 4E 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 83 F3 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 1B 09 01 00 35 04 06 00 0C 00 00 4F [18:29:23]Write i2c OK [18:29:23]MH_I2C_Read... [18:29:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:29:23]Read from MH i2c: E2 [18:29:23]MH_I2C_Read... [18:29:23]Read from MH i2c: E2 03 00 [18:29:23]MH_I2C_Read... [18:29:23]Read from MH i2c: E2 03 00 25 10 00 90 00 A9 [18:29:23]RAPDU: 90 00 [18:29:23]wFMCommunicate OK [18:29:23]wFMCommunicate request_size=10 [18:29:23]MH_SAM_APDU [18:29:23]CAPDU: 80 0D 02 02 05 DB 14 9D DC B8 [18:29:23]Write to MH i2c: E2 0D 00 26 10 80 0D 02 02 05 00 DB 14 9D DC B8 00 00 DA [18:29:23]Write i2c OK [18:29:23]MH_I2C_Read... [18:29:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:29:23]Read from MH i2c: E2 [18:29:23]MH_I2C_Read... [18:29:23]Read from MH i2c: E2 03 00 [18:29:23]MH_I2C_Read... [18:29:23]Read from MH i2c: E2 03 00 26 10 00 90 00 AA [18:29:23]RAPDU: 90 00 [18:29:23]wFMCommunicate OK [18:29:23]wFMCommunicate request_size=4 [18:29:23]MH_SAM_APDU [18:29:23]CAPDU: 80 0D 03 02 [18:29:23]Write to MH i2c: E2 08 00 27 10 80 0D 03 02 00 00 00 00 B2 [18:29:23]Write i2c OK [18:29:23]MH_I2C_Read... [18:29:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:29:23]Read from MH i2c: E2 [18:29:23]MH_I2C_Read... [18:29:23]Read from MH i2c: E2 0B 00 [18:29:23]MH_I2C_Read... [18:29:23]Read from MH i2c: E2 0B 00 27 10 00 A6 0E A0 4C 83 3A 13 71 90 00 94 [18:29:23]RAPDU: A6 0E A0 4C 83 3A 13 71 90 00 [18:29:23]wFMCommunicate OK [18:29:23]SAM_PROTO_SignData done [18:29:23]FM_MakeSignedData done [18:29:23]CreateOFDProtocolMessage [18:29:23]wFMCommunicate request_size=4 [18:29:23]MH_SAM_APDU [18:29:23]CAPDU: 80 11 00 00 [18:29:23]Write to MH i2c: E2 08 00 28 10 80 11 00 00 00 00 00 00 B2 [18:29:23]Write i2c OK [18:29:23]MH_I2C_Read... [18:29:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:29:23]Read from MH i2c: E2 [18:29:23]MH_I2C_Read... [18:29:23]Read from MH i2c: E2 17 00 [18:29:23]MH_I2C_Read... [18:29:23]Read from MH i2c: E2 17 00 28 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 08 [18:29:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [18:29:23]wFMCommunicate OK [18:29:23]CreateOFDProtocolMessage done [18:29:23]OFDSenderStorePacket 67867 [18:29:23]StoreOFDPacket docnum=67867 [18:29:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 6F 02 07 01 A8 F4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 70 58 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 C3 4E 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C3 4E 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3A 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C3 4E 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 83 F3 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 1B 09 01 00 35 04 06 00 0C DB 14 9D DC B8 A6 0E A0 4C 83 3A 13 71 [18:29:23]CheckFolder [18:29:23]dirname=/storage/ofd_packets [18:29:23]CheckFolder done [18:29:23]ProducePacketName [18:29:23]name=ofd_packets/00067867 [18:29:23]NVStorageSaveData ofd_packets/00067867 [18:29:23]File name is /storage/ofd_packets/00067867 [18:29:23]Write 301 bytes [18:29:23]NVStorageSaveData done [18:29:23]OFDSenderStorePacket done [18:29:23]KKMCreateOFDPacket done [18:29:23]NVStorageSaveData kkm_last_timestamp [18:29:23]File name is /storage/kkm_last_timestamp [18:29:23]Write 4 bytes [18:29:23]NVStorageSaveData done [18:29:23]ExternCall_PrintAddStr [18:29:23]wPrintStart [18:29:23]Write to MH i2c: 01 00 00 29 10 39 [18:29:23]Write i2c OK [18:29:23]MH_I2C_Read... [18:29:23]Read from MH i2c: 01 [18:29:23]MH_I2C_Read... [18:29:23]Read from MH i2c: 01 07 00 [18:29:23]MH_I2C_Read... [18:29:23]Read from MH i2c: 01 07 00 29 10 00 00 00 00 00 FF 0F 4E [18:29:23]RasterBufferAndPrint [18:29:23]line Счет N : (1)508130 [18:29:23]line ИНН: 02508201610067 [18:29:23]line Контрольно-Кассовый Чек [18:29:23]line ПРОДАЖА [18:29:23]line ТРК (МРК, ГНК) : 13 [18:29:23]line Товар: 2710124130 [18:29:23]line Аи-92-К-5 [18:29:23]line 22.640 * 66.80 [18:29:23]line = 1512.35 [18:29:23]line НДС 12% НСП 1% [18:29:23]line > о реализуемом товаре [18:29:23]line ИТОГО: 1512.35 [18:29:23]line НСП 1% : 13.38 [18:29:23]line НДС 12% : 160.60 [18:29:23]line Наличными: 0.00 [18:29:23]line Безнал.: 1512.35 [18:29:23]line Место: АЗС № 91 "Партнер Нефть" [18:29:23]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [18:29:23]line СНО: Общий режим [18:29:23]line Чек 106 18.05.2024 18:29 [18:29:23]line Смена: 359 ФФД: 1.0 [18:29:23]line ЗНМ: 0300000119 [18:29:23]line РНМ: 0000000000091845 [18:29:23]line Версия ККМ: 001 [18:29:23]line Платежная система: O! деньги [18:29:23]line ФМ: 0000000000871829 [18:29:23]line ФД: 67867 [18:29:23]line ФПД: 14135083261112 [18:29:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T182923&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67867&fm=14135083261112&tin=02508201610067®Number=0000000000091845&sum=151235 [18:29:23]written 0, free lines is 4095 [18:29:23]OFD Sender: Processing packet 67867 [packets to send 35, broken 34] [18:29:23]ProducePacketName [18:29:23]name=ofd_packets/00067867 [18:29:23]OFD Sender: To server: pG, [18:29:23]CommunicateWithHost lk.salyk.kg:30040 [18:29:23]ConnectInit lk.salyk.kg [18:29:23]Connected sock=10 [18:29:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 6F 02 07 01 A8 F4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 70 58 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 C3 4E 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C3 4E 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3A 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C3 4E 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 83 F3 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 1B 09 01 00 35 04 06 00 0C DB 14 9D DC B8 A6 0E A0 4C 83 3A 13 71 [18:29:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 79 53 47 00 22 69 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 1B 09 01 00 F4 03 04 00 58 9B 48 66 B6 04 01 00 00 A4 8D CA 85 F3 B7 D5 AB [18:29:24]CommunicateWithHost err = 0 [18:29:24]CheckOFDResponse [18:29:24]1017 (14) - 77093643461234 [18:29:24]1041 (16) - 0000000000871829 [18:29:24]1040 (4) - 67867 [18:29:24]1012 (4) - 18.05.2024 12:13 [18:29:24]1206 (1) - 0 [18:29:24]OFD Sender: Remove packet 67867 [18:29:24]ProducePacketName [18:29:24]name=ofd_packets/00067867 [18:29:24]NVStorageDeleteData [18:29:24]Write to MH i2c: 01 00 00 52 10 62 [18:29:24]Write i2c OK [18:29:24]MH_I2C_Read... [18:29:24]Read from MH i2c: 01 [18:29:24]MH_I2C_Read... [18:29:24]Read from MH i2c: 01 07 00 [18:29:24]MH_I2C_Read... [18:29:24]Read from MH i2c: 01 07 00 52 10 00 00 00 00 00 E6 0C 5B [18:29:24]RasterBufferAndPrint [18:29:24]line [18:29:24]line [18:29:24]line [18:29:24]line [18:29:24]line [18:29:24]written 0, free lines is 3310 [18:29:24]MH_Cut [18:29:24]Write to MH i2c: D1 01 00 59 10 01 3B [18:29:24]Write i2c OK [18:29:24]MH_I2C_Read... [18:29:24]Read from MH i2c: D1 [18:29:24]MH_I2C_Read... [18:29:24]Read from MH i2c: D1 01 00 [18:29:24]MH_I2C_Read... [18:29:24]Read from MH i2c: D1 01 00 59 10 00 3A [18:29:24]Write to MH i2c: 01 00 00 5A 10 6A [18:29:24]Write i2c OK [18:29:24]MH_I2C_Read... [18:29:24]OFD Sender: No OFD packet to send [18:29:25]*** Cut start [18:29:25]*** Purtial cut [18:29:25]*** Stage 1: CUTSNS_PIN = 1 [18:29:25]Read from MH i2c: 01 [18:29:25]MH_I2C_Read... [18:29:25]*** Stop cut motor [18:29:25]*** Cut end [18:29:25]Read from MH i2c: 01 07 00 [18:29:25]MH_I2C_Read... [18:29:25]Read from MH i2c: 01 07 00 5A 10 00 00 00 00 00 FF 0F 7F [18:29:25]process_action close_receipt done [18:29:25]requested_data is exist [18:29:25]produce_requested_data [18:29:25]requested_item fm.sn is exist - process it [18:29:25]wFMCommunicate request_size=4 [18:29:25]MH_SAM_APDU [18:29:25]CAPDU: 80 11 00 00 [18:29:25]Write to MH i2c: E2 08 00 5B 10 80 11 00 00 00 00 00 00 E5 [18:29:25]Write i2c OK [18:29:25]MH_I2C_Read... [18:29:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:29:25]Read from MH i2c: E2 [18:29:25]MH_I2C_Read... [18:29:25]Read from MH i2c: E2 17 00 [18:29:25]MH_I2C_Read... [18:29:25]Read from MH i2c: E2 17 00 5B 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 3B [18:29:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [18:29:25]wFMCommunicate OK [18:29:25]requested_item fd.num is exist - process it [18:29:25]SAM_PROTO_GetFieldsCounters [18:29:25]wFMCommunicate request_size=4 [18:29:25]MH_SAM_APDU [18:29:25]CAPDU: 80 13 00 00 [18:29:25]Write to MH i2c: E2 08 00 5C 10 80 13 00 00 00 00 00 00 E8 [18:29:25]Write i2c OK [18:29:25]MH_I2C_Read... [18:29:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:29:25]Read from MH i2c: E2 [18:29:25]MH_I2C_Read... [18:29:25]Read from MH i2c: E2 62 00 [18:29:25]MH_I2C_Read... [18:29:25]Read from MH i2c: E2 62 00 5C 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 1B 09 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 6A 00 00 00 5E 04 04 00 6A 00 00 00 57 04 04 00 6B 00 00 00 19 04 04 00 00 00 00 00 90 00 D9 [18:29:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 1B 09 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 6A 00 00 00 5E 04 04 00 6A 00 00 00 57 04 04 00 6B 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:29:25]wFMCommunicate OK [18:29:25]SAM_PROTO_GetFieldsCounters done [18:29:25]requested_item shift.num is exist - process it [18:29:25]requested_item shift.opened is exist - process it [18:29:25]req_shift_opened [18:29:25]FM_GetShiftState [18:29:25]SAM_PROTO_GetShiftState [18:29:25]wFMCommunicate request_size=4 [18:29:25]MH_SAM_APDU [18:29:25]CAPDU: 80 13 01 00 [18:29:25]Write to MH i2c: E2 08 00 5D 10 80 13 01 00 00 00 00 00 EA [18:29:25]Write i2c OK [18:29:25]MH_I2C_Read... [18:29:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:29:25]Read from MH i2c: E2 [18:29:25]MH_I2C_Read... [18:29:25]Read from MH i2c: E2 0E 00 [18:29:25]MH_I2C_Read... [18:29:25]Read from MH i2c: E2 0E 00 5D 10 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 51 [18:29:25]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [18:29:25]wFMCommunicate OK [18:29:25]SAM_PROTO_GetShiftState done [18:29:25]FM_GetShiftState done [18:29:25]req_shift_opened done [18:29:25]requested_item shift.open_date is exist - process it [18:29:25]req_shift_open_date [18:29:25]req_shift_open_date done [18:29:25]produce_requested_data done [18:29:25]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67867,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [18:29:25]process_action_free close_receipt [18:29:25]json_value_free [18:29:25]json_value_free done [18:29:25]process_json_proto returns [18:29:25]Send response to host [18:29:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67867,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [18:29:25]free response buf [18:29:25]execute_script done [18:29:25]execute_script returns [18:29:25]free content buf [18:29:25]Sock 7.Close socket [18:29:25]Sock 7.Thread stoped [18:29:29]OFD Sender: No OFD packet to send [18:29:34]OFD Sender: No OFD packet to send [18:29:39]OFD Sender: No OFD packet to send [18:29:44]OFD Sender: No OFD packet to send [18:29:49]OFD Sender: No OFD packet to send [18:29:54]OFD Sender: No OFD packet to send [18:29:59]OFD Sender: No OFD packet to send [18:30:04]OFD Sender: No OFD packet to send [18:30:09]OFD Sender: No OFD packet to send [18:30:14]OFD Sender: No OFD packet to send [18:30:19]OFD Sender: No OFD packet to send [18:30:24]OFD Sender: No OFD packet to send [18:30:29]OFD Sender: No OFD packet to send [18:30:34]OFD Sender: No OFD packet to send [18:30:39]OFD Sender: No OFD packet to send [18:30:44]OFD Sender: No OFD packet to send [18:30:49]OFD Sender: No OFD packet to send [18:30:54]OFD Sender: No OFD packet to send [18:30:59]OFD Sender: No OFD packet to send [18:31:04]OFD Sender: No OFD packet to send [18:31:09]OFD Sender: No OFD packet to send [18:31:14]OFD Sender: No OFD packet to send [18:31:19]OFD Sender: No OFD packet to send [18:31:24]OFD Sender: No OFD packet to send [18:31:29]OFD Sender: No OFD packet to send [18:31:34]OFD Sender: No OFD packet to send [18:31:39]OFD Sender: No OFD packet to send [18:31:44]OFD Sender: No OFD packet to send [18:31:49]OFD Sender: No OFD packet to send [18:31:54]OFD Sender: No OFD packet to send [18:31:59]OFD Sender: No OFD packet to send [18:32:04]OFD Sender: No OFD packet to send [18:32:09]OFD Sender: No OFD packet to send [18:32:14]OFD Sender: No OFD packet to send [18:32:19]OFD Sender: No OFD packet to send [18:32:24]OFD Sender: No OFD packet to send [18:32:29]OFD Sender: No OFD packet to send [18:32:34]OFD Sender: No OFD packet to send [18:32:39]OFD Sender: No OFD packet to send [18:32:44]OFD Sender: No OFD packet to send [18:32:49]OFD Sender: No OFD packet to send [18:32:54]OFD Sender: No OFD packet to send [18:32:59]OFD Sender: No OFD packet to send [18:33:04]OFD Sender: No OFD packet to send [18:33:09]OFD Sender: No OFD packet to send [18:33:14]OFD Sender: No OFD packet to send [18:33:19]OFD Sender: No OFD packet to send [18:33:24]OFD Sender: No OFD packet to send [18:33:29]OFD Sender: No OFD packet to send [18:33:34]OFD Sender: No OFD packet to send [18:33:39]OFD Sender: No OFD packet to send [18:33:44]OFD Sender: No OFD packet to send [18:33:49]OFD Sender: No OFD packet to send [18:33:54]OFD Sender: No OFD packet to send [18:33:59]OFD Sender: No OFD packet to send [18:34:04]OFD Sender: No OFD packet to send [18:34:09]OFD Sender: No OFD packet to send [18:34:14]OFD Sender: No OFD packet to send [18:34:19]OFD Sender: No OFD packet to send [18:34:24]OFD Sender: No OFD packet to send [18:34:29]OFD Sender: No OFD packet to send [18:34:34]OFD Sender: No OFD packet to send [18:34:39]OFD Sender: No OFD packet to send [18:34:44]OFD Sender: No OFD packet to send [18:34:49]OFD Sender: No OFD packet to send [18:34:54]OFD Sender: No OFD packet to send [18:34:59]OFD Sender: No OFD packet to send [18:35:04]OFD Sender: No OFD packet to send [18:35:09]OFD Sender: No OFD packet to send [18:35:14]OFD Sender: No OFD packet to send [18:35:19]OFD Sender: No OFD packet to send [18:35:24]OFD Sender: No OFD packet to send [18:35:29]OFD Sender: No OFD packet to send [18:35:34]OFD Sender: No OFD packet to send [18:35:39]OFD Sender: No OFD packet to send [18:35:44]OFD Sender: No OFD packet to send [18:35:49]OFD Sender: No OFD packet to send [18:35:51]accept exits with 9 [18:35:51]New connection [18:35:51]New thread 3067059556 created [18:35:51]Thread 3067202916 joined [18:35:51]Waiting for new connection... [18:35:51] Sock 9.Parse request [18:35:51]Sock 9.Check first char [18:35:51]Sock 9.First char is OK [18:35:51]request: POST /json_proto HTTP/1.0 [18:35:51]Method: POST [18:35:51]URL: /json_proto [18:35:51]Method is POST - this is cgi request [18:35:51]url: /json_proto [18:35:51]query_string will be loaded in cgi processing [18:35:51]execute_cgi json_proto POST (null) [18:35:51]execute_cgi path=json_proto method=POST [18:35:51]POST find Content-Length [18:35:51]Host: 172.17.41.195:8080 [18:35:51]Content-Length: 215 [18:35:51]Content-Type: application/json [18:35:51] [18:35:51]POST finish read [18:35:51]Found Content-Length = 215 [18:35:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:35:51]execute_script... [18:35:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:35:51]POST & json_proto [18:35:51]process_json_proto [18:35:51]json parsed OK: [18:35:51]protocol is kg_v1.0 [18:35:51]action value=get_value [18:35:51]process_action get_value [18:35:51]cmd_get_value [18:35:51]process_action get_value done [18:35:51]requested_data is exist [18:35:51]produce_requested_data [18:35:51]requested_item kkm.sn is exist - process it [18:35:51]requested_item kkm.ver is exist - process it [18:35:51]requested_item fm.sn is exist - process it [18:35:51]wFMCommunicate request_size=4 [18:35:51]MH_SAM_APDU [18:35:51]CAPDU: 80 11 00 00 [18:35:51]Write to MH i2c: E2 08 00 5E 10 80 11 00 00 00 00 00 00 E8 [18:35:51]Write i2c OK [18:35:51]MH_I2C_Read... [18:35:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:35:51]Read from MH i2c: E2 [18:35:51]MH_I2C_Read... [18:35:51]Read from MH i2c: E2 17 00 [18:35:51]MH_I2C_Read... [18:35:51]Read from MH i2c: E2 17 00 5E 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 3E [18:35:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [18:35:51]wFMCommunicate OK [18:35:51]requested_item fd.num is exist - process it [18:35:51]SAM_PROTO_GetFieldsCounters [18:35:51]wFMCommunicate request_size=4 [18:35:51]MH_SAM_APDU [18:35:51]CAPDU: 80 13 00 00 [18:35:51]Write to MH i2c: E2 08 00 5F 10 80 13 00 00 00 00 00 00 EB [18:35:51]Write i2c OK [18:35:51]MH_I2C_Read... [18:35:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:35:52]Read from MH i2c: E2 [18:35:52]MH_I2C_Read... [18:35:52]Read from MH i2c: E2 62 00 [18:35:52]MH_I2C_Read... [18:35:52]Read from MH i2c: E2 62 00 5F 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 1B 09 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 6A 00 00 00 5E 04 04 00 6A 00 00 00 57 04 04 00 6B 00 00 00 19 04 04 00 00 00 00 00 90 00 DC [18:35:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 1B 09 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 6A 00 00 00 5E 04 04 00 6A 00 00 00 57 04 04 00 6B 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:35:52]wFMCommunicate OK [18:35:52]SAM_PROTO_GetFieldsCounters done [18:35:52]requested_item shift.num is exist - process it [18:35:52]requested_item shift.opened is exist - process it [18:35:52]req_shift_opened [18:35:52]FM_GetShiftState [18:35:52]SAM_PROTO_GetShiftState [18:35:52]wFMCommunicate request_size=4 [18:35:52]MH_SAM_APDU [18:35:52]CAPDU: 80 13 01 00 [18:35:52]Write to MH i2c: E2 08 00 60 10 80 13 01 00 00 00 00 00 ED [18:35:52]Write i2c OK [18:35:52]MH_I2C_Read... [18:35:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:35:52]Read from MH i2c: E2 [18:35:52]MH_I2C_Read... [18:35:52]Read from MH i2c: E2 0E 00 [18:35:52]MH_I2C_Read... [18:35:52]Read from MH i2c: E2 0E 00 60 10 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 54 [18:35:52]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [18:35:52]wFMCommunicate OK [18:35:52]SAM_PROTO_GetShiftState done [18:35:52]FM_GetShiftState done [18:35:52]req_shift_opened done [18:35:52]requested_item shift.open_date is exist - process it [18:35:52]req_shift_open_date [18:35:52]req_shift_open_date done [18:35:52]produce_requested_data done [18:35:52]produce_requested_data return {"kkm.sn":"0300000119","kkm.ver":"001","fm.sn":"0000000000871829","fd.num":67867,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [18:35:52]process_action_free get_value [18:35:52]json_value_free [18:35:52]json_value_free done [18:35:52]process_json_proto returns [18:35:52]Send response to host [18:35:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000119","kkm.ver":"001","fm.sn":"0000000000871829","fd.num":67867,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [18:35:52]free response buf [18:35:52]execute_script done [18:35:52]execute_script returns [18:35:52]free content buf [18:35:52]Sock 9.Close socket [18:35:52]Sock 9.Thread stoped [18:35:52]accept exits with 7 [18:35:52]New connection [18:35:52]New thread 3067202916 created [18:35:52]Thread 3067059556 joined [18:35:52]Waiting for new connection... [18:35:52] Sock 7.Parse request [18:35:52]Sock 7.Check first char [18:35:52]Sock 7.First char is OK [18:35:52]request: POST /json_proto HTTP/1.0 [18:35:52]Method: POST [18:35:52]URL: /json_proto [18:35:52]Method is POST - this is cgi request [18:35:52]url: /json_proto [18:35:52]query_string will be loaded in cgi processing [18:35:52]execute_cgi json_proto POST (null) [18:35:52]execute_cgi path=json_proto method=POST [18:35:52]POST find Content-Length [18:35:52]Host: 172.17.41.195:8080 [18:35:52]Content-Length: 331 [18:35:52]Content-Type: application/json [18:35:52] [18:35:52]POST finish read [18:35:52]Found Content-Length = 331 [18:35:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [18:35:52]execute_script... [18:35:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [18:35:52]POST & json_proto [18:35:52]process_json_proto [18:35:52]json parsed OK: [18:35:52]protocol is kg_v1.0 [18:35:52]action value=get_value [18:35:52]process_action get_value [18:35:52]cmd_get_value [18:35:52]process_action get_value done [18:35:52]requested_data is exist [18:35:52]produce_requested_data [18:35:52]requested_item fm.sale.total is exist - process it [18:35:52]SAM_PROTO_GetFMData [18:35:52]wFMCommunicate request_size=4 [18:35:52]MH_SAM_APDU [18:35:52]CAPDU: 80 13 03 00 [18:35:52]Write to MH i2c: E2 08 00 61 10 80 13 03 00 00 00 00 00 F0 [18:35:52]Write i2c OK [18:35:52]MH_I2C_Read... [18:35:52]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [18:35:52]Read from MH i2c: E2 [18:35:52]MH_I2C_Read... [18:35:52]Read from MH i2c: E2 FD 00 [18:35:52]MH_I2C_Read... [18:35:52]Read from MH i2c: E2 FD 00 61 10 00 C6 04 85 04 C2 04 6E 04 04 00 4D 06 01 00 69 04 A3 00 6F 04 04 00 A3 05 01 00 B1 04 05 00 36 7D 41 1E 03 70 04 05 00 F4 F9 DA C0 02 72 04 04 00 42 83 66 5D 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 F0 3A C8 54 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 F5 9A 10 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9D 00 6F 04 04 00 AA 00 00 00 B1 04 04 00 00 23 C3 DC 70 04 04 00 00 23 C3 DC 72 04 00 00 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 DD 9D 71 17 EF 03 09 90 00 57 [18:35:52]RAPDU: C6 04 85 04 C2 04 6E 04 04 00 4D 06 01 00 69 04 A3 00 6F 04 04 00 A3 05 01 00 B1 04 05 00 36 7D 41 1E 03 70 04 05 00 F4 F9 DA C0 02 72 04 04 00 42 83 66 5D 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 F0 3A C8 54 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 F5 9A 10 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9D 00 6F 04 04 00 AA 00 00 00 B1 04 04 00 00 23 C3 DC 70 04 04 00 00 23 C3 DC 72 04 00 00 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 DD 9D 71 17 EF 03 09 90 00 [18:35:52]wFMCommunicate OK [18:35:52]wFMCommunicate request_size=4 [18:35:52]MH_SAM_APDU [18:35:52]CAPDU: 80 17 00 00 [18:35:52]Write to MH i2c: E2 08 00 62 10 80 17 00 00 00 00 00 00 F2 [18:35:52]Write i2c OK [18:35:52]MH_I2C_Read... [18:35:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [18:35:53]Read from MH i2c: E2 [18:35:53]MH_I2C_Read... [18:35:53]Read from MH i2c: E2 FD 00 [18:35:53]MH_I2C_Read... [18:35:53]Read from MH i2c: E2 FD 00 62 10 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 70 22 F4 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 90 00 2D [18:35:53]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 70 22 F4 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 90 00 [18:35:53]wFMCommunicate OK [18:35:53]wFMCommunicate request_size=4 [18:35:53]MH_SAM_APDU [18:35:53]CAPDU: 80 17 00 00 [18:35:53]Write to MH i2c: E2 08 00 63 10 80 17 00 00 00 00 00 00 F3 [18:35:53]Write i2c OK [18:35:53]MH_I2C_Read... [18:35:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [18:35:53]Read from MH i2c: E2 [18:35:53]MH_I2C_Read... [18:35:53]Read from MH i2c: E2 FD 00 [18:35:53]MH_I2C_Read... [18:35:53]Read from MH i2c: E2 FD 00 63 10 00 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 90 00 1A [18:35:53]RAPDU: 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 90 00 [18:35:53]wFMCommunicate OK [18:35:53]wFMCommunicate request_size=4 [18:35:53]MH_SAM_APDU [18:35:53]CAPDU: 80 17 00 00 [18:35:53]Write to MH i2c: E2 08 00 64 10 80 17 00 00 00 00 00 00 F4 [18:35:53]Write i2c OK [18:35:53]MH_I2C_Read... [18:35:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [18:35:53]Read from MH i2c: E2 [18:35:53]MH_I2C_Read... [18:35:53]Read from MH i2c: E2 FD 00 [18:35:53]MH_I2C_Read... [18:35:53]Read from MH i2c: E2 FD 00 64 10 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 6F [18:35:53]RAPDU: EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 [18:35:53]wFMCommunicate OK [18:35:53]wFMCommunicate request_size=4 [18:35:53]MH_SAM_APDU [18:35:53]CAPDU: 80 17 00 00 [18:35:53]Write to MH i2c: E2 08 00 65 10 80 17 00 00 00 00 00 00 F5 [18:35:53]Write i2c OK [18:35:53]MH_I2C_Read... [18:35:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 224! [18:35:53]Read from MH i2c: E2 [18:35:53]MH_I2C_Read... [18:35:53]Read from MH i2c: E2 E3 00 [18:35:53]MH_I2C_Read... [18:35:53]Read from MH i2c: E2 E3 00 65 10 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 D4 [18:35:53]RAPDU: 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [18:35:53]wFMCommunicate OK [18:35:53]SAM_PROTO_GetFMData done [18:35:53]requested_item fm.sale_refund.total is exist - process it [18:35:53]requested_item fm.buy.total is exist - process it [18:35:53]requested_item shift.sale.total is exist - process it [18:35:53]SAM_PROTO_GetShiftData [18:35:53]wFMCommunicate request_size=4 [18:35:53]MH_SAM_APDU [18:35:53]CAPDU: 80 13 02 00 [18:35:53]Write to MH i2c: E2 08 00 66 10 80 13 02 00 00 00 00 00 F4 [18:35:53]Write i2c OK [18:35:53]MH_I2C_Read... [18:35:54]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [18:35:54]Read from MH i2c: E2 [18:35:54]MH_I2C_Read... [18:35:54]Read from MH i2c: E2 FD 00 [18:35:54]MH_I2C_Read... [18:35:54]Read from MH i2c: E2 FD 00 66 10 00 AF 04 AA 04 AB 04 6E 04 04 00 6A 00 00 00 69 04 9C 00 6F 04 04 00 6A 00 00 00 B1 04 03 00 AA 8C B2 70 04 03 00 38 05 18 72 04 03 00 72 87 9A 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 4C F6 12 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 7B 94 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 CC [18:35:54]RAPDU: AF 04 AA 04 AB 04 6E 04 04 00 6A 00 00 00 69 04 9C 00 6F 04 04 00 6A 00 00 00 B1 04 03 00 AA 8C B2 70 04 03 00 38 05 18 72 04 03 00 72 87 9A 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 4C F6 12 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 7B 94 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 [18:35:54]wFMCommunicate OK [18:35:54]wFMCommunicate request_size=4 [18:35:54]MH_SAM_APDU [18:35:54]CAPDU: 80 17 00 00 [18:35:54]Write to MH i2c: E2 08 00 67 10 80 17 00 00 00 00 00 00 F7 [18:35:54]Write i2c OK [18:35:54]MH_I2C_Read... [18:35:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [18:35:54]Read from MH i2c: E2 [18:35:54]MH_I2C_Read... [18:35:54]Read from MH i2c: E2 FD 00 [18:35:54]MH_I2C_Read... [18:35:54]Read from MH i2c: E2 FD 00 67 10 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 90 00 10 [18:35:54]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 90 00 [18:35:54]wFMCommunicate OK [18:35:54]wFMCommunicate request_size=4 [18:35:54]MH_SAM_APDU [18:35:54]CAPDU: 80 17 00 00 [18:35:54]Write to MH i2c: E2 08 00 68 10 80 17 00 00 00 00 00 00 F8 [18:35:54]Write i2c OK [18:35:54]MH_I2C_Read... [18:35:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [18:35:54]Read from MH i2c: E2 [18:35:54]MH_I2C_Read... [18:35:54]Read from MH i2c: E2 FD 00 [18:35:54]MH_I2C_Read... [18:35:54]Read from MH i2c: E2 FD 00 68 10 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 90 00 AC [18:35:54]RAPDU: 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 90 00 [18:35:54]wFMCommunicate OK [18:35:54]wFMCommunicate request_size=4 [18:35:54]MH_SAM_APDU [18:35:54]CAPDU: 80 17 00 00 [18:35:54]Write to MH i2c: E2 08 00 69 10 80 17 00 00 00 00 00 00 F9 [18:35:54]Write i2c OK [18:35:54]MH_I2C_Read... [18:35:55]OFD Sender: No OFD packet to send [18:35:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [18:35:55]Read from MH i2c: E2 [18:35:55]MH_I2C_Read... [18:35:55]Read from MH i2c: E2 FD 00 [18:35:55]MH_I2C_Read... [18:35:55]Read from MH i2c: E2 FD 00 69 10 00 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 90 00 77 [18:35:55]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 90 00 [18:35:55]wFMCommunicate OK [18:35:55]wFMCommunicate request_size=4 [18:35:55]MH_SAM_APDU [18:35:55]CAPDU: 80 17 00 00 [18:35:55]Write to MH i2c: E2 08 00 6A 10 80 17 00 00 00 00 00 00 FA [18:35:55]Write i2c OK [18:35:55]MH_I2C_Read... [18:35:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 201! [18:35:55]Read from MH i2c: E2 [18:35:55]MH_I2C_Read... [18:35:55]Read from MH i2c: E2 CC 00 [18:35:55]MH_I2C_Read... [18:35:55]Read from MH i2c: E2 CC 00 6A 10 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 DB [18:35:55]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [18:35:55]wFMCommunicate OK [18:35:55]SAM_PROTO_GetShiftData done [18:35:55]requested_item shift.sale.total_cash is exist - process it [18:35:55]requested_item shift.sale_refund.total is exist - process it [18:35:55]requested_item shift.sale_refund.total_cash is exist - process it [18:35:55]requested_item shift.buy.total is exist - process it [18:35:55]requested_item shift.buy.total_cash is exist - process it [18:35:55]produce_requested_data done [18:35:55]produce_requested_data return {"fm.sale.total":133925102.62,"fm.sale_refund.total":37037760.00,"fm.buy.total":0.00,"shift.sale.total":117014.18,"shift.sale.total_cash":15742.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [18:35:55]process_action_free get_value [18:35:55]json_value_free [18:35:55]json_value_free done [18:35:55]process_json_proto returns [18:35:55]Send response to host [18:35:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":133925102.62,"fm.sale_refund.total":37037760.00,"fm.buy.total":0.00,"shift.sale.total":117014.18,"shift.sale.total_cash":15742.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [18:35:55]free response buf [18:35:55]execute_script done [18:35:55]execute_script returns [18:35:55]free content buf [18:35:55]Sock 7.Close socket [18:35:55]Sock 7.Thread stoped [18:36:00]OFD Sender: No OFD packet to send [18:36:05]OFD Sender: No OFD packet to send [18:36:10]OFD Sender: No OFD packet to send [18:36:15]OFD Sender: No OFD packet to send [18:36:20]OFD Sender: No OFD packet to send [18:36:25]OFD Sender: No OFD packet to send [18:36:30]OFD Sender: No OFD packet to send [18:36:35]OFD Sender: No OFD packet to send [18:36:40]OFD Sender: No OFD packet to send [18:36:45]OFD Sender: No OFD packet to send [18:36:49]accept exits with 9 [18:36:49]New connection [18:36:49]New thread 3067059556 created [18:36:49]Thread 3067202916 joined [18:36:49]Waiting for new connection... [18:36:49] Sock 9.Parse request [18:36:49]Sock 9.Check first char [18:36:49]Sock 9.First char is OK [18:36:49]request: POST /json_proto HTTP/1.0 [18:36:49]Method: POST [18:36:49]URL: /json_proto [18:36:49]Method is POST - this is cgi request [18:36:49]url: /json_proto [18:36:49]query_string will be loaded in cgi processing [18:36:49]execute_cgi json_proto POST (null) [18:36:49]execute_cgi path=json_proto method=POST [18:36:49]POST find Content-Length [18:36:49]Host: 172.17.41.195:8080 [18:36:49]Content-Length: 677 [18:36:49]Content-Type: application/json [18:36:49] [18:36:49]POST finish read [18:36:49]Found Content-Length = 677 [18:36:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)508131", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.80, "quantity" : 7.490, "sum" : 500.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:36:49]execute_script... [18:36:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)508131", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.80, "quantity" : 7.490, "sum" : 500.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:36:49]POST & json_proto [18:36:49]process_json_proto [18:36:49]json parsed OK: [18:36:49]protocol is kg_v1.0 [18:36:49]action value=close_receipt [18:36:49]process_action close_receipt [18:36:49]cmd_close_receipt [18:36:49]MH_GetDate [18:36:49]Write to MH i2c: F0 00 00 6B 10 6A [18:36:49]Write i2c OK [18:36:49]MH_I2C_Read... [18:36:49]Read from MH i2c: F0 [18:36:49]MH_I2C_Read... [18:36:49]Read from MH i2c: F0 09 00 [18:36:49]MH_I2C_Read... [18:36:49]Read from MH i2c: F0 09 00 6B 10 00 42 F5 48 66 FC 21 6F 64 48 [18:36:49]GetLastDocTimeStamp 1716056963 [18:36:49]current date 1716057410 [18:36:49]FM_GetShiftState [18:36:49]SAM_PROTO_GetShiftState [18:36:49]wFMCommunicate request_size=4 [18:36:49]MH_SAM_APDU [18:36:49]CAPDU: 80 13 01 00 [18:36:49]Write to MH i2c: E2 08 00 6C 10 80 13 01 00 00 00 00 00 F9 [18:36:49]Write i2c OK [18:36:49]MH_I2C_Read... [18:36:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:36:49]Read from MH i2c: E2 [18:36:49]MH_I2C_Read... [18:36:49]Read from MH i2c: E2 0E 00 [18:36:49]MH_I2C_Read... [18:36:49]Read from MH i2c: E2 0E 00 6C 10 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 60 [18:36:49]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [18:36:49]wFMCommunicate OK [18:36:49]SAM_PROTO_GetShiftState done [18:36:49]FM_GetShiftState done [18:36:49]opened in 1715991483 [18:36:49]opened+sec_in_day 1716077883 [18:36:49]quantity*price = 50033 [18:36:49]sum+1 = 50034 [18:36:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.33 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.13 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 107 18.05.2024 18:36 Смена: 359 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67868 ФПД: 161238913258214 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T183650&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67868&fm=161238913258214&tin=02508201610067®Number=0000000000091845&sum=50000 [18:36:50]StoreToDocumentArchive [18:36:50]shift 359 fd 67868 [18:36:50]save to /storage/0359/doc_00067868 [18:36:50]save last doc name /storage/0359/doc_00067868 to /storage/kkm_last_doc_name [18:36:50]save OK [18:36:50]Clear old archive folders... [18:36:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:36:50]tlvbuf is 00A170E0 [18:36:50]SAM_PROTO_ClearQueue [18:36:50]wFMCommunicate request_size=4 [18:36:50]MH_SAM_APDU [18:36:50]CAPDU: 80 09 00 00 [18:36:50]Write to MH i2c: E2 08 00 79 10 80 09 00 00 00 00 00 00 FB [18:36:50]Write i2c OK [18:36:50]MH_I2C_Read... [18:36:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:36:50]Read from MH i2c: E2 [18:36:50]MH_I2C_Read... [18:36:50]Read from MH i2c: E2 03 00 [18:36:50]MH_I2C_Read... [18:36:50]Read from MH i2c: E2 03 00 79 10 00 90 00 FD [18:36:50]RAPDU: 90 00 [18:36:50]wFMCommunicate OK [18:36:50]SAM_PROTO_ClearQueue done [18:36:50]KKMCreateOFDPacket [18:36:50]OFDProtocolAddRootSTLVToBuf [18:36:50]FM_MakeSignedData [18:36:50]FM_MakeSignedData [18:36:50]SAM_PROTO_SignData [18:36:50]wFMCommunicate request_size=4 [18:36:50]MH_SAM_APDU [18:36:50]CAPDU: 80 0D 01 02 [18:36:50]Write to MH i2c: E2 08 00 7A 10 80 0D 01 02 00 00 00 00 03 [18:36:50]Write i2c OK [18:36:50]MH_I2C_Read... [18:36:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:36:50]Read from MH i2c: E2 [18:36:50]MH_I2C_Read... [18:36:50]Read from MH i2c: E2 03 00 [18:36:50]MH_I2C_Read... [18:36:50]Read from MH i2c: E2 03 00 7A 10 00 90 00 FE [18:36:50]RAPDU: 90 00 [18:36:50]wFMCommunicate OK [18:36:50]wFMCommunicate request_size=255 [18:36:50]MH_SAM_APDU [18:36:50]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 42 1D 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 42 F5 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 1C 09 01 00 35 04 06 00 92 [18:36:50]Write to MH i2c: E2 02 01 7B 10 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 42 1D 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 42 F5 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 1C 09 01 00 35 04 06 00 92 00 00 FE [18:36:50]Write i2c OK [18:36:50]MH_I2C_Read... [18:36:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:36:50]Read from MH i2c: E2 [18:36:50]MH_I2C_Read... [18:36:50]Read from MH i2c: E2 03 00 [18:36:50]MH_I2C_Read... [18:36:50]Read from MH i2c: E2 03 00 7B 10 00 90 00 FF [18:36:50]RAPDU: 90 00 [18:36:50]wFMCommunicate OK [18:36:50]wFMCommunicate request_size=10 [18:36:50]MH_SAM_APDU [18:36:50]CAPDU: 80 0D 02 02 05 A5 5C 26 12 E6 [18:36:50]Write to MH i2c: E2 0D 00 7C 10 80 0D 02 02 05 00 A5 5C 26 12 E6 00 00 2F [18:36:50]Write i2c OK [18:36:50]MH_I2C_Read... [18:36:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:36:50]Read from MH i2c: E2 [18:36:50]MH_I2C_Read... [18:36:50]Read from MH i2c: E2 03 00 [18:36:50]MH_I2C_Read... [18:36:50]Read from MH i2c: E2 03 00 7C 10 00 90 00 00 [18:36:50]RAPDU: 90 00 [18:36:50]wFMCommunicate OK [18:36:50]wFMCommunicate request_size=4 [18:36:50]MH_SAM_APDU [18:36:50]CAPDU: 80 0D 03 02 [18:36:50]Write to MH i2c: E2 08 00 7D 10 80 0D 03 02 00 00 00 00 08 [18:36:50]Write i2c OK [18:36:50]MH_I2C_Read... [18:36:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:36:50]Read from MH i2c: E2 [18:36:50]MH_I2C_Read... [18:36:50]Read from MH i2c: E2 0B 00 [18:36:50]MH_I2C_Read... [18:36:50]Read from MH i2c: E2 0B 00 7D 10 00 35 77 90 52 3B 1E 22 82 90 00 94 [18:36:50]RAPDU: 35 77 90 52 3B 1E 22 82 90 00 [18:36:50]wFMCommunicate OK [18:36:50]SAM_PROTO_SignData done [18:36:50]FM_MakeSignedData done [18:36:50]CreateOFDProtocolMessage [18:36:50]wFMCommunicate request_size=4 [18:36:50]MH_SAM_APDU [18:36:50]CAPDU: 80 11 00 00 [18:36:50]Write to MH i2c: E2 08 00 7E 10 80 11 00 00 00 00 00 00 08 [18:36:50]Write i2c OK [18:36:50]MH_I2C_Read... [18:36:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:36:50]Read from MH i2c: E2 [18:36:50]MH_I2C_Read... [18:36:50]Read from MH i2c: E2 17 00 [18:36:50]MH_I2C_Read... [18:36:50]Read from MH i2c: E2 17 00 7E 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 5E [18:36:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [18:36:50]wFMCommunicate OK [18:36:50]CreateOFDProtocolMessage done [18:36:50]OFDSenderStorePacket 67868 [18:36:50]StoreOFDPacket docnum=67868 [18:36:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 E9 D8 07 01 5B F0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 42 1D 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 42 F5 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 1C 09 01 00 35 04 06 00 92 A5 5C 26 12 E6 35 77 90 52 3B 1E 22 82 [18:36:50]CheckFolder [18:36:50]dirname=/storage/ofd_packets [18:36:50]CheckFolder done [18:36:50]ProducePacketName [18:36:50]name=ofd_packets/00067868 [18:36:50]NVStorageSaveData ofd_packets/00067868 [18:36:50]File name is /storage/ofd_packets/00067868 [18:36:50]Write 301 bytes [18:36:50]NVStorageSaveData done [18:36:50]OFDSenderStorePacket done [18:36:50]KKMCreateOFDPacket done [18:36:50]NVStorageSaveData kkm_last_timestamp [18:36:50]File name is /storage/kkm_last_timestamp [18:36:50]Write 4 bytes [18:36:50]NVStorageSaveData done [18:36:50]ExternCall_PrintAddStr [18:36:50]wPrintStart [18:36:50]Write to MH i2c: 01 00 00 7F 10 8F [18:36:50]Write i2c OK [18:36:50]MH_I2C_Read... [18:36:50]Read from MH i2c: 01 [18:36:50]MH_I2C_Read... [18:36:50]Read from MH i2c: 01 07 00 [18:36:50]MH_I2C_Read... [18:36:50]Read from MH i2c: 01 07 00 7F 10 00 00 00 00 00 FF 0F A4 [18:36:50]RasterBufferAndPrint [18:36:50]line Счет N : (1)508131 [18:36:50]line ИНН: 02508201610067 [18:36:50]line Контрольно-Кассовый Чек [18:36:50]line ПРОДАЖА [18:36:50]line ТРК (МРК, ГНК) : 33 [18:36:50]line Товар: 2710124130 [18:36:50]line Аи-92-К-5 [18:36:50]line 7.490 * 66.80 [18:36:50]line = 500.33 [18:36:50]line НДС 12% НСП 1% [18:36:50]line > о реализуемом товаре [18:36:50]line ОКРУГЛЕНИЕ: -0.33 [18:36:50]line ИТОГО: 500.00 [18:36:50]line Внесено: 500.00 [18:36:50]line СДАЧА: 0.00 [18:36:50]line НСП 1% : 4.43 [18:36:50]line НДС 12% : 53.13 [18:36:50]line Наличными: 500.00 [18:36:50]line Безнал.: 0.00 [18:36:50]line Место: АЗС № 91 "Партнер Нефть" [18:36:50]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [18:36:50]line СНО: Общий режим [18:36:50]line Чек 107 18.05.2024 18:36 [18:36:50]line Смена: 359 ФФД: 1.0 [18:36:50]line ЗНМ: 0300000119 [18:36:50]line РНМ: 0000000000091845 [18:36:50]line Версия ККМ: 001 [18:36:50]line ФМ: 0000000000871829 [18:36:50]line ФД: 67868 [18:36:50]line ФПД: 161238913258214 [18:36:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T183650&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67868&fm=161238913258214&tin=02508201610067®Number=0000000000091845&sum=50000 [18:36:51]OFD Sender: Processing packet 67868 [packets to send 35, broken 34] [18:36:51]ProducePacketName [18:36:51]name=ofd_packets/00067868 [18:36:51]OFD Sender: To server: pG, [18:36:51]CommunicateWithHost lk.salyk.kg:30040 [18:36:51]ConnectInit lk.salyk.kg [18:36:51]written 0, free lines is 4095 [18:36:51]Connected sock=10 [18:36:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 E9 D8 07 01 5B F0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 42 1D 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 42 F5 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 1C 09 01 00 35 04 06 00 92 A5 5C 26 12 E6 35 77 90 52 3B 1E 22 82 [18:36:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 B8 D0 47 00 EE F8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 1C 09 01 00 F4 03 04 00 17 9D 48 66 B6 04 01 00 00 1F B3 32 B3 1B CF 2D 83 [18:36:51]CommunicateWithHost err = 0 [18:36:51]CheckOFDResponse [18:36:51]1017 (14) - 77093643461234 [18:36:51]1041 (16) - 0000000000871829 [18:36:51]1040 (4) - 67868 [18:36:51]1012 (4) - 18.05.2024 12:20 [18:36:51]1206 (1) - 0 [18:36:51]OFD Sender: Remove packet 67868 [18:36:51]ProducePacketName [18:36:51]name=ofd_packets/00067868 [18:36:51]NVStorageDeleteData [18:36:51]Write to MH i2c: 01 00 00 A9 10 B9 [18:36:51]Write i2c OK [18:36:51]MH_I2C_Read... [18:36:51]Read from MH i2c: 01 [18:36:51]MH_I2C_Read... [18:36:51]Read from MH i2c: 01 07 00 [18:36:51]MH_I2C_Read... [18:36:51]Read from MH i2c: 01 07 00 A9 10 00 00 00 00 00 D5 0C A1 [18:36:51]RasterBufferAndPrint [18:36:51]line [18:36:51]line [18:36:51]line [18:36:51]line [18:36:51]line [18:36:51]written 0, free lines is 3292 [18:36:51]MH_Cut [18:36:51]Write to MH i2c: D1 01 00 B0 10 01 92 [18:36:51]Write i2c OK [18:36:51]MH_I2C_Read... [18:36:51]Read from MH i2c: D1 [18:36:51]MH_I2C_Read... [18:36:51]Read from MH i2c: D1 01 00 [18:36:51]MH_I2C_Read... [18:36:51]Read from MH i2c: D1 01 00 B0 10 00 91 [18:36:51]Write to MH i2c: 01 00 00 B1 10 C1 [18:36:51]Write i2c OK [18:36:51]MH_I2C_Read... [18:36:51]OFD Sender: No OFD packet to send [18:36:52]*** Cut start [18:36:52]*** Purtial cut [18:36:52]*** CUTSNS_PIN = 0 [18:36:52]*** Stage 1: CUTSNS_PIN = 1 [18:36:54]Read from MH i2c: 01 [18:36:54]MH_I2C_Read... [18:36:54]*** Stop cut motor [18:36:54]*** Cut end [18:36:54]Read from MH i2c: 01 07 00 [18:36:54]MH_I2C_Read... [18:36:54]Read from MH i2c: 01 07 00 B1 10 00 00 00 00 00 FF 0F D6 [18:36:54]process_action close_receipt done [18:36:54]requested_data is exist [18:36:54]produce_requested_data [18:36:54]requested_item fm.sn is exist - process it [18:36:54]wFMCommunicate request_size=4 [18:36:54]MH_SAM_APDU [18:36:54]CAPDU: 80 11 00 00 [18:36:54]Write to MH i2c: E2 08 00 B2 10 80 11 00 00 00 00 00 00 3C [18:36:54]Write i2c OK [18:36:54]MH_I2C_Read... [18:36:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:36:54]Read from MH i2c: E2 [18:36:54]MH_I2C_Read... [18:36:54]Read from MH i2c: E2 17 00 [18:36:54]MH_I2C_Read... [18:36:54]Read from MH i2c: E2 17 00 B2 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 92 [18:36:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [18:36:54]wFMCommunicate OK [18:36:54]requested_item fd.num is exist - process it [18:36:54]SAM_PROTO_GetFieldsCounters [18:36:54]wFMCommunicate request_size=4 [18:36:54]MH_SAM_APDU [18:36:54]CAPDU: 80 13 00 00 [18:36:54]Write to MH i2c: E2 08 00 B3 10 80 13 00 00 00 00 00 00 3F [18:36:54]Write i2c OK [18:36:54]MH_I2C_Read... [18:36:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:36:54]Read from MH i2c: E2 [18:36:54]MH_I2C_Read... [18:36:54]Read from MH i2c: E2 62 00 [18:36:54]MH_I2C_Read... [18:36:54]Read from MH i2c: E2 62 00 B3 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 1C 09 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 6B 00 00 00 5E 04 04 00 6B 00 00 00 57 04 04 00 6C 00 00 00 19 04 04 00 00 00 00 00 90 00 34 [18:36:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 1C 09 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 6B 00 00 00 5E 04 04 00 6B 00 00 00 57 04 04 00 6C 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:36:54]wFMCommunicate OK [18:36:54]SAM_PROTO_GetFieldsCounters done [18:36:54]requested_item shift.num is exist - process it [18:36:54]requested_item shift.opened is exist - process it [18:36:54]req_shift_opened [18:36:54]FM_GetShiftState [18:36:54]SAM_PROTO_GetShiftState [18:36:54]wFMCommunicate request_size=4 [18:36:54]MH_SAM_APDU [18:36:54]CAPDU: 80 13 01 00 [18:36:54]Write to MH i2c: E2 08 00 B4 10 80 13 01 00 00 00 00 00 41 [18:36:54]Write i2c OK [18:36:54]MH_I2C_Read... [18:36:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:36:54]Read from MH i2c: E2 [18:36:54]MH_I2C_Read... [18:36:54]Read from MH i2c: E2 0E 00 [18:36:54]MH_I2C_Read... [18:36:54]Read from MH i2c: E2 0E 00 B4 10 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 A8 [18:36:54]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [18:36:54]wFMCommunicate OK [18:36:54]SAM_PROTO_GetShiftState done [18:36:54]FM_GetShiftState done [18:36:54]req_shift_opened done [18:36:54]requested_item shift.open_date is exist - process it [18:36:54]req_shift_open_date [18:36:54]req_shift_open_date done [18:36:54]produce_requested_data done [18:36:54]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67868,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [18:36:54]process_action_free close_receipt [18:36:54]json_value_free [18:36:54]json_value_free done [18:36:54]process_json_proto returns [18:36:54]Send response to host [18:36:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67868,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [18:36:54]free response buf [18:36:54]execute_script done [18:36:54]execute_script returns [18:36:54]free content buf [18:36:54]Sock 9.Close socket [18:36:54]Sock 9.Thread stoped [18:36:56]OFD Sender: No OFD packet to send [18:37:01]OFD Sender: No OFD packet to send [18:37:06]OFD Sender: No OFD packet to send [18:37:11]OFD Sender: No OFD packet to send [18:37:16]OFD Sender: No OFD packet to send [18:37:21]OFD Sender: No OFD packet to send [18:37:26]OFD Sender: No OFD packet to send [18:37:31]OFD Sender: No OFD packet to send [18:37:36]OFD Sender: No OFD packet to send [18:37:41]OFD Sender: No OFD packet to send [18:37:46]OFD Sender: No OFD packet to send [18:37:51]OFD Sender: No OFD packet to send [18:37:56]OFD Sender: No OFD packet to send [18:38:01]OFD Sender: No OFD packet to send [18:38:06]OFD Sender: No OFD packet to send [18:38:11]OFD Sender: No OFD packet to send [18:38:16]OFD Sender: No OFD packet to send [18:38:21]OFD Sender: No OFD packet to send [18:38:26]OFD Sender: No OFD packet to send [18:38:31]OFD Sender: No OFD packet to send [18:38:36]OFD Sender: No OFD packet to send [18:38:41]OFD Sender: No OFD packet to send [18:38:46]OFD Sender: No OFD packet to send [18:38:51]OFD Sender: No OFD packet to send [18:38:57]OFD Sender: No OFD packet to send [18:39:02]OFD Sender: No OFD packet to send [18:39:04]accept exits with 7 [18:39:04]New connection [18:39:04]New thread 3067202916 created [18:39:04]Thread 3067059556 joined [18:39:04]Waiting for new connection... [18:39:04] Sock 7.Parse request [18:39:04]Sock 7.Check first char [18:39:04]Sock 7.First char is OK [18:39:04]request: POST /json_proto HTTP/1.0 [18:39:04]Method: POST [18:39:04]URL: /json_proto [18:39:04]Method is POST - this is cgi request [18:39:04]url: /json_proto [18:39:04]query_string will be loaded in cgi processing [18:39:04]execute_cgi json_proto POST (null) [18:39:04]execute_cgi path=json_proto method=POST [18:39:04]POST find Content-Length [18:39:04]Host: 172.17.41.195:8080 [18:39:04]Content-Length: 800 [18:39:04]Content-Type: application/json [18:39:04] [18:39:04]POST finish read [18:39:04]Found Content-Length = 800 [18:39:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)508132", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 20.090, "sum" : 1500.72, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1500.72 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:39:04]execute_script... [18:39:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)508132", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 20.090, "sum" : 1500.72, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1500.72 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:39:04]POST & json_proto [18:39:04]process_json_proto [18:39:04]json parsed OK: [18:39:04]protocol is kg_v1.0 [18:39:04]action value=close_receipt [18:39:04]process_action close_receipt [18:39:04]cmd_close_receipt [18:39:04]MH_GetDate [18:39:04]Write to MH i2c: F0 00 00 B5 10 B4 [18:39:04]Write i2c OK [18:39:04]MH_I2C_Read... [18:39:04]Read from MH i2c: F0 [18:39:04]MH_I2C_Read... [18:39:04]Read from MH i2c: F0 09 00 [18:39:04]MH_I2C_Read... [18:39:04]Read from MH i2c: F0 09 00 B5 10 00 C9 F5 48 66 FC 21 6F 64 19 [18:39:04]GetLastDocTimeStamp 1716057410 [18:39:04]current date 1716057545 [18:39:04]FM_GetShiftState [18:39:04]SAM_PROTO_GetShiftState [18:39:04]wFMCommunicate request_size=4 [18:39:04]MH_SAM_APDU [18:39:04]CAPDU: 80 13 01 00 [18:39:04]Write to MH i2c: E2 08 00 B6 10 80 13 01 00 00 00 00 00 43 [18:39:04]Write i2c OK [18:39:04]MH_I2C_Read... [18:39:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:39:04]Read from MH i2c: E2 [18:39:04]MH_I2C_Read... [18:39:04]Read from MH i2c: E2 0E 00 [18:39:04]MH_I2C_Read... [18:39:04]Read from MH i2c: E2 0E 00 B6 10 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 AA [18:39:04]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [18:39:04]wFMCommunicate OK [18:39:04]SAM_PROTO_GetShiftState done [18:39:04]FM_GetShiftState done [18:39:04]opened in 1715991483 [18:39:04]opened+sec_in_day 1716077883 [18:39:04]quantity*price = 150072 [18:39:04]sum+1 = 150073 [18:39:04]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.72 НСП 1% : 13.28 НДС 12% : 159.37 Наличными: 0.00 Безнал.: 1500.72 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 108 18.05.2024 18:39 Смена: 359 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67869 ФПД: 174367531443549 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T183905&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67869&fm=174367531443549&tin=02508201610067®Number=0000000000091845&sum=150072 [18:39:05]StoreToDocumentArchive [18:39:05]shift 359 fd 67869 [18:39:05]save to /storage/0359/doc_00067869 [18:39:05]save last doc name /storage/0359/doc_00067869 to /storage/kkm_last_doc_name [18:39:05]save OK [18:39:05]Clear old archive folders... [18:39:05]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:39:05]tlvbuf is 00A17BB0 [18:39:05]SAM_PROTO_ClearQueue [18:39:05]wFMCommunicate request_size=4 [18:39:05]MH_SAM_APDU [18:39:05]CAPDU: 80 09 00 00 [18:39:05]Write to MH i2c: E2 08 00 C3 10 80 09 00 00 00 00 00 00 45 [18:39:05]Write i2c OK [18:39:05]MH_I2C_Read... [18:39:05]Read from MH i2c: E2 [18:39:05]MH_I2C_Read... [18:39:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:39:05]Read from MH i2c: E2 03 00 [18:39:05]MH_I2C_Read... [18:39:05]Read from MH i2c: E2 03 00 C3 10 00 90 00 47 [18:39:05]RAPDU: 90 00 [18:39:05]wFMCommunicate OK [18:39:05]SAM_PROTO_ClearQueue done [18:39:05]KKMCreateOFDPacket [18:39:05]OFDProtocolAddRootSTLVToBuf [18:39:05]FM_MakeSignedData [18:39:05]FM_MakeSignedData [18:39:05]SAM_PROTO_SignData [18:39:05]wFMCommunicate request_size=4 [18:39:05]MH_SAM_APDU [18:39:05]CAPDU: 80 0D 01 02 [18:39:05]Write to MH i2c: E2 08 00 C4 10 80 0D 01 02 00 00 00 00 4D [18:39:05]Write i2c OK [18:39:05]MH_I2C_Read... [18:39:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:39:05]Read from MH i2c: E2 [18:39:05]MH_I2C_Read... [18:39:05]Read from MH i2c: E2 03 00 [18:39:05]MH_I2C_Read... [18:39:05]Read from MH i2c: E2 03 00 C4 10 00 90 00 48 [18:39:05]RAPDU: 90 00 [18:39:05]wFMCommunicate OK [18:39:05]wFMCommunicate request_size=255 [18:39:05]MH_SAM_APDU [18:39:05]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7A 4E 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 38 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 41 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 38 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 C9 F5 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 1D 09 01 00 35 04 06 00 9E 96 1A C5 [18:39:05]Write to MH i2c: E2 02 01 C5 10 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7A 4E 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 38 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 41 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 38 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 C9 F5 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 1D 09 01 00 35 04 06 00 9E 96 1A C5 00 00 7C [18:39:05]Write i2c OK [18:39:05]MH_I2C_Read... [18:39:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:39:05]Read from MH i2c: E2 [18:39:05]MH_I2C_Read... [18:39:05]Read from MH i2c: E2 03 00 [18:39:05]MH_I2C_Read... [18:39:05]Read from MH i2c: E2 03 00 C5 10 00 90 00 49 [18:39:05]RAPDU: 90 00 [18:39:05]wFMCommunicate OK [18:39:05]wFMCommunicate request_size=7 [18:39:05]MH_SAM_APDU [18:39:05]CAPDU: 80 0D 02 02 02 A5 5D [18:39:05]Write to MH i2c: E2 0A 00 C6 10 80 0D 02 02 02 00 A5 5D 00 00 56 [18:39:05]Write i2c OK [18:39:05]MH_I2C_Read... [18:39:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:39:05]Read from MH i2c: E2 [18:39:05]MH_I2C_Read... [18:39:05]Read from MH i2c: E2 03 00 [18:39:05]MH_I2C_Read... [18:39:05]Read from MH i2c: E2 03 00 C6 10 00 90 00 4A [18:39:05]RAPDU: 90 00 [18:39:05]wFMCommunicate OK [18:39:05]wFMCommunicate request_size=4 [18:39:05]MH_SAM_APDU [18:39:05]CAPDU: 80 0D 03 02 [18:39:05]Write to MH i2c: E2 08 00 C7 10 80 0D 03 02 00 00 00 00 52 [18:39:05]Write i2c OK [18:39:05]MH_I2C_Read... [18:39:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:39:05]Read from MH i2c: E2 [18:39:05]MH_I2C_Read... [18:39:05]Read from MH i2c: E2 0B 00 [18:39:05]MH_I2C_Read... [18:39:05]Read from MH i2c: E2 0B 00 C7 10 00 93 D7 89 BC BC 96 D1 DF 90 00 04 [18:39:05]RAPDU: 93 D7 89 BC BC 96 D1 DF 90 00 [18:39:05]wFMCommunicate OK [18:39:05]SAM_PROTO_SignData done [18:39:05]FM_MakeSignedData done [18:39:05]CreateOFDProtocolMessage [18:39:05]wFMCommunicate request_size=4 [18:39:05]MH_SAM_APDU [18:39:05]CAPDU: 80 11 00 00 [18:39:05]Write to MH i2c: E2 08 00 C8 10 80 11 00 00 00 00 00 00 52 [18:39:05]Write i2c OK [18:39:05]MH_I2C_Read... [18:39:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:39:05]Read from MH i2c: E2 [18:39:05]MH_I2C_Read... [18:39:05]Read from MH i2c: E2 17 00 [18:39:05]MH_I2C_Read... [18:39:05]Read from MH i2c: E2 17 00 C8 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 A8 [18:39:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [18:39:05]wFMCommunicate OK [18:39:05]CreateOFDProtocolMessage done [18:39:05]OFDSenderStorePacket 67869 [18:39:05]StoreOFDPacket docnum=67869 [18:39:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 9B 0A 04 01 EA 53 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7A 4E 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 38 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 41 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 38 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 C9 F5 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 1D 09 01 00 35 04 06 00 9E 96 1A C5 A5 5D 93 D7 89 BC BC 96 D1 DF [18:39:05]CheckFolder [18:39:05]dirname=/storage/ofd_packets [18:39:05]CheckFolder done [18:39:05]ProducePacketName [18:39:05]name=ofd_packets/00067869 [18:39:05]NVStorageSaveData ofd_packets/00067869 [18:39:05]File name is /storage/ofd_packets/00067869 [18:39:05]Write 298 bytes [18:39:05]NVStorageSaveData done [18:39:05]OFDSenderStorePacket done [18:39:05]KKMCreateOFDPacket done [18:39:05]NVStorageSaveData kkm_last_timestamp [18:39:05]File name is /storage/kkm_last_timestamp [18:39:05]Write 4 bytes [18:39:05]NVStorageSaveData done [18:39:05]ExternCall_PrintAddStr [18:39:05]wPrintStart [18:39:05]Write to MH i2c: 01 00 00 C9 10 D9 [18:39:05]Write i2c OK [18:39:05]MH_I2C_Read... [18:39:05]Read from MH i2c: 01 [18:39:05]MH_I2C_Read... [18:39:05]Read from MH i2c: 01 07 00 [18:39:05]MH_I2C_Read... [18:39:05]Read from MH i2c: 01 07 00 C9 10 00 00 00 00 00 FF 0F EE [18:39:05]RasterBufferAndPrint [18:39:05]line Счет N : (1)508132 [18:39:05]line ИНН: 02508201610067 [18:39:05]line Контрольно-Кассовый Чек [18:39:05]line ПРОДАЖА [18:39:05]line ТРК (МРК, ГНК) : 31 [18:39:05]line Товар: 2710194210 [18:39:05]line ДТ-К-5 [18:39:05]line 20.090 * 74.70 [18:39:05]line = 1500.72 [18:39:05]line НДС 12% НСП 1% [18:39:05]line > о реализуемом товаре [18:39:05]line ИТОГО: 1500.72 [18:39:05]line НСП 1% : 13.28 [18:39:05]line НДС 12% : 159.37 [18:39:05]line Наличными: 0.00 [18:39:05]line Безнал.: 1500.72 [18:39:05]line Место: АЗС № 91 "Партнер Нефть" [18:39:05]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [18:39:05]line СНО: Общий режим [18:39:05]line Чек 108 18.05.2024 18:39 [18:39:05]line Смена: 359 ФФД: 1.0 [18:39:05]line ЗНМ: 0300000119 [18:39:05]line РНМ: 0000000000091845 [18:39:05]line Версия ККМ: 001 [18:39:05]line Платежная система: O! деньги [18:39:05]line ФМ: 0000000000871829 [18:39:05]line ФД: 67869 [18:39:05]line ФПД: 174367531443549 [18:39:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T183905&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67869&fm=174367531443549&tin=02508201610067®Number=0000000000091845&sum=150072 [18:39:06]OFD Sender: Processing packet 67869 [packets to send 35, broken 34] [18:39:06]ProducePacketName [18:39:06]name=ofd_packets/00067869 [18:39:06]OFD Sender: To server: pG, [18:39:06]CommunicateWithHost lk.salyk.kg:30040 [18:39:06]ConnectInit lk.salyk.kg [18:39:06]written 0, free lines is 4095 [18:39:06]Connected sock=10 [18:39:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 9B 0A 04 01 EA 53 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7A 4E 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 38 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 41 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 38 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 C9 F5 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 1D 09 01 00 35 04 06 00 9E 96 1A C5 A5 5D 93 D7 89 BC BC 96 D1 DF [18:39:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 0A 3B 47 00 40 C6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 1D 09 01 00 F4 03 04 00 9E 9D 48 66 B6 04 01 00 00 A8 91 38 BF 74 5C E7 B3 [18:39:06]CommunicateWithHost err = 0 [18:39:06]CheckOFDResponse [18:39:06]1017 (14) - 77093643461234 [18:39:06]1041 (16) - 0000000000871829 [18:39:06]1040 (4) - 67869 [18:39:06]1012 (4) - 18.05.2024 12:22 [18:39:06]1206 (1) - 0 [18:39:06]OFD Sender: Remove packet 67869 [18:39:06]ProducePacketName [18:39:06]name=ofd_packets/00067869 [18:39:06]NVStorageDeleteData [18:39:06]Write to MH i2c: 01 00 00 F2 10 02 [18:39:06]Write i2c OK [18:39:06]MH_I2C_Read... [18:39:06]Read from MH i2c: 01 [18:39:06]MH_I2C_Read... [18:39:06]Read from MH i2c: 01 07 00 [18:39:06]MH_I2C_Read... [18:39:06]Read from MH i2c: 01 07 00 F2 10 00 00 00 00 00 D9 0C EE [18:39:06]RasterBufferAndPrint [18:39:06]line [18:39:06]line [18:39:06]line [18:39:06]line [18:39:06]line [18:39:06]written 0, free lines is 3294 [18:39:06]MH_Cut [18:39:06]Write to MH i2c: D1 01 00 F9 10 01 DB [18:39:06]Write i2c OK [18:39:06]MH_I2C_Read... [18:39:06]Read from MH i2c: D1 [18:39:06]MH_I2C_Read... [18:39:06]Read from MH i2c: D1 01 00 [18:39:06]MH_I2C_Read... [18:39:06]Read from MH i2c: D1 01 00 F9 10 00 DA [18:39:06]Write to MH i2c: 01 00 00 FA 10 0A [18:39:06]Write i2c OK [18:39:06]MH_I2C_Read... [18:39:06]OFD Sender: No OFD packet to send [18:39:07]*** Cut start [18:39:07]*** Purtial cut [18:39:07]*** Stage 1: CUTSNS_PIN = 1 [18:39:07]Read from MH i2c: 01 [18:39:07]MH_I2C_Read... [18:39:07]*** Stop cut motor [18:39:07]*** Cut end [18:39:07]Read from MH i2c: 01 07 00 [18:39:07]MH_I2C_Read... [18:39:07]Read from MH i2c: 01 07 00 FA 10 00 00 00 00 00 FF 0F 1F [18:39:07]process_action close_receipt done [18:39:07]requested_data is exist [18:39:07]produce_requested_data [18:39:07]requested_item fm.sn is exist - process it [18:39:07]wFMCommunicate request_size=4 [18:39:07]MH_SAM_APDU [18:39:07]CAPDU: 80 11 00 00 [18:39:07]Write to MH i2c: E2 08 00 FB 10 80 11 00 00 00 00 00 00 85 [18:39:07]Write i2c OK [18:39:07]MH_I2C_Read... [18:39:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:39:07]Read from MH i2c: E2 [18:39:07]MH_I2C_Read... [18:39:07]Read from MH i2c: E2 17 00 [18:39:07]MH_I2C_Read... [18:39:07]Read from MH i2c: E2 17 00 FB 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 DB [18:39:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [18:39:07]wFMCommunicate OK [18:39:07]requested_item fd.num is exist - process it [18:39:07]SAM_PROTO_GetFieldsCounters [18:39:07]wFMCommunicate request_size=4 [18:39:07]MH_SAM_APDU [18:39:07]CAPDU: 80 13 00 00 [18:39:07]Write to MH i2c: E2 08 00 FC 10 80 13 00 00 00 00 00 00 88 [18:39:07]Write i2c OK [18:39:07]MH_I2C_Read... [18:39:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:39:07]Read from MH i2c: E2 [18:39:07]MH_I2C_Read... [18:39:07]Read from MH i2c: E2 62 00 [18:39:07]MH_I2C_Read... [18:39:07]Read from MH i2c: E2 62 00 FC 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 1D 09 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 6C 00 00 00 5E 04 04 00 6C 00 00 00 57 04 04 00 6D 00 00 00 19 04 04 00 00 00 00 00 90 00 81 [18:39:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 1D 09 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 6C 00 00 00 5E 04 04 00 6C 00 00 00 57 04 04 00 6D 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:39:07]wFMCommunicate OK [18:39:07]SAM_PROTO_GetFieldsCounters done [18:39:07]requested_item shift.num is exist - process it [18:39:07]requested_item shift.opened is exist - process it [18:39:07]req_shift_opened [18:39:07]FM_GetShiftState [18:39:07]SAM_PROTO_GetShiftState [18:39:07]wFMCommunicate request_size=4 [18:39:07]MH_SAM_APDU [18:39:07]CAPDU: 80 13 01 00 [18:39:07]Write to MH i2c: E2 08 00 FD 10 80 13 01 00 00 00 00 00 8A [18:39:07]Write i2c OK [18:39:07]MH_I2C_Read... [18:39:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:39:07]Read from MH i2c: E2 [18:39:07]MH_I2C_Read... [18:39:07]Read from MH i2c: E2 0E 00 [18:39:07]MH_I2C_Read... [18:39:07]Read from MH i2c: E2 0E 00 FD 10 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 F1 [18:39:07]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [18:39:07]wFMCommunicate OK [18:39:07]SAM_PROTO_GetShiftState done [18:39:07]FM_GetShiftState done [18:39:07]req_shift_opened done [18:39:07]requested_item shift.open_date is exist - process it [18:39:07]req_shift_open_date [18:39:07]req_shift_open_date done [18:39:07]produce_requested_data done [18:39:07]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67869,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [18:39:07]process_action_free close_receipt [18:39:07]json_value_free [18:39:07]json_value_free done [18:39:07]process_json_proto returns [18:39:07]Send response to host [18:39:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67869,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [18:39:07]free response buf [18:39:07]execute_script done [18:39:07]execute_script returns [18:39:07]free content buf [18:39:07]Sock 7.Close socket [18:39:07]Sock 7.Thread stoped [18:39:11]OFD Sender: No OFD packet to send [18:39:16]OFD Sender: No OFD packet to send [18:39:21]OFD Sender: No OFD packet to send [18:39:26]OFD Sender: No OFD packet to send [18:39:31]OFD Sender: No OFD packet to send [18:39:36]OFD Sender: No OFD packet to send [18:39:41]OFD Sender: No OFD packet to send [18:39:46]OFD Sender: No OFD packet to send [18:39:51]OFD Sender: No OFD packet to send [18:39:56]OFD Sender: No OFD packet to send [18:40:01]OFD Sender: No OFD packet to send [18:40:06]OFD Sender: No OFD packet to send [18:40:11]OFD Sender: No OFD packet to send [18:40:16]OFD Sender: No OFD packet to send [18:40:21]OFD Sender: No OFD packet to send [18:40:26]OFD Sender: No OFD packet to send [18:40:31]OFD Sender: No OFD packet to send [18:40:36]OFD Sender: No OFD packet to send [18:40:41]OFD Sender: No OFD packet to send [18:40:46]OFD Sender: No OFD packet to send [18:40:51]OFD Sender: No OFD packet to send [18:40:56]OFD Sender: No OFD packet to send [18:41:01]OFD Sender: No OFD packet to send [18:41:06]OFD Sender: No OFD packet to send [18:41:11]OFD Sender: No OFD packet to send [18:41:16]OFD Sender: No OFD packet to send [18:41:22]OFD Sender: No OFD packet to send [18:41:27]OFD Sender: No OFD packet to send [18:41:32]OFD Sender: No OFD packet to send [18:41:37]OFD Sender: No OFD packet to send [18:41:42]OFD Sender: No OFD packet to send [18:41:47]OFD Sender: No OFD packet to send [18:41:52]OFD Sender: No OFD packet to send [18:41:57]OFD Sender: No OFD packet to send [18:42:02]OFD Sender: No OFD packet to send [18:42:07]OFD Sender: No OFD packet to send [18:42:12]OFD Sender: No OFD packet to send [18:42:17]OFD Sender: No OFD packet to send [18:42:22]OFD Sender: No OFD packet to send [18:42:23]accept exits with 9 [18:42:23]New connection [18:42:23]New thread 3067059556 created [18:42:23]Thread 3067202916 joined [18:42:23]Waiting for new connection... [18:42:23] Sock 9.Parse request [18:42:23]Sock 9.Check first char [18:42:23]Sock 9.First char is OK [18:42:23]request: POST /json_proto HTTP/1.0 [18:42:23]Method: POST [18:42:23]URL: /json_proto [18:42:23]Method is POST - this is cgi request [18:42:23]url: /json_proto [18:42:23]query_string will be loaded in cgi processing [18:42:23]execute_cgi json_proto POST (null) [18:42:23]execute_cgi path=json_proto method=POST [18:42:23]POST find Content-Length [18:42:23]Host: 172.17.41.195:8080 [18:42:23]Content-Length: 796 [18:42:23]Content-Type: application/json [18:42:23] [18:42:23]POST finish read [18:42:23]Found Content-Length = 796 [18:42:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)508133", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.05 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:42:23]execute_script... [18:42:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)508133", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.05 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:42:23]POST & json_proto [18:42:23]process_json_proto [18:42:23]json parsed OK: [18:42:23]protocol is kg_v1.0 [18:42:23]action value=close_receipt [18:42:23]process_action close_receipt [18:42:23]cmd_close_receipt [18:42:23]MH_GetDate [18:42:23]Write to MH i2c: F0 00 00 FE 10 FD [18:42:23]Write i2c OK [18:42:23]MH_I2C_Read... [18:42:23]Read from MH i2c: F0 [18:42:23]MH_I2C_Read... [18:42:23]Read from MH i2c: F0 09 00 [18:42:23]MH_I2C_Read... [18:42:23]Read from MH i2c: F0 09 00 FE 10 00 90 F6 48 66 FC 21 6F 64 2A [18:42:23]GetLastDocTimeStamp 1716057545 [18:42:23]current date 1716057744 [18:42:23]FM_GetShiftState [18:42:23]SAM_PROTO_GetShiftState [18:42:23]wFMCommunicate request_size=4 [18:42:23]MH_SAM_APDU [18:42:23]CAPDU: 80 13 01 00 [18:42:23]Write to MH i2c: E2 08 00 FF 10 80 13 01 00 00 00 00 00 8C [18:42:23]Write i2c OK [18:42:23]MH_I2C_Read... [18:42:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:42:23]Read from MH i2c: E2 [18:42:23]MH_I2C_Read... [18:42:23]Read from MH i2c: E2 0E 00 [18:42:23]MH_I2C_Read... [18:42:23]Read from MH i2c: E2 0E 00 FF 10 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 F3 [18:42:23]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [18:42:23]wFMCommunicate OK [18:42:23]SAM_PROTO_GetShiftState done [18:42:23]FM_GetShiftState done [18:42:23]opened in 1715991483 [18:42:23]opened+sec_in_day 1716077883 [18:42:23]quantity*price = 100005 [18:42:23]sum+1 = 100006 [18:42:23]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.05 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 0.00 Безнал.: 1000.05 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 109 18.05.2024 18:42 Смена: 359 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67870 ФПД: 240228688632932 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T184224&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67870&fm=240228688632932&tin=02508201610067®Number=0000000000091845&sum=100005 [18:42:24]StoreToDocumentArchive [18:42:24]shift 359 fd 67870 [18:42:24]save to /storage/0359/doc_00067870 [18:42:24]save last doc name /storage/0359/doc_00067870 to /storage/kkm_last_doc_name [18:42:24]save OK [18:42:24]Clear old archive folders... [18:42:24]ProcessDocumentItem done err = 0, tmpTLVsize=252 [18:42:24]tlvbuf is 009D0190 [18:42:24]SAM_PROTO_ClearQueue [18:42:24]wFMCommunicate request_size=4 [18:42:24]MH_SAM_APDU [18:42:24]CAPDU: 80 09 00 00 [18:42:24]Write to MH i2c: E2 08 00 0C 11 80 09 00 00 00 00 00 00 8F [18:42:24]Write i2c OK [18:42:24]MH_I2C_Read... [18:42:24]Read from MH i2c: E2 [18:42:24]MH_I2C_Read... [18:42:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:42:24]Read from MH i2c: E2 03 00 [18:42:24]MH_I2C_Read... [18:42:24]Read from MH i2c: E2 03 00 0C 11 00 90 00 91 [18:42:24]RAPDU: 90 00 [18:42:24]wFMCommunicate OK [18:42:24]SAM_PROTO_ClearQueue done [18:42:24]KKMCreateOFDPacket [18:42:24]OFDProtocolAddRootSTLVToBuf [18:42:24]FM_MakeSignedData [18:42:24]FM_MakeSignedData [18:42:24]SAM_PROTO_SignData [18:42:24]wFMCommunicate request_size=4 [18:42:24]MH_SAM_APDU [18:42:24]CAPDU: 80 0D 01 02 [18:42:24]Write to MH i2c: E2 08 00 0D 11 80 0D 01 02 00 00 00 00 97 [18:42:24]Write i2c OK [18:42:24]MH_I2C_Read... [18:42:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:42:24]Read from MH i2c: E2 [18:42:24]MH_I2C_Read... [18:42:24]Read from MH i2c: E2 03 00 [18:42:24]MH_I2C_Read... [18:42:24]Read from MH i2c: E2 03 00 0D 11 00 90 00 92 [18:42:24]RAPDU: 90 00 [18:42:24]wFMCommunicate OK [18:42:24]wFMCommunicate request_size=255 [18:42:24]MH_SAM_APDU [18:42:24]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A5 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A5 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 90 F6 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 1E 09 01 00 35 04 06 00 [18:42:24]Write to MH i2c: E2 02 01 0E 11 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A5 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A5 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 90 F6 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 1E 09 01 00 35 04 06 00 00 00 0F [18:42:24]Write i2c OK [18:42:24]MH_I2C_Read... [18:42:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:42:24]Read from MH i2c: E2 [18:42:24]MH_I2C_Read... [18:42:24]Read from MH i2c: E2 03 00 [18:42:24]MH_I2C_Read... [18:42:24]Read from MH i2c: E2 03 00 0E 11 00 90 00 93 [18:42:24]RAPDU: 90 00 [18:42:24]wFMCommunicate OK [18:42:24]wFMCommunicate request_size=11 [18:42:24]MH_SAM_APDU [18:42:24]CAPDU: 80 0D 02 02 06 DA 7C 99 A6 9C 64 [18:42:24]Write to MH i2c: E2 0E 00 0F 11 80 0D 02 02 06 00 DA 7C 99 A6 9C 64 00 00 3B [18:42:24]Write i2c OK [18:42:24]MH_I2C_Read... [18:42:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:42:24]Read from MH i2c: E2 [18:42:24]MH_I2C_Read... [18:42:24]Read from MH i2c: E2 03 00 [18:42:24]MH_I2C_Read... [18:42:24]Read from MH i2c: E2 03 00 0F 11 00 90 00 94 [18:42:24]RAPDU: 90 00 [18:42:24]wFMCommunicate OK [18:42:24]wFMCommunicate request_size=4 [18:42:24]MH_SAM_APDU [18:42:24]CAPDU: 80 0D 03 02 [18:42:24]Write to MH i2c: E2 08 00 10 11 80 0D 03 02 00 00 00 00 9C [18:42:24]Write i2c OK [18:42:24]MH_I2C_Read... [18:42:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:42:24]Read from MH i2c: E2 [18:42:24]MH_I2C_Read... [18:42:24]Read from MH i2c: E2 0B 00 [18:42:24]MH_I2C_Read... [18:42:24]Read from MH i2c: E2 0B 00 10 11 00 85 E6 F3 3F 91 3A BF FA 90 00 BE [18:42:24]RAPDU: 85 E6 F3 3F 91 3A BF FA 90 00 [18:42:24]wFMCommunicate OK [18:42:24]SAM_PROTO_SignData done [18:42:24]FM_MakeSignedData done [18:42:24]CreateOFDProtocolMessage [18:42:24]wFMCommunicate request_size=4 [18:42:24]MH_SAM_APDU [18:42:24]CAPDU: 80 11 00 00 [18:42:24]Write to MH i2c: E2 08 00 11 11 80 11 00 00 00 00 00 00 9C [18:42:24]Write i2c OK [18:42:24]MH_I2C_Read... [18:42:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:42:25]Read from MH i2c: E2 [18:42:25]MH_I2C_Read... [18:42:25]Read from MH i2c: E2 17 00 [18:42:25]MH_I2C_Read... [18:42:25]Read from MH i2c: E2 17 00 11 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 F2 [18:42:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [18:42:25]wFMCommunicate OK [18:42:25]CreateOFDProtocolMessage done [18:42:25]OFDSenderStorePacket 67870 [18:42:25]StoreOFDPacket docnum=67870 [18:42:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 01 00 00 E5 F7 08 01 B4 51 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A5 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A5 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 90 F6 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 1E 09 01 00 35 04 06 00 DA 7C 99 A6 9C 64 85 E6 F3 3F 91 3A BF FA [18:42:25]CheckFolder [18:42:25]dirname=/storage/ofd_packets [18:42:25]CheckFolder done [18:42:25]ProducePacketName [18:42:25]name=ofd_packets/00067870 [18:42:25]NVStorageSaveData ofd_packets/00067870 [18:42:25]File name is /storage/ofd_packets/00067870 [18:42:25]Write 302 bytes [18:42:25]NVStorageSaveData done [18:42:25]OFDSenderStorePacket done [18:42:25]KKMCreateOFDPacket done [18:42:25]NVStorageSaveData kkm_last_timestamp [18:42:25]File name is /storage/kkm_last_timestamp [18:42:25]Write 4 bytes [18:42:25]NVStorageSaveData done [18:42:25]ExternCall_PrintAddStr [18:42:25]wPrintStart [18:42:25]Write to MH i2c: 01 00 00 12 11 23 [18:42:25]Write i2c OK [18:42:25]MH_I2C_Read... [18:42:25]Read from MH i2c: 01 [18:42:25]MH_I2C_Read... [18:42:25]Read from MH i2c: 01 07 00 [18:42:25]MH_I2C_Read... [18:42:25]Read from MH i2c: 01 07 00 12 11 00 00 00 00 00 FF 0F 38 [18:42:25]RasterBufferAndPrint [18:42:25]line Счет N : (1)508133 [18:42:25]line ИНН: 02508201610067 [18:42:25]line Контрольно-Кассовый Чек [18:42:25]line ПРОДАЖА [18:42:25]line ТРК (МРК, ГНК) : 32 [18:42:25]line Товар: 2710124130 [18:42:25]line Super-92-К-5 [18:42:25]line 14.750 * 67.80 [18:42:25]line = 1000.05 [18:42:25]line НДС 12% НСП 1% [18:42:25]line > о реализуемом товаре [18:42:25]line ИТОГО: 1000.05 [18:42:25]line НСП 1% : 8.85 [18:42:25]line НДС 12% : 106.20 [18:42:25]line Наличными: 0.00 [18:42:25]line Безнал.: 1000.05 [18:42:25]line Место: АЗС № 91 "Партнер Нефть" [18:42:25]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [18:42:25]line СНО: Общий режим [18:42:25]line Чек 109 18.05.2024 18:42 [18:42:25]line Смена: 359 ФФД: 1.0 [18:42:25]line ЗНМ: 0300000119 [18:42:25]line РНМ: 0000000000091845 [18:42:25]line Версия ККМ: 001 [18:42:25]line Платежная система: O! деньги [18:42:25]line ФМ: 0000000000871829 [18:42:25]line ФД: 67870 [18:42:25]line ФПД: 240228688632932 [18:42:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T184224&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67870&fm=240228688632932&tin=02508201610067®Number=0000000000091845&sum=100005 [18:42:25]written 0, free lines is 4095 [18:42:25]OFD Sender: Processing packet 67870 [packets to send 35, broken 34] [18:42:25]ProducePacketName [18:42:25]name=ofd_packets/00067870 [18:42:25]OFD Sender: To server: pG, [18:42:25]CommunicateWithHost lk.salyk.kg:30040 [18:42:25]ConnectInit lk.salyk.kg [18:42:25]Connected sock=10 [18:42:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 01 00 00 E5 F7 08 01 B4 51 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A5 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A5 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 90 F6 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 1E 09 01 00 35 04 06 00 DA 7C 99 A6 9C 64 85 E6 F3 3F 91 3A BF FA [18:42:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 D2 C1 47 00 DE 0D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 1E 09 01 00 F4 03 04 00 65 9E 48 66 B6 04 01 00 00 10 B7 AB FD 08 F8 2B BC [18:42:25]CommunicateWithHost err = 0 [18:42:25]CheckOFDResponse [18:42:25]1017 (14) - 77093643461234 [18:42:25]1041 (16) - 0000000000871829 [18:42:25]1040 (4) - 67870 [18:42:25]1012 (4) - 18.05.2024 12:26 [18:42:25]1206 (1) - 0 [18:42:25]OFD Sender: Remove packet 67870 [18:42:25]ProducePacketName [18:42:25]name=ofd_packets/00067870 [18:42:25]NVStorageDeleteData [18:42:25]Write to MH i2c: 01 00 00 3B 11 4C [18:42:25]Write i2c OK [18:42:25]MH_I2C_Read... [18:42:25]Read from MH i2c: 01 [18:42:25]MH_I2C_Read... [18:42:25]Read from MH i2c: 01 07 00 [18:42:25]MH_I2C_Read... [18:42:25]Read from MH i2c: 01 07 00 3B 11 00 00 00 00 00 E9 0C 48 [18:42:25]RasterBufferAndPrint [18:42:25]line [18:42:25]line [18:42:25]line [18:42:25]line [18:42:25]line [18:42:25]written 0, free lines is 3313 [18:42:25]MH_Cut [18:42:25]Write to MH i2c: D1 01 00 42 11 01 25 [18:42:25]Write i2c OK [18:42:25]MH_I2C_Read... [18:42:25]Read from MH i2c: D1 [18:42:25]MH_I2C_Read... [18:42:25]Read from MH i2c: D1 01 00 [18:42:25]MH_I2C_Read... [18:42:25]Read from MH i2c: D1 01 00 42 11 00 24 [18:42:25]Write to MH i2c: 01 00 00 43 11 54 [18:42:25]Write i2c OK [18:42:25]MH_I2C_Read... [18:42:25]OFD Sender: No OFD packet to send [18:42:26]*** Cut start [18:42:26]*** Purtial cut [18:42:26]*** Stage 1: CUTSNS_PIN = 1 [18:42:26]Read from MH i2c: 01 [18:42:26]MH_I2C_Read... [18:42:26]Read from MH i2c: 01 07 00 [18:42:26]MH_I2C_Read... [18:42:26]*** Stop cut motor [18:42:26]Read from MH i2c: 01 07 00 43 11 00 00 00 00 00 FF 0F 69 [18:42:26]process_action close_receipt done [18:42:26]requested_data is exist [18:42:26]produce_requested_data [18:42:26]requested_item fm.sn is exist - process it [18:42:26]wFMCommunicate request_size=4 [18:42:26]MH_SAM_APDU [18:42:26]CAPDU: 80 11 00 00 [18:42:26]Write to MH i2c: E2 08 00 44 11 80 11 00 00 00 00 00 00 CF [18:42:26]*** Cut end [18:42:26]Write i2c OK [18:42:26]MH_I2C_Read... [18:42:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:42:26]Read from MH i2c: E2 [18:42:26]MH_I2C_Read... [18:42:26]Read from MH i2c: E2 17 00 [18:42:26]MH_I2C_Read... [18:42:26]Read from MH i2c: E2 17 00 44 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 25 [18:42:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [18:42:26]wFMCommunicate OK [18:42:26]requested_item fd.num is exist - process it [18:42:26]SAM_PROTO_GetFieldsCounters [18:42:26]wFMCommunicate request_size=4 [18:42:26]MH_SAM_APDU [18:42:26]CAPDU: 80 13 00 00 [18:42:26]Write to MH i2c: E2 08 00 45 11 80 13 00 00 00 00 00 00 D2 [18:42:26]Write i2c OK [18:42:26]MH_I2C_Read... [18:42:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:42:26]Read from MH i2c: E2 [18:42:26]MH_I2C_Read... [18:42:26]Read from MH i2c: E2 62 00 [18:42:26]MH_I2C_Read... [18:42:26]Read from MH i2c: E2 62 00 45 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 1E 09 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 6D 00 00 00 5E 04 04 00 6D 00 00 00 57 04 04 00 6E 00 00 00 19 04 04 00 00 00 00 00 90 00 CF [18:42:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 1E 09 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 6D 00 00 00 5E 04 04 00 6D 00 00 00 57 04 04 00 6E 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:42:26]wFMCommunicate OK [18:42:26]SAM_PROTO_GetFieldsCounters done [18:42:26]requested_item shift.num is exist - process it [18:42:26]requested_item shift.opened is exist - process it [18:42:26]req_shift_opened [18:42:26]FM_GetShiftState [18:42:26]SAM_PROTO_GetShiftState [18:42:26]wFMCommunicate request_size=4 [18:42:26]MH_SAM_APDU [18:42:26]CAPDU: 80 13 01 00 [18:42:26]Write to MH i2c: E2 08 00 46 11 80 13 01 00 00 00 00 00 D4 [18:42:26]Write i2c OK [18:42:26]MH_I2C_Read... [18:42:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:42:26]Read from MH i2c: E2 [18:42:26]MH_I2C_Read... [18:42:26]Read from MH i2c: E2 0E 00 [18:42:26]MH_I2C_Read... [18:42:26]Read from MH i2c: E2 0E 00 46 11 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 3B [18:42:26]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [18:42:26]wFMCommunicate OK [18:42:26]SAM_PROTO_GetShiftState done [18:42:26]FM_GetShiftState done [18:42:26]req_shift_opened done [18:42:26]requested_item shift.open_date is exist - process it [18:42:26]req_shift_open_date [18:42:26]req_shift_open_date done [18:42:26]produce_requested_data done [18:42:26]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67870,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [18:42:26]process_action_free close_receipt [18:42:26]json_value_free [18:42:26]json_value_free done [18:42:26]process_json_proto returns [18:42:26]Send response to host [18:42:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67870,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [18:42:26]free response buf [18:42:26]execute_script done [18:42:26]execute_script returns [18:42:26]free content buf [18:42:26]Sock 9.Close socket [18:42:26]Sock 9.Thread stoped [18:42:30]OFD Sender: No OFD packet to send [18:42:35]OFD Sender: No OFD packet to send [18:42:40]OFD Sender: No OFD packet to send [18:42:45]OFD Sender: No OFD packet to send [18:42:50]OFD Sender: No OFD packet to send [18:42:55]OFD Sender: No OFD packet to send [18:43:00]OFD Sender: No OFD packet to send [18:43:05]OFD Sender: No OFD packet to send [18:43:10]OFD Sender: No OFD packet to send [18:43:15]OFD Sender: No OFD packet to send [18:43:20]OFD Sender: No OFD packet to send [18:43:25]OFD Sender: No OFD packet to send [18:43:30]OFD Sender: No OFD packet to send [18:43:35]OFD Sender: No OFD packet to send [18:43:40]OFD Sender: No OFD packet to send [18:43:45]OFD Sender: No OFD packet to send [18:43:50]OFD Sender: No OFD packet to send [18:43:55]OFD Sender: No OFD packet to send [18:44:00]OFD Sender: No OFD packet to send [18:44:06]OFD Sender: No OFD packet to send [18:44:11]OFD Sender: No OFD packet to send [18:44:16]OFD Sender: No OFD packet to send [18:44:21]OFD Sender: No OFD packet to send [18:44:26]OFD Sender: No OFD packet to send [18:44:31]OFD Sender: No OFD packet to send [18:44:36]OFD Sender: No OFD packet to send [18:44:41]OFD Sender: No OFD packet to send [18:44:46]OFD Sender: No OFD packet to send [18:44:51]OFD Sender: No OFD packet to send [18:44:56]OFD Sender: No OFD packet to send [18:45:01]OFD Sender: No OFD packet to send [18:45:06]OFD Sender: No OFD packet to send [18:45:11]OFD Sender: No OFD packet to send [18:45:16]OFD Sender: No OFD packet to send [18:45:21]OFD Sender: No OFD packet to send [18:45:26]OFD Sender: No OFD packet to send [18:45:26]accept exits with 7 [18:45:26]New connection [18:45:26]New thread 3067202916 created [18:45:26]Thread 3067059556 joined [18:45:26]Waiting for new connection... [18:45:26] Sock 7.Parse request [18:45:26]Sock 7.Check first char [18:45:26]Sock 7.First char is OK [18:45:26]request: POST /json_proto HTTP/1.0 [18:45:26]Method: POST [18:45:26]URL: /json_proto [18:45:26]Method is POST - this is cgi request [18:45:26]url: /json_proto [18:45:26]query_string will be loaded in cgi processing [18:45:26]execute_cgi json_proto POST (null) [18:45:26]execute_cgi path=json_proto method=POST [18:45:26]POST find Content-Length [18:45:26]Host: 172.17.41.195:8080 [18:45:26]Content-Length: 800 [18:45:26]Content-Type: application/json [18:45:26] [18:45:26]POST finish read [18:45:26]Found Content-Length = 800 [18:45:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)508134", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 20.090, "sum" : 1500.72, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1500.72 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:45:26]execute_script... [18:45:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)508134", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 20.090, "sum" : 1500.72, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1500.72 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:45:26]POST & json_proto [18:45:26]process_json_proto [18:45:26]json parsed OK: [18:45:26]protocol is kg_v1.0 [18:45:26]action value=close_receipt [18:45:26]process_action close_receipt [18:45:26]cmd_close_receipt [18:45:26]MH_GetDate [18:45:26]Write to MH i2c: F0 00 00 47 11 47 [18:45:26]Write i2c OK [18:45:26]MH_I2C_Read... [18:45:26]Read from MH i2c: F0 [18:45:26]MH_I2C_Read... [18:45:26]Read from MH i2c: F0 09 00 [18:45:26]MH_I2C_Read... [18:45:26]Read from MH i2c: F0 09 00 47 11 00 48 F7 48 66 FC 21 6F 64 2D [18:45:26]GetLastDocTimeStamp 1716057744 [18:45:26]current date 1716057928 [18:45:26]FM_GetShiftState [18:45:26]SAM_PROTO_GetShiftState [18:45:26]wFMCommunicate request_size=4 [18:45:26]MH_SAM_APDU [18:45:26]CAPDU: 80 13 01 00 [18:45:26]Write to MH i2c: E2 08 00 48 11 80 13 01 00 00 00 00 00 D6 [18:45:26]Write i2c OK [18:45:26]MH_I2C_Read... [18:45:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:45:26]Read from MH i2c: E2 [18:45:26]MH_I2C_Read... [18:45:26]Read from MH i2c: E2 0E 00 [18:45:26]MH_I2C_Read... [18:45:26]Read from MH i2c: E2 0E 00 48 11 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 3D [18:45:26]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [18:45:26]wFMCommunicate OK [18:45:26]SAM_PROTO_GetShiftState done [18:45:26]FM_GetShiftState done [18:45:26]opened in 1715991483 [18:45:26]opened+sec_in_day 1716077883 [18:45:26]quantity*price = 150072 [18:45:26]sum+1 = 150073 [18:45:26]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.72 НСП 1% : 13.28 НДС 12% : 159.37 Наличными: 0.00 Безнал.: 1500.72 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 110 18.05.2024 18:45 Смена: 359 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67871 ФПД: 17376102359085 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T184528&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67871&fm=17376102359085&tin=02508201610067®Number=0000000000091845&sum=150072 [18:45:27]StoreToDocumentArchive [18:45:27]shift 359 fd 67871 [18:45:27]save to /storage/0359/doc_00067871 [18:45:27]save last doc name /storage/0359/doc_00067871 to /storage/kkm_last_doc_name [18:45:27]save OK [18:45:27]Clear old archive folders... [18:45:27]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:45:27]tlvbuf is 0098FBC0 [18:45:27]SAM_PROTO_ClearQueue [18:45:27]wFMCommunicate request_size=4 [18:45:27]MH_SAM_APDU [18:45:27]CAPDU: 80 09 00 00 [18:45:27]Write to MH i2c: E2 08 00 55 11 80 09 00 00 00 00 00 00 D8 [18:45:27]Write i2c OK [18:45:27]MH_I2C_Read... [18:45:27]Read from MH i2c: E2 [18:45:27]MH_I2C_Read... [18:45:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:45:27]Read from MH i2c: E2 03 00 [18:45:27]MH_I2C_Read... [18:45:27]Read from MH i2c: E2 03 00 55 11 00 90 00 DA [18:45:27]RAPDU: 90 00 [18:45:27]wFMCommunicate OK [18:45:27]SAM_PROTO_ClearQueue done [18:45:27]KKMCreateOFDPacket [18:45:27]OFDProtocolAddRootSTLVToBuf [18:45:27]FM_MakeSignedData [18:45:27]FM_MakeSignedData [18:45:27]SAM_PROTO_SignData [18:45:27]wFMCommunicate request_size=4 [18:45:27]MH_SAM_APDU [18:45:27]CAPDU: 80 0D 01 02 [18:45:27]Write to MH i2c: E2 08 00 56 11 80 0D 01 02 00 00 00 00 E0 [18:45:27]Write i2c OK [18:45:27]MH_I2C_Read... [18:45:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:45:27]Read from MH i2c: E2 [18:45:27]MH_I2C_Read... [18:45:27]Read from MH i2c: E2 03 00 [18:45:27]MH_I2C_Read... [18:45:27]Read from MH i2c: E2 03 00 56 11 00 90 00 DB [18:45:27]RAPDU: 90 00 [18:45:27]wFMCommunicate OK [18:45:27]wFMCommunicate request_size=255 [18:45:27]MH_SAM_APDU [18:45:27]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7A 4E 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 38 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 41 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 38 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 48 F7 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 1F 09 01 00 35 04 06 00 0F CD B0 68 [18:45:27]Write to MH i2c: E2 02 01 57 11 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7A 4E 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 38 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 41 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 38 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 48 F7 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 1F 09 01 00 35 04 06 00 0F CD B0 68 00 00 75 [18:45:27]Write i2c OK [18:45:27]MH_I2C_Read... [18:45:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:45:28]Read from MH i2c: E2 [18:45:28]MH_I2C_Read... [18:45:28]Read from MH i2c: E2 03 00 [18:45:28]MH_I2C_Read... [18:45:28]Read from MH i2c: E2 03 00 57 11 00 90 00 DC [18:45:28]RAPDU: 90 00 [18:45:28]wFMCommunicate OK [18:45:28]wFMCommunicate request_size=7 [18:45:28]MH_SAM_APDU [18:45:28]CAPDU: 80 0D 02 02 02 A0 2D [18:45:28]Write to MH i2c: E2 0A 00 58 11 80 0D 02 02 02 00 A0 2D 00 00 B4 [18:45:28]Write i2c OK [18:45:28]MH_I2C_Read... [18:45:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:45:28]Read from MH i2c: E2 [18:45:28]MH_I2C_Read... [18:45:28]Read from MH i2c: E2 03 00 [18:45:28]MH_I2C_Read... [18:45:28]Read from MH i2c: E2 03 00 58 11 00 90 00 DD [18:45:28]RAPDU: 90 00 [18:45:28]wFMCommunicate OK [18:45:28]wFMCommunicate request_size=4 [18:45:28]MH_SAM_APDU [18:45:28]CAPDU: 80 0D 03 02 [18:45:28]Write to MH i2c: E2 08 00 59 11 80 0D 03 02 00 00 00 00 E5 [18:45:28]Write i2c OK [18:45:28]MH_I2C_Read... [18:45:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:45:28]Read from MH i2c: E2 [18:45:28]MH_I2C_Read... [18:45:28]Read from MH i2c: E2 0B 00 [18:45:28]MH_I2C_Read... [18:45:28]Read from MH i2c: E2 0B 00 59 11 00 7B A8 F8 5F 05 59 37 E1 90 00 D6 [18:45:28]RAPDU: 7B A8 F8 5F 05 59 37 E1 90 00 [18:45:28]wFMCommunicate OK [18:45:28]SAM_PROTO_SignData done [18:45:28]FM_MakeSignedData done [18:45:28]CreateOFDProtocolMessage [18:45:28]wFMCommunicate request_size=4 [18:45:28]MH_SAM_APDU [18:45:28]CAPDU: 80 11 00 00 [18:45:28]Write to MH i2c: E2 08 00 5A 11 80 11 00 00 00 00 00 00 E5 [18:45:28]Write i2c OK [18:45:28]MH_I2C_Read... [18:45:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:45:28]Read from MH i2c: E2 [18:45:28]MH_I2C_Read... [18:45:28]Read from MH i2c: E2 17 00 [18:45:28]MH_I2C_Read... [18:45:28]Read from MH i2c: E2 17 00 5A 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 3B [18:45:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [18:45:28]wFMCommunicate OK [18:45:28]CreateOFDProtocolMessage done [18:45:28]OFDSenderStorePacket 67871 [18:45:28]StoreOFDPacket docnum=67871 [18:45:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 55 6E 04 01 E2 FB 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7A 4E 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 38 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 41 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 38 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 48 F7 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 1F 09 01 00 35 04 06 00 0F CD B0 68 A0 2D 7B A8 F8 5F 05 59 37 E1 [18:45:28]CheckFolder [18:45:28]dirname=/storage/ofd_packets [18:45:28]CheckFolder done [18:45:28]ProducePacketName [18:45:28]name=ofd_packets/00067871 [18:45:28]NVStorageSaveData ofd_packets/00067871 [18:45:28]File name is /storage/ofd_packets/00067871 [18:45:28]Write 298 bytes [18:45:28]NVStorageSaveData done [18:45:28]OFDSenderStorePacket done [18:45:28]KKMCreateOFDPacket done [18:45:28]NVStorageSaveData kkm_last_timestamp [18:45:28]File name is /storage/kkm_last_timestamp [18:45:28]Write 4 bytes [18:45:28]NVStorageSaveData done [18:45:28]ExternCall_PrintAddStr [18:45:28]wPrintStart [18:45:28]Write to MH i2c: 01 00 00 5B 11 6C [18:45:28]Write i2c OK [18:45:28]MH_I2C_Read... [18:45:28]Read from MH i2c: 01 [18:45:28]MH_I2C_Read... [18:45:28]Read from MH i2c: 01 07 00 [18:45:28]MH_I2C_Read... [18:45:28]Read from MH i2c: 01 07 00 5B 11 00 00 00 00 00 FF 0F 81 [18:45:28]RasterBufferAndPrint [18:45:28]line Счет N : (1)508134 [18:45:28]line ИНН: 02508201610067 [18:45:28]line Контрольно-Кассовый Чек [18:45:28]line ПРОДАЖА [18:45:28]line ТРК (МРК, ГНК) : 21 [18:45:28]line Товар: 2710194210 [18:45:28]line ДТ-К-5 [18:45:28]line 20.090 * 74.70 [18:45:28]line = 1500.72 [18:45:28]line НДС 12% НСП 1% [18:45:28]line > о реализуемом товаре [18:45:28]line ИТОГО: 1500.72 [18:45:28]line НСП 1% : 13.28 [18:45:28]line НДС 12% : 159.37 [18:45:28]line Наличными: 0.00 [18:45:28]line Безнал.: 1500.72 [18:45:28]line Место: АЗС № 91 "Партнер Нефть" [18:45:28]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [18:45:28]line СНО: Общий режим [18:45:28]line Чек 110 18.05.2024 18:45 [18:45:28]line Смена: 359 ФФД: 1.0 [18:45:28]line ЗНМ: 0300000119 [18:45:28]line РНМ: 0000000000091845 [18:45:28]line Версия ККМ: 001 [18:45:28]line Платежная система: O! деньги [18:45:28]line ФМ: 0000000000871829 [18:45:28]line ФД: 67871 [18:45:28]line ФПД: 17376102359085 [18:45:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T184528&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67871&fm=17376102359085&tin=02508201610067®Number=0000000000091845&sum=150072 [18:45:28]OFD Sender: Processing packet 67871 [packets to send 35, broken 34] [18:45:28]ProducePacketName [18:45:28]name=ofd_packets/00067871 [18:45:28]OFD Sender: To server: pG, [18:45:28]CommunicateWithHost lk.salyk.kg:30040 [18:45:28]ConnectInit lk.salyk.kg [18:45:28]written 0, free lines is 4095 [18:45:28]Connected sock=10 [18:45:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 55 6E 04 01 E2 FB 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7A 4E 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 38 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 41 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 38 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 48 F7 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 1F 09 01 00 35 04 06 00 0F CD B0 68 A0 2D 7B A8 F8 5F 05 59 37 E1 [18:45:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 01 AF 47 00 92 96 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 1F 09 01 00 F4 03 04 00 1C 9F 48 66 B6 04 01 00 00 48 87 07 7C 00 8E 08 F6 [18:45:28]CommunicateWithHost err = 0 [18:45:28]CheckOFDResponse [18:45:28]1017 (14) - 77093643461234 [18:45:28]1041 (16) - 0000000000871829 [18:45:28]1040 (4) - 67871 [18:45:28]1012 (4) - 18.05.2024 12:29 [18:45:28]1206 (1) - 0 [18:45:28]OFD Sender: Remove packet 67871 [18:45:28]ProducePacketName [18:45:28]name=ofd_packets/00067871 [18:45:28]NVStorageDeleteData [18:45:29]Write to MH i2c: 01 00 00 84 11 95 [18:45:29]Write i2c OK [18:45:29]MH_I2C_Read... [18:45:29]Read from MH i2c: 01 [18:45:29]MH_I2C_Read... [18:45:29]Read from MH i2c: 01 07 00 [18:45:29]MH_I2C_Read... [18:45:29]Read from MH i2c: 01 07 00 84 11 00 00 00 00 00 D2 0C 7A [18:45:29]RasterBufferAndPrint [18:45:29]line [18:45:29]line [18:45:29]line [18:45:29]line [18:45:29]line [18:45:29]written 0, free lines is 3288 [18:45:29]MH_Cut [18:45:29]Write to MH i2c: D1 01 00 8B 11 01 6E [18:45:29]Write i2c OK [18:45:29]MH_I2C_Read... [18:45:29]Read from MH i2c: D1 [18:45:29]MH_I2C_Read... [18:45:29]Read from MH i2c: D1 01 00 [18:45:29]MH_I2C_Read... [18:45:29]Read from MH i2c: D1 01 00 8B 11 00 6D [18:45:29]Write to MH i2c: 01 00 00 8C 11 9D [18:45:29]Write i2c OK [18:45:29]MH_I2C_Read... [18:45:29]OFD Sender: No OFD packet to send [18:45:29]*** Cut start [18:45:29]*** Purtial cut [18:45:29]*** Stage 1: CUTSNS_PIN = 1 [18:45:30]Read from MH i2c: 01 [18:45:30]MH_I2C_Read... [18:45:30]*** Stop cut motor [18:45:30]*** Cut end [18:45:30]Read from MH i2c: 01 07 00 [18:45:30]MH_I2C_Read... [18:45:30]Read from MH i2c: 01 07 00 8C 11 00 00 00 00 00 FF 0F B2 [18:45:30]process_action close_receipt done [18:45:30]requested_data is exist [18:45:30]produce_requested_data [18:45:30]requested_item fm.sn is exist - process it [18:45:30]wFMCommunicate request_size=4 [18:45:30]MH_SAM_APDU [18:45:30]CAPDU: 80 11 00 00 [18:45:30]Write to MH i2c: E2 08 00 8D 11 80 11 00 00 00 00 00 00 18 [18:45:30]Write i2c OK [18:45:30]MH_I2C_Read... [18:45:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:45:30]Read from MH i2c: E2 [18:45:30]MH_I2C_Read... [18:45:30]Read from MH i2c: E2 17 00 [18:45:30]MH_I2C_Read... [18:45:30]Read from MH i2c: E2 17 00 8D 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 6E [18:45:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [18:45:30]wFMCommunicate OK [18:45:30]requested_item fd.num is exist - process it [18:45:30]SAM_PROTO_GetFieldsCounters [18:45:30]wFMCommunicate request_size=4 [18:45:30]MH_SAM_APDU [18:45:30]CAPDU: 80 13 00 00 [18:45:30]Write to MH i2c: E2 08 00 8E 11 80 13 00 00 00 00 00 00 1B [18:45:30]Write i2c OK [18:45:30]MH_I2C_Read... [18:45:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:45:30]Read from MH i2c: E2 [18:45:30]MH_I2C_Read... [18:45:30]Read from MH i2c: E2 62 00 [18:45:30]MH_I2C_Read... [18:45:30]Read from MH i2c: E2 62 00 8E 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 1F 09 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 6E 00 00 00 5E 04 04 00 6E 00 00 00 57 04 04 00 6F 00 00 00 19 04 04 00 00 00 00 00 90 00 1C [18:45:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 1F 09 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 6E 00 00 00 5E 04 04 00 6E 00 00 00 57 04 04 00 6F 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:45:30]wFMCommunicate OK [18:45:30]SAM_PROTO_GetFieldsCounters done [18:45:30]requested_item shift.num is exist - process it [18:45:30]requested_item shift.opened is exist - process it [18:45:30]req_shift_opened [18:45:30]FM_GetShiftState [18:45:30]SAM_PROTO_GetShiftState [18:45:30]wFMCommunicate request_size=4 [18:45:30]MH_SAM_APDU [18:45:30]CAPDU: 80 13 01 00 [18:45:30]Write to MH i2c: E2 08 00 8F 11 80 13 01 00 00 00 00 00 1D [18:45:30]Write i2c OK [18:45:30]MH_I2C_Read... [18:45:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:45:30]Read from MH i2c: E2 [18:45:30]MH_I2C_Read... [18:45:30]Read from MH i2c: E2 0E 00 [18:45:30]MH_I2C_Read... [18:45:30]Read from MH i2c: E2 0E 00 8F 11 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 84 [18:45:30]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [18:45:30]wFMCommunicate OK [18:45:30]SAM_PROTO_GetShiftState done [18:45:30]FM_GetShiftState done [18:45:30]req_shift_opened done [18:45:30]requested_item shift.open_date is exist - process it [18:45:30]req_shift_open_date [18:45:30]req_shift_open_date done [18:45:30]produce_requested_data done [18:45:30]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67871,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [18:45:30]process_action_free close_receipt [18:45:30]json_value_free [18:45:30]json_value_free done [18:45:30]process_json_proto returns [18:45:30]Send response to host [18:45:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67871,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [18:45:30]free response buf [18:45:30]execute_script done [18:45:30]execute_script returns [18:45:30]free content buf [18:45:30]Sock 7.Close socket [18:45:30]Sock 7.Thread stoped [18:45:34]OFD Sender: No OFD packet to send [18:45:39]OFD Sender: No OFD packet to send [18:45:44]OFD Sender: No OFD packet to send [18:45:49]OFD Sender: No OFD packet to send [18:45:54]OFD Sender: No OFD packet to send [18:45:59]OFD Sender: No OFD packet to send [18:46:02]accept exits with 9 [18:46:02]New connection [18:46:02]New thread 3067059556 created [18:46:02]Thread 3067202916 joined [18:46:02]Waiting for new connection... [18:46:02] Sock 9.Parse request [18:46:02]Sock 9.Check first char [18:46:02]Sock 9.First char is OK [18:46:02]request: POST /json_proto HTTP/1.0 [18:46:02]Method: POST [18:46:02]URL: /json_proto [18:46:02]Method is POST - this is cgi request [18:46:02]url: /json_proto [18:46:02]query_string will be loaded in cgi processing [18:46:02]execute_cgi json_proto POST (null) [18:46:02]execute_cgi path=json_proto method=POST [18:46:02]POST find Content-Length [18:46:02]Host: 172.17.41.195:8080 [18:46:02]Content-Length: 800 [18:46:02]Content-Type: application/json [18:46:02] [18:46:02]POST finish read [18:46:02]Found Content-Length = 800 [18:46:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)508135", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 13.390, "sum" : 1000.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.23 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:46:02]execute_script... [18:46:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)508135", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 13.390, "sum" : 1000.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.23 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:46:02]POST & json_proto [18:46:02]process_json_proto [18:46:02]json parsed OK: [18:46:02]protocol is kg_v1.0 [18:46:02]action value=close_receipt [18:46:02]process_action close_receipt [18:46:02]cmd_close_receipt [18:46:02]MH_GetDate [18:46:02]Write to MH i2c: F0 00 00 90 11 90 [18:46:02]Write i2c OK [18:46:02]MH_I2C_Read... [18:46:02]Read from MH i2c: F0 [18:46:02]MH_I2C_Read... [18:46:02]Read from MH i2c: F0 09 00 [18:46:02]MH_I2C_Read... [18:46:02]Read from MH i2c: F0 09 00 90 11 00 6C F7 48 66 FC 21 6F 64 9A [18:46:02]GetLastDocTimeStamp 1716057928 [18:46:02]current date 1716057964 [18:46:02]FM_GetShiftState [18:46:02]SAM_PROTO_GetShiftState [18:46:02]wFMCommunicate request_size=4 [18:46:02]MH_SAM_APDU [18:46:02]CAPDU: 80 13 01 00 [18:46:02]Write to MH i2c: E2 08 00 91 11 80 13 01 00 00 00 00 00 1F [18:46:02]Write i2c OK [18:46:02]MH_I2C_Read... [18:46:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:46:02]Read from MH i2c: E2 [18:46:02]MH_I2C_Read... [18:46:02]Read from MH i2c: E2 0E 00 [18:46:02]MH_I2C_Read... [18:46:02]Read from MH i2c: E2 0E 00 91 11 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 86 [18:46:02]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [18:46:02]wFMCommunicate OK [18:46:02]SAM_PROTO_GetShiftState done [18:46:02]FM_GetShiftState done [18:46:02]opened in 1715991483 [18:46:02]opened+sec_in_day 1716077883 [18:46:02]quantity*price = 100023 [18:46:02]sum+1 = 100024 [18:46:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.23 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.23 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 111 18.05.2024 18:46 Смена: 359 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67872 ФПД: 260676119972177 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T184604&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67872&fm=260676119972177&tin=02508201610067®Number=0000000000091845&sum=100023 [18:46:03]StoreToDocumentArchive [18:46:03]shift 359 fd 67872 [18:46:03]save to /storage/0359/doc_00067872 [18:46:03]save last doc name /storage/0359/doc_00067872 to /storage/kkm_last_doc_name [18:46:03]save OK [18:46:03]Clear old archive folders... [18:46:03]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:46:03]tlvbuf is 009C46D0 [18:46:03]SAM_PROTO_ClearQueue [18:46:03]wFMCommunicate request_size=4 [18:46:03]MH_SAM_APDU [18:46:03]CAPDU: 80 09 00 00 [18:46:03]Write to MH i2c: E2 08 00 9E 11 80 09 00 00 00 00 00 00 21 [18:46:03]Write i2c OK [18:46:03]MH_I2C_Read... [18:46:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:46:03]Read from MH i2c: E2 [18:46:03]MH_I2C_Read... [18:46:03]Read from MH i2c: E2 03 00 [18:46:03]MH_I2C_Read... [18:46:03]Read from MH i2c: E2 03 00 9E 11 00 90 00 23 [18:46:03]RAPDU: 90 00 [18:46:03]wFMCommunicate OK [18:46:03]SAM_PROTO_ClearQueue done [18:46:03]KKMCreateOFDPacket [18:46:03]OFDProtocolAddRootSTLVToBuf [18:46:03]FM_MakeSignedData [18:46:03]FM_MakeSignedData [18:46:03]SAM_PROTO_SignData [18:46:03]wFMCommunicate request_size=4 [18:46:03]MH_SAM_APDU [18:46:03]CAPDU: 80 0D 01 02 [18:46:03]Write to MH i2c: E2 08 00 9F 11 80 0D 01 02 00 00 00 00 29 [18:46:03]Write i2c OK [18:46:03]MH_I2C_Read... [18:46:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:46:03]Read from MH i2c: E2 [18:46:03]MH_I2C_Read... [18:46:03]Read from MH i2c: E2 03 00 [18:46:03]MH_I2C_Read... [18:46:03]Read from MH i2c: E2 03 00 9F 11 00 90 00 24 [18:46:03]RAPDU: 90 00 [18:46:03]wFMCommunicate OK [18:46:03]wFMCommunicate request_size=255 [18:46:03]MH_SAM_APDU [18:46:03]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4E 34 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 B7 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B7 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B7 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 6C F7 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 20 09 01 00 35 04 06 00 ED 15 63 88 [18:46:03]Write to MH i2c: E2 02 01 A0 11 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4E 34 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 B7 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B7 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B7 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 6C F7 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 20 09 01 00 35 04 06 00 ED 15 63 88 00 00 30 [18:46:03]Write i2c OK [18:46:03]MH_I2C_Read... [18:46:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:46:04]Read from MH i2c: E2 [18:46:04]MH_I2C_Read... [18:46:04]Read from MH i2c: E2 03 00 [18:46:04]MH_I2C_Read... [18:46:04]Read from MH i2c: E2 03 00 A0 11 00 90 00 25 [18:46:04]RAPDU: 90 00 [18:46:04]wFMCommunicate OK [18:46:04]wFMCommunicate request_size=7 [18:46:04]MH_SAM_APDU [18:46:04]CAPDU: 80 0D 02 02 02 49 51 [18:46:04]Write to MH i2c: E2 0A 00 A1 11 80 0D 02 02 02 00 49 51 00 00 CA [18:46:04]Write i2c OK [18:46:04]MH_I2C_Read... [18:46:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:46:04]Read from MH i2c: E2 [18:46:04]MH_I2C_Read... [18:46:04]Read from MH i2c: E2 03 00 [18:46:04]MH_I2C_Read... [18:46:04]Read from MH i2c: E2 03 00 A1 11 00 90 00 26 [18:46:04]RAPDU: 90 00 [18:46:04]wFMCommunicate OK [18:46:04]wFMCommunicate request_size=4 [18:46:04]MH_SAM_APDU [18:46:04]CAPDU: 80 0D 03 02 [18:46:04]Write to MH i2c: E2 08 00 A2 11 80 0D 03 02 00 00 00 00 2E [18:46:04]Write i2c OK [18:46:04]MH_I2C_Read... [18:46:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:46:04]Read from MH i2c: E2 [18:46:04]MH_I2C_Read... [18:46:04]Read from MH i2c: E2 0B 00 [18:46:04]MH_I2C_Read... [18:46:04]Read from MH i2c: E2 0B 00 A2 11 00 90 51 93 DF 8C D8 20 2C 90 00 32 [18:46:04]RAPDU: 90 51 93 DF 8C D8 20 2C 90 00 [18:46:04]wFMCommunicate OK [18:46:04]SAM_PROTO_SignData done [18:46:04]FM_MakeSignedData done [18:46:04]CreateOFDProtocolMessage [18:46:04]wFMCommunicate request_size=4 [18:46:04]MH_SAM_APDU [18:46:04]CAPDU: 80 11 00 00 [18:46:04]Write to MH i2c: E2 08 00 A3 11 80 11 00 00 00 00 00 00 2E [18:46:04]Write i2c OK [18:46:04]MH_I2C_Read... [18:46:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:46:04]Read from MH i2c: E2 [18:46:04]MH_I2C_Read... [18:46:04]Read from MH i2c: E2 17 00 [18:46:04]MH_I2C_Read... [18:46:04]Read from MH i2c: E2 17 00 A3 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 84 [18:46:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [18:46:04]wFMCommunicate OK [18:46:04]CreateOFDProtocolMessage done [18:46:04]OFDSenderStorePacket 67872 [18:46:04]StoreOFDPacket docnum=67872 [18:46:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 8B 0D 04 01 79 A1 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4E 34 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 B7 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B7 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B7 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 6C F7 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 20 09 01 00 35 04 06 00 ED 15 63 88 49 51 90 51 93 DF 8C D8 20 2C [18:46:04]CheckFolder [18:46:04]dirname=/storage/ofd_packets [18:46:04]CheckFolder done [18:46:04]ProducePacketName [18:46:04]name=ofd_packets/00067872 [18:46:04]NVStorageSaveData ofd_packets/00067872 [18:46:04]File name is /storage/ofd_packets/00067872 [18:46:04]Write 298 bytes [18:46:04]NVStorageSaveData done [18:46:04]OFDSenderStorePacket done [18:46:04]KKMCreateOFDPacket done [18:46:04]NVStorageSaveData kkm_last_timestamp [18:46:04]File name is /storage/kkm_last_timestamp [18:46:04]Write 4 bytes [18:46:04]NVStorageSaveData done [18:46:04]OFD Sender: Processing packet 67872 [packets to send 35, broken 34] [18:46:04]ProducePacketName [18:46:04]name=ofd_packets/00067872 [18:46:04]OFD Sender: To server: pG, [18:46:04]CommunicateWithHost lk.salyk.kg:30040 [18:46:04]ConnectInit lk.salyk.kg [18:46:04]ExternCall_PrintAddStr [18:46:04]wPrintStart [18:46:04]Write to MH i2c: 01 00 00 A4 11 B5 [18:46:04]Write i2c OK [18:46:04]MH_I2C_Read... [18:46:04]Read from MH i2c: 01 [18:46:04]MH_I2C_Read... [18:46:04]Read from MH i2c: 01 07 00 [18:46:04]MH_I2C_Read... [18:46:04]Read from MH i2c: 01 07 00 A4 11 00 00 00 00 00 FF 0F CA [18:46:04]RasterBufferAndPrint [18:46:04]line Счет N : (1)508135 [18:46:04]line ИНН: 02508201610067 [18:46:04]line Контрольно-Кассовый Чек [18:46:04]line ПРОДАЖА [18:46:04]line ТРК (МРК, ГНК) : 31 [18:46:04]line Товар: 2710194210 [18:46:04]line ДТ-К-5 [18:46:04]line 13.390 * 74.70 [18:46:04]line = 1000.23 [18:46:04]line НДС 12% НСП 1% [18:46:04]line > о реализуемом товаре [18:46:04]line ИТОГО: 1000.23 [18:46:04]line НСП 1% : 8.85 [18:46:04]line НДС 12% : 106.22 [18:46:04]line Наличными: 0.00 [18:46:04]line Безнал.: 1000.23 [18:46:04]line Место: АЗС № 91 "Партнер Нефть" [18:46:04]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [18:46:04]line СНО: Общий режим [18:46:04]line Чек 111 18.05.2024 18:46 [18:46:04]line Смена: 359 ФФД: 1.0 [18:46:04]line ЗНМ: 0300000119 [18:46:04]line РНМ: 0000000000091845 [18:46:04]line Версия ККМ: 001 [18:46:04]line Платежная система: O! деньги [18:46:04]line ФМ: 0000000000871829 [18:46:04]line ФД: 67872 [18:46:04]line ФПД: 260676119972177 [18:46:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T184604&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67872&fm=260676119972177&tin=02508201610067®Number=0000000000091845&sum=100023 [18:46:04]Connected sock=11 [18:46:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 8B 0D 04 01 79 A1 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4E 34 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 B7 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B7 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B7 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 6C F7 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 20 09 01 00 35 04 06 00 ED 15 63 88 49 51 90 51 93 DF 8C D8 20 2C [18:46:04]written 0, free lines is 4095 [18:46:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 11 E5 47 00 40 14 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 20 09 01 00 F4 03 04 00 40 9F 48 66 B6 04 01 00 00 CC 49 67 98 05 79 63 01 [18:46:04]CommunicateWithHost err = 0 [18:46:04]CheckOFDResponse [18:46:04]1017 (14) - 77093643461234 [18:46:04]1041 (16) - 0000000000871829 [18:46:04]1040 (4) - 67872 [18:46:04]1012 (4) - 18.05.2024 12:29 [18:46:04]1206 (1) - 0 [18:46:04]OFD Sender: Remove packet 67872 [18:46:04]ProducePacketName [18:46:04]name=ofd_packets/00067872 [18:46:04]NVStorageDeleteData [18:46:05]Write to MH i2c: 01 00 00 CD 11 DE [18:46:05]Write i2c OK [18:46:05]MH_I2C_Read... [18:46:05]Read from MH i2c: 01 [18:46:05]MH_I2C_Read... [18:46:05]Read from MH i2c: 01 07 00 [18:46:05]MH_I2C_Read... [18:46:05]Read from MH i2c: 01 07 00 CD 11 00 00 00 00 00 DE 0C CF [18:46:05]RasterBufferAndPrint [18:46:05]line [18:46:05]line [18:46:05]line [18:46:05]line [18:46:05]line [18:46:05]written 0, free lines is 3300 [18:46:05]MH_Cut [18:46:05]Write to MH i2c: D1 01 00 D4 11 01 B7 [18:46:05]Write i2c OK [18:46:05]MH_I2C_Read... [18:46:05]Read from MH i2c: D1 [18:46:05]MH_I2C_Read... [18:46:05]Read from MH i2c: D1 01 00 [18:46:05]MH_I2C_Read... [18:46:05]Read from MH i2c: D1 01 00 D4 11 00 B6 [18:46:05]Write to MH i2c: 01 00 00 D5 11 E6 [18:46:05]Write i2c OK [18:46:05]MH_I2C_Read... [18:46:05]OFD Sender: No OFD packet to send [18:46:05]*** Cut start [18:46:05]*** Purtial cut [18:46:05]*** Stage 1: CUTSNS_PIN = 1 [18:46:06]Read from MH i2c: 01 [18:46:06]MH_I2C_Read... [18:46:06]*** Stop cut motor [18:46:06]*** Cut end [18:46:06]Read from MH i2c: 01 07 00 [18:46:06]MH_I2C_Read... [18:46:06]Read from MH i2c: 01 07 00 D5 11 00 00 00 00 00 FF 0F FB [18:46:06]process_action close_receipt done [18:46:06]requested_data is exist [18:46:06]produce_requested_data [18:46:06]requested_item fm.sn is exist - process it [18:46:06]wFMCommunicate request_size=4 [18:46:06]MH_SAM_APDU [18:46:06]CAPDU: 80 11 00 00 [18:46:06]Write to MH i2c: E2 08 00 D6 11 80 11 00 00 00 00 00 00 61 [18:46:06]Write i2c OK [18:46:06]MH_I2C_Read... [18:46:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:46:06]Read from MH i2c: E2 [18:46:06]MH_I2C_Read... [18:46:06]Read from MH i2c: E2 17 00 [18:46:06]MH_I2C_Read... [18:46:06]Read from MH i2c: E2 17 00 D6 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 B7 [18:46:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [18:46:06]wFMCommunicate OK [18:46:06]requested_item fd.num is exist - process it [18:46:06]SAM_PROTO_GetFieldsCounters [18:46:06]wFMCommunicate request_size=4 [18:46:06]MH_SAM_APDU [18:46:06]CAPDU: 80 13 00 00 [18:46:06]Write to MH i2c: E2 08 00 D7 11 80 13 00 00 00 00 00 00 64 [18:46:06]Write i2c OK [18:46:06]MH_I2C_Read... [18:46:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:46:06]Read from MH i2c: E2 [18:46:06]MH_I2C_Read... [18:46:06]Read from MH i2c: E2 62 00 [18:46:06]MH_I2C_Read... [18:46:06]Read from MH i2c: E2 62 00 D7 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 20 09 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 6F 00 00 00 5E 04 04 00 6F 00 00 00 57 04 04 00 70 00 00 00 19 04 04 00 00 00 00 00 90 00 69 [18:46:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 20 09 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 6F 00 00 00 5E 04 04 00 6F 00 00 00 57 04 04 00 70 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:46:06]wFMCommunicate OK [18:46:06]SAM_PROTO_GetFieldsCounters done [18:46:06]requested_item shift.num is exist - process it [18:46:06]requested_item shift.opened is exist - process it [18:46:06]req_shift_opened [18:46:06]FM_GetShiftState [18:46:06]SAM_PROTO_GetShiftState [18:46:06]wFMCommunicate request_size=4 [18:46:06]MH_SAM_APDU [18:46:06]CAPDU: 80 13 01 00 [18:46:06]Write to MH i2c: E2 08 00 D8 11 80 13 01 00 00 00 00 00 66 [18:46:06]Write i2c OK [18:46:06]MH_I2C_Read... [18:46:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:46:06]Read from MH i2c: E2 [18:46:06]MH_I2C_Read... [18:46:06]Read from MH i2c: E2 0E 00 [18:46:06]MH_I2C_Read... [18:46:06]Read from MH i2c: E2 0E 00 D8 11 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 CD [18:46:06]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [18:46:06]wFMCommunicate OK [18:46:06]SAM_PROTO_GetShiftState done [18:46:06]FM_GetShiftState done [18:46:06]req_shift_opened done [18:46:06]requested_item shift.open_date is exist - process it [18:46:06]req_shift_open_date [18:46:06]req_shift_open_date done [18:46:06]produce_requested_data done [18:46:06]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67872,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [18:46:06]process_action_free close_receipt [18:46:06]json_value_free [18:46:06]json_value_free done [18:46:06]process_json_proto returns [18:46:06]Send response to host [18:46:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67872,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [18:46:06]free response buf [18:46:06]execute_script done [18:46:06]execute_script returns [18:46:06]free content buf [18:46:06]Sock 9.Close socket [18:46:06]Sock 9.Thread stoped [18:46:10]OFD Sender: No OFD packet to send [18:46:15]OFD Sender: No OFD packet to send [18:46:20]OFD Sender: No OFD packet to send [18:46:25]OFD Sender: No OFD packet to send [18:46:30]OFD Sender: No OFD packet to send [18:46:35]OFD Sender: No OFD packet to send [18:46:40]OFD Sender: No OFD packet to send [18:46:45]OFD Sender: No OFD packet to send [18:46:50]OFD Sender: No OFD packet to send [18:46:55]OFD Sender: No OFD packet to send [18:47:00]OFD Sender: No OFD packet to send [18:47:05]OFD Sender: No OFD packet to send [18:47:10]OFD Sender: No OFD packet to send [18:47:15]OFD Sender: No OFD packet to send [18:47:20]OFD Sender: No OFD packet to send [18:47:25]OFD Sender: No OFD packet to send [18:47:30]OFD Sender: No OFD packet to send [18:47:35]OFD Sender: No OFD packet to send [18:47:40]OFD Sender: No OFD packet to send [18:47:45]OFD Sender: No OFD packet to send [18:47:50]OFD Sender: No OFD packet to send [18:47:55]OFD Sender: No OFD packet to send [18:48:00]OFD Sender: No OFD packet to send [18:48:05]OFD Sender: No OFD packet to send [18:48:10]OFD Sender: No OFD packet to send [18:48:15]OFD Sender: No OFD packet to send [18:48:20]OFD Sender: No OFD packet to send [18:48:25]OFD Sender: No OFD packet to send [18:48:30]OFD Sender: No OFD packet to send [18:48:35]OFD Sender: No OFD packet to send [18:48:40]OFD Sender: No OFD packet to send [18:48:45]OFD Sender: No OFD packet to send [18:48:50]OFD Sender: No OFD packet to send [18:48:55]OFD Sender: No OFD packet to send [18:49:00]OFD Sender: No OFD packet to send [18:49:05]OFD Sender: No OFD packet to send [18:49:10]OFD Sender: No OFD packet to send [18:49:15]OFD Sender: No OFD packet to send [18:49:20]OFD Sender: No OFD packet to send [18:49:25]OFD Sender: No OFD packet to send [18:49:30]OFD Sender: No OFD packet to send [18:49:35]OFD Sender: No OFD packet to send [18:49:40]OFD Sender: No OFD packet to send [18:49:45]OFD Sender: No OFD packet to send [18:49:50]OFD Sender: No OFD packet to send [18:49:55]OFD Sender: No OFD packet to send [18:50:00]OFD Sender: No OFD packet to send [18:50:05]OFD Sender: No OFD packet to send [18:50:10]OFD Sender: No OFD packet to send [18:50:15]OFD Sender: No OFD packet to send [18:50:20]OFD Sender: No OFD packet to send [18:50:25]OFD Sender: No OFD packet to send [18:50:30]OFD Sender: No OFD packet to send [18:50:35]OFD Sender: No OFD packet to send [18:50:40]OFD Sender: No OFD packet to send [18:50:45]OFD Sender: No OFD packet to send [18:50:50]OFD Sender: No OFD packet to send [18:50:55]OFD Sender: No OFD packet to send [18:51:00]OFD Sender: No OFD packet to send [18:51:05]OFD Sender: No OFD packet to send [18:51:10]OFD Sender: No OFD packet to send [18:51:15]OFD Sender: No OFD packet to send [18:51:20]OFD Sender: No OFD packet to send [18:51:25]OFD Sender: No OFD packet to send [18:51:30]OFD Sender: No OFD packet to send [18:51:35]OFD Sender: No OFD packet to send [18:51:40]OFD Sender: No OFD packet to send [18:51:45]OFD Sender: No OFD packet to send [18:51:50]OFD Sender: No OFD packet to send [18:51:55]OFD Sender: No OFD packet to send [18:52:00]OFD Sender: No OFD packet to send [18:52:05]OFD Sender: No OFD packet to send [18:52:10]OFD Sender: No OFD packet to send [18:52:15]OFD Sender: No OFD packet to send [18:52:20]OFD Sender: No OFD packet to send [18:52:25]OFD Sender: No OFD packet to send [18:52:30]OFD Sender: No OFD packet to send [18:52:35]OFD Sender: No OFD packet to send [18:52:40]OFD Sender: No OFD packet to send [18:52:45]OFD Sender: No OFD packet to send [18:52:50]OFD Sender: No OFD packet to send [18:52:55]OFD Sender: No OFD packet to send [18:53:00]OFD Sender: No OFD packet to send [18:53:05]OFD Sender: No OFD packet to send [18:53:10]OFD Sender: No OFD packet to send [18:53:15]OFD Sender: No OFD packet to send [18:53:20]OFD Sender: No OFD packet to send [18:53:25]OFD Sender: No OFD packet to send [18:53:30]OFD Sender: No OFD packet to send [18:53:35]OFD Sender: No OFD packet to send [18:53:40]OFD Sender: No OFD packet to send [18:53:45]OFD Sender: No OFD packet to send [18:53:50]OFD Sender: No OFD packet to send [18:53:55]OFD Sender: No OFD packet to send [18:54:00]OFD Sender: No OFD packet to send [18:54:05]OFD Sender: No OFD packet to send [18:54:10]OFD Sender: No OFD packet to send [18:54:15]OFD Sender: No OFD packet to send [18:54:20]OFD Sender: No OFD packet to send [18:54:25]OFD Sender: No OFD packet to send [18:54:30]OFD Sender: No OFD packet to send [18:54:35]OFD Sender: No OFD packet to send [18:54:40]OFD Sender: No OFD packet to send [18:54:45]OFD Sender: No OFD packet to send [18:54:50]OFD Sender: No OFD packet to send [18:54:55]OFD Sender: No OFD packet to send [18:55:00]OFD Sender: No OFD packet to send [18:55:05]OFD Sender: No OFD packet to send [18:55:10]OFD Sender: No OFD packet to send [18:55:15]OFD Sender: No OFD packet to send [18:55:20]OFD Sender: No OFD packet to send [18:55:25]OFD Sender: No OFD packet to send [18:55:30]OFD Sender: No OFD packet to send [18:55:35]OFD Sender: No OFD packet to send [18:55:40]OFD Sender: No OFD packet to send [18:55:45]OFD Sender: No OFD packet to send [18:55:50]OFD Sender: No OFD packet to send [18:55:55]OFD Sender: No OFD packet to send [18:56:00]OFD Sender: No OFD packet to send [18:56:05]OFD Sender: No OFD packet to send [18:56:10]OFD Sender: No OFD packet to send [18:56:15]OFD Sender: No OFD packet to send [18:56:20]OFD Sender: No OFD packet to send [18:56:25]OFD Sender: No OFD packet to send [18:56:30]OFD Sender: No OFD packet to send [18:56:35]OFD Sender: No OFD packet to send [18:56:40]OFD Sender: No OFD packet to send [18:56:45]OFD Sender: No OFD packet to send [18:56:50]OFD Sender: No OFD packet to send [18:56:55]OFD Sender: No OFD packet to send [18:57:00]OFD Sender: No OFD packet to send [18:57:05]OFD Sender: No OFD packet to send [18:57:10]OFD Sender: No OFD packet to send [18:57:15]OFD Sender: No OFD packet to send [18:57:20]OFD Sender: No OFD packet to send [18:57:25]OFD Sender: No OFD packet to send [18:57:30]OFD Sender: No OFD packet to send [18:57:35]OFD Sender: No OFD packet to send [18:57:40]OFD Sender: No OFD packet to send [18:57:45]OFD Sender: No OFD packet to send [18:57:50]OFD Sender: No OFD packet to send [18:57:55]OFD Sender: No OFD packet to send [18:58:00]OFD Sender: No OFD packet to send [18:58:05]OFD Sender: No OFD packet to send [18:58:10]OFD Sender: No OFD packet to send [18:58:15]OFD Sender: No OFD packet to send [18:58:20]OFD Sender: No OFD packet to send [18:58:25]OFD Sender: No OFD packet to send [18:58:30]OFD Sender: No OFD packet to send [18:58:35]OFD Sender: No OFD packet to send [18:58:40]OFD Sender: No OFD packet to send [18:58:45]OFD Sender: No OFD packet to send [18:58:50]OFD Sender: No OFD packet to send [18:58:55]OFD Sender: No OFD packet to send [18:59:00]OFD Sender: No OFD packet to send [18:59:05]OFD Sender: No OFD packet to send [18:59:10]OFD Sender: No OFD packet to send [18:59:15]OFD Sender: No OFD packet to send [18:59:20]OFD Sender: No OFD packet to send [18:59:25]accept exits with 7 [18:59:25]New connection [18:59:25]New thread 3067202916 created [18:59:25]Thread 3067059556 joined [18:59:25]Waiting for new connection... [18:59:25] Sock 7.Parse request [18:59:25]Sock 7.Check first char [18:59:25]Sock 7.First char is OK [18:59:25]request: POST /json_proto HTTP/1.0 [18:59:25]Method: POST [18:59:25]URL: /json_proto [18:59:25]Method is POST - this is cgi request [18:59:25]url: /json_proto [18:59:25]query_string will be loaded in cgi processing [18:59:25]execute_cgi json_proto POST (null) [18:59:25]execute_cgi path=json_proto method=POST [18:59:25]POST find Content-Length [18:59:25]Host: 172.17.41.195:8080 [18:59:25]Content-Length: 800 [18:59:25]Content-Type: application/json [18:59:25] [18:59:25]POST finish read [18:59:25]Found Content-Length = 800 [18:59:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)508137", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 33.470, "sum" : 2500.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2500.21 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:59:25]execute_script... [18:59:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)508137", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 33.470, "sum" : 2500.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2500.21 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:59:25]POST & json_proto [18:59:25]process_json_proto [18:59:25]json parsed OK: [18:59:25]protocol is kg_v1.0 [18:59:25]action value=close_receipt [18:59:25]process_action close_receipt [18:59:25]cmd_close_receipt [18:59:25]MH_GetDate [18:59:25]Write to MH i2c: F0 00 00 D9 11 D9 [18:59:25]Write i2c OK [18:59:25]MH_I2C_Read... [18:59:25]Read from MH i2c: F0 [18:59:25]MH_I2C_Read... [18:59:25]Read from MH i2c: F0 09 00 [18:59:25]MH_I2C_Read... [18:59:25]Read from MH i2c: F0 09 00 D9 11 00 8E FA 48 66 FC 21 6F 64 08 [18:59:25]GetLastDocTimeStamp 1716057964 [18:59:25]current date 1716058766 [18:59:25]FM_GetShiftState [18:59:25]SAM_PROTO_GetShiftState [18:59:25]wFMCommunicate request_size=4 [18:59:25]MH_SAM_APDU [18:59:25]CAPDU: 80 13 01 00 [18:59:25]Write to MH i2c: E2 08 00 DA 11 80 13 01 00 00 00 00 00 68 [18:59:25]Write i2c OK [18:59:25]MH_I2C_Read... [18:59:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:59:25]Read from MH i2c: E2 [18:59:25]MH_I2C_Read... [18:59:25]Read from MH i2c: E2 0E 00 [18:59:25]MH_I2C_Read... [18:59:25]Read from MH i2c: E2 0E 00 DA 11 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 CF [18:59:25]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [18:59:25]wFMCommunicate OK [18:59:25]SAM_PROTO_GetShiftState done [18:59:25]FM_GetShiftState done [18:59:25]opened in 1715991483 [18:59:25]opened+sec_in_day 1716077883 [18:59:25]quantity*price = 250020 [18:59:25]sum+1 = 250022 [18:59:25]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2500.21 НСП 1% : 22.13 НДС 12% : 265.51 Наличными: 0.00 Безнал.: 2500.21 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 112 18.05.2024 18:59 Смена: 359 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67873 ФПД: 47995134838493 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T185926&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67873&fm=47995134838493&tin=02508201610067®Number=0000000000091845&sum=250021 [18:59:26]StoreToDocumentArchive [18:59:26]shift 359 fd 67873 [18:59:26]save to /storage/0359/doc_00067873 [18:59:26]save last doc name /storage/0359/doc_00067873 to /storage/kkm_last_doc_name [18:59:26]save OK [18:59:26]Clear old archive folders... [18:59:26]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:59:26]tlvbuf is B6EE58F0 [18:59:26]SAM_PROTO_ClearQueue [18:59:26]wFMCommunicate request_size=4 [18:59:26]MH_SAM_APDU [18:59:26]CAPDU: 80 09 00 00 [18:59:26]Write to MH i2c: E2 08 00 E7 11 80 09 00 00 00 00 00 00 6A [18:59:26]Write i2c OK [18:59:26]MH_I2C_Read... [18:59:26]Read from MH i2c: E2 [18:59:26]MH_I2C_Read... [18:59:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:59:26]Read from MH i2c: E2 03 00 [18:59:26]MH_I2C_Read... [18:59:26]Read from MH i2c: E2 03 00 E7 11 00 90 00 6C [18:59:26]RAPDU: 90 00 [18:59:26]wFMCommunicate OK [18:59:26]SAM_PROTO_ClearQueue done [18:59:26]KKMCreateOFDPacket [18:59:26]OFDProtocolAddRootSTLVToBuf [18:59:26]FM_MakeSignedData [18:59:26]FM_MakeSignedData [18:59:26]SAM_PROTO_SignData [18:59:26]wFMCommunicate request_size=4 [18:59:26]MH_SAM_APDU [18:59:26]CAPDU: 80 0D 01 02 [18:59:26]Write to MH i2c: E2 08 00 E8 11 80 0D 01 02 00 00 00 00 72 [18:59:26]Write i2c OK [18:59:26]MH_I2C_Read... [18:59:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:59:26]Read from MH i2c: E2 [18:59:26]MH_I2C_Read... [18:59:26]Read from MH i2c: E2 03 00 [18:59:26]MH_I2C_Read... [18:59:26]Read from MH i2c: E2 03 00 E8 11 00 90 00 6D [18:59:26]RAPDU: 90 00 [18:59:26]wFMCommunicate OK [18:59:26]wFMCommunicate request_size=255 [18:59:26]MH_SAM_APDU [18:59:26]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BE 82 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 A5 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A5 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A5 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 8E FA 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 21 09 01 00 35 04 06 00 2B A6 BC F6 [18:59:26]Write to MH i2c: E2 02 01 E9 11 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BE 82 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 A5 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A5 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A5 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 8E FA 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 21 09 01 00 35 04 06 00 2B A6 BC F6 00 00 4E [18:59:26]Write i2c OK [18:59:26]MH_I2C_Read... [18:59:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:59:26]Read from MH i2c: E2 [18:59:26]MH_I2C_Read... [18:59:26]Read from MH i2c: E2 03 00 [18:59:26]MH_I2C_Read... [18:59:26]Read from MH i2c: E2 03 00 E9 11 00 90 00 6E [18:59:26]RAPDU: 90 00 [18:59:26]wFMCommunicate OK [18:59:26]wFMCommunicate request_size=7 [18:59:26]MH_SAM_APDU [18:59:26]CAPDU: 80 0D 02 02 02 86 DD [18:59:26]Write to MH i2c: E2 0A 00 EA 11 80 0D 02 02 02 00 86 DD 00 00 DC [18:59:26]Write i2c OK [18:59:26]MH_I2C_Read... [18:59:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:59:26]Read from MH i2c: E2 [18:59:26]MH_I2C_Read... [18:59:26]Read from MH i2c: E2 03 00 [18:59:26]MH_I2C_Read... [18:59:26]Read from MH i2c: E2 03 00 EA 11 00 90 00 6F [18:59:26]RAPDU: 90 00 [18:59:26]wFMCommunicate OK [18:59:26]wFMCommunicate request_size=4 [18:59:26]MH_SAM_APDU [18:59:26]CAPDU: 80 0D 03 02 [18:59:26]Write to MH i2c: E2 08 00 EB 11 80 0D 03 02 00 00 00 00 77 [18:59:26]Write i2c OK [18:59:26]MH_I2C_Read... [18:59:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:59:26]Read from MH i2c: E2 [18:59:26]MH_I2C_Read... [18:59:26]Read from MH i2c: E2 0B 00 [18:59:26]MH_I2C_Read... [18:59:26]Read from MH i2c: E2 0B 00 EB 11 00 DD D3 3A E6 C6 6F D8 B4 90 00 09 [18:59:26]RAPDU: DD D3 3A E6 C6 6F D8 B4 90 00 [18:59:26]wFMCommunicate OK [18:59:26]SAM_PROTO_SignData done [18:59:26]FM_MakeSignedData done [18:59:26]CreateOFDProtocolMessage [18:59:26]wFMCommunicate request_size=4 [18:59:26]MH_SAM_APDU [18:59:26]CAPDU: 80 11 00 00 [18:59:26]Write to MH i2c: E2 08 00 EC 11 80 11 00 00 00 00 00 00 77 [18:59:26]Write i2c OK [18:59:26]MH_I2C_Read... [18:59:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:59:26]Read from MH i2c: E2 [18:59:26]MH_I2C_Read... [18:59:26]Read from MH i2c: E2 17 00 [18:59:26]MH_I2C_Read... [18:59:26]Read from MH i2c: E2 17 00 EC 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 CD [18:59:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [18:59:26]wFMCommunicate OK [18:59:26]CreateOFDProtocolMessage done [18:59:26]OFDSenderStorePacket 67873 [18:59:26]StoreOFDPacket docnum=67873 [18:59:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 F3 E6 04 01 11 EF 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BE 82 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 A5 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A5 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A5 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 8E FA 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 21 09 01 00 35 04 06 00 2B A6 BC F6 86 DD DD D3 3A E6 C6 6F D8 B4 [18:59:26]CheckFolder [18:59:26]dirname=/storage/ofd_packets [18:59:26]CheckFolder done [18:59:26]ProducePacketName [18:59:26]name=ofd_packets/00067873 [18:59:26]NVStorageSaveData ofd_packets/00067873 [18:59:26]File name is /storage/ofd_packets/00067873 [18:59:26]Write 298 bytes [18:59:26]NVStorageSaveData done [18:59:26]OFDSenderStorePacket done [18:59:26]KKMCreateOFDPacket done [18:59:26]NVStorageSaveData kkm_last_timestamp [18:59:26]File name is /storage/kkm_last_timestamp [18:59:26]Write 4 bytes [18:59:26]NVStorageSaveData done [18:59:26]ExternCall_PrintAddStr [18:59:26]wPrintStart [18:59:26]Write to MH i2c: 01 00 00 ED 11 FE [18:59:26]Write i2c OK [18:59:26]MH_I2C_Read... [18:59:26]Read from MH i2c: 01 [18:59:26]MH_I2C_Read... [18:59:26]Read from MH i2c: 01 07 00 [18:59:26]MH_I2C_Read... [18:59:26]Read from MH i2c: 01 07 00 ED 11 00 00 00 00 00 FF 0F 13 [18:59:26]RasterBufferAndPrint [18:59:26]line Счет N : (1)508137 [18:59:26]line ИНН: 02508201610067 [18:59:26]line Контрольно-Кассовый Чек [18:59:26]line ПРОДАЖА [18:59:26]line ТРК (МРК, ГНК) : 11 [18:59:26]line Товар: 2710194210 [18:59:26]line ДТ-К-5 [18:59:26]line 33.470 * 74.70 [18:59:26]line = 2500.21 [18:59:26]line НДС 12% НСП 1% [18:59:26]line > о реализуемом товаре [18:59:26]line ИТОГО: 2500.21 [18:59:26]line НСП 1% : 22.13 [18:59:26]line НДС 12% : 265.51 [18:59:26]line Наличными: 0.00 [18:59:26]line Безнал.: 2500.21 [18:59:26]line Место: АЗС № 91 "Партнер Нефть" [18:59:26]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [18:59:26]line СНО: Общий режим [18:59:26]line Чек 112 18.05.2024 18:59 [18:59:26]line Смена: 359 ФФД: 1.0 [18:59:26]line ЗНМ: 0300000119 [18:59:26]line РНМ: 0000000000091845 [18:59:26]line Версия ККМ: 001 [18:59:26]line Платежная система: O! деньги [18:59:26]line ФМ: 0000000000871829 [18:59:26]line ФД: 67873 [18:59:26]line ФПД: 47995134838493 [18:59:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T185926&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67873&fm=47995134838493&tin=02508201610067®Number=0000000000091845&sum=250021 [18:59:27]OFD Sender: Processing packet 67873 [packets to send 35, broken 34] [18:59:27]ProducePacketName [18:59:27]name=ofd_packets/00067873 [18:59:27]OFD Sender: To server: pG, [18:59:27]CommunicateWithHost lk.salyk.kg:30040 [18:59:27]ConnectInit lk.salyk.kg [18:59:27]written 0, free lines is 4095 [18:59:27]Connected sock=10 [18:59:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 F3 E6 04 01 11 EF 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BE 82 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 A5 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A5 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A5 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 8E FA 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 21 09 01 00 35 04 06 00 2B A6 BC F6 86 DD DD D3 3A E6 C6 6F D8 B4 [18:59:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 C7 3F 47 00 A5 F2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 21 09 01 00 F4 03 04 00 63 A2 48 66 B6 04 01 00 00 F2 DD B7 50 CA 1D 3A BC [18:59:27]CommunicateWithHost err = 0 [18:59:27]CheckOFDResponse [18:59:27]1017 (14) - 77093643461234 [18:59:27]1041 (16) - 0000000000871829 [18:59:27]1040 (4) - 67873 [18:59:27]1012 (4) - 18.05.2024 12:43 [18:59:27]1206 (1) - 0 [18:59:27]OFD Sender: Remove packet 67873 [18:59:27]ProducePacketName [18:59:27]name=ofd_packets/00067873 [18:59:27]NVStorageDeleteData [18:59:27]Write to MH i2c: 01 00 00 16 12 28 [18:59:27]Write i2c OK [18:59:27]MH_I2C_Read... [18:59:27]Read from MH i2c: 01 [18:59:27]MH_I2C_Read... [18:59:27]Read from MH i2c: 01 07 00 [18:59:27]MH_I2C_Read... [18:59:27]Read from MH i2c: 01 07 00 16 12 00 00 00 00 00 E0 0C 1B [18:59:27]RasterBufferAndPrint [18:59:27]line [18:59:27]line [18:59:27]line [18:59:27]line [18:59:27]line [18:59:27]written 0, free lines is 3302 [18:59:27]MH_Cut [18:59:27]Write to MH i2c: D1 01 00 1D 12 01 01 [18:59:27]Write i2c OK [18:59:27]MH_I2C_Read... [18:59:27]Read from MH i2c: D1 [18:59:27]MH_I2C_Read... [18:59:27]Read from MH i2c: D1 01 00 [18:59:27]MH_I2C_Read... [18:59:27]Read from MH i2c: D1 01 00 1D 12 00 00 [18:59:27]Write to MH i2c: 01 00 00 1E 12 30 [18:59:27]Write i2c OK [18:59:27]MH_I2C_Read... [18:59:28]OFD Sender: No OFD packet to send [18:59:28]*** Cut start [18:59:28]*** Purtial cut [18:59:28]*** CUTSNS_PIN = 0 [18:59:28]*** Stage 1: CUTSNS_PIN = 1 [18:59:30]Read from MH i2c: 01 [18:59:30]MH_I2C_Read... [18:59:30]*** Stop cut motor [18:59:30]*** Cut end [18:59:30]Read from MH i2c: 01 07 00 [18:59:30]MH_I2C_Read... [18:59:30]Read from MH i2c: 01 07 00 1E 12 00 00 00 00 00 FF 0F 45 [18:59:30]process_action close_receipt done [18:59:30]requested_data is exist [18:59:30]produce_requested_data [18:59:30]requested_item fm.sn is exist - process it [18:59:30]wFMCommunicate request_size=4 [18:59:30]MH_SAM_APDU [18:59:30]CAPDU: 80 11 00 00 [18:59:30]Write to MH i2c: E2 08 00 1F 12 80 11 00 00 00 00 00 00 AB [18:59:30]Write i2c OK [18:59:30]MH_I2C_Read... [18:59:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:59:30]Read from MH i2c: E2 [18:59:30]MH_I2C_Read... [18:59:30]Read from MH i2c: E2 17 00 [18:59:30]MH_I2C_Read... [18:59:30]Read from MH i2c: E2 17 00 1F 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 01 [18:59:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [18:59:30]wFMCommunicate OK [18:59:30]requested_item fd.num is exist - process it [18:59:30]SAM_PROTO_GetFieldsCounters [18:59:30]wFMCommunicate request_size=4 [18:59:30]MH_SAM_APDU [18:59:30]CAPDU: 80 13 00 00 [18:59:30]Write to MH i2c: E2 08 00 20 12 80 13 00 00 00 00 00 00 AE [18:59:30]Write i2c OK [18:59:30]MH_I2C_Read... [18:59:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:59:30]Read from MH i2c: E2 [18:59:30]MH_I2C_Read... [18:59:30]Read from MH i2c: E2 62 00 [18:59:30]MH_I2C_Read... [18:59:30]Read from MH i2c: E2 62 00 20 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 21 09 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 70 00 00 00 5E 04 04 00 70 00 00 00 57 04 04 00 71 00 00 00 19 04 04 00 00 00 00 00 90 00 B7 [18:59:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 21 09 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 70 00 00 00 5E 04 04 00 70 00 00 00 57 04 04 00 71 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:59:30]wFMCommunicate OK [18:59:30]SAM_PROTO_GetFieldsCounters done [18:59:30]requested_item shift.num is exist - process it [18:59:30]requested_item shift.opened is exist - process it [18:59:30]req_shift_opened [18:59:30]FM_GetShiftState [18:59:30]SAM_PROTO_GetShiftState [18:59:30]wFMCommunicate request_size=4 [18:59:30]MH_SAM_APDU [18:59:30]CAPDU: 80 13 01 00 [18:59:30]Write to MH i2c: E2 08 00 21 12 80 13 01 00 00 00 00 00 B0 [18:59:30]Write i2c OK [18:59:30]MH_I2C_Read... [18:59:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:59:30]Read from MH i2c: E2 [18:59:30]MH_I2C_Read... [18:59:30]Read from MH i2c: E2 0E 00 [18:59:30]MH_I2C_Read... [18:59:30]Read from MH i2c: E2 0E 00 21 12 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 17 [18:59:30]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [18:59:30]wFMCommunicate OK [18:59:30]SAM_PROTO_GetShiftState done [18:59:30]FM_GetShiftState done [18:59:30]req_shift_opened done [18:59:30]requested_item shift.open_date is exist - process it [18:59:30]req_shift_open_date [18:59:30]req_shift_open_date done [18:59:30]produce_requested_data done [18:59:30]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67873,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [18:59:30]process_action_free close_receipt [18:59:30]json_value_free [18:59:30]json_value_free done [18:59:30]process_json_proto returns [18:59:30]Send response to host [18:59:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67873,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [18:59:30]free response buf [18:59:30]execute_script done [18:59:30]execute_script returns [18:59:30]free content buf [18:59:30]Sock 7.Close socket [18:59:30]Sock 7.Thread stoped [18:59:33]OFD Sender: No OFD packet to send [18:59:38]OFD Sender: No OFD packet to send [18:59:43]OFD Sender: No OFD packet to send [18:59:48]OFD Sender: No OFD packet to send [18:59:53]OFD Sender: No OFD packet to send [18:59:58]OFD Sender: No OFD packet to send [19:00:03]OFD Sender: No OFD packet to send [19:00:08]OFD Sender: No OFD packet to send [19:00:13]OFD Sender: No OFD packet to send [19:00:18]OFD Sender: No OFD packet to send [19:00:23]OFD Sender: No OFD packet to send [19:00:28]OFD Sender: No OFD packet to send [19:00:33]OFD Sender: No OFD packet to send [19:00:38]OFD Sender: No OFD packet to send [19:00:43]OFD Sender: No OFD packet to send [19:00:48]OFD Sender: No OFD packet to send [19:00:53]OFD Sender: No OFD packet to send [19:00:58]OFD Sender: No OFD packet to send [19:01:03]OFD Sender: No OFD packet to send [19:01:04]accept exits with 9 [19:01:04]New connection [19:01:04]New thread 3067059556 created [19:01:04]Thread 3067202916 joined [19:01:04]Waiting for new connection... [19:01:04] Sock 9.Parse request [19:01:04]Sock 9.Check first char [19:01:04]Sock 9.First char is OK [19:01:04]request: POST /json_proto HTTP/1.0 [19:01:04]Method: POST [19:01:04]URL: /json_proto [19:01:04]Method is POST - this is cgi request [19:01:04]url: /json_proto [19:01:04]query_string will be loaded in cgi processing [19:01:04]execute_cgi json_proto POST (null) [19:01:04]execute_cgi path=json_proto method=POST [19:01:04]POST find Content-Length [19:01:04]Host: 172.17.41.195:8080 [19:01:04]Content-Length: 801 [19:01:04]Content-Type: application/json [19:01:04] [19:01:04]POST finish read [19:01:04]Found Content-Length = 801 [19:01:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)508136", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 120.490, "sum" : 9000.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 9000.60 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:01:04]execute_script... [19:01:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)508136", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 120.490, "sum" : 9000.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 9000.60 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:01:04]POST & json_proto [19:01:04]process_json_proto [19:01:04]json parsed OK: [19:01:04]protocol is kg_v1.0 [19:01:04]action value=close_receipt [19:01:04]process_action close_receipt [19:01:04]cmd_close_receipt [19:01:04]MH_GetDate [19:01:04]Write to MH i2c: F0 00 00 22 12 23 [19:01:04]Write i2c OK [19:01:04]MH_I2C_Read... [19:01:04]Read from MH i2c: F0 [19:01:04]MH_I2C_Read... [19:01:04]Read from MH i2c: F0 09 00 [19:01:04]MH_I2C_Read... [19:01:04]Read from MH i2c: F0 09 00 22 12 00 F2 FA 48 66 FC 21 6F 64 B6 [19:01:04]GetLastDocTimeStamp 1716058766 [19:01:04]current date 1716058866 [19:01:04]FM_GetShiftState [19:01:04]SAM_PROTO_GetShiftState [19:01:04]wFMCommunicate request_size=4 [19:01:04]MH_SAM_APDU [19:01:04]CAPDU: 80 13 01 00 [19:01:04]Write to MH i2c: E2 08 00 23 12 80 13 01 00 00 00 00 00 B2 [19:01:04]Write i2c OK [19:01:04]MH_I2C_Read... [19:01:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:01:04]Read from MH i2c: E2 [19:01:04]MH_I2C_Read... [19:01:04]Read from MH i2c: E2 0E 00 [19:01:04]MH_I2C_Read... [19:01:04]Read from MH i2c: E2 0E 00 23 12 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 19 [19:01:04]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [19:01:04]wFMCommunicate OK [19:01:04]SAM_PROTO_GetShiftState done [19:01:04]FM_GetShiftState done [19:01:04]opened in 1715991483 [19:01:04]opened+sec_in_day 1716077883 [19:01:04]quantity*price = 900060 [19:01:04]sum+1 = 900061 [19:01:04]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 9000.60 НСП 1% : 79.65 НДС 12% : 955.82 Наличными: 0.00 Безнал.: 9000.60 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 113 18.05.2024 19:01 Смена: 359 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67874 ФПД: 251766976025876 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T190106&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67874&fm=251766976025876&tin=02508201610067®Number=0000000000091845&sum=900060 [19:01:05]StoreToDocumentArchive [19:01:05]shift 359 fd 67874 [19:01:05]save to /storage/0359/doc_00067874 [19:01:05]save last doc name /storage/0359/doc_00067874 to /storage/kkm_last_doc_name [19:01:05]save OK [19:01:05]Clear old archive folders... [19:01:05]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:01:05]tlvbuf is 00A06630 [19:01:05]SAM_PROTO_ClearQueue [19:01:05]wFMCommunicate request_size=4 [19:01:05]MH_SAM_APDU [19:01:05]CAPDU: 80 09 00 00 [19:01:05]Write to MH i2c: E2 08 00 30 12 80 09 00 00 00 00 00 00 B4 [19:01:05]Write i2c OK [19:01:05]MH_I2C_Read... [19:01:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:01:05]Read from MH i2c: E2 [19:01:05]MH_I2C_Read... [19:01:05]Read from MH i2c: E2 03 00 [19:01:05]MH_I2C_Read... [19:01:05]Read from MH i2c: E2 03 00 30 12 00 90 00 B6 [19:01:05]RAPDU: 90 00 [19:01:05]wFMCommunicate OK [19:01:05]SAM_PROTO_ClearQueue done [19:01:05]KKMCreateOFDPacket [19:01:05]OFDProtocolAddRootSTLVToBuf [19:01:05]FM_MakeSignedData [19:01:05]FM_MakeSignedData [19:01:05]SAM_PROTO_SignData [19:01:05]wFMCommunicate request_size=4 [19:01:05]MH_SAM_APDU [19:01:05]CAPDU: 80 0D 01 02 [19:01:05]Write to MH i2c: E2 08 00 31 12 80 0D 01 02 00 00 00 00 BC [19:01:05]Write i2c OK [19:01:05]MH_I2C_Read... [19:01:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:01:05]Read from MH i2c: E2 [19:01:05]MH_I2C_Read... [19:01:05]Read from MH i2c: E2 03 00 [19:01:05]MH_I2C_Read... [19:01:05]Read from MH i2c: E2 03 00 31 12 00 90 00 B7 [19:01:05]RAPDU: 90 00 [19:01:05]wFMCommunicate OK [19:01:05]wFMCommunicate request_size=255 [19:01:05]MH_SAM_APDU [19:01:05]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA D6 01 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 DC BB 0D 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC BB 0D 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 1F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5E 75 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 DC BB 0D 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 F2 FA 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 22 09 01 00 35 04 06 00 E4 FB 11 2C [19:01:05]Write to MH i2c: E2 02 01 32 12 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA D6 01 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 DC BB 0D 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC BB 0D 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 1F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5E 75 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 DC BB 0D 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 F2 FA 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 22 09 01 00 35 04 06 00 E4 FB 11 2C 00 00 A1 [19:01:05]Write i2c OK [19:01:05]MH_I2C_Read... [19:01:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:01:06]Read from MH i2c: E2 [19:01:06]MH_I2C_Read... [19:01:06]Read from MH i2c: E2 03 00 [19:01:06]MH_I2C_Read... [19:01:06]Read from MH i2c: E2 03 00 32 12 00 90 00 B8 [19:01:06]RAPDU: 90 00 [19:01:06]wFMCommunicate OK [19:01:06]wFMCommunicate request_size=7 [19:01:06]MH_SAM_APDU [19:01:06]CAPDU: 80 0D 02 02 02 15 14 [19:01:06]Write to MH i2c: E2 0A 00 33 12 80 0D 02 02 02 00 15 14 00 00 EC [19:01:06]Write i2c OK [19:01:06]MH_I2C_Read... [19:01:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:01:06]Read from MH i2c: E2 [19:01:06]MH_I2C_Read... [19:01:06]Read from MH i2c: E2 03 00 [19:01:06]MH_I2C_Read... [19:01:06]Read from MH i2c: E2 03 00 33 12 00 90 00 B9 [19:01:06]RAPDU: 90 00 [19:01:06]wFMCommunicate OK [19:01:06]wFMCommunicate request_size=4 [19:01:06]MH_SAM_APDU [19:01:06]CAPDU: 80 0D 03 02 [19:01:06]Write to MH i2c: E2 08 00 34 12 80 0D 03 02 00 00 00 00 C1 [19:01:06]Write i2c OK [19:01:06]MH_I2C_Read... [19:01:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:01:06]Read from MH i2c: E2 [19:01:06]MH_I2C_Read... [19:01:06]Read from MH i2c: E2 0B 00 [19:01:06]MH_I2C_Read... [19:01:06]Read from MH i2c: E2 0B 00 34 12 00 A0 D0 EB 61 CB 88 66 00 90 00 37 [19:01:06]RAPDU: A0 D0 EB 61 CB 88 66 00 90 00 [19:01:06]wFMCommunicate OK [19:01:06]SAM_PROTO_SignData done [19:01:06]FM_MakeSignedData done [19:01:06]CreateOFDProtocolMessage [19:01:06]wFMCommunicate request_size=4 [19:01:06]MH_SAM_APDU [19:01:06]CAPDU: 80 11 00 00 [19:01:06]Write to MH i2c: E2 08 00 35 12 80 11 00 00 00 00 00 00 C1 [19:01:06]Write i2c OK [19:01:06]MH_I2C_Read... [19:01:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:01:06]Read from MH i2c: E2 [19:01:06]MH_I2C_Read... [19:01:06]Read from MH i2c: E2 17 00 [19:01:06]MH_I2C_Read... [19:01:06]Read from MH i2c: E2 17 00 35 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 17 [19:01:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [19:01:06]wFMCommunicate OK [19:01:06]CreateOFDProtocolMessage done [19:01:06]OFDSenderStorePacket 67874 [19:01:06]StoreOFDPacket docnum=67874 [19:01:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 D4 C7 04 01 4D 53 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA D6 01 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 DC BB 0D 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC BB 0D 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 1F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5E 75 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 DC BB 0D 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 F2 FA 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 22 09 01 00 35 04 06 00 E4 FB 11 2C 15 14 A0 D0 EB 61 CB 88 66 00 [19:01:06]CheckFolder [19:01:06]dirname=/storage/ofd_packets [19:01:06]CheckFolder done [19:01:06]ProducePacketName [19:01:06]name=ofd_packets/00067874 [19:01:06]NVStorageSaveData ofd_packets/00067874 [19:01:06]File name is /storage/ofd_packets/00067874 [19:01:06]Write 298 bytes [19:01:06]NVStorageSaveData done [19:01:06]OFDSenderStorePacket done [19:01:06]KKMCreateOFDPacket done [19:01:06]NVStorageSaveData kkm_last_timestamp [19:01:06]File name is /storage/kkm_last_timestamp [19:01:06]Write 4 bytes [19:01:06]NVStorageSaveData done [19:01:06]ExternCall_PrintAddStr [19:01:06]wPrintStart [19:01:06]Write to MH i2c: 01 00 00 36 12 48 [19:01:06]Write i2c OK [19:01:06]MH_I2C_Read... [19:01:06]Read from MH i2c: 01 [19:01:06]MH_I2C_Read... [19:01:06]Read from MH i2c: 01 07 00 [19:01:06]MH_I2C_Read... [19:01:06]Read from MH i2c: 01 07 00 36 12 00 00 00 00 00 FF 0F 5D [19:01:06]RasterBufferAndPrint [19:01:06]line Счет N : (1)508136 [19:01:06]line ИНН: 02508201610067 [19:01:06]line Контрольно-Кассовый Чек [19:01:06]line ПРОДАЖА [19:01:06]line ТРК (МРК, ГНК) : 31 [19:01:06]line Товар: 2710194210 [19:01:06]line ДТ-К-5 [19:01:06]line 120.490 * 74.70 [19:01:06]line = 9000.60 [19:01:06]line НДС 12% НСП 1% [19:01:06]line > о реализуемом товаре [19:01:06]line ИТОГО: 9000.60 [19:01:06]line НСП 1% : 79.65 [19:01:06]line НДС 12% : 955.82 [19:01:06]line Наличными: 0.00 [19:01:06]line Безнал.: 9000.60 [19:01:06]line Место: АЗС № 91 "Партнер Нефть" [19:01:06]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [19:01:06]line СНО: Общий режим [19:01:06]line Чек 113 18.05.2024 19:01 [19:01:06]line Смена: 359 ФФД: 1.0 [19:01:06]line ЗНМ: 0300000119 [19:01:06]line РНМ: 0000000000091845 [19:01:06]line Версия ККМ: 001 [19:01:06]line Платежная система: O! деньги [19:01:06]line ФМ: 0000000000871829 [19:01:06]line ФД: 67874 [19:01:06]line ФПД: 251766976025876 [19:01:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T190106&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67874&fm=251766976025876&tin=02508201610067®Number=0000000000091845&sum=900060 [19:01:06]OFD Sender: Processing packet 67874 [packets to send 35, broken 34] [19:01:06]ProducePacketName [19:01:06]name=ofd_packets/00067874 [19:01:06]OFD Sender: To server: pG, [19:01:06]CommunicateWithHost lk.salyk.kg:30040 [19:01:06]ConnectInit lk.salyk.kg [19:01:06]written 0, free lines is 4095 [19:01:06]Connected sock=10 [19:01:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 D4 C7 04 01 4D 53 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA D6 01 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 DC BB 0D 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC BB 0D 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 1F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5E 75 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 DC BB 0D 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 F2 FA 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 22 09 01 00 35 04 06 00 E4 FB 11 2C 15 14 A0 D0 EB 61 CB 88 66 00 [19:01:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 93 B9 47 00 22 5B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 22 09 01 00 F4 03 04 00 C7 A2 48 66 B6 04 01 00 00 B4 B3 F5 73 60 37 AF 50 [19:01:06]CommunicateWithHost err = 0 [19:01:06]CheckOFDResponse [19:01:06]1017 (14) - 77093643461234 [19:01:06]1041 (16) - 0000000000871829 [19:01:06]1040 (4) - 67874 [19:01:06]1012 (4) - 18.05.2024 12:44 [19:01:06]1206 (1) - 0 [19:01:06]OFD Sender: Remove packet 67874 [19:01:06]ProducePacketName [19:01:06]name=ofd_packets/00067874 [19:01:06]NVStorageDeleteData [19:01:07]Write to MH i2c: 01 00 00 5F 12 71 [19:01:07]Write i2c OK [19:01:07]MH_I2C_Read... [19:01:07]Read from MH i2c: 01 [19:01:07]MH_I2C_Read... [19:01:07]Read from MH i2c: 01 07 00 [19:01:07]MH_I2C_Read... [19:01:07]Read from MH i2c: 01 07 00 5F 12 00 00 00 00 00 D9 0C 5D [19:01:07]RasterBufferAndPrint [19:01:07]line [19:01:07]line [19:01:07]line [19:01:07]line [19:01:07]line [19:01:07]written 0, free lines is 3296 [19:01:07]MH_Cut [19:01:07]Write to MH i2c: D1 01 00 66 12 01 4A [19:01:07]Write i2c OK [19:01:07]MH_I2C_Read... [19:01:07]Read from MH i2c: D1 [19:01:07]MH_I2C_Read... [19:01:07]Read from MH i2c: D1 01 00 [19:01:07]MH_I2C_Read... [19:01:07]Read from MH i2c: D1 01 00 66 12 00 49 [19:01:07]Write to MH i2c: 01 00 00 67 12 79 [19:01:07]Write i2c OK [19:01:07]MH_I2C_Read... [19:01:07]OFD Sender: No OFD packet to send [19:01:07]*** Cut start [19:01:07]*** Purtial cut [19:01:07]*** Stage 1: CUTSNS_PIN = 1 [19:01:08]Read from MH i2c: 01 [19:01:08]MH_I2C_Read... [19:01:08]*** Stop cut motor [19:01:08]*** Cut end [19:01:08]Read from MH i2c: 01 07 00 [19:01:08]MH_I2C_Read... [19:01:08]Read from MH i2c: 01 07 00 67 12 00 00 00 00 00 FF 0F 8E [19:01:08]process_action close_receipt done [19:01:08]requested_data is exist [19:01:08]produce_requested_data [19:01:08]requested_item fm.sn is exist - process it [19:01:08]wFMCommunicate request_size=4 [19:01:08]MH_SAM_APDU [19:01:08]CAPDU: 80 11 00 00 [19:01:08]Write to MH i2c: E2 08 00 68 12 80 11 00 00 00 00 00 00 F4 [19:01:08]Write i2c OK [19:01:08]MH_I2C_Read... [19:01:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:01:08]Read from MH i2c: E2 [19:01:08]MH_I2C_Read... [19:01:08]Read from MH i2c: E2 17 00 [19:01:08]MH_I2C_Read... [19:01:08]Read from MH i2c: E2 17 00 68 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 4A [19:01:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [19:01:08]wFMCommunicate OK [19:01:08]requested_item fd.num is exist - process it [19:01:08]SAM_PROTO_GetFieldsCounters [19:01:08]wFMCommunicate request_size=4 [19:01:08]MH_SAM_APDU [19:01:08]CAPDU: 80 13 00 00 [19:01:08]Write to MH i2c: E2 08 00 69 12 80 13 00 00 00 00 00 00 F7 [19:01:08]Write i2c OK [19:01:08]MH_I2C_Read... [19:01:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:01:08]Read from MH i2c: E2 [19:01:08]MH_I2C_Read... [19:01:08]Read from MH i2c: E2 62 00 [19:01:08]MH_I2C_Read... [19:01:08]Read from MH i2c: E2 62 00 69 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 22 09 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 71 00 00 00 5E 04 04 00 71 00 00 00 57 04 04 00 72 00 00 00 19 04 04 00 00 00 00 00 90 00 04 [19:01:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 22 09 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 71 00 00 00 5E 04 04 00 71 00 00 00 57 04 04 00 72 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:01:08]wFMCommunicate OK [19:01:08]SAM_PROTO_GetFieldsCounters done [19:01:08]requested_item shift.num is exist - process it [19:01:08]requested_item shift.opened is exist - process it [19:01:08]req_shift_opened [19:01:08]FM_GetShiftState [19:01:08]SAM_PROTO_GetShiftState [19:01:08]wFMCommunicate request_size=4 [19:01:08]MH_SAM_APDU [19:01:08]CAPDU: 80 13 01 00 [19:01:08]Write to MH i2c: E2 08 00 6A 12 80 13 01 00 00 00 00 00 F9 [19:01:08]Write i2c OK [19:01:08]MH_I2C_Read... [19:01:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:01:08]Read from MH i2c: E2 [19:01:08]MH_I2C_Read... [19:01:08]Read from MH i2c: E2 0E 00 [19:01:08]MH_I2C_Read... [19:01:08]Read from MH i2c: E2 0E 00 6A 12 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 60 [19:01:08]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [19:01:08]wFMCommunicate OK [19:01:08]SAM_PROTO_GetShiftState done [19:01:08]FM_GetShiftState done [19:01:08]req_shift_opened done [19:01:08]requested_item shift.open_date is exist - process it [19:01:08]req_shift_open_date [19:01:08]req_shift_open_date done [19:01:08]produce_requested_data done [19:01:08]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67874,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [19:01:08]process_action_free close_receipt [19:01:08]json_value_free [19:01:08]json_value_free done [19:01:08]process_json_proto returns [19:01:08]Send response to host [19:01:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67874,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [19:01:08]free response buf [19:01:08]execute_script done [19:01:08]execute_script returns [19:01:08]free content buf [19:01:08]Sock 9.Close socket [19:01:08]Sock 9.Thread stoped [19:01:12]OFD Sender: No OFD packet to send [19:01:17]OFD Sender: No OFD packet to send [19:01:22]OFD Sender: No OFD packet to send [19:01:27]OFD Sender: No OFD packet to send [19:01:32]OFD Sender: No OFD packet to send [19:01:37]OFD Sender: No OFD packet to send [19:01:42]OFD Sender: No OFD packet to send [19:01:47]OFD Sender: No OFD packet to send [19:01:52]OFD Sender: No OFD packet to send [19:01:57]OFD Sender: No OFD packet to send [19:02:02]OFD Sender: No OFD packet to send [19:02:02]accept exits with 7 [19:02:02]New connection [19:02:02]New thread 3067202916 created [19:02:02]Thread 3067059556 joined [19:02:02]Waiting for new connection... [19:02:02] Sock 7.Parse request [19:02:02]Sock 7.Check first char [19:02:02]Sock 7.First char is OK [19:02:02]request: POST /json_proto HTTP/1.0 [19:02:02]Method: POST [19:02:02]URL: /json_proto [19:02:02]Method is POST - this is cgi request [19:02:02]url: /json_proto [19:02:02]query_string will be loaded in cgi processing [19:02:02]execute_cgi json_proto POST (null) [19:02:02]execute_cgi path=json_proto method=POST [19:02:02]POST find Content-Length [19:02:02]Host: 172.17.41.195:8080 [19:02:02]Content-Length: 677 [19:02:02]Content-Type: application/json [19:02:02] [19:02:02]POST finish read [19:02:02]Found Content-Length = 677 [19:02:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)508139", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.80, "quantity" : 4.500, "sum" : 300.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:02:02]execute_script... [19:02:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)508139", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.80, "quantity" : 4.500, "sum" : 300.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:02:02]POST & json_proto [19:02:02]process_json_proto [19:02:02]json parsed OK: [19:02:02]protocol is kg_v1.0 [19:02:02]action value=close_receipt [19:02:02]process_action close_receipt [19:02:02]cmd_close_receipt [19:02:02]MH_GetDate [19:02:02]Write to MH i2c: F0 00 00 6B 12 6C [19:02:02]Write i2c OK [19:02:02]MH_I2C_Read... [19:02:02]Read from MH i2c: F0 [19:02:02]MH_I2C_Read... [19:02:02]Read from MH i2c: F0 09 00 [19:02:02]MH_I2C_Read... [19:02:02]Read from MH i2c: F0 09 00 6B 12 00 2C FB 48 66 FC 21 6F 64 3A [19:02:02]GetLastDocTimeStamp 1716058866 [19:02:02]current date 1716058924 [19:02:02]FM_GetShiftState [19:02:02]SAM_PROTO_GetShiftState [19:02:02]wFMCommunicate request_size=4 [19:02:02]MH_SAM_APDU [19:02:02]CAPDU: 80 13 01 00 [19:02:02]Write to MH i2c: E2 08 00 6C 12 80 13 01 00 00 00 00 00 FB [19:02:02]Write i2c OK [19:02:02]MH_I2C_Read... [19:02:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:02:03]Read from MH i2c: E2 [19:02:03]MH_I2C_Read... [19:02:03]Read from MH i2c: E2 0E 00 [19:02:03]MH_I2C_Read... [19:02:03]Read from MH i2c: E2 0E 00 6C 12 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 62 [19:02:03]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [19:02:03]wFMCommunicate OK [19:02:03]SAM_PROTO_GetShiftState done [19:02:03]FM_GetShiftState done [19:02:03]opened in 1715991483 [19:02:03]opened+sec_in_day 1716077883 [19:02:03]quantity*price = 30060 [19:02:03]sum+1 = 30061 [19:02:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.60 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.92 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 114 18.05.2024 19:02 Смена: 359 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67875 ФПД: 112479959662521 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T190204&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67875&fm=112479959662521&tin=02508201610067®Number=0000000000091845&sum=30000 [19:02:04]StoreToDocumentArchive [19:02:04]shift 359 fd 67875 [19:02:04]save to /storage/0359/doc_00067875 [19:02:04]save last doc name /storage/0359/doc_00067875 to /storage/kkm_last_doc_name [19:02:04]save OK [19:02:04]Clear old archive folders... [19:02:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:02:04]tlvbuf is 00A03C70 [19:02:04]SAM_PROTO_ClearQueue [19:02:04]wFMCommunicate request_size=4 [19:02:04]MH_SAM_APDU [19:02:04]CAPDU: 80 09 00 00 [19:02:04]Write to MH i2c: E2 08 00 79 12 80 09 00 00 00 00 00 00 FD [19:02:04]Write i2c OK [19:02:04]MH_I2C_Read... [19:02:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:02:04]Read from MH i2c: E2 [19:02:04]MH_I2C_Read... [19:02:04]Read from MH i2c: E2 03 00 [19:02:04]MH_I2C_Read... [19:02:04]Read from MH i2c: E2 03 00 79 12 00 90 00 FF [19:02:04]RAPDU: 90 00 [19:02:04]wFMCommunicate OK [19:02:04]SAM_PROTO_ClearQueue done [19:02:04]KKMCreateOFDPacket [19:02:04]OFDProtocolAddRootSTLVToBuf [19:02:04]FM_MakeSignedData [19:02:04]FM_MakeSignedData [19:02:04]SAM_PROTO_SignData [19:02:04]wFMCommunicate request_size=4 [19:02:04]MH_SAM_APDU [19:02:04]CAPDU: 80 0D 01 02 [19:02:04]Write to MH i2c: E2 08 00 7A 12 80 0D 01 02 00 00 00 00 05 [19:02:04]Write i2c OK [19:02:04]MH_I2C_Read... [19:02:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:02:04]Read from MH i2c: E2 [19:02:04]MH_I2C_Read... [19:02:04]Read from MH i2c: E2 03 00 [19:02:04]MH_I2C_Read... [19:02:04]Read from MH i2c: E2 03 00 7A 12 00 90 00 00 [19:02:04]RAPDU: 90 00 [19:02:04]wFMCommunicate OK [19:02:04]wFMCommunicate request_size=255 [19:02:04]MH_SAM_APDU [19:02:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 94 11 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 6C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 2C FB 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 23 09 01 00 35 04 06 00 66 [19:02:04]Write to MH i2c: E2 02 01 7B 12 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 94 11 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 6C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 2C FB 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 23 09 01 00 35 04 06 00 66 00 00 E7 [19:02:04]Write i2c OK [19:02:04]MH_I2C_Read... [19:02:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:02:04]Read from MH i2c: E2 [19:02:04]MH_I2C_Read... [19:02:04]Read from MH i2c: E2 03 00 [19:02:04]MH_I2C_Read... [19:02:04]Read from MH i2c: E2 03 00 7B 12 00 90 00 01 [19:02:04]RAPDU: 90 00 [19:02:04]wFMCommunicate OK [19:02:04]wFMCommunicate request_size=10 [19:02:04]MH_SAM_APDU [19:02:04]CAPDU: 80 0D 02 02 05 4C C8 0A 3F B9 [19:02:04]Write to MH i2c: E2 0D 00 7C 12 80 0D 02 02 05 00 4C C8 0A 3F B9 00 00 28 [19:02:04]Write i2c OK [19:02:04]MH_I2C_Read... [19:02:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:02:04]Read from MH i2c: E2 [19:02:04]MH_I2C_Read... [19:02:04]Read from MH i2c: E2 03 00 [19:02:04]MH_I2C_Read... [19:02:04]Read from MH i2c: E2 03 00 7C 12 00 90 00 02 [19:02:04]RAPDU: 90 00 [19:02:04]wFMCommunicate OK [19:02:04]wFMCommunicate request_size=4 [19:02:04]MH_SAM_APDU [19:02:04]CAPDU: 80 0D 03 02 [19:02:04]Write to MH i2c: E2 08 00 7D 12 80 0D 03 02 00 00 00 00 0A [19:02:04]Write i2c OK [19:02:04]MH_I2C_Read... [19:02:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:02:04]Read from MH i2c: E2 [19:02:04]MH_I2C_Read... [19:02:04]Read from MH i2c: E2 0B 00 [19:02:04]MH_I2C_Read... [19:02:04]Read from MH i2c: E2 0B 00 7D 12 00 C8 56 10 23 B5 45 75 C2 90 00 8D [19:02:04]RAPDU: C8 56 10 23 B5 45 75 C2 90 00 [19:02:04]wFMCommunicate OK [19:02:04]SAM_PROTO_SignData done [19:02:04]FM_MakeSignedData done [19:02:04]CreateOFDProtocolMessage [19:02:04]wFMCommunicate request_size=4 [19:02:04]MH_SAM_APDU [19:02:04]CAPDU: 80 11 00 00 [19:02:04]Write to MH i2c: E2 08 00 7E 12 80 11 00 00 00 00 00 00 0A [19:02:04]Write i2c OK [19:02:04]MH_I2C_Read... [19:02:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:02:04]Read from MH i2c: E2 [19:02:04]MH_I2C_Read... [19:02:04]Read from MH i2c: E2 17 00 [19:02:04]MH_I2C_Read... [19:02:04]Read from MH i2c: E2 17 00 7E 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 60 [19:02:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [19:02:04]wFMCommunicate OK [19:02:04]CreateOFDProtocolMessage done [19:02:04]OFDSenderStorePacket 67875 [19:02:04]StoreOFDPacket docnum=67875 [19:02:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 D0 4D 07 01 CD 19 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 94 11 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 6C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 2C FB 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 23 09 01 00 35 04 06 00 66 4C C8 0A 3F B9 C8 56 10 23 B5 45 75 C2 [19:02:04]CheckFolder [19:02:04]dirname=/storage/ofd_packets [19:02:04]CheckFolder done [19:02:04]ProducePacketName [19:02:04]name=ofd_packets/00067875 [19:02:04]NVStorageSaveData ofd_packets/00067875 [19:02:04]File name is /storage/ofd_packets/00067875 [19:02:04]Write 301 bytes [19:02:04]NVStorageSaveData done [19:02:04]OFDSenderStorePacket done [19:02:04]KKMCreateOFDPacket done [19:02:04]NVStorageSaveData kkm_last_timestamp [19:02:04]File name is /storage/kkm_last_timestamp [19:02:04]Write 4 bytes [19:02:04]NVStorageSaveData done [19:02:04]ExternCall_PrintAddStr [19:02:04]wPrintStart [19:02:04]Write to MH i2c: 01 00 00 7F 12 91 [19:02:04]Write i2c OK [19:02:04]MH_I2C_Read... [19:02:04]Read from MH i2c: 01 [19:02:04]MH_I2C_Read... [19:02:04]Read from MH i2c: 01 07 00 [19:02:04]MH_I2C_Read... [19:02:04]Read from MH i2c: 01 07 00 7F 12 00 00 00 00 00 FF 0F A6 [19:02:04]RasterBufferAndPrint [19:02:04]line Счет N : (1)508139 [19:02:04]line ИНН: 02508201610067 [19:02:04]line Контрольно-Кассовый Чек [19:02:04]line ПРОДАЖА [19:02:04]line ТРК (МРК, ГНК) : 43 [19:02:04]line Товар: 2710124130 [19:02:04]line Аи-92-К-5 [19:02:04]line 4.500 * 66.80 [19:02:04]line = 300.60 [19:02:04]line НДС 12% НСП 1% [19:02:04]line > о реализуемом товаре [19:02:04]line ОКРУГЛЕНИЕ: -0.60 [19:02:04]line ИТОГО: 300.00 [19:02:04]line Внесено: 300.00 [19:02:04]line СДАЧА: 0.00 [19:02:04]line НСП 1% : 2.66 [19:02:04]line НДС 12% : 31.92 [19:02:04]line Наличными: 300.00 [19:02:04]line Безнал.: 0.00 [19:02:04]line Место: АЗС № 91 "Партнер Нефть" [19:02:04]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [19:02:04]line СНО: Общий режим [19:02:04]line Чек 114 18.05.2024 19:02 [19:02:04]line Смена: 359 ФФД: 1.0 [19:02:04]line ЗНМ: 0300000119 [19:02:04]line РНМ: 0000000000091845 [19:02:04]line Версия ККМ: 001 [19:02:04]line ФМ: 0000000000871829 [19:02:04]line ФД: 67875 [19:02:04]line ФПД: 112479959662521 [19:02:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T190204&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67875&fm=112479959662521&tin=02508201610067®Number=0000000000091845&sum=30000 [19:02:05]OFD Sender: Processing packet 67875 [packets to send 35, broken 34] [19:02:05]ProducePacketName [19:02:05]name=ofd_packets/00067875 [19:02:05]OFD Sender: To server: pG, [19:02:05]CommunicateWithHost lk.salyk.kg:30040 [19:02:05]ConnectInit lk.salyk.kg [19:02:05]written 0, free lines is 4095 [19:02:05]Connected sock=9 [19:02:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 D0 4D 07 01 CD 19 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 94 11 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 6C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 2C FB 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 23 09 01 00 35 04 06 00 66 4C C8 0A 3F B9 C8 56 10 23 B5 45 75 C2 [19:02:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 84 19 47 00 D0 9C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 23 09 01 00 F4 03 04 00 01 A3 48 66 B6 04 01 00 00 94 9C CE 8A A4 9D 1C B9 [19:02:05]CommunicateWithHost err = 0 [19:02:05]CheckOFDResponse [19:02:05]1017 (14) - 77093643461234 [19:02:05]1041 (16) - 0000000000871829 [19:02:05]1040 (4) - 67875 [19:02:05]1012 (4) - 18.05.2024 12:45 [19:02:05]1206 (1) - 0 [19:02:05]OFD Sender: Remove packet 67875 [19:02:05]ProducePacketName [19:02:05]name=ofd_packets/00067875 [19:02:05]NVStorageDeleteData [19:02:05]Write to MH i2c: 01 00 00 A9 12 BB [19:02:05]Write i2c OK [19:02:05]MH_I2C_Read... [19:02:05]Read from MH i2c: 01 [19:02:05]MH_I2C_Read... [19:02:05]Read from MH i2c: 01 07 00 [19:02:05]MH_I2C_Read... [19:02:05]Read from MH i2c: 01 07 00 A9 12 00 00 00 00 00 DF 0C AD [19:02:05]RasterBufferAndPrint [19:02:05]line [19:02:05]line [19:02:05]line [19:02:05]line [19:02:05]line [19:02:05]written 0, free lines is 3301 [19:02:05]MH_Cut [19:02:05]Write to MH i2c: D1 01 00 B0 12 01 94 [19:02:05]Write i2c OK [19:02:05]MH_I2C_Read... [19:02:05]Read from MH i2c: D1 [19:02:05]MH_I2C_Read... [19:02:05]Read from MH i2c: D1 01 00 [19:02:05]MH_I2C_Read... [19:02:05]Read from MH i2c: D1 01 00 B0 12 00 93 [19:02:05]Write to MH i2c: 01 00 00 B1 12 C3 [19:02:05]Write i2c OK [19:02:05]MH_I2C_Read... [19:02:05]OFD Sender: No OFD packet to send [19:02:06]*** Cut start [19:02:06]*** Purtial cut [19:02:06]*** Stage 1: CUTSNS_PIN = 1 [19:02:06]Read from MH i2c: 01 [19:02:06]MH_I2C_Read... [19:02:06]*** Stop cut motor [19:02:06]*** Cut end [19:02:06]Read from MH i2c: 01 07 00 [19:02:06]MH_I2C_Read... [19:02:06]Read from MH i2c: 01 07 00 B1 12 00 00 00 00 00 FF 0F D8 [19:02:06]process_action close_receipt done [19:02:06]requested_data is exist [19:02:06]produce_requested_data [19:02:06]requested_item fm.sn is exist - process it [19:02:06]wFMCommunicate request_size=4 [19:02:06]MH_SAM_APDU [19:02:06]CAPDU: 80 11 00 00 [19:02:06]Write to MH i2c: E2 08 00 B2 12 80 11 00 00 00 00 00 00 3E [19:02:06]Write i2c OK [19:02:06]MH_I2C_Read... [19:02:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:02:06]Read from MH i2c: E2 [19:02:06]MH_I2C_Read... [19:02:06]Read from MH i2c: E2 17 00 [19:02:06]MH_I2C_Read... [19:02:06]Read from MH i2c: E2 17 00 B2 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 94 [19:02:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [19:02:06]wFMCommunicate OK [19:02:06]requested_item fd.num is exist - process it [19:02:06]SAM_PROTO_GetFieldsCounters [19:02:06]wFMCommunicate request_size=4 [19:02:06]MH_SAM_APDU [19:02:06]CAPDU: 80 13 00 00 [19:02:06]Write to MH i2c: E2 08 00 B3 12 80 13 00 00 00 00 00 00 41 [19:02:06]Write i2c OK [19:02:06]MH_I2C_Read... [19:02:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:02:06]Read from MH i2c: E2 [19:02:06]MH_I2C_Read... [19:02:06]Read from MH i2c: E2 62 00 [19:02:06]MH_I2C_Read... [19:02:06]Read from MH i2c: E2 62 00 B3 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 23 09 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 72 00 00 00 5E 04 04 00 72 00 00 00 57 04 04 00 73 00 00 00 19 04 04 00 00 00 00 00 90 00 52 [19:02:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 23 09 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 72 00 00 00 5E 04 04 00 72 00 00 00 57 04 04 00 73 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:02:06]wFMCommunicate OK [19:02:06]SAM_PROTO_GetFieldsCounters done [19:02:06]requested_item shift.num is exist - process it [19:02:06]requested_item shift.opened is exist - process it [19:02:06]req_shift_opened [19:02:06]FM_GetShiftState [19:02:06]SAM_PROTO_GetShiftState [19:02:06]wFMCommunicate request_size=4 [19:02:06]MH_SAM_APDU [19:02:06]CAPDU: 80 13 01 00 [19:02:06]Write to MH i2c: E2 08 00 B4 12 80 13 01 00 00 00 00 00 43 [19:02:06]Write i2c OK [19:02:06]MH_I2C_Read... [19:02:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:02:06]Read from MH i2c: E2 [19:02:06]MH_I2C_Read... [19:02:06]Read from MH i2c: E2 0E 00 [19:02:06]MH_I2C_Read... [19:02:06]Read from MH i2c: E2 0E 00 B4 12 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 AA [19:02:06]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [19:02:06]wFMCommunicate OK [19:02:06]SAM_PROTO_GetShiftState done [19:02:06]FM_GetShiftState done [19:02:06]req_shift_opened done [19:02:06]requested_item shift.open_date is exist - process it [19:02:06]req_shift_open_date [19:02:06]req_shift_open_date done [19:02:06]produce_requested_data done [19:02:06]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67875,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [19:02:06]process_action_free close_receipt [19:02:06]json_value_free [19:02:06]json_value_free done [19:02:06]process_json_proto returns [19:02:06]Send response to host [19:02:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67875,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [19:02:06]free response buf [19:02:06]execute_script done [19:02:06]execute_script returns [19:02:06]free content buf [19:02:06]Sock 7.Close socket [19:02:06]Sock 7.Thread stoped [19:02:10]OFD Sender: No OFD packet to send [19:02:15]OFD Sender: No OFD packet to send [19:02:20]OFD Sender: No OFD packet to send [19:02:25]OFD Sender: No OFD packet to send [19:02:30]OFD Sender: No OFD packet to send [19:02:35]OFD Sender: No OFD packet to send [19:02:40]OFD Sender: No OFD packet to send [19:02:45]OFD Sender: No OFD packet to send [19:02:50]OFD Sender: No OFD packet to send [19:02:55]OFD Sender: No OFD packet to send [19:03:00]OFD Sender: No OFD packet to send [19:03:05]OFD Sender: No OFD packet to send [19:03:10]OFD Sender: No OFD packet to send [19:03:15]OFD Sender: No OFD packet to send [19:03:20]OFD Sender: No OFD packet to send [19:03:25]OFD Sender: No OFD packet to send [19:03:30]OFD Sender: No OFD packet to send [19:03:35]accept exits with 10 [19:03:35]New connection [19:03:35]New thread 3067059556 created [19:03:35]Thread 3067202916 joined [19:03:35]Waiting for new connection... [19:03:35] Sock 10.Parse request [19:03:35]Sock 10.Check first char [19:03:35]Sock 10.First char is OK [19:03:35]request: POST /json_proto HTTP/1.0 [19:03:35]Method: POST [19:03:35]URL: /json_proto [19:03:35]Method is POST - this is cgi request [19:03:35]url: /json_proto [19:03:35]query_string will be loaded in cgi processing [19:03:35]execute_cgi json_proto POST (null) [19:03:35]execute_cgi path=json_proto method=POST [19:03:35]POST find Content-Length [19:03:35]Host: 172.17.41.195:8080 [19:03:35]Content-Length: 679 [19:03:35]Content-Type: application/json [19:03:35] [19:03:35]POST finish read [19:03:35]Found Content-Length = 679 [19:03:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)508140", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 26.780, "sum" : 2000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:03:35]execute_script... [19:03:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)508140", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 26.780, "sum" : 2000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:03:35]POST & json_proto [19:03:35]process_json_proto [19:03:35]json parsed OK: [19:03:35]protocol is kg_v1.0 [19:03:35]action value=close_receipt [19:03:35]process_action close_receipt [19:03:35]cmd_close_receipt [19:03:35]MH_GetDate [19:03:35]Write to MH i2c: F0 00 00 B5 12 B6 [19:03:35]Write i2c OK [19:03:35]MH_I2C_Read... [19:03:35]Read from MH i2c: F0 [19:03:35]MH_I2C_Read... [19:03:35]Read from MH i2c: F0 09 00 [19:03:35]MH_I2C_Read... [19:03:35]Read from MH i2c: F0 09 00 B5 12 00 89 FB 48 66 FC 21 6F 64 E1 [19:03:35]GetLastDocTimeStamp 1716058924 [19:03:35]current date 1716059017 [19:03:35]FM_GetShiftState [19:03:35]SAM_PROTO_GetShiftState [19:03:35]wFMCommunicate request_size=4 [19:03:35]MH_SAM_APDU [19:03:35]CAPDU: 80 13 01 00 [19:03:35]Write to MH i2c: E2 08 00 B6 12 80 13 01 00 00 00 00 00 45 [19:03:35]Write i2c OK [19:03:35]MH_I2C_Read... [19:03:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:03:35]Read from MH i2c: E2 [19:03:35]MH_I2C_Read... [19:03:35]Read from MH i2c: E2 0E 00 [19:03:35]MH_I2C_Read... [19:03:35]Read from MH i2c: E2 0E 00 B6 12 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 AC [19:03:35]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [19:03:35]wFMCommunicate OK [19:03:35]SAM_PROTO_GetShiftState done [19:03:35]FM_GetShiftState done [19:03:35]opened in 1715991483 [19:03:35]opened+sec_in_day 1716077883 [19:03:35]quantity*price = 200046 [19:03:35]sum+1 = 200048 [19:03:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.47 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.44 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 115 18.05.2024 19:03 Смена: 359 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67876 ФПД: 227066999008447 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T190337&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67876&fm=227066999008447&tin=02508201610067®Number=0000000000091845&sum=200000 [19:03:36]StoreToDocumentArchive [19:03:36]shift 359 fd 67876 [19:03:36]save to /storage/0359/doc_00067876 [19:03:36]save last doc name /storage/0359/doc_00067876 to /storage/kkm_last_doc_name [19:03:36]save OK [19:03:36]Clear old archive folders... [19:03:36]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:03:36]tlvbuf is 00A05AE0 [19:03:36]SAM_PROTO_ClearQueue [19:03:36]wFMCommunicate request_size=4 [19:03:36]MH_SAM_APDU [19:03:36]CAPDU: 80 09 00 00 [19:03:36]Write to MH i2c: E2 08 00 C3 12 80 09 00 00 00 00 00 00 47 [19:03:36]Write i2c OK [19:03:36]MH_I2C_Read... [19:03:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:03:36]Read from MH i2c: E2 [19:03:36]MH_I2C_Read... [19:03:36]Read from MH i2c: E2 03 00 [19:03:36]MH_I2C_Read... [19:03:36]Read from MH i2c: E2 03 00 C3 12 00 90 00 49 [19:03:36]RAPDU: 90 00 [19:03:36]wFMCommunicate OK [19:03:36]SAM_PROTO_ClearQueue done [19:03:36]KKMCreateOFDPacket [19:03:36]OFDProtocolAddRootSTLVToBuf [19:03:36]FM_MakeSignedData [19:03:36]FM_MakeSignedData [19:03:36]SAM_PROTO_SignData [19:03:36]wFMCommunicate request_size=4 [19:03:36]MH_SAM_APDU [19:03:36]CAPDU: 80 0D 01 02 [19:03:36]Write to MH i2c: E2 08 00 C4 12 80 0D 01 02 00 00 00 00 4F [19:03:36]Write i2c OK [19:03:36]MH_I2C_Read... [19:03:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:03:36]Read from MH i2c: E2 [19:03:36]MH_I2C_Read... [19:03:36]Read from MH i2c: E2 03 00 [19:03:36]MH_I2C_Read... [19:03:36]Read from MH i2c: E2 03 00 C4 12 00 90 00 4A [19:03:36]RAPDU: 90 00 [19:03:36]wFMCommunicate OK [19:03:36]wFMCommunicate request_size=255 [19:03:36]MH_SAM_APDU [19:03:36]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9C 68 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 6F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FC 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 89 FB 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 24 09 01 00 35 04 06 00 CE 84 27 D0 [19:03:36]Write to MH i2c: E2 02 01 C5 12 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9C 68 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 6F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FC 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 89 FB 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 24 09 01 00 35 04 06 00 CE 84 27 D0 00 00 E1 [19:03:36]Write i2c OK [19:03:36]MH_I2C_Read... [19:03:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:03:36]Read from MH i2c: E2 [19:03:36]MH_I2C_Read... [19:03:36]Read from MH i2c: E2 03 00 [19:03:36]MH_I2C_Read... [19:03:36]Read from MH i2c: E2 03 00 C5 12 00 90 00 4B [19:03:36]RAPDU: 90 00 [19:03:36]wFMCommunicate OK [19:03:36]wFMCommunicate request_size=7 [19:03:36]MH_SAM_APDU [19:03:36]CAPDU: 80 0D 02 02 02 EC BF [19:03:36]Write to MH i2c: E2 0A 00 C6 12 80 0D 02 02 02 00 EC BF 00 00 01 [19:03:36]Write i2c OK [19:03:36]MH_I2C_Read... [19:03:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:03:36]Read from MH i2c: E2 [19:03:36]MH_I2C_Read... [19:03:36]Read from MH i2c: E2 03 00 [19:03:36]MH_I2C_Read... [19:03:36]Read from MH i2c: E2 03 00 C6 12 00 90 00 4C [19:03:36]RAPDU: 90 00 [19:03:36]wFMCommunicate OK [19:03:36]wFMCommunicate request_size=4 [19:03:36]MH_SAM_APDU [19:03:36]CAPDU: 80 0D 03 02 [19:03:36]Write to MH i2c: E2 08 00 C7 12 80 0D 03 02 00 00 00 00 54 [19:03:36]Write i2c OK [19:03:36]MH_I2C_Read... [19:03:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:03:37]Read from MH i2c: E2 [19:03:37]MH_I2C_Read... [19:03:37]Read from MH i2c: E2 0B 00 [19:03:37]MH_I2C_Read... [19:03:37]Read from MH i2c: E2 0B 00 C7 12 00 65 8F BA 5A 66 0E C3 60 90 00 F4 [19:03:37]RAPDU: 65 8F BA 5A 66 0E C3 60 90 00 [19:03:37]wFMCommunicate OK [19:03:37]SAM_PROTO_SignData done [19:03:37]FM_MakeSignedData done [19:03:37]CreateOFDProtocolMessage [19:03:37]wFMCommunicate request_size=4 [19:03:37]MH_SAM_APDU [19:03:37]CAPDU: 80 11 00 00 [19:03:37]Write to MH i2c: E2 08 00 C8 12 80 11 00 00 00 00 00 00 54 [19:03:37]Write i2c OK [19:03:37]MH_I2C_Read... [19:03:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:03:37]Read from MH i2c: E2 [19:03:37]MH_I2C_Read... [19:03:37]Read from MH i2c: E2 17 00 [19:03:37]MH_I2C_Read... [19:03:37]Read from MH i2c: E2 17 00 C8 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 AA [19:03:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [19:03:37]wFMCommunicate OK [19:03:37]CreateOFDProtocolMessage done [19:03:37]OFDSenderStorePacket 67876 [19:03:37]StoreOFDPacket docnum=67876 [19:03:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 C4 7B 04 01 A6 F8 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9C 68 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 6F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FC 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 89 FB 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 24 09 01 00 35 04 06 00 CE 84 27 D0 EC BF 65 8F BA 5A 66 0E C3 60 [19:03:37]CheckFolder [19:03:37]dirname=/storage/ofd_packets [19:03:37]CheckFolder done [19:03:37]ProducePacketName [19:03:37]name=ofd_packets/00067876 [19:03:37]NVStorageSaveData ofd_packets/00067876 [19:03:37]File name is /storage/ofd_packets/00067876 [19:03:37]Write 298 bytes [19:03:37]NVStorageSaveData done [19:03:37]OFDSenderStorePacket done [19:03:37]KKMCreateOFDPacket done [19:03:37]NVStorageSaveData kkm_last_timestamp [19:03:37]File name is /storage/kkm_last_timestamp [19:03:37]Write 4 bytes [19:03:37]NVStorageSaveData done [19:03:37]ExternCall_PrintAddStr [19:03:37]wPrintStart [19:03:37]Write to MH i2c: 01 00 00 C9 12 DB [19:03:37]OFD Sender: Processing packet 67876 [packets to send 35, broken 34] [19:03:37]ProducePacketName [19:03:37]name=ofd_packets/00067876 [19:03:37]OFD Sender: To server: pG, [19:03:37]CommunicateWithHost lk.salyk.kg:30040 [19:03:37]ConnectInit lk.salyk.kg [19:03:37]Write i2c OK [19:03:37]MH_I2C_Read... [19:03:37]Read from MH i2c: 01 [19:03:37]MH_I2C_Read... [19:03:37]Read from MH i2c: 01 07 00 [19:03:37]MH_I2C_Read... [19:03:37]Read from MH i2c: 01 07 00 C9 12 00 00 00 00 00 FF 0F F0 [19:03:37]RasterBufferAndPrint [19:03:37]line Счет N : (1)508140 [19:03:37]line ИНН: 02508201610067 [19:03:37]line Контрольно-Кассовый Чек [19:03:37]line ПРОДАЖА [19:03:37]line ТРК (МРК, ГНК) : 11 [19:03:37]line Товар: 2710194210 [19:03:37]line ДТ-К-5 [19:03:37]line 26.780 * 74.70 [19:03:37]line = 2000.47 [19:03:37]line НДС 12% НСП 1% [19:03:37]line > о реализуемом товаре [19:03:37]line ОКРУГЛЕНИЕ: -0.47 [19:03:37]line ИТОГО: 2000.00 [19:03:37]line Внесено: 2000.00 [19:03:37]line СДАЧА: 0.00 [19:03:37]line НСП 1% : 17.70 [19:03:37]line НДС 12% : 212.44 [19:03:37]line Наличными: 2000.00 [19:03:37]line Безнал.: 0.00 [19:03:37]line Место: АЗС № 91 "Партнер Нефть" [19:03:37]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [19:03:37]line СНО: Общий режим [19:03:37]line Чек 115 18.05.2024 19:03 [19:03:37]line Смена: 359 ФФД: 1.0 [19:03:37]line ЗНМ: 0300000119 [19:03:37]line РНМ: 0000000000091845 [19:03:37]line Версия ККМ: 001 [19:03:37]line ФМ: 0000000000871829 [19:03:37]line ФД: 67876 [19:03:37]line ФПД: 227066999008447 [19:03:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T190337&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67876&fm=227066999008447&tin=02508201610067®Number=0000000000091845&sum=200000 [19:03:37]Connected sock=9 [19:03:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 C4 7B 04 01 A6 F8 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9C 68 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 6F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FC 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 89 FB 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 24 09 01 00 35 04 06 00 CE 84 27 D0 EC BF 65 8F BA 5A 66 0E C3 60 [19:03:37]written 0, free lines is 4095 [19:03:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 4F 00 47 00 57 1E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 24 09 01 00 F4 03 04 00 5D A3 48 66 B6 04 01 00 00 69 04 94 1A F4 C2 E9 0F [19:03:37]CommunicateWithHost err = 0 [19:03:37]CheckOFDResponse [19:03:37]1017 (14) - 77093643461234 [19:03:37]1041 (16) - 0000000000871829 [19:03:37]1040 (4) - 67876 [19:03:37]1012 (4) - 18.05.2024 12:47 [19:03:37]1206 (1) - 0 [19:03:37]OFD Sender: Remove packet 67876 [19:03:37]ProducePacketName [19:03:37]name=ofd_packets/00067876 [19:03:37]NVStorageDeleteData [19:03:37]Write to MH i2c: 01 00 00 F3 12 05 [19:03:37]Write i2c OK [19:03:37]MH_I2C_Read... [19:03:37]Read from MH i2c: 01 [19:03:37]MH_I2C_Read... [19:03:37]Read from MH i2c: 01 07 00 [19:03:37]MH_I2C_Read... [19:03:37]Read from MH i2c: 01 07 00 F3 12 00 00 00 00 00 CA 0C E2 [19:03:37]RasterBufferAndPrint [19:03:37]line [19:03:37]line [19:03:37]line [19:03:37]line [19:03:37]line [19:03:37]written 0, free lines is 3281 [19:03:37]MH_Cut [19:03:37]Write to MH i2c: D1 01 00 FA 12 01 DE [19:03:37]Write i2c OK [19:03:37]MH_I2C_Read... [19:03:37]Read from MH i2c: D1 [19:03:37]MH_I2C_Read... [19:03:37]Read from MH i2c: D1 01 00 [19:03:37]MH_I2C_Read... [19:03:37]Read from MH i2c: D1 01 00 FA 12 00 DD [19:03:37]Write to MH i2c: 01 00 00 FB 12 0D [19:03:37]Write i2c OK [19:03:37]MH_I2C_Read... [19:03:38]OFD Sender: No OFD packet to send [19:03:38]*** Cut start [19:03:38]*** Purtial cut [19:03:38]*** Stage 1: CUTSNS_PIN = 1 [19:03:39]Read from MH i2c: 01 [19:03:39]MH_I2C_Read... [19:03:39]*** Stop cut motor [19:03:39]*** Cut end [19:03:39]Read from MH i2c: 01 07 00 [19:03:39]MH_I2C_Read... [19:03:39]Read from MH i2c: 01 07 00 FB 12 00 00 00 00 00 FF 0F 22 [19:03:39]process_action close_receipt done [19:03:39]requested_data is exist [19:03:39]produce_requested_data [19:03:39]requested_item fm.sn is exist - process it [19:03:39]wFMCommunicate request_size=4 [19:03:39]MH_SAM_APDU [19:03:39]CAPDU: 80 11 00 00 [19:03:39]Write to MH i2c: E2 08 00 FC 12 80 11 00 00 00 00 00 00 88 [19:03:39]Write i2c OK [19:03:39]MH_I2C_Read... [19:03:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:03:39]Read from MH i2c: E2 [19:03:39]MH_I2C_Read... [19:03:39]Read from MH i2c: E2 17 00 [19:03:39]MH_I2C_Read... [19:03:39]Read from MH i2c: E2 17 00 FC 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 DE [19:03:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [19:03:39]wFMCommunicate OK [19:03:39]requested_item fd.num is exist - process it [19:03:39]SAM_PROTO_GetFieldsCounters [19:03:39]wFMCommunicate request_size=4 [19:03:39]MH_SAM_APDU [19:03:39]CAPDU: 80 13 00 00 [19:03:39]Write to MH i2c: E2 08 00 FD 12 80 13 00 00 00 00 00 00 8B [19:03:39]Write i2c OK [19:03:39]MH_I2C_Read... [19:03:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:03:39]Read from MH i2c: E2 [19:03:39]MH_I2C_Read... [19:03:39]Read from MH i2c: E2 62 00 [19:03:39]MH_I2C_Read... [19:03:39]Read from MH i2c: E2 62 00 FD 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 24 09 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 73 00 00 00 5E 04 04 00 73 00 00 00 57 04 04 00 74 00 00 00 19 04 04 00 00 00 00 00 90 00 A0 [19:03:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 24 09 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 73 00 00 00 5E 04 04 00 73 00 00 00 57 04 04 00 74 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:03:39]wFMCommunicate OK [19:03:39]SAM_PROTO_GetFieldsCounters done [19:03:39]requested_item shift.num is exist - process it [19:03:39]requested_item shift.opened is exist - process it [19:03:39]req_shift_opened [19:03:39]FM_GetShiftState [19:03:39]SAM_PROTO_GetShiftState [19:03:39]wFMCommunicate request_size=4 [19:03:39]MH_SAM_APDU [19:03:39]CAPDU: 80 13 01 00 [19:03:39]Write to MH i2c: E2 08 00 FE 12 80 13 01 00 00 00 00 00 8D [19:03:39]Write i2c OK [19:03:39]MH_I2C_Read... [19:03:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:03:39]Read from MH i2c: E2 [19:03:39]MH_I2C_Read... [19:03:39]Read from MH i2c: E2 0E 00 [19:03:39]MH_I2C_Read... [19:03:39]Read from MH i2c: E2 0E 00 FE 12 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 F4 [19:03:39]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [19:03:39]wFMCommunicate OK [19:03:39]SAM_PROTO_GetShiftState done [19:03:39]FM_GetShiftState done [19:03:39]req_shift_opened done [19:03:39]requested_item shift.open_date is exist - process it [19:03:39]req_shift_open_date [19:03:39]req_shift_open_date done [19:03:39]produce_requested_data done [19:03:39]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67876,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [19:03:39]process_action_free close_receipt [19:03:39]json_value_free [19:03:39]json_value_free done [19:03:39]process_json_proto returns [19:03:39]Send response to host [19:03:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67876,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [19:03:39]free response buf [19:03:39]execute_script done [19:03:39]execute_script returns [19:03:39]free content buf [19:03:39]Sock 10.Close socket [19:03:39]Sock 10.Thread stoped [19:03:43]OFD Sender: No OFD packet to send [19:03:48]OFD Sender: No OFD packet to send [19:03:53]OFD Sender: No OFD packet to send [19:03:58]OFD Sender: No OFD packet to send [19:04:03]OFD Sender: No OFD packet to send [19:04:08]OFD Sender: No OFD packet to send [19:04:13]OFD Sender: No OFD packet to send [19:04:18]OFD Sender: No OFD packet to send [19:04:23]OFD Sender: No OFD packet to send [19:04:28]OFD Sender: No OFD packet to send [19:04:33]OFD Sender: No OFD packet to send [19:04:38]OFD Sender: No OFD packet to send [19:04:43]OFD Sender: No OFD packet to send [19:04:48]OFD Sender: No OFD packet to send [19:04:53]OFD Sender: No OFD packet to send [19:04:58]OFD Sender: No OFD packet to send [19:05:03]OFD Sender: No OFD packet to send [19:05:08]OFD Sender: No OFD packet to send [19:05:13]OFD Sender: No OFD packet to send [19:05:18]OFD Sender: No OFD packet to send [19:05:23]OFD Sender: No OFD packet to send [19:05:28]OFD Sender: No OFD packet to send [19:05:29]accept exits with 7 [19:05:29]New connection [19:05:29]New thread 3067202916 created [19:05:29]Thread 3067059556 joined [19:05:29]Waiting for new connection... [19:05:29] Sock 7.Parse request [19:05:29]Sock 7.Check first char [19:05:29]Sock 7.First char is OK [19:05:29]request: POST /json_proto HTTP/1.0 [19:05:29]Method: POST [19:05:29]URL: /json_proto [19:05:29]Method is POST - this is cgi request [19:05:29]url: /json_proto [19:05:29]query_string will be loaded in cgi processing [19:05:29]execute_cgi json_proto POST (null) [19:05:29]execute_cgi path=json_proto method=POST [19:05:29]POST find Content-Length [19:05:29]Host: 172.17.41.195:8080 [19:05:29]Content-Length: 679 [19:05:29]Content-Type: application/json [19:05:29] [19:05:29]POST finish read [19:05:29]Found Content-Length = 679 [19:05:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)508141", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 13.460, "sum" : 1005.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1005.00, "total" : 1005.00, "payments": [ { "type": 0, "sum" : 1005.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:05:29]execute_script... [19:05:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)508141", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 13.460, "sum" : 1005.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1005.00, "total" : 1005.00, "payments": [ { "type": 0, "sum" : 1005.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:05:29]POST & json_proto [19:05:29]process_json_proto [19:05:29]json parsed OK: [19:05:29]protocol is kg_v1.0 [19:05:29]action value=close_receipt [19:05:29]process_action close_receipt [19:05:29]cmd_close_receipt [19:05:29]MH_GetDate [19:05:29]Write to MH i2c: F0 00 00 FF 12 00 [19:05:29]Write i2c OK [19:05:29]MH_I2C_Read... [19:05:29]Read from MH i2c: F0 [19:05:29]MH_I2C_Read... [19:05:29]Read from MH i2c: F0 09 00 [19:05:29]MH_I2C_Read... [19:05:29]Read from MH i2c: F0 09 00 FF 12 00 FB FB 48 66 FC 21 6F 64 9D [19:05:29]GetLastDocTimeStamp 1716059017 [19:05:29]current date 1716059131 [19:05:29]FM_GetShiftState [19:05:29]SAM_PROTO_GetShiftState [19:05:29]wFMCommunicate request_size=4 [19:05:29]MH_SAM_APDU [19:05:29]CAPDU: 80 13 01 00 [19:05:29]Write to MH i2c: E2 08 00 00 13 80 13 01 00 00 00 00 00 90 [19:05:29]Write i2c OK [19:05:29]MH_I2C_Read... [19:05:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:05:29]Read from MH i2c: E2 [19:05:29]MH_I2C_Read... [19:05:29]Read from MH i2c: E2 0E 00 [19:05:29]MH_I2C_Read... [19:05:29]Read from MH i2c: E2 0E 00 00 13 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 F7 [19:05:29]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [19:05:29]wFMCommunicate OK [19:05:29]SAM_PROTO_GetShiftState done [19:05:29]FM_GetShiftState done [19:05:29]opened in 1715991483 [19:05:29]opened+sec_in_day 1716077883 [19:05:29]quantity*price = 100546 [19:05:29]sum+1 = 100547 [19:05:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.46 ИТОГО: 1005.00 Внесено: 1005.00 СДАЧА: 0.00 НСП 1% : 8.90 НДС 12% : 106.77 Наличными: 1005.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 116 18.05.2024 19:05 Смена: 359 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67877 ФПД: 81386091319424 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T190531&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67877&fm=81386091319424&tin=02508201610067®Number=0000000000091845&sum=100500 [19:05:30]StoreToDocumentArchive [19:05:30]shift 359 fd 67877 [19:05:30]save to /storage/0359/doc_00067877 [19:05:30]save last doc name /storage/0359/doc_00067877 to /storage/kkm_last_doc_name [19:05:30]save OK [19:05:30]Clear old archive folders... [19:05:30]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:05:30]tlvbuf is 00A038A0 [19:05:30]SAM_PROTO_ClearQueue [19:05:30]wFMCommunicate request_size=4 [19:05:30]MH_SAM_APDU [19:05:30]CAPDU: 80 09 00 00 [19:05:30]Write to MH i2c: E2 08 00 0D 13 80 09 00 00 00 00 00 00 92 [19:05:30]Write i2c OK [19:05:30]MH_I2C_Read... [19:05:30]Read from MH i2c: E2 [19:05:30]MH_I2C_Read... [19:05:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:05:30]Read from MH i2c: E2 03 00 [19:05:30]MH_I2C_Read... [19:05:30]Read from MH i2c: E2 03 00 0D 13 00 90 00 94 [19:05:30]RAPDU: 90 00 [19:05:30]wFMCommunicate OK [19:05:30]SAM_PROTO_ClearQueue done [19:05:30]KKMCreateOFDPacket [19:05:30]OFDProtocolAddRootSTLVToBuf [19:05:30]FM_MakeSignedData [19:05:30]FM_MakeSignedData [19:05:30]SAM_PROTO_SignData [19:05:30]wFMCommunicate request_size=4 [19:05:30]MH_SAM_APDU [19:05:30]CAPDU: 80 0D 01 02 [19:05:30]Write to MH i2c: E2 08 00 0E 13 80 0D 01 02 00 00 00 00 9A [19:05:30]Write i2c OK [19:05:30]MH_I2C_Read... [19:05:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:05:30]Read from MH i2c: E2 [19:05:30]MH_I2C_Read... [19:05:30]Read from MH i2c: E2 03 00 [19:05:30]MH_I2C_Read... [19:05:30]Read from MH i2c: E2 03 00 0E 13 00 90 00 95 [19:05:30]RAPDU: 90 00 [19:05:30]wFMCommunicate OK [19:05:30]wFMCommunicate request_size=255 [19:05:30]MH_SAM_APDU [19:05:30]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 94 34 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 C2 88 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 88 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7A 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B5 29 00 00 00 00 07 04 06 00 94 88 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 FB FB 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 25 09 01 00 35 04 06 00 4A 05 2D 10 [19:05:30]Write to MH i2c: E2 02 01 0F 13 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 94 34 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 C2 88 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 88 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7A 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B5 29 00 00 00 00 07 04 06 00 94 88 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 FB FB 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 25 09 01 00 35 04 06 00 4A 05 2D 10 00 00 2A [19:05:30]Write i2c OK [19:05:30]MH_I2C_Read... [19:05:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:05:31]Read from MH i2c: E2 [19:05:31]MH_I2C_Read... [19:05:31]Read from MH i2c: E2 03 00 [19:05:31]MH_I2C_Read... [19:05:31]Read from MH i2c: E2 03 00 0F 13 00 90 00 96 [19:05:31]RAPDU: 90 00 [19:05:31]wFMCommunicate OK [19:05:31]wFMCommunicate request_size=7 [19:05:31]MH_SAM_APDU [19:05:31]CAPDU: 80 0D 02 02 02 10 80 [19:05:31]Write to MH i2c: E2 0A 00 10 13 80 0D 02 02 02 00 10 80 00 00 31 [19:05:31]Write i2c OK [19:05:31]MH_I2C_Read... [19:05:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:05:31]Read from MH i2c: E2 [19:05:31]MH_I2C_Read... [19:05:31]Read from MH i2c: E2 03 00 [19:05:31]MH_I2C_Read... [19:05:31]Read from MH i2c: E2 03 00 10 13 00 90 00 97 [19:05:31]RAPDU: 90 00 [19:05:31]wFMCommunicate OK [19:05:31]wFMCommunicate request_size=4 [19:05:31]MH_SAM_APDU [19:05:31]CAPDU: 80 0D 03 02 [19:05:31]Write to MH i2c: E2 08 00 11 13 80 0D 03 02 00 00 00 00 9F [19:05:31]Write i2c OK [19:05:31]MH_I2C_Read... [19:05:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:05:31]Read from MH i2c: E2 [19:05:31]MH_I2C_Read... [19:05:31]Read from MH i2c: E2 0B 00 [19:05:31]MH_I2C_Read... [19:05:31]Read from MH i2c: E2 0B 00 11 13 00 56 76 F1 80 6E DE 8E 20 90 00 D7 [19:05:31]RAPDU: 56 76 F1 80 6E DE 8E 20 90 00 [19:05:31]wFMCommunicate OK [19:05:31]SAM_PROTO_SignData done [19:05:31]FM_MakeSignedData done [19:05:31]CreateOFDProtocolMessage [19:05:31]wFMCommunicate request_size=4 [19:05:31]MH_SAM_APDU [19:05:31]CAPDU: 80 11 00 00 [19:05:31]Write to MH i2c: E2 08 00 12 13 80 11 00 00 00 00 00 00 9F [19:05:31]Write i2c OK [19:05:31]MH_I2C_Read... [19:05:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:05:31]Read from MH i2c: E2 [19:05:31]MH_I2C_Read... [19:05:31]Read from MH i2c: E2 17 00 [19:05:31]MH_I2C_Read... [19:05:31]Read from MH i2c: E2 17 00 12 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 F5 [19:05:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [19:05:31]wFMCommunicate OK [19:05:31]CreateOFDProtocolMessage done [19:05:31]OFDSenderStorePacket 67877 [19:05:31]StoreOFDPacket docnum=67877 [19:05:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 5C 4F 04 01 B7 6A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 94 34 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 C2 88 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 88 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7A 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B5 29 00 00 00 00 07 04 06 00 94 88 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 FB FB 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 25 09 01 00 35 04 06 00 4A 05 2D 10 10 80 56 76 F1 80 6E DE 8E 20 [19:05:31]CheckFolder [19:05:31]dirname=/storage/ofd_packets [19:05:31]CheckFolder done [19:05:31]ProducePacketName [19:05:31]name=ofd_packets/00067877 [19:05:31]NVStorageSaveData ofd_packets/00067877 [19:05:31]File name is /storage/ofd_packets/00067877 [19:05:31]Write 298 bytes [19:05:31]NVStorageSaveData done [19:05:31]OFDSenderStorePacket done [19:05:31]KKMCreateOFDPacket done [19:05:31]NVStorageSaveData kkm_last_timestamp [19:05:31]File name is /storage/kkm_last_timestamp [19:05:31]Write 4 bytes [19:05:31]NVStorageSaveData done [19:05:31]ExternCall_PrintAddStr [19:05:31]wPrintStart [19:05:31]Write to MH i2c: 01 00 00 13 13 26 [19:05:31]Write i2c OK [19:05:31]MH_I2C_Read... [19:05:31]Read from MH i2c: 01 [19:05:31]MH_I2C_Read... [19:05:31]Read from MH i2c: 01 07 00 [19:05:31]MH_I2C_Read... [19:05:31]Read from MH i2c: 01 07 00 13 13 00 00 00 00 00 FF 0F 3B [19:05:31]RasterBufferAndPrint [19:05:31]line Счет N : (1)508141 [19:05:31]line ИНН: 02508201610067 [19:05:31]line Контрольно-Кассовый Чек [19:05:31]line ПРОДАЖА [19:05:31]line ТРК (МРК, ГНК) : 41 [19:05:31]line Товар: 2710194210 [19:05:31]line ДТ-К-5 [19:05:31]line 13.460 * 74.70 [19:05:31]line = 1005.46 [19:05:31]line НДС 12% НСП 1% [19:05:31]line > о реализуемом товаре [19:05:31]line ОКРУГЛЕНИЕ: -0.46 [19:05:31]line ИТОГО: 1005.00 [19:05:31]line Внесено: 1005.00 [19:05:31]line СДАЧА: 0.00 [19:05:31]line НСП 1% : 8.90 [19:05:31]line НДС 12% : 106.77 [19:05:31]line Наличными: 1005.00 [19:05:31]line Безнал.: 0.00 [19:05:31]line Место: АЗС № 91 "Партнер Нефть" [19:05:31]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [19:05:31]line СНО: Общий режим [19:05:31]line Чек 116 18.05.2024 19:05 [19:05:31]line Смена: 359 ФФД: 1.0 [19:05:31]line ЗНМ: 0300000119 [19:05:31]line РНМ: 0000000000091845 [19:05:31]line Версия ККМ: 001 [19:05:31]line ФМ: 0000000000871829 [19:05:31]line ФД: 67877 [19:05:31]line ФПД: 81386091319424 [19:05:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T190531&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67877&fm=81386091319424&tin=02508201610067®Number=0000000000091845&sum=100500 [19:05:31]OFD Sender: Processing packet 67877 [packets to send 35, broken 34] [19:05:31]ProducePacketName [19:05:31]name=ofd_packets/00067877 [19:05:31]OFD Sender: To server: pG, [19:05:31]CommunicateWithHost lk.salyk.kg:30040 [19:05:31]ConnectInit lk.salyk.kg [19:05:31]written 0, free lines is 4095 [19:05:31]Connected sock=10 [19:05:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 5C 4F 04 01 B7 6A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 94 34 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 C2 88 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 88 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7A 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B5 29 00 00 00 00 07 04 06 00 94 88 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 FB FB 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 25 09 01 00 35 04 06 00 4A 05 2D 10 10 80 56 76 F1 80 6E DE 8E 20 [19:05:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 52 84 47 00 1E D0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 25 09 01 00 F4 03 04 00 D0 A3 48 66 B6 04 01 00 00 F9 0E CE D5 9C B2 99 0C [19:05:31]CommunicateWithHost err = 0 [19:05:31]CheckOFDResponse [19:05:31]1017 (14) - 77093643461234 [19:05:31]1041 (16) - 0000000000871829 [19:05:31]1040 (4) - 67877 [19:05:31]1012 (4) - 18.05.2024 12:49 [19:05:31]1206 (1) - 0 [19:05:31]OFD Sender: Remove packet 67877 [19:05:31]ProducePacketName [19:05:31]name=ofd_packets/00067877 [19:05:31]NVStorageDeleteData [19:05:32]Write to MH i2c: 01 00 00 3D 13 50 [19:05:32]Write i2c OK [19:05:32]MH_I2C_Read... [19:05:32]Read from MH i2c: 01 [19:05:32]MH_I2C_Read... [19:05:32]Read from MH i2c: 01 07 00 [19:05:32]MH_I2C_Read... [19:05:32]Read from MH i2c: 01 07 00 3D 13 00 00 00 00 00 CB 0C 2E [19:05:32]RasterBufferAndPrint [19:05:32]line [19:05:32]line [19:05:32]line [19:05:32]line [19:05:32]line [19:05:32]written 0, free lines is 3284 [19:05:32]MH_Cut [19:05:32]Write to MH i2c: D1 01 00 44 13 01 29 [19:05:32]Write i2c OK [19:05:32]MH_I2C_Read... [19:05:32]Read from MH i2c: D1 [19:05:32]MH_I2C_Read... [19:05:32]Read from MH i2c: D1 01 00 [19:05:32]MH_I2C_Read... [19:05:32]Read from MH i2c: D1 01 00 44 13 00 28 [19:05:32]Write to MH i2c: 01 00 00 45 13 58 [19:05:32]Write i2c OK [19:05:32]MH_I2C_Read... [19:05:32]OFD Sender: No OFD packet to send [19:05:32]*** Cut start [19:05:32]*** Purtial cut [19:05:32]*** Stage 1: CUTSNS_PIN = 1 [19:05:33]Read from MH i2c: 01 [19:05:33]MH_I2C_Read... [19:05:33]*** Stop cut motor [19:05:33]*** Cut end [19:05:33]Read from MH i2c: 01 07 00 [19:05:33]MH_I2C_Read... [19:05:33]Read from MH i2c: 01 07 00 45 13 00 00 00 00 00 FF 0F 6D [19:05:33]process_action close_receipt done [19:05:33]requested_data is exist [19:05:33]produce_requested_data [19:05:33]requested_item fm.sn is exist - process it [19:05:33]wFMCommunicate request_size=4 [19:05:33]MH_SAM_APDU [19:05:33]CAPDU: 80 11 00 00 [19:05:33]Write to MH i2c: E2 08 00 46 13 80 11 00 00 00 00 00 00 D3 [19:05:33]Write i2c OK [19:05:33]MH_I2C_Read... [19:05:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:05:33]Read from MH i2c: E2 [19:05:33]MH_I2C_Read... [19:05:33]Read from MH i2c: E2 17 00 [19:05:33]MH_I2C_Read... [19:05:33]Read from MH i2c: E2 17 00 46 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 29 [19:05:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [19:05:33]wFMCommunicate OK [19:05:33]requested_item fd.num is exist - process it [19:05:33]SAM_PROTO_GetFieldsCounters [19:05:33]wFMCommunicate request_size=4 [19:05:33]MH_SAM_APDU [19:05:33]CAPDU: 80 13 00 00 [19:05:33]Write to MH i2c: E2 08 00 47 13 80 13 00 00 00 00 00 00 D6 [19:05:33]Write i2c OK [19:05:33]MH_I2C_Read... [19:05:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:05:33]Read from MH i2c: E2 [19:05:33]MH_I2C_Read... [19:05:33]Read from MH i2c: E2 62 00 [19:05:33]MH_I2C_Read... [19:05:33]Read from MH i2c: E2 62 00 47 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 25 09 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 74 00 00 00 5E 04 04 00 74 00 00 00 57 04 04 00 75 00 00 00 19 04 04 00 00 00 00 00 90 00 EF [19:05:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 25 09 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 74 00 00 00 5E 04 04 00 74 00 00 00 57 04 04 00 75 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:05:33]wFMCommunicate OK [19:05:33]SAM_PROTO_GetFieldsCounters done [19:05:33]requested_item shift.num is exist - process it [19:05:33]requested_item shift.opened is exist - process it [19:05:33]req_shift_opened [19:05:33]FM_GetShiftState [19:05:33]SAM_PROTO_GetShiftState [19:05:33]wFMCommunicate request_size=4 [19:05:33]MH_SAM_APDU [19:05:33]CAPDU: 80 13 01 00 [19:05:33]Write to MH i2c: E2 08 00 48 13 80 13 01 00 00 00 00 00 D8 [19:05:33]Write i2c OK [19:05:33]MH_I2C_Read... [19:05:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:05:33]Read from MH i2c: E2 [19:05:33]MH_I2C_Read... [19:05:33]Read from MH i2c: E2 0E 00 [19:05:33]MH_I2C_Read... [19:05:33]Read from MH i2c: E2 0E 00 48 13 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 3F [19:05:33]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [19:05:33]wFMCommunicate OK [19:05:33]SAM_PROTO_GetShiftState done [19:05:33]FM_GetShiftState done [19:05:33]req_shift_opened done [19:05:33]requested_item shift.open_date is exist - process it [19:05:33]req_shift_open_date [19:05:33]req_shift_open_date done [19:05:33]produce_requested_data done [19:05:33]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67877,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [19:05:33]process_action_free close_receipt [19:05:33]json_value_free [19:05:33]json_value_free done [19:05:33]process_json_proto returns [19:05:33]Send response to host [19:05:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67877,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [19:05:33]free response buf [19:05:33]execute_script done [19:05:33]execute_script returns [19:05:33]free content buf [19:05:33]Sock 7.Close socket [19:05:33]Sock 7.Thread stoped [19:05:37]OFD Sender: No OFD packet to send [19:05:42]OFD Sender: No OFD packet to send [19:05:47]OFD Sender: No OFD packet to send [19:05:52]OFD Sender: No OFD packet to send [19:05:54]accept exits with 9 [19:05:54]New connection [19:05:54]New thread 3067059556 created [19:05:54]Thread 3067202916 joined [19:05:54]Waiting for new connection... [19:05:54] Sock 9.Parse request [19:05:54]Sock 9.Check first char [19:05:54]Sock 9.First char is OK [19:05:54]request: POST /json_proto HTTP/1.0 [19:05:54]Method: POST [19:05:54]URL: /json_proto [19:05:54]Method is POST - this is cgi request [19:05:54]url: /json_proto [19:05:54]query_string will be loaded in cgi processing [19:05:54]execute_cgi json_proto POST (null) [19:05:54]execute_cgi path=json_proto method=POST [19:05:54]POST find Content-Length [19:05:54]Host: 172.17.41.195:8080 [19:05:54]Content-Length: 798 [19:05:54]Content-Type: application/json [19:05:54] [19:05:54]POST finish read [19:05:54]Found Content-Length = 798 [19:05:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)508142", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 13.140, "sum" : 981.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 981.56 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:05:54]execute_script... [19:05:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)508142", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 13.140, "sum" : 981.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 981.56 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:05:54]POST & json_proto [19:05:54]process_json_proto [19:05:54]json parsed OK: [19:05:54]protocol is kg_v1.0 [19:05:54]action value=close_receipt [19:05:54]process_action close_receipt [19:05:54]cmd_close_receipt [19:05:54]MH_GetDate [19:05:54]Write to MH i2c: F0 00 00 49 13 4B [19:05:54]Write i2c OK [19:05:54]MH_I2C_Read... [19:05:54]Read from MH i2c: F0 [19:05:54]MH_I2C_Read... [19:05:54]Read from MH i2c: F0 09 00 [19:05:54]MH_I2C_Read... [19:05:54]Read from MH i2c: F0 09 00 49 13 00 14 FC 48 66 FC 21 6F 64 02 [19:05:54]GetLastDocTimeStamp 1716059131 [19:05:54]current date 1716059156 [19:05:54]FM_GetShiftState [19:05:54]SAM_PROTO_GetShiftState [19:05:54]wFMCommunicate request_size=4 [19:05:54]MH_SAM_APDU [19:05:54]CAPDU: 80 13 01 00 [19:05:54]Write to MH i2c: E2 08 00 4A 13 80 13 01 00 00 00 00 00 DA [19:05:54]Write i2c OK [19:05:54]MH_I2C_Read... [19:05:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:05:54]Read from MH i2c: E2 [19:05:54]MH_I2C_Read... [19:05:54]Read from MH i2c: E2 0E 00 [19:05:54]MH_I2C_Read... [19:05:54]Read from MH i2c: E2 0E 00 4A 13 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 41 [19:05:54]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [19:05:54]wFMCommunicate OK [19:05:54]SAM_PROTO_GetShiftState done [19:05:54]FM_GetShiftState done [19:05:54]opened in 1715991483 [19:05:54]opened+sec_in_day 1716077883 [19:05:54]quantity*price = 98155 [19:05:54]sum+1 = 98157 [19:05:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 981.56 НСП 1% : 8.69 НДС 12% : 104.24 Наличными: 0.00 Безнал.: 981.56 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 117 18.05.2024 19:05 Смена: 359 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67878 ФПД: 153056238089206 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T190556&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67878&fm=153056238089206&tin=02508201610067®Number=0000000000091845&sum=98156 [19:05:55]StoreToDocumentArchive [19:05:55]shift 359 fd 67878 [19:05:55]save to /storage/0359/doc_00067878 [19:05:55]save last doc name /storage/0359/doc_00067878 to /storage/kkm_last_doc_name [19:05:55]save OK [19:05:55]Clear old archive folders... [19:05:55]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:05:55]tlvbuf is 009C76B0 [19:05:55]SAM_PROTO_ClearQueue [19:05:55]wFMCommunicate request_size=4 [19:05:55]MH_SAM_APDU [19:05:55]CAPDU: 80 09 00 00 [19:05:55]Write to MH i2c: E2 08 00 57 13 80 09 00 00 00 00 00 00 DC [19:05:55]Write i2c OK [19:05:55]MH_I2C_Read... [19:05:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:05:55]Read from MH i2c: E2 [19:05:55]MH_I2C_Read... [19:05:55]Read from MH i2c: E2 03 00 [19:05:55]MH_I2C_Read... [19:05:55]Read from MH i2c: E2 03 00 57 13 00 90 00 DE [19:05:55]RAPDU: 90 00 [19:05:55]wFMCommunicate OK [19:05:55]SAM_PROTO_ClearQueue done [19:05:55]KKMCreateOFDPacket [19:05:55]OFDProtocolAddRootSTLVToBuf [19:05:55]FM_MakeSignedData [19:05:55]FM_MakeSignedData [19:05:55]SAM_PROTO_SignData [19:05:55]wFMCommunicate request_size=4 [19:05:55]MH_SAM_APDU [19:05:55]CAPDU: 80 0D 01 02 [19:05:55]Write to MH i2c: E2 08 00 58 13 80 0D 01 02 00 00 00 00 E4 [19:05:55]Write i2c OK [19:05:55]MH_I2C_Read... [19:05:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:05:55]Read from MH i2c: E2 [19:05:55]MH_I2C_Read... [19:05:55]Read from MH i2c: E2 03 00 [19:05:55]MH_I2C_Read... [19:05:55]Read from MH i2c: E2 03 00 58 13 00 90 00 DF [19:05:55]RAPDU: 90 00 [19:05:55]wFMCommunicate OK [19:05:55]wFMCommunicate request_size=255 [19:05:55]MH_SAM_APDU [19:05:55]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 54 33 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 6C 7F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 7F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 65 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B8 28 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6C 7F 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 14 FC 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 26 09 01 00 35 04 06 00 8B 34 2E B3 [19:05:55]Write to MH i2c: E2 02 01 59 13 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 54 33 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 6C 7F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 7F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 65 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B8 28 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6C 7F 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 14 FC 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 26 09 01 00 35 04 06 00 8B 34 2E B3 00 00 8F [19:05:55]Write i2c OK [19:05:55]MH_I2C_Read... [19:05:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:05:55]Read from MH i2c: E2 [19:05:55]MH_I2C_Read... [19:05:55]Read from MH i2c: E2 03 00 [19:05:55]MH_I2C_Read... [19:05:55]Read from MH i2c: E2 03 00 59 13 00 90 00 E0 [19:05:55]RAPDU: 90 00 [19:05:55]wFMCommunicate OK [19:05:55]wFMCommunicate request_size=7 [19:05:55]MH_SAM_APDU [19:05:55]CAPDU: 80 0D 02 02 02 B3 F6 [19:05:55]Write to MH i2c: E2 0A 00 5A 13 80 0D 02 02 02 00 B3 F6 00 00 94 [19:05:55]Write i2c OK [19:05:55]MH_I2C_Read... [19:05:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:05:55]Read from MH i2c: E2 [19:05:55]MH_I2C_Read... [19:05:55]Read from MH i2c: E2 03 00 [19:05:55]MH_I2C_Read... [19:05:55]Read from MH i2c: E2 03 00 5A 13 00 90 00 E1 [19:05:55]RAPDU: 90 00 [19:05:55]wFMCommunicate OK [19:05:55]wFMCommunicate request_size=4 [19:05:55]MH_SAM_APDU [19:05:55]CAPDU: 80 0D 03 02 [19:05:55]Write to MH i2c: E2 08 00 5B 13 80 0D 03 02 00 00 00 00 E9 [19:05:55]Write i2c OK [19:05:55]MH_I2C_Read... [19:05:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:05:56]Read from MH i2c: E2 [19:05:56]MH_I2C_Read... [19:05:56]Read from MH i2c: E2 0B 00 [19:05:56]MH_I2C_Read... [19:05:56]Read from MH i2c: E2 0B 00 5B 13 00 0C 55 15 1C 0C 9B AB AA 90 00 78 [19:05:56]RAPDU: 0C 55 15 1C 0C 9B AB AA 90 00 [19:05:56]wFMCommunicate OK [19:05:56]SAM_PROTO_SignData done [19:05:56]FM_MakeSignedData done [19:05:56]CreateOFDProtocolMessage [19:05:56]wFMCommunicate request_size=4 [19:05:56]MH_SAM_APDU [19:05:56]CAPDU: 80 11 00 00 [19:05:56]Write to MH i2c: E2 08 00 5C 13 80 11 00 00 00 00 00 00 E9 [19:05:56]Write i2c OK [19:05:56]MH_I2C_Read... [19:05:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:05:56]Read from MH i2c: E2 [19:05:56]MH_I2C_Read... [19:05:56]Read from MH i2c: E2 17 00 [19:05:56]MH_I2C_Read... [19:05:56]Read from MH i2c: E2 17 00 5C 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 3F [19:05:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [19:05:56]wFMCommunicate OK [19:05:56]CreateOFDProtocolMessage done [19:05:56]OFDSenderStorePacket 67878 [19:05:56]StoreOFDPacket docnum=67878 [19:05:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 CC 4A 04 01 A0 6E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 54 33 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 6C 7F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 7F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 65 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B8 28 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6C 7F 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 14 FC 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 26 09 01 00 35 04 06 00 8B 34 2E B3 B3 F6 0C 55 15 1C 0C 9B AB AA [19:05:56]CheckFolder [19:05:56]dirname=/storage/ofd_packets [19:05:56]CheckFolder done [19:05:56]ProducePacketName [19:05:56]name=ofd_packets/00067878 [19:05:56]NVStorageSaveData ofd_packets/00067878 [19:05:56]File name is /storage/ofd_packets/00067878 [19:05:56]Write 298 bytes [19:05:56]NVStorageSaveData done [19:05:56]OFDSenderStorePacket done [19:05:56]KKMCreateOFDPacket done [19:05:56]NVStorageSaveData kkm_last_timestamp [19:05:56]File name is /storage/kkm_last_timestamp [19:05:56]Write 4 bytes [19:05:56]NVStorageSaveData done [19:05:56]ExternCall_PrintAddStr [19:05:56]wPrintStart [19:05:56]Write to MH i2c: 01 00 00 5D 13 70 [19:05:56]Write i2c OK [19:05:56]MH_I2C_Read... [19:05:56]Read from MH i2c: 01 [19:05:56]MH_I2C_Read... [19:05:56]Read from MH i2c: 01 07 00 [19:05:56]MH_I2C_Read... [19:05:56]Read from MH i2c: 01 07 00 5D 13 00 00 00 00 00 FF 0F 85 [19:05:56]RasterBufferAndPrint [19:05:56]line Счет N : (1)508142 [19:05:56]line ИНН: 02508201610067 [19:05:56]line Контрольно-Кассовый Чек [19:05:56]line ПРОДАЖА [19:05:56]line ТРК (МРК, ГНК) : 11 [19:05:56]line Товар: 2710194210 [19:05:56]line ДТ-К-5 [19:05:56]line 13.140 * 74.70 [19:05:56]line = 981.56 [19:05:56]line НДС 12% НСП 1% [19:05:56]line > о реализуемом товаре [19:05:56]line ИТОГО: 981.56 [19:05:56]line НСП 1% : 8.69 [19:05:56]line НДС 12% : 104.24 [19:05:56]line Наличными: 0.00 [19:05:56]line Безнал.: 981.56 [19:05:56]line Место: АЗС № 91 "Партнер Нефть" [19:05:56]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [19:05:56]line СНО: Общий режим [19:05:56]line Чек 117 18.05.2024 19:05 [19:05:56]line Смена: 359 ФФД: 1.0 [19:05:56]line ЗНМ: 0300000119 [19:05:56]line РНМ: 0000000000091845 [19:05:56]line Версия ККМ: 001 [19:05:56]line Платежная система: O! деньги [19:05:56]line ФМ: 0000000000871829 [19:05:56]line ФД: 67878 [19:05:56]line ФПД: 153056238089206 [19:05:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T190556&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67878&fm=153056238089206&tin=02508201610067®Number=0000000000091845&sum=98156 [19:05:56]OFD Sender: Processing packet 67878 [packets to send 35, broken 34] [19:05:56]ProducePacketName [19:05:56]name=ofd_packets/00067878 [19:05:56]OFD Sender: To server: pG, [19:05:56]CommunicateWithHost lk.salyk.kg:30040 [19:05:56]ConnectInit lk.salyk.kg [19:05:56]written 0, free lines is 4095 [19:05:56]Connected sock=10 [19:05:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 CC 4A 04 01 A0 6E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 54 33 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 6C 7F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 7F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 65 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B8 28 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6C 7F 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 14 FC 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 26 09 01 00 35 04 06 00 8B 34 2E B3 B3 F6 0C 55 15 1C 0C 9B AB AA [19:05:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 CE 47 47 00 36 ED A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 26 09 01 00 F4 03 04 00 E8 A3 48 66 B6 04 01 00 00 C5 66 39 95 87 64 E9 16 [19:05:56]CommunicateWithHost err = 0 [19:05:56]CheckOFDResponse [19:05:56]1017 (14) - 77093643461234 [19:05:56]1041 (16) - 0000000000871829 [19:05:56]1040 (4) - 67878 [19:05:56]1012 (4) - 18.05.2024 12:49 [19:05:56]1206 (1) - 0 [19:05:56]OFD Sender: Remove packet 67878 [19:05:56]ProducePacketName [19:05:56]name=ofd_packets/00067878 [19:05:56]NVStorageDeleteData [19:05:56]Write to MH i2c: 01 00 00 86 13 99 [19:05:56]Write i2c OK [19:05:56]MH_I2C_Read... [19:05:56]Read from MH i2c: 01 [19:05:56]MH_I2C_Read... [19:05:56]Read from MH i2c: 01 07 00 [19:05:56]MH_I2C_Read... [19:05:56]Read from MH i2c: 01 07 00 86 13 00 00 00 00 00 D9 0C 85 [19:05:56]RasterBufferAndPrint [19:05:56]line [19:05:56]line [19:05:56]line [19:05:56]line [19:05:56]line [19:05:56]written 0, free lines is 3298 [19:05:56]MH_Cut [19:05:56]Write to MH i2c: D1 01 00 8D 13 01 72 [19:05:56]Write i2c OK [19:05:56]MH_I2C_Read... [19:05:56]Read from MH i2c: D1 [19:05:56]MH_I2C_Read... [19:05:56]Read from MH i2c: D1 01 00 [19:05:56]MH_I2C_Read... [19:05:56]Read from MH i2c: D1 01 00 8D 13 00 71 [19:05:56]Write to MH i2c: 01 00 00 8E 13 A1 [19:05:56]Write i2c OK [19:05:56]MH_I2C_Read... [19:05:57]OFD Sender: No OFD packet to send [19:05:57]*** Cut start [19:05:57]*** Purtial cut [19:05:57]*** Stage 1: CUTSNS_PIN = 1 [19:05:57]Read from MH i2c: 01 [19:05:57]MH_I2C_Read... [19:05:57]*** Stop cut motor [19:05:57]*** Cut end [19:05:57]Read from MH i2c: 01 07 00 [19:05:57]MH_I2C_Read... [19:05:57]Read from MH i2c: 01 07 00 8E 13 00 00 00 00 00 FF 0F B6 [19:05:57]process_action close_receipt done [19:05:57]requested_data is exist [19:05:57]produce_requested_data [19:05:57]requested_item fm.sn is exist - process it [19:05:57]wFMCommunicate request_size=4 [19:05:57]MH_SAM_APDU [19:05:57]CAPDU: 80 11 00 00 [19:05:57]Write to MH i2c: E2 08 00 8F 13 80 11 00 00 00 00 00 00 1C [19:05:57]Write i2c OK [19:05:57]MH_I2C_Read... [19:05:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:05:58]Read from MH i2c: E2 [19:05:58]MH_I2C_Read... [19:05:58]Read from MH i2c: E2 17 00 [19:05:58]MH_I2C_Read... [19:05:58]Read from MH i2c: E2 17 00 8F 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 72 [19:05:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [19:05:58]wFMCommunicate OK [19:05:58]requested_item fd.num is exist - process it [19:05:58]SAM_PROTO_GetFieldsCounters [19:05:58]wFMCommunicate request_size=4 [19:05:58]MH_SAM_APDU [19:05:58]CAPDU: 80 13 00 00 [19:05:58]Write to MH i2c: E2 08 00 90 13 80 13 00 00 00 00 00 00 1F [19:05:58]Write i2c OK [19:05:58]MH_I2C_Read... [19:05:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:05:58]Read from MH i2c: E2 [19:05:58]MH_I2C_Read... [19:05:58]Read from MH i2c: E2 62 00 [19:05:58]MH_I2C_Read... [19:05:58]Read from MH i2c: E2 62 00 90 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 26 09 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 75 00 00 00 5E 04 04 00 75 00 00 00 57 04 04 00 76 00 00 00 19 04 04 00 00 00 00 00 90 00 3C [19:05:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 26 09 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 75 00 00 00 5E 04 04 00 75 00 00 00 57 04 04 00 76 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:05:58]wFMCommunicate OK [19:05:58]SAM_PROTO_GetFieldsCounters done [19:05:58]requested_item shift.num is exist - process it [19:05:58]requested_item shift.opened is exist - process it [19:05:58]req_shift_opened [19:05:58]FM_GetShiftState [19:05:58]SAM_PROTO_GetShiftState [19:05:58]wFMCommunicate request_size=4 [19:05:58]MH_SAM_APDU [19:05:58]CAPDU: 80 13 01 00 [19:05:58]Write to MH i2c: E2 08 00 91 13 80 13 01 00 00 00 00 00 21 [19:05:58]Write i2c OK [19:05:58]MH_I2C_Read... [19:05:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:05:58]Read from MH i2c: E2 [19:05:58]MH_I2C_Read... [19:05:58]Read from MH i2c: E2 0E 00 [19:05:58]MH_I2C_Read... [19:05:58]Read from MH i2c: E2 0E 00 91 13 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 88 [19:05:58]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [19:05:58]wFMCommunicate OK [19:05:58]SAM_PROTO_GetShiftState done [19:05:58]FM_GetShiftState done [19:05:58]req_shift_opened done [19:05:58]requested_item shift.open_date is exist - process it [19:05:58]req_shift_open_date [19:05:58]req_shift_open_date done [19:05:58]produce_requested_data done [19:05:58]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67878,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [19:05:58]process_action_free close_receipt [19:05:58]json_value_free [19:05:58]json_value_free done [19:05:58]process_json_proto returns [19:05:58]Send response to host [19:05:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67878,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [19:05:58]free response buf [19:05:58]execute_script done [19:05:58]execute_script returns [19:05:58]free content buf [19:05:58]Sock 9.Close socket [19:05:58]Sock 9.Thread stoped [19:06:02]OFD Sender: No OFD packet to send [19:06:07]OFD Sender: No OFD packet to send [19:06:11]accept exits with 7 [19:06:11]New connection [19:06:11]New thread 3067202916 created [19:06:11]Thread 3067059556 joined [19:06:11]Waiting for new connection... [19:06:11] Sock 7.Parse request [19:06:11]Sock 7.Check first char [19:06:11]Sock 7.First char is OK [19:06:11]request: POST /json_proto HTTP/1.0 [19:06:11]Method: POST [19:06:11]URL: /json_proto [19:06:11]Method is POST - this is cgi request [19:06:11]url: /json_proto [19:06:11]query_string will be loaded in cgi processing [19:06:11]execute_cgi json_proto POST (null) [19:06:11]execute_cgi path=json_proto method=POST [19:06:11]POST find Content-Length [19:06:11]Host: 172.17.41.195:8080 [19:06:11]Content-Length: 801 [19:06:11]Content-Type: application/json [19:06:11] [19:06:11]POST finish read [19:06:11]Found Content-Length = 801 [19:06:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)508138", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 120.490, "sum" : 9000.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 9000.60 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:06:11]execute_script... [19:06:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)508138", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 120.490, "sum" : 9000.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 9000.60 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:06:11]POST & json_proto [19:06:11]process_json_proto [19:06:11]json parsed OK: [19:06:11]protocol is kg_v1.0 [19:06:11]action value=close_receipt [19:06:11]process_action close_receipt [19:06:11]cmd_close_receipt [19:06:11]MH_GetDate [19:06:11]Write to MH i2c: F0 00 00 92 13 94 [19:06:11]Write i2c OK [19:06:11]MH_I2C_Read... [19:06:11]Read from MH i2c: F0 [19:06:11]MH_I2C_Read... [19:06:11]Read from MH i2c: F0 09 00 [19:06:11]MH_I2C_Read... [19:06:11]Read from MH i2c: F0 09 00 92 13 00 25 FC 48 66 FC 21 6F 64 5C [19:06:11]GetLastDocTimeStamp 1716059156 [19:06:11]current date 1716059173 [19:06:11]FM_GetShiftState [19:06:11]SAM_PROTO_GetShiftState [19:06:11]wFMCommunicate request_size=4 [19:06:11]MH_SAM_APDU [19:06:11]CAPDU: 80 13 01 00 [19:06:11]Write to MH i2c: E2 08 00 93 13 80 13 01 00 00 00 00 00 23 [19:06:11]Write i2c OK [19:06:11]MH_I2C_Read... [19:06:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:06:11]Read from MH i2c: E2 [19:06:11]MH_I2C_Read... [19:06:11]Read from MH i2c: E2 0E 00 [19:06:11]MH_I2C_Read... [19:06:11]Read from MH i2c: E2 0E 00 93 13 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 8A [19:06:11]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [19:06:11]wFMCommunicate OK [19:06:11]SAM_PROTO_GetShiftState done [19:06:11]FM_GetShiftState done [19:06:11]opened in 1715991483 [19:06:11]opened+sec_in_day 1716077883 [19:06:11]quantity*price = 900060 [19:06:11]sum+1 = 900061 [19:06:11]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 9000.60 НСП 1% : 79.65 НДС 12% : 955.82 Наличными: 0.00 Безнал.: 9000.60 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 118 18.05.2024 19:06 Смена: 359 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67879 ФПД: 148257460379476 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T190613&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67879&fm=148257460379476&tin=02508201610067®Number=0000000000091845&sum=900060 [19:06:12]StoreToDocumentArchive [19:06:12]shift 359 fd 67879 [19:06:12]save to /storage/0359/doc_00067879 [19:06:12]save last doc name /storage/0359/doc_00067879 to /storage/kkm_last_doc_name [19:06:12]save OK [19:06:12]Clear old archive folders... [19:06:13]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:06:13]tlvbuf is 009BDC40 [19:06:13]SAM_PROTO_ClearQueue [19:06:13]wFMCommunicate request_size=4 [19:06:13]MH_SAM_APDU [19:06:13]CAPDU: 80 09 00 00 [19:06:13]Write to MH i2c: E2 08 00 A0 13 80 09 00 00 00 00 00 00 25 [19:06:13]Write i2c OK [19:06:13]MH_I2C_Read... [19:06:13]Read from MH i2c: E2 [19:06:13]MH_I2C_Read... [19:06:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:06:13]Read from MH i2c: E2 03 00 [19:06:13]MH_I2C_Read... [19:06:13]Read from MH i2c: E2 03 00 A0 13 00 90 00 27 [19:06:13]RAPDU: 90 00 [19:06:13]wFMCommunicate OK [19:06:13]SAM_PROTO_ClearQueue done [19:06:13]KKMCreateOFDPacket [19:06:13]OFDProtocolAddRootSTLVToBuf [19:06:13]FM_MakeSignedData [19:06:13]FM_MakeSignedData [19:06:13]SAM_PROTO_SignData [19:06:13]wFMCommunicate request_size=4 [19:06:13]MH_SAM_APDU [19:06:13]CAPDU: 80 0D 01 02 [19:06:13]Write to MH i2c: E2 08 00 A1 13 80 0D 01 02 00 00 00 00 2D [19:06:13]Write i2c OK [19:06:13]MH_I2C_Read... [19:06:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:06:13]Read from MH i2c: E2 [19:06:13]MH_I2C_Read... [19:06:13]Read from MH i2c: E2 03 00 [19:06:13]MH_I2C_Read... [19:06:13]Read from MH i2c: E2 03 00 A1 13 00 90 00 28 [19:06:13]RAPDU: 90 00 [19:06:13]wFMCommunicate OK [19:06:13]wFMCommunicate request_size=255 [19:06:13]MH_SAM_APDU [19:06:13]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA D6 01 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 DC BB 0D 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC BB 0D 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 1F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5E 75 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 DC BB 0D 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 25 FC 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 27 09 01 00 35 04 06 00 86 D6 E1 42 [19:06:13]Write to MH i2c: E2 02 01 A2 13 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA D6 01 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 DC BB 0D 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC BB 0D 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 1F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5E 75 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 DC BB 0D 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 25 FC 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 27 09 01 00 35 04 06 00 86 D6 E1 42 00 00 B4 [19:06:13]Write i2c OK [19:06:13]MH_I2C_Read... [19:06:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:06:13]Read from MH i2c: E2 [19:06:13]MH_I2C_Read... [19:06:13]Read from MH i2c: E2 03 00 [19:06:13]MH_I2C_Read... [19:06:13]Read from MH i2c: E2 03 00 A2 13 00 90 00 29 [19:06:13]RAPDU: 90 00 [19:06:13]wFMCommunicate OK [19:06:13]wFMCommunicate request_size=7 [19:06:13]MH_SAM_APDU [19:06:13]CAPDU: 80 0D 02 02 02 DF 54 [19:06:13]Write to MH i2c: E2 0A 00 A3 13 80 0D 02 02 02 00 DF 54 00 00 67 [19:06:13]Write i2c OK [19:06:13]MH_I2C_Read... [19:06:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:06:13]Read from MH i2c: E2 [19:06:13]MH_I2C_Read... [19:06:13]Read from MH i2c: E2 03 00 [19:06:13]MH_I2C_Read... [19:06:13]Read from MH i2c: E2 03 00 A3 13 00 90 00 2A [19:06:13]RAPDU: 90 00 [19:06:13]wFMCommunicate OK [19:06:13]wFMCommunicate request_size=4 [19:06:13]MH_SAM_APDU [19:06:13]CAPDU: 80 0D 03 02 [19:06:13]Write to MH i2c: E2 08 00 A4 13 80 0D 03 02 00 00 00 00 32 [19:06:13]Write i2c OK [19:06:13]MH_I2C_Read... [19:06:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:06:13]Read from MH i2c: E2 [19:06:13]MH_I2C_Read... [19:06:13]Read from MH i2c: E2 0B 00 [19:06:13]MH_I2C_Read... [19:06:13]Read from MH i2c: E2 0B 00 A4 13 00 BB 25 67 E0 B0 83 6B A3 90 00 9B [19:06:13]RAPDU: BB 25 67 E0 B0 83 6B A3 90 00 [19:06:13]wFMCommunicate OK [19:06:13]SAM_PROTO_SignData done [19:06:13]FM_MakeSignedData done [19:06:13]CreateOFDProtocolMessage [19:06:13]wFMCommunicate request_size=4 [19:06:13]MH_SAM_APDU [19:06:13]CAPDU: 80 11 00 00 [19:06:13]Write to MH i2c: E2 08 00 A5 13 80 11 00 00 00 00 00 00 32 [19:06:13]Write i2c OK [19:06:13]MH_I2C_Read... [19:06:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:06:13]Read from MH i2c: E2 [19:06:13]MH_I2C_Read... [19:06:13]Read from MH i2c: E2 17 00 [19:06:13]MH_I2C_Read... [19:06:13]Read from MH i2c: E2 17 00 A5 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 88 [19:06:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [19:06:13]wFMCommunicate OK [19:06:13]CreateOFDProtocolMessage done [19:06:13]OFDSenderStorePacket 67879 [19:06:13]StoreOFDPacket docnum=67879 [19:06:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 E1 7F 04 01 DE 38 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA D6 01 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 DC BB 0D 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC BB 0D 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 1F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5E 75 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 DC BB 0D 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 25 FC 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 27 09 01 00 35 04 06 00 86 D6 E1 42 DF 54 BB 25 67 E0 B0 83 6B A3 [19:06:13]CheckFolder [19:06:13]dirname=/storage/ofd_packets [19:06:13]CheckFolder done [19:06:13]ProducePacketName [19:06:13]name=ofd_packets/00067879 [19:06:13]NVStorageSaveData ofd_packets/00067879 [19:06:13]File name is /storage/ofd_packets/00067879 [19:06:13]Write 298 bytes [19:06:13]NVStorageSaveData done [19:06:13]OFDSenderStorePacket done [19:06:13]KKMCreateOFDPacket done [19:06:13]NVStorageSaveData kkm_last_timestamp [19:06:13]File name is /storage/kkm_last_timestamp [19:06:13]Write 4 bytes [19:06:13]NVStorageSaveData done [19:06:13]ExternCall_PrintAddStr [19:06:13]wPrintStart [19:06:13]Write to MH i2c: 01 00 00 A6 13 B9 [19:06:13]Write i2c OK [19:06:13]MH_I2C_Read... [19:06:13]Read from MH i2c: 01 [19:06:13]MH_I2C_Read... [19:06:13]Read from MH i2c: 01 07 00 [19:06:13]MH_I2C_Read... [19:06:13]Read from MH i2c: 01 07 00 A6 13 00 00 00 00 00 FF 0F CE [19:06:13]RasterBufferAndPrint [19:06:13]line Счет N : (1)508138 [19:06:13]line ИНН: 02508201610067 [19:06:13]line Контрольно-Кассовый Чек [19:06:13]line ПРОДАЖА [19:06:13]line ТРК (МРК, ГНК) : 31 [19:06:13]line Товар: 2710194210 [19:06:13]line ДТ-К-5 [19:06:13]line 120.490 * 74.70 [19:06:13]line = 9000.60 [19:06:13]line НДС 12% НСП 1% [19:06:13]line > о реализуемом товаре [19:06:13]line ИТОГО: 9000.60 [19:06:13]line НСП 1% : 79.65 [19:06:13]line НДС 12% : 955.82 [19:06:13]line Наличными: 0.00 [19:06:13]line Безнал.: 9000.60 [19:06:13]line Место: АЗС № 91 "Партнер Нефть" [19:06:13]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [19:06:13]line СНО: Общий режим [19:06:13]line Чек 118 18.05.2024 19:06 [19:06:13]line Смена: 359 ФФД: 1.0 [19:06:13]line ЗНМ: 0300000119 [19:06:13]line РНМ: 0000000000091845 [19:06:13]line Версия ККМ: 001 [19:06:13]line Платежная система: O! деньги [19:06:13]line ФМ: 0000000000871829 [19:06:13]line ФД: 67879 [19:06:13]line ФПД: 148257460379476 [19:06:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T190613&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67879&fm=148257460379476&tin=02508201610067®Number=0000000000091845&sum=900060 [19:06:13]OFD Sender: Processing packet 67879 [packets to send 35, broken 34] [19:06:13]ProducePacketName [19:06:13]name=ofd_packets/00067879 [19:06:13]OFD Sender: To server: pG, [19:06:13]CommunicateWithHost lk.salyk.kg:30040 [19:06:13]ConnectInit lk.salyk.kg [19:06:13]written 0, free lines is 4095 [19:06:13]Connected sock=10 [19:06:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 E1 7F 04 01 DE 38 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA D6 01 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 DC BB 0D 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC BB 0D 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 1F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5E 75 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 DC BB 0D 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 25 FC 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 27 09 01 00 35 04 06 00 86 D6 E1 42 DF 54 BB 25 67 E0 B0 83 6B A3 [19:06:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 4B 85 47 00 A2 2A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 27 09 01 00 F4 03 04 00 FA A3 48 66 B6 04 01 00 00 42 5F EF DA 06 BA AC E0 [19:06:14]CommunicateWithHost err = 0 [19:06:14]CheckOFDResponse [19:06:14]1017 (14) - 77093643461234 [19:06:14]1041 (16) - 0000000000871829 [19:06:14]1040 (4) - 67879 [19:06:14]1012 (4) - 18.05.2024 12:50 [19:06:14]1206 (1) - 0 [19:06:14]OFD Sender: Remove packet 67879 [19:06:14]ProducePacketName [19:06:14]name=ofd_packets/00067879 [19:06:14]NVStorageDeleteData [19:06:14]Write to MH i2c: 01 00 00 CF 13 E2 [19:06:14]Write i2c OK [19:06:14]MH_I2C_Read... [19:06:14]Read from MH i2c: 01 [19:06:14]MH_I2C_Read... [19:06:14]Read from MH i2c: 01 07 00 [19:06:14]MH_I2C_Read... [19:06:14]Read from MH i2c: 01 07 00 CF 13 00 00 00 00 00 DF 0C D4 [19:06:14]RasterBufferAndPrint [19:06:14]line [19:06:14]line [19:06:14]line [19:06:14]line [19:06:14]line [19:06:14]written 0, free lines is 3303 [19:06:14]MH_Cut [19:06:14]Write to MH i2c: D1 01 00 D6 13 01 BB [19:06:14]Write i2c OK [19:06:14]MH_I2C_Read... [19:06:14]Read from MH i2c: D1 [19:06:14]MH_I2C_Read... [19:06:14]Read from MH i2c: D1 01 00 [19:06:14]MH_I2C_Read... [19:06:14]Read from MH i2c: D1 01 00 D6 13 00 BA [19:06:14]Write to MH i2c: 01 00 00 D7 13 EA [19:06:14]Write i2c OK [19:06:14]MH_I2C_Read... [19:06:14]OFD Sender: No OFD packet to send [19:06:15]*** Cut start [19:06:15]*** Purtial cut [19:06:15]*** Stage 1: CUTSNS_PIN = 1 [19:06:15]Read from MH i2c: 01 [19:06:15]MH_I2C_Read... [19:06:15]*** Stop cut motor [19:06:15]*** Cut end [19:06:15]Read from MH i2c: 01 07 00 [19:06:15]MH_I2C_Read... [19:06:15]Read from MH i2c: 01 07 00 D7 13 00 00 00 00 00 FF 0F FF [19:06:15]process_action close_receipt done [19:06:15]requested_data is exist [19:06:15]produce_requested_data [19:06:15]requested_item fm.sn is exist - process it [19:06:15]wFMCommunicate request_size=4 [19:06:15]MH_SAM_APDU [19:06:15]CAPDU: 80 11 00 00 [19:06:15]Write to MH i2c: E2 08 00 D8 13 80 11 00 00 00 00 00 00 65 [19:06:15]Write i2c OK [19:06:15]MH_I2C_Read... [19:06:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:06:15]Read from MH i2c: E2 [19:06:15]MH_I2C_Read... [19:06:15]Read from MH i2c: E2 17 00 [19:06:15]MH_I2C_Read... [19:06:15]Read from MH i2c: E2 17 00 D8 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 BB [19:06:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [19:06:15]wFMCommunicate OK [19:06:15]requested_item fd.num is exist - process it [19:06:15]SAM_PROTO_GetFieldsCounters [19:06:15]wFMCommunicate request_size=4 [19:06:15]MH_SAM_APDU [19:06:15]CAPDU: 80 13 00 00 [19:06:15]Write to MH i2c: E2 08 00 D9 13 80 13 00 00 00 00 00 00 68 [19:06:15]Write i2c OK [19:06:15]MH_I2C_Read... [19:06:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:06:15]Read from MH i2c: E2 [19:06:15]MH_I2C_Read... [19:06:15]Read from MH i2c: E2 62 00 [19:06:15]MH_I2C_Read... [19:06:15]Read from MH i2c: E2 62 00 D9 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 27 09 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 76 00 00 00 5E 04 04 00 76 00 00 00 57 04 04 00 77 00 00 00 19 04 04 00 00 00 00 00 90 00 89 [19:06:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 27 09 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 76 00 00 00 5E 04 04 00 76 00 00 00 57 04 04 00 77 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:06:15]wFMCommunicate OK [19:06:15]SAM_PROTO_GetFieldsCounters done [19:06:15]requested_item shift.num is exist - process it [19:06:15]requested_item shift.opened is exist - process it [19:06:15]req_shift_opened [19:06:15]FM_GetShiftState [19:06:15]SAM_PROTO_GetShiftState [19:06:15]wFMCommunicate request_size=4 [19:06:15]MH_SAM_APDU [19:06:15]CAPDU: 80 13 01 00 [19:06:15]Write to MH i2c: E2 08 00 DA 13 80 13 01 00 00 00 00 00 6A [19:06:15]Write i2c OK [19:06:15]MH_I2C_Read... [19:06:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:06:15]Read from MH i2c: E2 [19:06:15]MH_I2C_Read... [19:06:15]Read from MH i2c: E2 0E 00 [19:06:15]MH_I2C_Read... [19:06:15]Read from MH i2c: E2 0E 00 DA 13 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 D1 [19:06:15]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [19:06:15]wFMCommunicate OK [19:06:15]SAM_PROTO_GetShiftState done [19:06:15]FM_GetShiftState done [19:06:15]req_shift_opened done [19:06:15]requested_item shift.open_date is exist - process it [19:06:15]req_shift_open_date [19:06:15]req_shift_open_date done [19:06:15]produce_requested_data done [19:06:15]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67879,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [19:06:15]process_action_free close_receipt [19:06:15]json_value_free [19:06:15]json_value_free done [19:06:15]process_json_proto returns [19:06:15]Send response to host [19:06:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67879,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [19:06:15]free response buf [19:06:15]execute_script done [19:06:15]execute_script returns [19:06:15]free content buf [19:06:15]Sock 7.Close socket [19:06:15]Sock 7.Thread stoped [19:06:19]OFD Sender: No OFD packet to send [19:06:24]OFD Sender: No OFD packet to send [19:06:29]OFD Sender: No OFD packet to send [19:06:34]OFD Sender: No OFD packet to send [19:06:39]OFD Sender: No OFD packet to send [19:06:44]OFD Sender: No OFD packet to send [19:06:49]OFD Sender: No OFD packet to send [19:06:54]OFD Sender: No OFD packet to send [19:06:59]OFD Sender: No OFD packet to send [19:07:04]OFD Sender: No OFD packet to send [19:07:09]OFD Sender: No OFD packet to send [19:07:14]OFD Sender: No OFD packet to send [19:07:19]OFD Sender: No OFD packet to send [19:07:24]OFD Sender: No OFD packet to send [19:07:29]OFD Sender: No OFD packet to send [19:07:34]OFD Sender: No OFD packet to send [19:07:39]OFD Sender: No OFD packet to send [19:07:44]OFD Sender: No OFD packet to send [19:07:49]OFD Sender: No OFD packet to send [19:07:54]OFD Sender: No OFD packet to send [19:07:59]OFD Sender: No OFD packet to send [19:08:04]OFD Sender: No OFD packet to send [19:08:09]OFD Sender: No OFD packet to send [19:08:14]OFD Sender: No OFD packet to send [19:08:19]OFD Sender: No OFD packet to send [19:08:24]OFD Sender: No OFD packet to send [19:08:29]OFD Sender: No OFD packet to send [19:08:34]OFD Sender: No OFD packet to send [19:08:39]OFD Sender: No OFD packet to send [19:08:44]OFD Sender: No OFD packet to send [19:08:49]OFD Sender: No OFD packet to send [19:08:54]OFD Sender: No OFD packet to send [19:08:59]OFD Sender: No OFD packet to send [19:09:04]OFD Sender: No OFD packet to send [19:09:09]OFD Sender: No OFD packet to send [19:09:14]OFD Sender: No OFD packet to send [19:09:19]OFD Sender: No OFD packet to send [19:09:24]OFD Sender: No OFD packet to send [19:09:29]OFD Sender: No OFD packet to send [19:09:34]OFD Sender: No OFD packet to send [19:09:39]OFD Sender: No OFD packet to send [19:09:44]OFD Sender: No OFD packet to send [19:09:49]OFD Sender: No OFD packet to send [19:09:54]OFD Sender: No OFD packet to send [19:09:59]OFD Sender: No OFD packet to send [19:10:04]OFD Sender: No OFD packet to send [19:10:09]OFD Sender: No OFD packet to send [19:10:14]OFD Sender: No OFD packet to send [19:10:19]OFD Sender: No OFD packet to send [19:10:24]OFD Sender: No OFD packet to send [19:10:29]OFD Sender: No OFD packet to send [19:10:34]accept exits with 9 [19:10:34]New connection [19:10:34]New thread 3067059556 created [19:10:34]Thread 3067202916 joined [19:10:34]Waiting for new connection... [19:10:34] Sock 9.Parse request [19:10:34]Sock 9.Check first char [19:10:34]Sock 9.First char is OK [19:10:34]request: POST /json_proto HTTP/1.0 [19:10:34]Method: POST [19:10:34]URL: /json_proto [19:10:34]Method is POST - this is cgi request [19:10:34]url: /json_proto [19:10:34]query_string will be loaded in cgi processing [19:10:34]execute_cgi json_proto POST (null) [19:10:34]execute_cgi path=json_proto method=POST [19:10:34]POST find Content-Length [19:10:34]Host: 172.17.41.195:8080 [19:10:34]Content-Length: 679 [19:10:34]Content-Type: application/json [19:10:34] [19:10:34]POST finish read [19:10:34]Found Content-Length = 679 [19:10:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)508144", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 24.100, "sum" : 1800.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1800.00, "total" : 1800.00, "payments": [ { "type": 0, "sum" : 1800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:10:34]execute_script... [19:10:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)508144", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 24.100, "sum" : 1800.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1800.00, "total" : 1800.00, "payments": [ { "type": 0, "sum" : 1800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:10:34]POST & json_proto [19:10:34]process_json_proto [19:10:34]json parsed OK: [19:10:34]protocol is kg_v1.0 [19:10:34]action value=close_receipt [19:10:34]process_action close_receipt [19:10:34]cmd_close_receipt [19:10:34]MH_GetDate [19:10:34]Write to MH i2c: F0 00 00 DB 13 DD [19:10:34]Write i2c OK [19:10:34]MH_I2C_Read... [19:10:34]Read from MH i2c: F0 [19:10:34]MH_I2C_Read... [19:10:34]Read from MH i2c: F0 09 00 [19:10:34]MH_I2C_Read... [19:10:34]Read from MH i2c: F0 09 00 DB 13 00 2B FD 48 66 FC 21 6F 64 AC [19:10:34]GetLastDocTimeStamp 1716059173 [19:10:34]current date 1716059435 [19:10:34]FM_GetShiftState [19:10:34]SAM_PROTO_GetShiftState [19:10:34]wFMCommunicate request_size=4 [19:10:34]MH_SAM_APDU [19:10:34]CAPDU: 80 13 01 00 [19:10:34]Write to MH i2c: E2 08 00 DC 13 80 13 01 00 00 00 00 00 6C [19:10:34]Write i2c OK [19:10:34]MH_I2C_Read... [19:10:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:10:34]Read from MH i2c: E2 [19:10:34]MH_I2C_Read... [19:10:34]Read from MH i2c: E2 0E 00 [19:10:34]MH_I2C_Read... [19:10:34]Read from MH i2c: E2 0E 00 DC 13 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 D3 [19:10:34]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [19:10:34]wFMCommunicate OK [19:10:34]SAM_PROTO_GetShiftState done [19:10:34]FM_GetShiftState done [19:10:34]opened in 1715991483 [19:10:34]opened+sec_in_day 1716077883 [19:10:34]quantity*price = 180027 [19:10:34]sum+1 = 180028 [19:10:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.27 ИТОГО: 1800.00 Внесено: 1800.00 СДАЧА: 0.00 НСП 1% : 15.93 НДС 12% : 191.18 Наличными: 1800.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 119 18.05.2024 19:10 Смена: 359 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67880 ФПД: 123167414083394 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T191036&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67880&fm=123167414083394&tin=02508201610067®Number=0000000000091845&sum=180000 [19:10:35]StoreToDocumentArchive [19:10:35]shift 359 fd 67880 [19:10:35]save to /storage/0359/doc_00067880 [19:10:35]save last doc name /storage/0359/doc_00067880 to /storage/kkm_last_doc_name [19:10:35]save OK [19:10:35]Clear old archive folders... [19:10:35]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:10:35]tlvbuf is B6EE5D60 [19:10:35]SAM_PROTO_ClearQueue [19:10:35]wFMCommunicate request_size=4 [19:10:35]MH_SAM_APDU [19:10:35]CAPDU: 80 09 00 00 [19:10:35]Write to MH i2c: E2 08 00 E9 13 80 09 00 00 00 00 00 00 6E [19:10:35]Write i2c OK [19:10:35]MH_I2C_Read... [19:10:35]Read from MH i2c: E2 [19:10:35]MH_I2C_Read... [19:10:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:10:35]Read from MH i2c: E2 03 00 [19:10:35]MH_I2C_Read... [19:10:35]Read from MH i2c: E2 03 00 E9 13 00 90 00 70 [19:10:35]RAPDU: 90 00 [19:10:35]wFMCommunicate OK [19:10:35]SAM_PROTO_ClearQueue done [19:10:35]KKMCreateOFDPacket [19:10:35]OFDProtocolAddRootSTLVToBuf [19:10:35]FM_MakeSignedData [19:10:35]FM_MakeSignedData [19:10:35]SAM_PROTO_SignData [19:10:35]wFMCommunicate request_size=4 [19:10:35]MH_SAM_APDU [19:10:35]CAPDU: 80 0D 01 02 [19:10:35]Write to MH i2c: E2 08 00 EA 13 80 0D 01 02 00 00 00 00 76 [19:10:35]Write i2c OK [19:10:35]MH_I2C_Read... [19:10:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:10:35]Read from MH i2c: E2 [19:10:35]MH_I2C_Read... [19:10:35]Read from MH i2c: E2 03 00 [19:10:35]MH_I2C_Read... [19:10:35]Read from MH i2c: E2 03 00 EA 13 00 90 00 71 [19:10:35]RAPDU: 90 00 [19:10:35]wFMCommunicate OK [19:10:35]wFMCommunicate request_size=255 [19:10:35]MH_SAM_APDU [19:10:35]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 24 5E 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 3B BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AE 4A 00 00 00 00 07 04 06 00 20 BF 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 2C FD 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 28 09 01 00 35 04 06 00 70 05 25 F6 [19:10:35]Write to MH i2c: E2 02 01 EB 13 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 24 5E 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 3B BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AE 4A 00 00 00 00 07 04 06 00 20 BF 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 2C FD 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 28 09 01 00 35 04 06 00 70 05 25 F6 00 00 12 [19:10:35]Write i2c OK [19:10:35]MH_I2C_Read... [19:10:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:10:35]Read from MH i2c: E2 [19:10:35]MH_I2C_Read... [19:10:35]Read from MH i2c: E2 03 00 [19:10:35]MH_I2C_Read... [19:10:35]Read from MH i2c: E2 03 00 EB 13 00 90 00 72 [19:10:35]RAPDU: 90 00 [19:10:35]wFMCommunicate OK [19:10:35]wFMCommunicate request_size=7 [19:10:35]MH_SAM_APDU [19:10:35]CAPDU: 80 0D 02 02 02 DF 42 [19:10:35]Write to MH i2c: E2 0A 00 EC 13 80 0D 02 02 02 00 DF 42 00 00 9E [19:10:35]Write i2c OK [19:10:35]MH_I2C_Read... [19:10:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:10:35]Read from MH i2c: E2 [19:10:35]MH_I2C_Read... [19:10:35]Read from MH i2c: E2 03 00 [19:10:35]MH_I2C_Read... [19:10:35]Read from MH i2c: E2 03 00 EC 13 00 90 00 73 [19:10:35]RAPDU: 90 00 [19:10:35]wFMCommunicate OK [19:10:35]wFMCommunicate request_size=4 [19:10:35]MH_SAM_APDU [19:10:35]CAPDU: 80 0D 03 02 [19:10:35]Write to MH i2c: E2 08 00 ED 13 80 0D 03 02 00 00 00 00 7B [19:10:35]Write i2c OK [19:10:35]MH_I2C_Read... [19:10:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:10:35]Read from MH i2c: E2 [19:10:35]MH_I2C_Read... [19:10:35]Read from MH i2c: E2 0B 00 [19:10:35]MH_I2C_Read... [19:10:35]Read from MH i2c: E2 0B 00 ED 13 00 A3 6B 80 F0 1B 47 3C 4C 90 00 E4 [19:10:35]RAPDU: A3 6B 80 F0 1B 47 3C 4C 90 00 [19:10:35]wFMCommunicate OK [19:10:35]SAM_PROTO_SignData done [19:10:35]FM_MakeSignedData done [19:10:35]CreateOFDProtocolMessage [19:10:35]wFMCommunicate request_size=4 [19:10:35]MH_SAM_APDU [19:10:35]CAPDU: 80 11 00 00 [19:10:35]Write to MH i2c: E2 08 00 EE 13 80 11 00 00 00 00 00 00 7B [19:10:35]Write i2c OK [19:10:35]MH_I2C_Read... [19:10:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:10:35]Read from MH i2c: E2 [19:10:35]MH_I2C_Read... [19:10:35]Read from MH i2c: E2 17 00 [19:10:35]MH_I2C_Read... [19:10:35]Read from MH i2c: E2 17 00 EE 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 D1 [19:10:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [19:10:35]wFMCommunicate OK [19:10:35]CreateOFDProtocolMessage done [19:10:35]OFDSenderStorePacket 67880 [19:10:35]StoreOFDPacket docnum=67880 [19:10:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 68 88 04 01 66 A2 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 24 5E 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 3B BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AE 4A 00 00 00 00 07 04 06 00 20 BF 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 2C FD 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 28 09 01 00 35 04 06 00 70 05 25 F6 DF 42 A3 6B 80 F0 1B 47 3C 4C [19:10:35]CheckFolder [19:10:35]dirname=/storage/ofd_packets [19:10:35]CheckFolder done [19:10:35]ProducePacketName [19:10:35]name=ofd_packets/00067880 [19:10:35]NVStorageSaveData ofd_packets/00067880 [19:10:35]File name is /storage/ofd_packets/00067880 [19:10:35]Write 298 bytes [19:10:35]NVStorageSaveData done [19:10:35]OFDSenderStorePacket done [19:10:35]KKMCreateOFDPacket done [19:10:35]NVStorageSaveData kkm_last_timestamp [19:10:35]File name is /storage/kkm_last_timestamp [19:10:35]Write 4 bytes [19:10:35]NVStorageSaveData done [19:10:35]ExternCall_PrintAddStr [19:10:35]wPrintStart [19:10:35]Write to MH i2c: 01 00 00 EF 13 02 [19:10:35]Write i2c OK [19:10:35]MH_I2C_Read... [19:10:35]Read from MH i2c: 01 [19:10:35]MH_I2C_Read... [19:10:35]Read from MH i2c: 01 07 00 [19:10:35]MH_I2C_Read... [19:10:35]Read from MH i2c: 01 07 00 EF 13 00 00 00 00 00 FF 0F 17 [19:10:35]RasterBufferAndPrint [19:10:35]line Счет N : (1)508144 [19:10:35]line ИНН: 02508201610067 [19:10:35]line Контрольно-Кассовый Чек [19:10:35]line ПРОДАЖА [19:10:35]line ТРК (МРК, ГНК) : 41 [19:10:35]line Товар: 2710194210 [19:10:35]line ДТ-К-5 [19:10:35]line 24.100 * 74.70 [19:10:35]line = 1800.27 [19:10:35]line НДС 12% НСП 1% [19:10:35]line > о реализуемом товаре [19:10:35]line ОКРУГЛЕНИЕ: -0.27 [19:10:35]line ИТОГО: 1800.00 [19:10:35]line Внесено: 1800.00 [19:10:35]line СДАЧА: 0.00 [19:10:35]line НСП 1% : 15.93 [19:10:35]line НДС 12% : 191.18 [19:10:35]line Наличными: 1800.00 [19:10:35]line Безнал.: 0.00 [19:10:35]line Место: АЗС № 91 "Партнер Нефть" [19:10:35]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [19:10:35]line СНО: Общий режим [19:10:35]line Чек 119 18.05.2024 19:10 [19:10:35]line Смена: 359 ФФД: 1.0 [19:10:35]line ЗНМ: 0300000119 [19:10:35]line РНМ: 0000000000091845 [19:10:35]line Версия ККМ: 001 [19:10:35]line ФМ: 0000000000871829 [19:10:35]line ФД: 67880 [19:10:35]line ФПД: 123167414083394 [19:10:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T191036&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67880&fm=123167414083394&tin=02508201610067®Number=0000000000091845&sum=180000 [19:10:36]OFD Sender: Processing packet 67880 [packets to send 35, broken 34] [19:10:36]ProducePacketName [19:10:36]name=ofd_packets/00067880 [19:10:36]OFD Sender: To server: pG, [19:10:36]CommunicateWithHost lk.salyk.kg:30040 [19:10:36]ConnectInit lk.salyk.kg [19:10:36]written 0, free lines is 4095 [19:10:36]Connected sock=7 [19:10:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 68 88 04 01 66 A2 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 24 5E 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 3B BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AE 4A 00 00 00 00 07 04 06 00 20 BF 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 2C FD 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 28 09 01 00 35 04 06 00 70 05 25 F6 DF 42 A3 6B 80 F0 1B 47 3C 4C [19:10:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 7A 9A 47 00 31 22 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 28 09 01 00 F4 03 04 00 00 A5 48 66 B6 04 01 00 00 B6 7A AA 7B 7A 1F F7 C5 [19:10:36]CommunicateWithHost err = 0 [19:10:36]CheckOFDResponse [19:10:36]1017 (14) - 77093643461234 [19:10:36]1041 (16) - 0000000000871829 [19:10:36]1040 (4) - 67880 [19:10:36]1012 (4) - 18.05.2024 12:54 [19:10:36]1206 (1) - 0 [19:10:36]OFD Sender: Remove packet 67880 [19:10:36]ProducePacketName [19:10:36]name=ofd_packets/00067880 [19:10:36]NVStorageDeleteData [19:10:36]Write to MH i2c: 01 00 00 19 14 2D [19:10:36]Write i2c OK [19:10:36]MH_I2C_Read... [19:10:36]Read from MH i2c: 01 [19:10:36]MH_I2C_Read... [19:10:36]Read from MH i2c: 01 07 00 [19:10:36]MH_I2C_Read... [19:10:36]Read from MH i2c: 01 07 00 19 14 00 00 00 00 00 D6 0C 16 [19:10:36]RasterBufferAndPrint [19:10:36]line [19:10:36]line [19:10:36]line [19:10:36]line [19:10:36]line [19:10:36]written 0, free lines is 3293 [19:10:36]MH_Cut [19:10:36]Write to MH i2c: D1 01 00 20 14 01 06 [19:10:36]Write i2c OK [19:10:36]MH_I2C_Read... [19:10:36]Read from MH i2c: D1 [19:10:36]MH_I2C_Read... [19:10:36]Read from MH i2c: D1 01 00 [19:10:36]MH_I2C_Read... [19:10:36]Read from MH i2c: D1 01 00 20 14 00 05 [19:10:36]Write to MH i2c: 01 00 00 21 14 35 [19:10:36]Write i2c OK [19:10:36]MH_I2C_Read... [19:10:37]OFD Sender: No OFD packet to send [19:10:37]*** Cut start [19:10:37]*** Purtial cut [19:10:37]*** Stage 1: CUTSNS_PIN = 1 [19:10:37]Read from MH i2c: 01 [19:10:37]MH_I2C_Read... [19:10:37]*** Stop cut motor [19:10:37]*** Cut end [19:10:37]Read from MH i2c: 01 07 00 [19:10:37]MH_I2C_Read... [19:10:37]Read from MH i2c: 01 07 00 21 14 00 00 00 00 00 FF 0F 4A [19:10:37]process_action close_receipt done [19:10:37]requested_data is exist [19:10:37]produce_requested_data [19:10:37]requested_item fm.sn is exist - process it [19:10:37]wFMCommunicate request_size=4 [19:10:37]MH_SAM_APDU [19:10:37]CAPDU: 80 11 00 00 [19:10:37]Write to MH i2c: E2 08 00 22 14 80 11 00 00 00 00 00 00 B0 [19:10:37]Write i2c OK [19:10:37]MH_I2C_Read... [19:10:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:10:37]Read from MH i2c: E2 [19:10:37]MH_I2C_Read... [19:10:37]Read from MH i2c: E2 17 00 [19:10:37]MH_I2C_Read... [19:10:37]Read from MH i2c: E2 17 00 22 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 06 [19:10:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [19:10:37]wFMCommunicate OK [19:10:37]requested_item fd.num is exist - process it [19:10:37]SAM_PROTO_GetFieldsCounters [19:10:37]wFMCommunicate request_size=4 [19:10:37]MH_SAM_APDU [19:10:37]CAPDU: 80 13 00 00 [19:10:37]Write to MH i2c: E2 08 00 23 14 80 13 00 00 00 00 00 00 B3 [19:10:37]Write i2c OK [19:10:37]MH_I2C_Read... [19:10:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:10:38]Read from MH i2c: E2 [19:10:38]MH_I2C_Read... [19:10:38]Read from MH i2c: E2 62 00 [19:10:38]MH_I2C_Read... [19:10:38]Read from MH i2c: E2 62 00 23 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 28 09 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 77 00 00 00 5E 04 04 00 77 00 00 00 57 04 04 00 78 00 00 00 19 04 04 00 00 00 00 00 90 00 D8 [19:10:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 28 09 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 77 00 00 00 5E 04 04 00 77 00 00 00 57 04 04 00 78 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:10:38]wFMCommunicate OK [19:10:38]SAM_PROTO_GetFieldsCounters done [19:10:38]requested_item shift.num is exist - process it [19:10:38]requested_item shift.opened is exist - process it [19:10:38]req_shift_opened [19:10:38]FM_GetShiftState [19:10:38]SAM_PROTO_GetShiftState [19:10:38]wFMCommunicate request_size=4 [19:10:38]MH_SAM_APDU [19:10:38]CAPDU: 80 13 01 00 [19:10:38]Write to MH i2c: E2 08 00 24 14 80 13 01 00 00 00 00 00 B5 [19:10:38]Write i2c OK [19:10:38]MH_I2C_Read... [19:10:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:10:38]Read from MH i2c: E2 [19:10:38]MH_I2C_Read... [19:10:38]Read from MH i2c: E2 0E 00 [19:10:38]MH_I2C_Read... [19:10:38]Read from MH i2c: E2 0E 00 24 14 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 1C [19:10:38]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [19:10:38]wFMCommunicate OK [19:10:38]SAM_PROTO_GetShiftState done [19:10:38]FM_GetShiftState done [19:10:38]req_shift_opened done [19:10:38]requested_item shift.open_date is exist - process it [19:10:38]req_shift_open_date [19:10:38]req_shift_open_date done [19:10:38]produce_requested_data done [19:10:38]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67880,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [19:10:38]process_action_free close_receipt [19:10:38]json_value_free [19:10:38]json_value_free done [19:10:38]process_json_proto returns [19:10:38]Send response to host [19:10:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67880,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [19:10:38]free response buf [19:10:38]execute_script done [19:10:38]execute_script returns [19:10:38]free content buf [19:10:38]Sock 9.Close socket [19:10:38]Sock 9.Thread stoped [19:10:42]OFD Sender: No OFD packet to send [19:10:42]accept exits with 10 [19:10:42]New connection [19:10:42]New thread 3067202916 created [19:10:42]Thread 3067059556 joined [19:10:42]Waiting for new connection... [19:10:42] Sock 10.Parse request [19:10:42]Sock 10.Check first char [19:10:42]Sock 10.First char is OK [19:10:42]request: POST /json_proto HTTP/1.0 [19:10:42]Method: POST [19:10:42]URL: /json_proto [19:10:42]Method is POST - this is cgi request [19:10:42]url: /json_proto [19:10:42]query_string will be loaded in cgi processing [19:10:42]execute_cgi json_proto POST (null) [19:10:42]execute_cgi path=json_proto method=POST [19:10:42]POST find Content-Length [19:10:42]Host: 172.17.41.195:8080 [19:10:42]Content-Length: 677 [19:10:42]Content-Type: application/json [19:10:42] [19:10:42]POST finish read [19:10:42]Found Content-Length = 677 [19:10:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)508145", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.80, "quantity" : 5.990, "sum" : 400.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:10:42]execute_script... [19:10:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)508145", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.80, "quantity" : 5.990, "sum" : 400.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:10:42]POST & json_proto [19:10:42]process_json_proto [19:10:42]json parsed OK: [19:10:42]protocol is kg_v1.0 [19:10:42]action value=close_receipt [19:10:42]process_action close_receipt [19:10:42]cmd_close_receipt [19:10:42]MH_GetDate [19:10:42]Write to MH i2c: F0 00 00 25 14 28 [19:10:42]Write i2c OK [19:10:42]MH_I2C_Read... [19:10:42]Read from MH i2c: F0 [19:10:42]MH_I2C_Read... [19:10:42]Read from MH i2c: F0 09 00 [19:10:42]MH_I2C_Read... [19:10:42]Read from MH i2c: F0 09 00 25 14 00 34 FD 48 66 FC 21 6F 64 00 [19:10:42]GetLastDocTimeStamp 1716059436 [19:10:42]current date 1716059444 [19:10:42]FM_GetShiftState [19:10:42]SAM_PROTO_GetShiftState [19:10:42]wFMCommunicate request_size=4 [19:10:42]MH_SAM_APDU [19:10:42]CAPDU: 80 13 01 00 [19:10:42]Write to MH i2c: E2 08 00 26 14 80 13 01 00 00 00 00 00 B7 [19:10:42]Write i2c OK [19:10:42]MH_I2C_Read... [19:10:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:10:42]Read from MH i2c: E2 [19:10:42]MH_I2C_Read... [19:10:42]Read from MH i2c: E2 0E 00 [19:10:42]MH_I2C_Read... [19:10:42]Read from MH i2c: E2 0E 00 26 14 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 1E [19:10:42]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [19:10:42]wFMCommunicate OK [19:10:42]SAM_PROTO_GetShiftState done [19:10:42]FM_GetShiftState done [19:10:42]opened in 1715991483 [19:10:42]opened+sec_in_day 1716077883 [19:10:42]quantity*price = 40013 [19:10:42]sum+1 = 40014 [19:10:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.49 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 120 18.05.2024 19:10 Смена: 359 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67881 ФПД: 43933777471585 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T191044&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67881&fm=43933777471585&tin=02508201610067®Number=0000000000091845&sum=40000 [19:10:44]StoreToDocumentArchive [19:10:44]shift 359 fd 67881 [19:10:44]save to /storage/0359/doc_00067881 [19:10:44]save last doc name /storage/0359/doc_00067881 to /storage/kkm_last_doc_name [19:10:44]save OK [19:10:44]Clear old archive folders... [19:10:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:10:44]tlvbuf is 00A2C260 [19:10:44]SAM_PROTO_ClearQueue [19:10:44]wFMCommunicate request_size=4 [19:10:44]MH_SAM_APDU [19:10:44]CAPDU: 80 09 00 00 [19:10:44]Write to MH i2c: E2 08 00 33 14 80 09 00 00 00 00 00 00 B9 [19:10:44]Write i2c OK [19:10:44]MH_I2C_Read... [19:10:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:10:44]Read from MH i2c: E2 [19:10:44]MH_I2C_Read... [19:10:44]Read from MH i2c: E2 03 00 [19:10:44]MH_I2C_Read... [19:10:44]Read from MH i2c: E2 03 00 33 14 00 90 00 BB [19:10:44]RAPDU: 90 00 [19:10:44]wFMCommunicate OK [19:10:44]SAM_PROTO_ClearQueue done [19:10:44]KKMCreateOFDPacket [19:10:44]OFDProtocolAddRootSTLVToBuf [19:10:44]FM_MakeSignedData [19:10:44]FM_MakeSignedData [19:10:44]SAM_PROTO_SignData [19:10:44]wFMCommunicate request_size=4 [19:10:44]MH_SAM_APDU [19:10:44]CAPDU: 80 0D 01 02 [19:10:44]Write to MH i2c: E2 08 00 34 14 80 0D 01 02 00 00 00 00 C1 [19:10:44]Write i2c OK [19:10:44]MH_I2C_Read... [19:10:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:10:44]Read from MH i2c: E2 [19:10:44]MH_I2C_Read... [19:10:44]Read from MH i2c: E2 03 00 [19:10:44]MH_I2C_Read... [19:10:44]Read from MH i2c: E2 03 00 34 14 00 90 00 BC [19:10:44]RAPDU: 90 00 [19:10:44]wFMCommunicate OK [19:10:44]wFMCommunicate request_size=255 [19:10:44]MH_SAM_APDU [19:10:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 17 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 4D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 99 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 34 FD 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 29 09 01 00 35 04 06 00 27 [19:10:44]Write to MH i2c: E2 02 01 35 14 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 17 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 4D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 99 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 34 FD 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 29 09 01 00 35 04 06 00 27 00 00 45 [19:10:44]Write i2c OK [19:10:44]MH_I2C_Read... [19:10:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:10:44]Read from MH i2c: E2 [19:10:44]MH_I2C_Read... [19:10:44]Read from MH i2c: E2 03 00 [19:10:44]MH_I2C_Read... [19:10:44]Read from MH i2c: E2 03 00 35 14 00 90 00 BD [19:10:44]RAPDU: 90 00 [19:10:44]wFMCommunicate OK [19:10:44]wFMCommunicate request_size=10 [19:10:44]MH_SAM_APDU [19:10:44]CAPDU: 80 0D 02 02 05 F5 21 33 28 61 [19:10:44]Write to MH i2c: E2 0D 00 36 14 80 0D 02 02 05 00 F5 21 33 28 61 00 00 A0 [19:10:44]Write i2c OK [19:10:44]MH_I2C_Read... [19:10:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:10:44]Read from MH i2c: E2 [19:10:44]MH_I2C_Read... [19:10:44]Read from MH i2c: E2 03 00 [19:10:44]MH_I2C_Read... [19:10:44]Read from MH i2c: E2 03 00 36 14 00 90 00 BE [19:10:44]RAPDU: 90 00 [19:10:44]wFMCommunicate OK [19:10:44]wFMCommunicate request_size=4 [19:10:44]MH_SAM_APDU [19:10:44]CAPDU: 80 0D 03 02 [19:10:44]Write to MH i2c: E2 08 00 37 14 80 0D 03 02 00 00 00 00 C6 [19:10:44]Write i2c OK [19:10:44]MH_I2C_Read... [19:10:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:10:44]Read from MH i2c: E2 [19:10:44]MH_I2C_Read... [19:10:44]Read from MH i2c: E2 0B 00 [19:10:44]MH_I2C_Read... [19:10:44]Read from MH i2c: E2 0B 00 37 14 00 94 8C CD 3F B6 F4 79 AD 90 00 C3 [19:10:44]RAPDU: 94 8C CD 3F B6 F4 79 AD 90 00 [19:10:44]wFMCommunicate OK [19:10:44]SAM_PROTO_SignData done [19:10:44]FM_MakeSignedData done [19:10:44]CreateOFDProtocolMessage [19:10:44]wFMCommunicate request_size=4 [19:10:44]MH_SAM_APDU [19:10:44]CAPDU: 80 11 00 00 [19:10:44]Write to MH i2c: E2 08 00 38 14 80 11 00 00 00 00 00 00 C6 [19:10:44]Write i2c OK [19:10:44]MH_I2C_Read... [19:10:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:10:44]Read from MH i2c: E2 [19:10:44]MH_I2C_Read... [19:10:44]Read from MH i2c: E2 17 00 [19:10:44]MH_I2C_Read... [19:10:44]Read from MH i2c: E2 17 00 38 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 1C [19:10:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [19:10:44]wFMCommunicate OK [19:10:44]CreateOFDProtocolMessage done [19:10:44]OFDSenderStorePacket 67881 [19:10:44]StoreOFDPacket docnum=67881 [19:10:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 E8 45 07 01 BA F2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 17 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 4D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 99 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 34 FD 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 29 09 01 00 35 04 06 00 27 F5 21 33 28 61 94 8C CD 3F B6 F4 79 AD [19:10:44]CheckFolder [19:10:44]dirname=/storage/ofd_packets [19:10:44]CheckFolder done [19:10:44]ProducePacketName [19:10:44]name=ofd_packets/00067881 [19:10:44]NVStorageSaveData ofd_packets/00067881 [19:10:44]File name is /storage/ofd_packets/00067881 [19:10:44]Write 301 bytes [19:10:44]NVStorageSaveData done [19:10:44]OFDSenderStorePacket done [19:10:44]KKMCreateOFDPacket done [19:10:44]NVStorageSaveData kkm_last_timestamp [19:10:44]File name is /storage/kkm_last_timestamp [19:10:44]Write 4 bytes [19:10:44]NVStorageSaveData done [19:10:44]ExternCall_PrintAddStr [19:10:44]wPrintStart [19:10:44]Write to MH i2c: 01 00 00 39 14 4D [19:10:44]Write i2c OK [19:10:44]MH_I2C_Read... [19:10:44]Read from MH i2c: 01 [19:10:44]MH_I2C_Read... [19:10:44]Read from MH i2c: 01 07 00 [19:10:44]MH_I2C_Read... [19:10:44]Read from MH i2c: 01 07 00 39 14 00 00 00 00 00 FF 0F 62 [19:10:44]RasterBufferAndPrint [19:10:44]line Счет N : (1)508145 [19:10:44]line ИНН: 02508201610067 [19:10:44]line Контрольно-Кассовый Чек [19:10:44]line ПРОДАЖА [19:10:44]line ТРК (МРК, ГНК) : 13 [19:10:44]line Товар: 2710124130 [19:10:44]line Аи-92-К-5 [19:10:44]line 5.990 * 66.80 [19:10:44]line = 400.13 [19:10:44]line НДС 12% НСП 1% [19:10:44]line > о реализуемом товаре [19:10:44]line ОКРУГЛЕНИЕ: -0.13 [19:10:44]line ИТОГО: 400.00 [19:10:44]line Внесено: 400.00 [19:10:44]line СДАЧА: 0.00 [19:10:44]line НСП 1% : 3.54 [19:10:44]line НДС 12% : 42.49 [19:10:44]line Наличными: 400.00 [19:10:44]line Безнал.: 0.00 [19:10:44]line Место: АЗС № 91 "Партнер Нефть" [19:10:44]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [19:10:44]line СНО: Общий режим [19:10:44]line Чек 120 18.05.2024 19:10 [19:10:44]line Смена: 359 ФФД: 1.0 [19:10:44]line ЗНМ: 0300000119 [19:10:44]line РНМ: 0000000000091845 [19:10:44]line Версия ККМ: 001 [19:10:44]line ФМ: 0000000000871829 [19:10:44]line ФД: 67881 [19:10:44]line ФПД: 43933777471585 [19:10:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T191044&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67881&fm=43933777471585&tin=02508201610067®Number=0000000000091845&sum=40000 [19:10:44]written 0, free lines is 4095 [19:10:44]OFD Sender: Processing packet 67881 [packets to send 35, broken 34] [19:10:44]ProducePacketName [19:10:44]name=ofd_packets/00067881 [19:10:44]OFD Sender: To server: pG, [19:10:44]CommunicateWithHost lk.salyk.kg:30040 [19:10:44]ConnectInit lk.salyk.kg [19:10:44]Connected sock=11 [19:10:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 E8 45 07 01 BA F2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 17 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 4D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 99 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 34 FD 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 29 09 01 00 35 04 06 00 27 F5 21 33 28 61 94 8C CD 3F B6 F4 79 AD [19:10:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 ED 73 47 00 5E D2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 29 09 01 00 F4 03 04 00 09 A5 48 66 B6 04 01 00 00 ED 13 DF 57 0F 49 EB 78 [19:10:45]CommunicateWithHost err = 0 [19:10:45]CheckOFDResponse [19:10:45]1017 (14) - 77093643461234 [19:10:45]1041 (16) - 0000000000871829 [19:10:45]1040 (4) - 67881 [19:10:45]1012 (4) - 18.05.2024 12:54 [19:10:45]1206 (1) - 0 [19:10:45]OFD Sender: Remove packet 67881 [19:10:45]ProducePacketName [19:10:45]name=ofd_packets/00067881 [19:10:45]NVStorageDeleteData [19:10:45]Write to MH i2c: 01 00 00 63 14 77 [19:10:45]Write i2c OK [19:10:45]MH_I2C_Read... [19:10:45]Read from MH i2c: 01 [19:10:45]MH_I2C_Read... [19:10:45]Read from MH i2c: 01 07 00 [19:10:45]MH_I2C_Read... [19:10:45]Read from MH i2c: 01 07 00 63 14 00 00 00 00 00 D1 0C 5B [19:10:45]RasterBufferAndPrint [19:10:45]line [19:10:45]line [19:10:45]line [19:10:45]line [19:10:45]line [19:10:45]written 0, free lines is 3292 [19:10:45]MH_Cut [19:10:45]Write to MH i2c: D1 01 00 6A 14 01 50 [19:10:45]Write i2c OK [19:10:45]MH_I2C_Read... [19:10:45]Read from MH i2c: D1 [19:10:45]MH_I2C_Read... [19:10:45]Read from MH i2c: D1 01 00 [19:10:45]MH_I2C_Read... [19:10:45]Read from MH i2c: D1 01 00 6A 14 00 4F [19:10:45]Write to MH i2c: 01 00 00 6B 14 7F [19:10:45]Write i2c OK [19:10:45]MH_I2C_Read... [19:10:45]OFD Sender: No OFD packet to send [19:10:45]*** Cut start [19:10:45]*** Purtial cut [19:10:45]*** Stage 1: CUTSNS_PIN = 1 [19:10:46]Read from MH i2c: 01 [19:10:46]MH_I2C_Read... [19:10:46]*** Stop cut motor [19:10:46]*** Cut end [19:10:46]Read from MH i2c: 01 07 00 [19:10:46]MH_I2C_Read... [19:10:46]Read from MH i2c: 01 07 00 6B 14 00 00 00 00 00 FF 0F 94 [19:10:46]process_action close_receipt done [19:10:46]requested_data is exist [19:10:46]produce_requested_data [19:10:46]requested_item fm.sn is exist - process it [19:10:46]wFMCommunicate request_size=4 [19:10:46]MH_SAM_APDU [19:10:46]CAPDU: 80 11 00 00 [19:10:46]Write to MH i2c: E2 08 00 6C 14 80 11 00 00 00 00 00 00 FA [19:10:46]Write i2c OK [19:10:46]MH_I2C_Read... [19:10:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:10:46]Read from MH i2c: E2 [19:10:46]MH_I2C_Read... [19:10:46]Read from MH i2c: E2 17 00 [19:10:46]MH_I2C_Read... [19:10:46]Read from MH i2c: E2 17 00 6C 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 50 [19:10:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [19:10:46]wFMCommunicate OK [19:10:46]requested_item fd.num is exist - process it [19:10:46]SAM_PROTO_GetFieldsCounters [19:10:46]wFMCommunicate request_size=4 [19:10:46]MH_SAM_APDU [19:10:46]CAPDU: 80 13 00 00 [19:10:46]Write to MH i2c: E2 08 00 6D 14 80 13 00 00 00 00 00 00 FD [19:10:46]Write i2c OK [19:10:46]MH_I2C_Read... [19:10:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:10:46]Read from MH i2c: E2 [19:10:46]MH_I2C_Read... [19:10:46]Read from MH i2c: E2 62 00 [19:10:46]MH_I2C_Read... [19:10:46]Read from MH i2c: E2 62 00 6D 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 29 09 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 78 00 00 00 5E 04 04 00 78 00 00 00 57 04 04 00 79 00 00 00 19 04 04 00 00 00 00 00 90 00 26 [19:10:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 29 09 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 78 00 00 00 5E 04 04 00 78 00 00 00 57 04 04 00 79 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:10:46]wFMCommunicate OK [19:10:46]SAM_PROTO_GetFieldsCounters done [19:10:46]requested_item shift.num is exist - process it [19:10:46]requested_item shift.opened is exist - process it [19:10:46]req_shift_opened [19:10:46]FM_GetShiftState [19:10:46]SAM_PROTO_GetShiftState [19:10:46]wFMCommunicate request_size=4 [19:10:46]MH_SAM_APDU [19:10:46]CAPDU: 80 13 01 00 [19:10:46]Write to MH i2c: E2 08 00 6E 14 80 13 01 00 00 00 00 00 FF [19:10:46]Write i2c OK [19:10:46]MH_I2C_Read... [19:10:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:10:46]Read from MH i2c: E2 [19:10:46]MH_I2C_Read... [19:10:46]Read from MH i2c: E2 0E 00 [19:10:46]MH_I2C_Read... [19:10:46]Read from MH i2c: E2 0E 00 6E 14 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 66 [19:10:46]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [19:10:46]wFMCommunicate OK [19:10:46]SAM_PROTO_GetShiftState done [19:10:46]FM_GetShiftState done [19:10:46]req_shift_opened done [19:10:46]requested_item shift.open_date is exist - process it [19:10:46]req_shift_open_date [19:10:46]req_shift_open_date done [19:10:46]produce_requested_data done [19:10:46]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67881,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [19:10:46]process_action_free close_receipt [19:10:46]json_value_free [19:10:46]json_value_free done [19:10:46]process_json_proto returns [19:10:46]Send response to host [19:10:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67881,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [19:10:46]free response buf [19:10:46]execute_script done [19:10:46]execute_script returns [19:10:46]free content buf [19:10:46]Sock 10.Close socket [19:10:46]Sock 10.Thread stoped [19:10:50]OFD Sender: No OFD packet to send [19:10:55]OFD Sender: No OFD packet to send [19:11:00]OFD Sender: No OFD packet to send [19:11:05]OFD Sender: No OFD packet to send [19:11:10]OFD Sender: No OFD packet to send [19:11:15]OFD Sender: No OFD packet to send [19:11:20]OFD Sender: No OFD packet to send [19:11:25]OFD Sender: No OFD packet to send [19:11:30]OFD Sender: No OFD packet to send [19:11:35]OFD Sender: No OFD packet to send [19:11:40]OFD Sender: No OFD packet to send [19:11:45]OFD Sender: No OFD packet to send [19:11:50]OFD Sender: No OFD packet to send [19:11:55]OFD Sender: No OFD packet to send [19:12:00]OFD Sender: No OFD packet to send [19:12:05]OFD Sender: No OFD packet to send [19:12:09]accept exits with 7 [19:12:09]New connection [19:12:09]New thread 3067059556 created [19:12:09]Thread 3067202916 joined [19:12:09]Waiting for new connection... [19:12:09] Sock 7.Parse request [19:12:09]Sock 7.Check first char [19:12:09]Sock 7.First char is OK [19:12:09]request: POST /json_proto HTTP/1.0 [19:12:09]Method: POST [19:12:09]URL: /json_proto [19:12:09]Method is POST - this is cgi request [19:12:09]url: /json_proto [19:12:09]query_string will be loaded in cgi processing [19:12:09]execute_cgi json_proto POST (null) [19:12:09]execute_cgi path=json_proto method=POST [19:12:09]POST find Content-Length [19:12:09]Host: 172.17.41.195:8080 [19:12:09]Content-Length: 800 [19:12:09]Content-Type: application/json [19:12:09] [19:12:09]POST finish read [19:12:09]Found Content-Length = 800 [19:12:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)508143", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 93.710, "sum" : 7000.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 7000.14 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:12:09]execute_script... [19:12:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)508143", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 93.710, "sum" : 7000.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 7000.14 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:12:09]POST & json_proto [19:12:09]process_json_proto [19:12:09]json parsed OK: [19:12:09]protocol is kg_v1.0 [19:12:09]action value=close_receipt [19:12:09]process_action close_receipt [19:12:09]cmd_close_receipt [19:12:09]MH_GetDate [19:12:09]Write to MH i2c: F0 00 00 6F 14 72 [19:12:09]Write i2c OK [19:12:09]MH_I2C_Read... [19:12:09]Read from MH i2c: F0 [19:12:09]MH_I2C_Read... [19:12:09]Read from MH i2c: F0 09 00 [19:12:09]MH_I2C_Read... [19:12:09]Read from MH i2c: F0 09 00 6F 14 00 8A FD 48 66 FC 21 6F 64 A0 [19:12:09]GetLastDocTimeStamp 1716059444 [19:12:09]current date 1716059530 [19:12:09]FM_GetShiftState [19:12:09]SAM_PROTO_GetShiftState [19:12:09]wFMCommunicate request_size=4 [19:12:09]MH_SAM_APDU [19:12:09]CAPDU: 80 13 01 00 [19:12:09]Write to MH i2c: E2 08 00 70 14 80 13 01 00 00 00 00 00 01 [19:12:09]Write i2c OK [19:12:09]MH_I2C_Read... [19:12:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:12:09]Read from MH i2c: E2 [19:12:09]MH_I2C_Read... [19:12:09]Read from MH i2c: E2 0E 00 [19:12:09]MH_I2C_Read... [19:12:09]Read from MH i2c: E2 0E 00 70 14 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 68 [19:12:09]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [19:12:09]wFMCommunicate OK [19:12:09]SAM_PROTO_GetShiftState done [19:12:09]FM_GetShiftState done [19:12:09]opened in 1715991483 [19:12:09]opened+sec_in_day 1716077883 [19:12:09]quantity*price = 700013 [19:12:09]sum+1 = 700015 [19:12:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 7000.14 НСП 1% : 61.95 НДС 12% : 743.38 Наличными: 0.00 Безнал.: 7000.14 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 121 18.05.2024 19:12 Смена: 359 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67882 ФПД: 62475608024144 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T191210&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67882&fm=62475608024144&tin=02508201610067®Number=0000000000091845&sum=700014 [19:12:10]StoreToDocumentArchive [19:12:10]shift 359 fd 67882 [19:12:10]save to /storage/0359/doc_00067882 [19:12:10]save last doc name /storage/0359/doc_00067882 to /storage/kkm_last_doc_name [19:12:10]save OK [19:12:10]Clear old archive folders... [19:12:10]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:12:10]tlvbuf is 009CF090 [19:12:10]SAM_PROTO_ClearQueue [19:12:10]wFMCommunicate request_size=4 [19:12:10]MH_SAM_APDU [19:12:10]CAPDU: 80 09 00 00 [19:12:10]Write to MH i2c: E2 08 00 7D 14 80 09 00 00 00 00 00 00 03 [19:12:10]Write i2c OK [19:12:10]MH_I2C_Read... [19:12:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:12:10]Read from MH i2c: E2 [19:12:10]MH_I2C_Read... [19:12:10]Read from MH i2c: E2 03 00 [19:12:10]MH_I2C_Read... [19:12:10]Read from MH i2c: E2 03 00 7D 14 00 90 00 05 [19:12:10]RAPDU: 90 00 [19:12:10]wFMCommunicate OK [19:12:10]SAM_PROTO_ClearQueue done [19:12:10]KKMCreateOFDPacket [19:12:10]OFDProtocolAddRootSTLVToBuf [19:12:10]FM_MakeSignedData [19:12:10]FM_MakeSignedData [19:12:10]SAM_PROTO_SignData [19:12:10]wFMCommunicate request_size=4 [19:12:10]MH_SAM_APDU [19:12:10]CAPDU: 80 0D 01 02 [19:12:10]Write to MH i2c: E2 08 00 7E 14 80 0D 01 02 00 00 00 00 0B [19:12:10]Write i2c OK [19:12:10]MH_I2C_Read... [19:12:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:12:10]Read from MH i2c: E2 [19:12:10]MH_I2C_Read... [19:12:10]Read from MH i2c: E2 03 00 [19:12:10]MH_I2C_Read... [19:12:10]Read from MH i2c: E2 03 00 7E 14 00 90 00 06 [19:12:10]RAPDU: 90 00 [19:12:10]wFMCommunicate OK [19:12:10]wFMCommunicate request_size=255 [19:12:10]MH_SAM_APDU [19:12:10]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 0E 6E 01 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 6E AE 0A 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6E AE 0A 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 33 18 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 62 22 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6E AE 0A 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 8A FD 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 2A 09 01 00 35 04 06 00 38 D2 3C 6C [19:12:10]Write to MH i2c: E2 02 01 7F 14 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 0E 6E 01 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 6E AE 0A 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6E AE 0A 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 33 18 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 62 22 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6E AE 0A 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 8A FD 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 2A 09 01 00 35 04 06 00 38 D2 3C 6C 00 00 73 [19:12:10]Write i2c OK [19:12:10]MH_I2C_Read... [19:12:10]OFD Sender: No OFD packet to send [19:12:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:12:10]Read from MH i2c: E2 [19:12:10]MH_I2C_Read... [19:12:10]Read from MH i2c: E2 03 00 [19:12:10]MH_I2C_Read... [19:12:10]Read from MH i2c: E2 03 00 7F 14 00 90 00 07 [19:12:10]RAPDU: 90 00 [19:12:10]wFMCommunicate OK [19:12:10]wFMCommunicate request_size=7 [19:12:10]MH_SAM_APDU [19:12:10]CAPDU: 80 0D 02 02 02 64 50 [19:12:10]Write to MH i2c: E2 0A 00 80 14 80 0D 02 02 02 00 64 50 00 00 C6 [19:12:10]Write i2c OK [19:12:10]MH_I2C_Read... [19:12:10]Read from MH i2c: E2 [19:12:10]MH_I2C_Read... [19:12:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:12:10]Read from MH i2c: E2 03 00 [19:12:10]MH_I2C_Read... [19:12:10]Read from MH i2c: E2 03 00 80 14 00 90 00 08 [19:12:10]RAPDU: 90 00 [19:12:10]wFMCommunicate OK [19:12:10]wFMCommunicate request_size=4 [19:12:10]MH_SAM_APDU [19:12:10]CAPDU: 80 0D 03 02 [19:12:10]Write to MH i2c: E2 08 00 81 14 80 0D 03 02 00 00 00 00 10 [19:12:10]Write i2c OK [19:12:10]MH_I2C_Read... [19:12:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:12:10]Read from MH i2c: E2 [19:12:10]MH_I2C_Read... [19:12:10]Read from MH i2c: E2 0B 00 [19:12:10]MH_I2C_Read... [19:12:10]Read from MH i2c: E2 0B 00 81 14 00 01 BC 5B 48 8C 3F C0 5C 90 00 58 [19:12:10]RAPDU: 01 BC 5B 48 8C 3F C0 5C 90 00 [19:12:10]wFMCommunicate OK [19:12:10]SAM_PROTO_SignData done [19:12:10]FM_MakeSignedData done [19:12:10]CreateOFDProtocolMessage [19:12:10]wFMCommunicate request_size=4 [19:12:10]MH_SAM_APDU [19:12:10]CAPDU: 80 11 00 00 [19:12:10]Write to MH i2c: E2 08 00 82 14 80 11 00 00 00 00 00 00 10 [19:12:10]Write i2c OK [19:12:10]MH_I2C_Read... [19:12:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:12:10]Read from MH i2c: E2 [19:12:10]MH_I2C_Read... [19:12:10]Read from MH i2c: E2 17 00 [19:12:10]MH_I2C_Read... [19:12:10]Read from MH i2c: E2 17 00 82 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 66 [19:12:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [19:12:10]wFMCommunicate OK [19:12:10]CreateOFDProtocolMessage done [19:12:10]OFDSenderStorePacket 67882 [19:12:10]StoreOFDPacket docnum=67882 [19:12:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 93 6E 04 01 A1 F2 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 0E 6E 01 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 6E AE 0A 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6E AE 0A 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 33 18 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 62 22 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6E AE 0A 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 8A FD 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 2A 09 01 00 35 04 06 00 38 D2 3C 6C 64 50 01 BC 5B 48 8C 3F C0 5C [19:12:10]CheckFolder [19:12:10]dirname=/storage/ofd_packets [19:12:10]CheckFolder done [19:12:10]ProducePacketName [19:12:10]name=ofd_packets/00067882 [19:12:10]NVStorageSaveData ofd_packets/00067882 [19:12:10]File name is /storage/ofd_packets/00067882 [19:12:10]Write 298 bytes [19:12:10]NVStorageSaveData done [19:12:10]OFDSenderStorePacket done [19:12:10]KKMCreateOFDPacket done [19:12:10]NVStorageSaveData kkm_last_timestamp [19:12:10]File name is /storage/kkm_last_timestamp [19:12:10]Write 4 bytes [19:12:10]NVStorageSaveData done [19:12:10]ExternCall_PrintAddStr [19:12:10]wPrintStart [19:12:10]Write to MH i2c: 01 00 00 83 14 97 [19:12:10]Write i2c OK [19:12:10]MH_I2C_Read... [19:12:10]Read from MH i2c: 01 [19:12:10]MH_I2C_Read... [19:12:10]Read from MH i2c: 01 07 00 [19:12:10]MH_I2C_Read... [19:12:10]Read from MH i2c: 01 07 00 83 14 00 00 00 00 00 FF 0F AC [19:12:10]RasterBufferAndPrint [19:12:10]line Счет N : (1)508143 [19:12:10]line ИНН: 02508201610067 [19:12:10]line Контрольно-Кассовый Чек [19:12:10]line ПРОДАЖА [19:12:10]line ТРК (МРК, ГНК) : 31 [19:12:10]line Товар: 2710194210 [19:12:10]line ДТ-К-5 [19:12:10]line 93.710 * 74.70 [19:12:10]line = 7000.14 [19:12:10]line НДС 12% НСП 1% [19:12:10]line > о реализуемом товаре [19:12:10]line ИТОГО: 7000.14 [19:12:10]line НСП 1% : 61.95 [19:12:10]line НДС 12% : 743.38 [19:12:10]line Наличными: 0.00 [19:12:10]line Безнал.: 7000.14 [19:12:10]line Место: АЗС № 91 "Партнер Нефть" [19:12:10]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [19:12:10]line СНО: Общий режим [19:12:10]line Чек 121 18.05.2024 19:12 [19:12:10]line Смена: 359 ФФД: 1.0 [19:12:10]line ЗНМ: 0300000119 [19:12:10]line РНМ: 0000000000091845 [19:12:10]line Версия ККМ: 001 [19:12:10]line Платежная система: O! деньги [19:12:10]line ФМ: 0000000000871829 [19:12:10]line ФД: 67882 [19:12:10]line ФПД: 62475608024144 [19:12:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T191210&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67882&fm=62475608024144&tin=02508201610067®Number=0000000000091845&sum=700014 [19:12:10]written 0, free lines is 4095 [19:12:10]OFD Sender: Processing packet 67882 [packets to send 35, broken 34] [19:12:10]ProducePacketName [19:12:10]name=ofd_packets/00067882 [19:12:10]OFD Sender: To server: pG, [19:12:10]CommunicateWithHost lk.salyk.kg:30040 [19:12:10]ConnectInit lk.salyk.kg [19:12:11]Connected sock=9 [19:12:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 93 6E 04 01 A1 F2 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 0E 6E 01 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 6E AE 0A 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6E AE 0A 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 33 18 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 62 22 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6E AE 0A 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 8A FD 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 2A 09 01 00 35 04 06 00 38 D2 3C 6C 64 50 01 BC 5B 48 8C 3F C0 5C [19:12:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 B9 60 47 00 E2 26 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 2A 09 01 00 F4 03 04 00 5F A5 48 66 B6 04 01 00 00 07 00 52 60 80 B5 C6 84 [19:12:11]CommunicateWithHost err = 0 [19:12:11]CheckOFDResponse [19:12:11]1017 (14) - 77093643461234 [19:12:11]1041 (16) - 0000000000871829 [19:12:11]1040 (4) - 67882 [19:12:11]1012 (4) - 18.05.2024 12:55 [19:12:11]1206 (1) - 0 [19:12:11]OFD Sender: Remove packet 67882 [19:12:11]ProducePacketName [19:12:11]name=ofd_packets/00067882 [19:12:11]NVStorageDeleteData [19:12:11]Write to MH i2c: 01 00 00 AC 14 C0 [19:12:11]Write i2c OK [19:12:11]MH_I2C_Read... [19:12:11]Read from MH i2c: 01 [19:12:11]MH_I2C_Read... [19:12:11]Read from MH i2c: 01 07 00 [19:12:11]MH_I2C_Read... [19:12:11]Read from MH i2c: 01 07 00 AC 14 00 00 00 00 00 E4 0C B7 [19:12:11]RasterBufferAndPrint [19:12:11]line [19:12:11]line [19:12:11]line [19:12:11]line [19:12:11]line [19:12:11]written 0, free lines is 3305 [19:12:11]MH_Cut [19:12:11]Write to MH i2c: D1 01 00 B3 14 01 99 [19:12:11]Write i2c OK [19:12:11]MH_I2C_Read... [19:12:11]Read from MH i2c: D1 [19:12:11]MH_I2C_Read... [19:12:11]Read from MH i2c: D1 01 00 [19:12:11]MH_I2C_Read... [19:12:11]Read from MH i2c: D1 01 00 B3 14 00 98 [19:12:11]Write to MH i2c: 01 00 00 B4 14 C8 [19:12:11]Write i2c OK [19:12:11]MH_I2C_Read... [19:12:11]OFD Sender: No OFD packet to send [19:12:12]*** Cut start [19:12:12]*** Purtial cut [19:12:12]*** Stage 1: CUTSNS_PIN = 1 [19:12:12]Read from MH i2c: 01 [19:12:12]MH_I2C_Read... [19:12:12]*** Stop cut motor [19:12:12]*** Cut end [19:12:12]Read from MH i2c: 01 07 00 [19:12:12]MH_I2C_Read... [19:12:12]Read from MH i2c: 01 07 00 B4 14 00 00 00 00 00 FF 0F DD [19:12:12]process_action close_receipt done [19:12:12]requested_data is exist [19:12:12]produce_requested_data [19:12:12]requested_item fm.sn is exist - process it [19:12:12]wFMCommunicate request_size=4 [19:12:12]MH_SAM_APDU [19:12:12]CAPDU: 80 11 00 00 [19:12:12]Write to MH i2c: E2 08 00 B5 14 80 11 00 00 00 00 00 00 43 [19:12:12]Write i2c OK [19:12:12]MH_I2C_Read... [19:12:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:12:12]Read from MH i2c: E2 [19:12:12]MH_I2C_Read... [19:12:12]Read from MH i2c: E2 17 00 [19:12:12]MH_I2C_Read... [19:12:12]Read from MH i2c: E2 17 00 B5 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 99 [19:12:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [19:12:12]wFMCommunicate OK [19:12:12]requested_item fd.num is exist - process it [19:12:12]SAM_PROTO_GetFieldsCounters [19:12:12]wFMCommunicate request_size=4 [19:12:12]MH_SAM_APDU [19:12:12]CAPDU: 80 13 00 00 [19:12:12]Write to MH i2c: E2 08 00 B6 14 80 13 00 00 00 00 00 00 46 [19:12:12]Write i2c OK [19:12:12]MH_I2C_Read... [19:12:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:12:12]Read from MH i2c: E2 [19:12:12]MH_I2C_Read... [19:12:12]Read from MH i2c: E2 62 00 [19:12:12]MH_I2C_Read... [19:12:12]Read from MH i2c: E2 62 00 B6 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 2A 09 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 79 00 00 00 5E 04 04 00 79 00 00 00 57 04 04 00 7A 00 00 00 19 04 04 00 00 00 00 00 90 00 73 [19:12:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 2A 09 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 79 00 00 00 5E 04 04 00 79 00 00 00 57 04 04 00 7A 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:12:12]wFMCommunicate OK [19:12:12]SAM_PROTO_GetFieldsCounters done [19:12:12]requested_item shift.num is exist - process it [19:12:12]requested_item shift.opened is exist - process it [19:12:12]req_shift_opened [19:12:12]FM_GetShiftState [19:12:12]SAM_PROTO_GetShiftState [19:12:12]wFMCommunicate request_size=4 [19:12:12]MH_SAM_APDU [19:12:12]CAPDU: 80 13 01 00 [19:12:12]Write to MH i2c: E2 08 00 B7 14 80 13 01 00 00 00 00 00 48 [19:12:12]Write i2c OK [19:12:12]MH_I2C_Read... [19:12:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:12:12]Read from MH i2c: E2 [19:12:12]MH_I2C_Read... [19:12:12]Read from MH i2c: E2 0E 00 [19:12:12]MH_I2C_Read... [19:12:12]Read from MH i2c: E2 0E 00 B7 14 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 AF [19:12:12]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [19:12:12]wFMCommunicate OK [19:12:12]SAM_PROTO_GetShiftState done [19:12:12]FM_GetShiftState done [19:12:12]req_shift_opened done [19:12:12]requested_item shift.open_date is exist - process it [19:12:12]req_shift_open_date [19:12:12]req_shift_open_date done [19:12:12]produce_requested_data done [19:12:12]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67882,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [19:12:12]process_action_free close_receipt [19:12:12]json_value_free [19:12:12]json_value_free done [19:12:12]process_json_proto returns [19:12:12]Send response to host [19:12:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67882,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [19:12:12]free response buf [19:12:12]execute_script done [19:12:12]execute_script returns [19:12:12]free content buf [19:12:12]Sock 7.Close socket [19:12:12]Sock 7.Thread stoped [19:12:16]OFD Sender: No OFD packet to send [19:12:21]OFD Sender: No OFD packet to send [19:12:26]OFD Sender: No OFD packet to send [19:12:31]OFD Sender: No OFD packet to send [19:12:36]OFD Sender: No OFD packet to send [19:12:41]OFD Sender: No OFD packet to send [19:12:44]accept exits with 10 [19:12:44]New connection [19:12:44]New thread 3067202916 created [19:12:44]Thread 3067059556 joined [19:12:44]Waiting for new connection... [19:12:44] Sock 10.Parse request [19:12:44]Sock 10.Check first char [19:12:44]Sock 10.First char is OK [19:12:44]request: POST /json_proto HTTP/1.0 [19:12:44]Method: POST [19:12:44]URL: /json_proto [19:12:44]Method is POST - this is cgi request [19:12:44]url: /json_proto [19:12:44]query_string will be loaded in cgi processing [19:12:44]execute_cgi json_proto POST (null) [19:12:44]execute_cgi path=json_proto method=POST [19:12:44]POST find Content-Length [19:12:44]Host: 172.17.41.195:8080 [19:12:44]Content-Length: 801 [19:12:44]Content-Type: application/json [19:12:44] [19:12:44]POST finish read [19:12:44]Found Content-Length = 801 [19:12:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)508146", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.80, "quantity" : 10.480, "sum" : 700.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 700.06 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:12:44]execute_script... [19:12:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)508146", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.80, "quantity" : 10.480, "sum" : 700.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 700.06 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:12:44]POST & json_proto [19:12:44]process_json_proto [19:12:44]json parsed OK: [19:12:44]protocol is kg_v1.0 [19:12:44]action value=close_receipt [19:12:44]process_action close_receipt [19:12:44]cmd_close_receipt [19:12:44]MH_GetDate [19:12:44]Write to MH i2c: F0 00 00 B8 14 BB [19:12:44]Write i2c OK [19:12:44]MH_I2C_Read... [19:12:44]Read from MH i2c: F0 [19:12:44]MH_I2C_Read... [19:12:44]Read from MH i2c: F0 09 00 [19:12:44]MH_I2C_Read... [19:12:44]Read from MH i2c: F0 09 00 B8 14 00 AE FD 48 66 FC 21 6F 64 0D [19:12:44]GetLastDocTimeStamp 1716059530 [19:12:44]current date 1716059566 [19:12:44]FM_GetShiftState [19:12:44]SAM_PROTO_GetShiftState [19:12:44]wFMCommunicate request_size=4 [19:12:44]MH_SAM_APDU [19:12:44]CAPDU: 80 13 01 00 [19:12:44]Write to MH i2c: E2 08 00 B9 14 80 13 01 00 00 00 00 00 4A [19:12:44]Write i2c OK [19:12:44]MH_I2C_Read... [19:12:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:12:44]Read from MH i2c: E2 [19:12:44]MH_I2C_Read... [19:12:44]Read from MH i2c: E2 0E 00 [19:12:44]MH_I2C_Read... [19:12:44]Read from MH i2c: E2 0E 00 B9 14 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 B1 [19:12:44]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [19:12:44]wFMCommunicate OK [19:12:44]SAM_PROTO_GetShiftState done [19:12:44]FM_GetShiftState done [19:12:44]opened in 1715991483 [19:12:44]opened+sec_in_day 1716077883 [19:12:44]quantity*price = 70006 [19:12:44]sum+1 = 70007 [19:12:44]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 700.06 НСП 1% : 6.19 НДС 12% : 74.34 Наличными: 0.00 Безнал.: 700.06 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 122 18.05.2024 19:12 Смена: 359 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67883 ФПД: 110149382114849 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T191246&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67883&fm=110149382114849&tin=02508201610067®Number=0000000000091845&sum=70006 [19:12:45]StoreToDocumentArchive [19:12:45]shift 359 fd 67883 [19:12:45]save to /storage/0359/doc_00067883 [19:12:45]save last doc name /storage/0359/doc_00067883 to /storage/kkm_last_doc_name [19:12:45]save OK [19:12:45]Clear old archive folders... [19:12:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:12:45]tlvbuf is 00A038C0 [19:12:45]SAM_PROTO_ClearQueue [19:12:45]wFMCommunicate request_size=4 [19:12:45]MH_SAM_APDU [19:12:45]CAPDU: 80 09 00 00 [19:12:45]Write to MH i2c: E2 08 00 C6 14 80 09 00 00 00 00 00 00 4C [19:12:45]Write i2c OK [19:12:45]MH_I2C_Read... [19:12:45]Read from MH i2c: E2 [19:12:45]MH_I2C_Read... [19:12:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:12:45]Read from MH i2c: E2 03 00 [19:12:45]MH_I2C_Read... [19:12:45]Read from MH i2c: E2 03 00 C6 14 00 90 00 4E [19:12:45]RAPDU: 90 00 [19:12:45]wFMCommunicate OK [19:12:45]SAM_PROTO_ClearQueue done [19:12:45]KKMCreateOFDPacket [19:12:45]OFDProtocolAddRootSTLVToBuf [19:12:45]FM_MakeSignedData [19:12:45]FM_MakeSignedData [19:12:45]SAM_PROTO_SignData [19:12:45]wFMCommunicate request_size=4 [19:12:45]MH_SAM_APDU [19:12:45]CAPDU: 80 0D 01 02 [19:12:45]Write to MH i2c: E2 08 00 C7 14 80 0D 01 02 00 00 00 00 54 [19:12:45]Write i2c OK [19:12:45]MH_I2C_Read... [19:12:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:12:45]Read from MH i2c: E2 [19:12:45]MH_I2C_Read... [19:12:45]Read from MH i2c: E2 03 00 [19:12:45]MH_I2C_Read... [19:12:45]Read from MH i2c: E2 03 00 C7 14 00 90 00 4F [19:12:45]RAPDU: 90 00 [19:12:45]wFMCommunicate OK [19:12:45]wFMCommunicate request_size=255 [19:12:45]MH_SAM_APDU [19:12:45]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 28 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 76 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 76 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 76 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 AE FD 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 2B 09 01 00 35 04 06 00 64 [19:12:45]Write to MH i2c: E2 02 01 C8 14 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 28 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 76 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 76 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 76 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 AE FD 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 2B 09 01 00 35 04 06 00 64 00 00 AD [19:12:45]Write i2c OK [19:12:45]MH_I2C_Read... [19:12:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:12:46]Read from MH i2c: E2 [19:12:46]MH_I2C_Read... [19:12:46]Read from MH i2c: E2 03 00 [19:12:46]MH_I2C_Read... [19:12:46]Read from MH i2c: E2 03 00 C8 14 00 90 00 50 [19:12:46]RAPDU: 90 00 [19:12:46]wFMCommunicate OK [19:12:46]wFMCommunicate request_size=10 [19:12:46]MH_SAM_APDU [19:12:46]CAPDU: 80 0D 02 02 05 2E 26 CB 0E 21 [19:12:46]Write to MH i2c: E2 0D 00 C9 14 80 0D 02 02 05 00 2E 26 CB 0E 21 00 00 AF [19:12:46]Write i2c OK [19:12:46]MH_I2C_Read... [19:12:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:12:46]Read from MH i2c: E2 [19:12:46]MH_I2C_Read... [19:12:46]Read from MH i2c: E2 03 00 [19:12:46]MH_I2C_Read... [19:12:46]Read from MH i2c: E2 03 00 C9 14 00 90 00 51 [19:12:46]RAPDU: 90 00 [19:12:46]wFMCommunicate OK [19:12:46]wFMCommunicate request_size=4 [19:12:46]MH_SAM_APDU [19:12:46]CAPDU: 80 0D 03 02 [19:12:46]Write to MH i2c: E2 08 00 CA 14 80 0D 03 02 00 00 00 00 59 [19:12:46]Write i2c OK [19:12:46]MH_I2C_Read... [19:12:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:12:46]Read from MH i2c: E2 [19:12:46]MH_I2C_Read... [19:12:46]Read from MH i2c: E2 0B 00 [19:12:46]MH_I2C_Read... [19:12:46]Read from MH i2c: E2 0B 00 CA 14 00 B4 19 C8 32 9D 24 D4 99 90 00 4F [19:12:46]RAPDU: B4 19 C8 32 9D 24 D4 99 90 00 [19:12:46]wFMCommunicate OK [19:12:46]SAM_PROTO_SignData done [19:12:46]FM_MakeSignedData done [19:12:46]CreateOFDProtocolMessage [19:12:46]wFMCommunicate request_size=4 [19:12:46]MH_SAM_APDU [19:12:46]CAPDU: 80 11 00 00 [19:12:46]Write to MH i2c: E2 08 00 CB 14 80 11 00 00 00 00 00 00 59 [19:12:46]Write i2c OK [19:12:46]MH_I2C_Read... [19:12:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:12:46]Read from MH i2c: E2 [19:12:46]MH_I2C_Read... [19:12:46]Read from MH i2c: E2 17 00 [19:12:46]MH_I2C_Read... [19:12:46]Read from MH i2c: E2 17 00 CB 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 AF [19:12:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [19:12:46]wFMCommunicate OK [19:12:46]CreateOFDProtocolMessage done [19:12:46]OFDSenderStorePacket 67883 [19:12:46]StoreOFDPacket docnum=67883 [19:12:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 CF AB 07 01 58 FA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 28 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 76 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 76 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 76 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 AE FD 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 2B 09 01 00 35 04 06 00 64 2E 26 CB 0E 21 B4 19 C8 32 9D 24 D4 99 [19:12:46]CheckFolder [19:12:46]dirname=/storage/ofd_packets [19:12:46]CheckFolder done [19:12:46]ProducePacketName [19:12:46]name=ofd_packets/00067883 [19:12:46]NVStorageSaveData ofd_packets/00067883 [19:12:46]File name is /storage/ofd_packets/00067883 [19:12:46]Write 301 bytes [19:12:46]NVStorageSaveData done [19:12:46]OFDSenderStorePacket done [19:12:46]KKMCreateOFDPacket done [19:12:46]NVStorageSaveData kkm_last_timestamp [19:12:46]File name is /storage/kkm_last_timestamp [19:12:46]Write 4 bytes [19:12:46]NVStorageSaveData done [19:12:46]ExternCall_PrintAddStr [19:12:46]wPrintStart [19:12:46]Write to MH i2c: 01 00 00 CC 14 E0 [19:12:46]Write i2c OK [19:12:46]MH_I2C_Read... [19:12:46]Read from MH i2c: 01 [19:12:46]MH_I2C_Read... [19:12:46]Read from MH i2c: 01 07 00 [19:12:46]MH_I2C_Read... [19:12:46]Read from MH i2c: 01 07 00 CC 14 00 00 00 00 00 FF 0F F5 [19:12:46]RasterBufferAndPrint [19:12:46]line Счет N : (1)508146 [19:12:46]line ИНН: 02508201610067 [19:12:46]line Контрольно-Кассовый Чек [19:12:46]line ПРОДАЖА [19:12:46]line ТРК (МРК, ГНК) : 43 [19:12:46]line Товар: 2710124130 [19:12:46]line Аи-92-К-5 [19:12:46]line 10.480 * 66.80 [19:12:46]line = 700.06 [19:12:46]line НДС 12% НСП 1% [19:12:46]line > о реализуемом товаре [19:12:46]line ИТОГО: 700.06 [19:12:46]line НСП 1% : 6.19 [19:12:46]line НДС 12% : 74.34 [19:12:46]line Наличными: 0.00 [19:12:46]line Безнал.: 700.06 [19:12:46]line Место: АЗС № 91 "Партнер Нефть" [19:12:46]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [19:12:46]line СНО: Общий режим [19:12:46]line Чек 122 18.05.2024 19:12 [19:12:46]line Смена: 359 ФФД: 1.0 [19:12:46]line ЗНМ: 0300000119 [19:12:46]line РНМ: 0000000000091845 [19:12:46]line Версия ККМ: 001 [19:12:46]line Платежная система: O! деньги [19:12:46]line ФМ: 0000000000871829 [19:12:46]line ФД: 67883 [19:12:46]line ФПД: 110149382114849 [19:12:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T191246&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67883&fm=110149382114849&tin=02508201610067®Number=0000000000091845&sum=70006 [19:12:46]written 0, free lines is 4095 [19:12:46]OFD Sender: Processing packet 67883 [packets to send 35, broken 34] [19:12:46]ProducePacketName [19:12:46]name=ofd_packets/00067883 [19:12:46]OFD Sender: To server: pG, [19:12:46]CommunicateWithHost lk.salyk.kg:30040 [19:12:46]ConnectInit lk.salyk.kg [19:12:46]Connected sock=9 [19:12:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 CF AB 07 01 58 FA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 28 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 76 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 76 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 76 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 AE FD 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 2B 09 01 00 35 04 06 00 64 2E 26 CB 0E 21 B4 19 C8 32 9D 24 D4 99 [19:12:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 1E C8 47 00 56 DA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 2B 09 01 00 F4 03 04 00 82 A5 48 66 B6 04 01 00 00 D4 56 11 B6 4B E9 B5 DD [19:12:46]CommunicateWithHost err = 0 [19:12:46]CheckOFDResponse [19:12:46]1017 (14) - 77093643461234 [19:12:46]1041 (16) - 0000000000871829 [19:12:46]1040 (4) - 67883 [19:12:46]1012 (4) - 18.05.2024 12:56 [19:12:46]1206 (1) - 0 [19:12:46]OFD Sender: Remove packet 67883 [19:12:46]ProducePacketName [19:12:46]name=ofd_packets/00067883 [19:12:46]NVStorageDeleteData [19:12:46]Write to MH i2c: 01 00 00 F5 14 09 [19:12:46]Write i2c OK [19:12:46]MH_I2C_Read... [19:12:46]Read from MH i2c: 01 [19:12:46]MH_I2C_Read... [19:12:46]Read from MH i2c: 01 07 00 [19:12:46]MH_I2C_Read... [19:12:46]Read from MH i2c: 01 07 00 F5 14 00 00 00 00 00 E6 0C 02 [19:12:46]RasterBufferAndPrint [19:12:46]line [19:12:46]line [19:12:46]line [19:12:46]line [19:12:46]line [19:12:46]written 0, free lines is 3309 [19:12:46]MH_Cut [19:12:46]Write to MH i2c: D1 01 00 FC 14 01 E2 [19:12:46]Write i2c OK [19:12:46]MH_I2C_Read... [19:12:46]Read from MH i2c: D1 [19:12:46]MH_I2C_Read... [19:12:46]Read from MH i2c: D1 01 00 [19:12:46]MH_I2C_Read... [19:12:46]Read from MH i2c: D1 01 00 FC 14 00 E1 [19:12:46]Write to MH i2c: 01 00 00 FD 14 11 [19:12:46]Write i2c OK [19:12:46]MH_I2C_Read... [19:12:47]OFD Sender: No OFD packet to send [19:12:47]*** Cut start [19:12:47]*** Purtial cut [19:12:47]*** CUTSNS_PIN = 0 [19:12:47]*** Stage 1: CUTSNS_PIN = 1 [19:12:49]Read from MH i2c: 01 [19:12:49]MH_I2C_Read... [19:12:49]*** Stop cut motor [19:12:49]*** Cut end [19:12:49]Read from MH i2c: 01 07 00 [19:12:49]MH_I2C_Read... [19:12:49]Read from MH i2c: 01 07 00 FD 14 00 00 00 00 00 FF 0F 26 [19:12:49]process_action close_receipt done [19:12:49]requested_data is exist [19:12:49]produce_requested_data [19:12:49]requested_item fm.sn is exist - process it [19:12:49]wFMCommunicate request_size=4 [19:12:49]MH_SAM_APDU [19:12:49]CAPDU: 80 11 00 00 [19:12:49]Write to MH i2c: E2 08 00 FE 14 80 11 00 00 00 00 00 00 8C [19:12:49]Write i2c OK [19:12:49]MH_I2C_Read... [19:12:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:12:49]Read from MH i2c: E2 [19:12:49]MH_I2C_Read... [19:12:49]Read from MH i2c: E2 17 00 [19:12:49]MH_I2C_Read... [19:12:49]Read from MH i2c: E2 17 00 FE 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 E2 [19:12:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [19:12:49]wFMCommunicate OK [19:12:49]requested_item fd.num is exist - process it [19:12:49]SAM_PROTO_GetFieldsCounters [19:12:49]wFMCommunicate request_size=4 [19:12:49]MH_SAM_APDU [19:12:49]CAPDU: 80 13 00 00 [19:12:49]Write to MH i2c: E2 08 00 FF 14 80 13 00 00 00 00 00 00 8F [19:12:49]Write i2c OK [19:12:49]MH_I2C_Read... [19:12:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:12:49]Read from MH i2c: E2 [19:12:49]MH_I2C_Read... [19:12:49]Read from MH i2c: E2 62 00 [19:12:49]MH_I2C_Read... [19:12:49]Read from MH i2c: E2 62 00 FF 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 2B 09 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 7A 00 00 00 5E 04 04 00 7A 00 00 00 57 04 04 00 7B 00 00 00 19 04 04 00 00 00 00 00 90 00 C0 [19:12:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 2B 09 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 7A 00 00 00 5E 04 04 00 7A 00 00 00 57 04 04 00 7B 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:12:49]wFMCommunicate OK [19:12:49]SAM_PROTO_GetFieldsCounters done [19:12:49]requested_item shift.num is exist - process it [19:12:49]requested_item shift.opened is exist - process it [19:12:49]req_shift_opened [19:12:49]FM_GetShiftState [19:12:49]SAM_PROTO_GetShiftState [19:12:49]wFMCommunicate request_size=4 [19:12:49]MH_SAM_APDU [19:12:49]CAPDU: 80 13 01 00 [19:12:49]Write to MH i2c: E2 08 00 00 15 80 13 01 00 00 00 00 00 92 [19:12:49]Write i2c OK [19:12:49]MH_I2C_Read... [19:12:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:12:49]Read from MH i2c: E2 [19:12:49]MH_I2C_Read... [19:12:49]Read from MH i2c: E2 0E 00 [19:12:49]MH_I2C_Read... [19:12:49]Read from MH i2c: E2 0E 00 00 15 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 F9 [19:12:49]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [19:12:49]wFMCommunicate OK [19:12:49]SAM_PROTO_GetShiftState done [19:12:49]FM_GetShiftState done [19:12:49]req_shift_opened done [19:12:49]requested_item shift.open_date is exist - process it [19:12:49]req_shift_open_date [19:12:49]req_shift_open_date done [19:12:49]produce_requested_data done [19:12:49]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67883,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [19:12:49]process_action_free close_receipt [19:12:49]json_value_free [19:12:49]json_value_free done [19:12:49]process_json_proto returns [19:12:49]Send response to host [19:12:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67883,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [19:12:49]free response buf [19:12:49]execute_script done [19:12:49]execute_script returns [19:12:49]free content buf [19:12:49]Sock 10.Close socket [19:12:49]Sock 10.Thread stoped [19:12:52]OFD Sender: No OFD packet to send [19:12:57]OFD Sender: No OFD packet to send [19:13:02]OFD Sender: No OFD packet to send [19:13:07]OFD Sender: No OFD packet to send [19:13:12]OFD Sender: No OFD packet to send [19:13:17]OFD Sender: No OFD packet to send [19:13:22]OFD Sender: No OFD packet to send [19:13:27]OFD Sender: No OFD packet to send [19:13:32]OFD Sender: No OFD packet to send [19:13:37]OFD Sender: No OFD packet to send [19:13:42]OFD Sender: No OFD packet to send [19:13:47]OFD Sender: No OFD packet to send [19:13:52]OFD Sender: No OFD packet to send [19:13:57]OFD Sender: No OFD packet to send [19:14:02]OFD Sender: No OFD packet to send [19:14:07]OFD Sender: No OFD packet to send [19:14:12]OFD Sender: No OFD packet to send [19:14:17]OFD Sender: No OFD packet to send [19:14:22]OFD Sender: No OFD packet to send [19:14:27]OFD Sender: No OFD packet to send [19:14:32]OFD Sender: No OFD packet to send [19:14:37]OFD Sender: No OFD packet to send [19:14:42]OFD Sender: No OFD packet to send [19:14:47]OFD Sender: No OFD packet to send [19:14:52]OFD Sender: No OFD packet to send [19:14:57]OFD Sender: No OFD packet to send [19:15:02]OFD Sender: No OFD packet to send [19:15:07]OFD Sender: No OFD packet to send [19:15:12]OFD Sender: No OFD packet to send [19:15:17]OFD Sender: No OFD packet to send [19:15:22]OFD Sender: No OFD packet to send [19:15:27]OFD Sender: No OFD packet to send [19:15:31]accept exits with 7 [19:15:31]New connection [19:15:31]New thread 3067059556 created [19:15:31]Thread 3067202916 joined [19:15:31]Waiting for new connection... [19:15:31] Sock 7.Parse request [19:15:31]Sock 7.Check first char [19:15:31]Sock 7.First char is OK [19:15:31]request: POST /json_proto HTTP/1.0 [19:15:31]Method: POST [19:15:31]URL: /json_proto [19:15:31]Method is POST - this is cgi request [19:15:31]url: /json_proto [19:15:31]query_string will be loaded in cgi processing [19:15:31]execute_cgi json_proto POST (null) [19:15:31]execute_cgi path=json_proto method=POST [19:15:31]POST find Content-Length [19:15:31]Host: 172.17.41.195:8080 [19:15:31]Content-Length: 677 [19:15:31]Content-Type: application/json [19:15:31] [19:15:31]POST finish read [19:15:31]Found Content-Length = 677 [19:15:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)508147", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.80, "quantity" : 5.990, "sum" : 400.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:15:31]execute_script... [19:15:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)508147", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.80, "quantity" : 5.990, "sum" : 400.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:15:31]POST & json_proto [19:15:31]process_json_proto [19:15:31]json parsed OK: [19:15:31]protocol is kg_v1.0 [19:15:31]action value=close_receipt [19:15:31]process_action close_receipt [19:15:31]cmd_close_receipt [19:15:31]MH_GetDate [19:15:31]Write to MH i2c: F0 00 00 01 15 05 [19:15:31]Write i2c OK [19:15:31]MH_I2C_Read... [19:15:31]Read from MH i2c: F0 [19:15:31]MH_I2C_Read... [19:15:31]Read from MH i2c: F0 09 00 [19:15:31]MH_I2C_Read... [19:15:31]Read from MH i2c: F0 09 00 01 15 00 55 FE 48 66 FC 21 6F 64 FF [19:15:31]GetLastDocTimeStamp 1716059566 [19:15:31]current date 1716059733 [19:15:31]FM_GetShiftState [19:15:31]SAM_PROTO_GetShiftState [19:15:31]wFMCommunicate request_size=4 [19:15:31]MH_SAM_APDU [19:15:31]CAPDU: 80 13 01 00 [19:15:31]Write to MH i2c: E2 08 00 02 15 80 13 01 00 00 00 00 00 94 [19:15:31]Write i2c OK [19:15:31]MH_I2C_Read... [19:15:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:15:31]Read from MH i2c: E2 [19:15:31]MH_I2C_Read... [19:15:31]Read from MH i2c: E2 0E 00 [19:15:31]MH_I2C_Read... [19:15:31]Read from MH i2c: E2 0E 00 02 15 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 FB [19:15:31]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [19:15:31]wFMCommunicate OK [19:15:31]SAM_PROTO_GetShiftState done [19:15:31]FM_GetShiftState done [19:15:31]opened in 1715991483 [19:15:31]opened+sec_in_day 1716077883 [19:15:31]quantity*price = 40013 [19:15:31]sum+1 = 40014 [19:15:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.49 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 123 18.05.2024 19:15 Смена: 359 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67884 ФПД: 196785401135278 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T191533&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67884&fm=196785401135278&tin=02508201610067®Number=0000000000091845&sum=40000 [19:15:33]StoreToDocumentArchive [19:15:33]shift 359 fd 67884 [19:15:33]save to /storage/0359/doc_00067884 [19:15:33]save last doc name /storage/0359/doc_00067884 to /storage/kkm_last_doc_name [19:15:33]save OK [19:15:33]Clear old archive folders... [19:15:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:15:33]tlvbuf is 009D0320 [19:15:33]SAM_PROTO_ClearQueue [19:15:33]wFMCommunicate request_size=4 [19:15:33]MH_SAM_APDU [19:15:33]CAPDU: 80 09 00 00 [19:15:33]Write to MH i2c: E2 08 00 0F 15 80 09 00 00 00 00 00 00 96 [19:15:33]Write i2c OK [19:15:33]MH_I2C_Read... [19:15:33]Read from MH i2c: E2 [19:15:33]MH_I2C_Read... [19:15:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:15:33]Read from MH i2c: E2 03 00 [19:15:33]MH_I2C_Read... [19:15:33]Read from MH i2c: E2 03 00 0F 15 00 90 00 98 [19:15:33]RAPDU: 90 00 [19:15:33]wFMCommunicate OK [19:15:33]SAM_PROTO_ClearQueue done [19:15:33]KKMCreateOFDPacket [19:15:33]OFDProtocolAddRootSTLVToBuf [19:15:33]FM_MakeSignedData [19:15:33]FM_MakeSignedData [19:15:33]SAM_PROTO_SignData [19:15:33]wFMCommunicate request_size=4 [19:15:33]MH_SAM_APDU [19:15:33]CAPDU: 80 0D 01 02 [19:15:33]Write to MH i2c: E2 08 00 10 15 80 0D 01 02 00 00 00 00 9E [19:15:33]Write i2c OK [19:15:33]MH_I2C_Read... [19:15:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:15:33]Read from MH i2c: E2 [19:15:33]MH_I2C_Read... [19:15:33]Read from MH i2c: E2 03 00 [19:15:33]MH_I2C_Read... [19:15:33]Read from MH i2c: E2 03 00 10 15 00 90 00 99 [19:15:33]RAPDU: 90 00 [19:15:33]wFMCommunicate OK [19:15:33]wFMCommunicate request_size=255 [19:15:33]MH_SAM_APDU [19:15:33]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 17 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 4D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 99 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 55 FE 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 2C 09 01 00 35 04 06 00 B2 [19:15:33]Write to MH i2c: E2 02 01 11 15 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 17 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 4D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 99 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 55 FE 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 2C 09 01 00 35 04 06 00 B2 00 00 D5 [19:15:33]Write i2c OK [19:15:33]MH_I2C_Read... [19:15:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:15:33]Read from MH i2c: E2 [19:15:33]MH_I2C_Read... [19:15:33]Read from MH i2c: E2 03 00 [19:15:33]MH_I2C_Read... [19:15:33]Read from MH i2c: E2 03 00 11 15 00 90 00 9A [19:15:33]RAPDU: 90 00 [19:15:33]wFMCommunicate OK [19:15:33]wFMCommunicate request_size=10 [19:15:33]MH_SAM_APDU [19:15:33]CAPDU: 80 0D 02 02 05 F9 AB EE 80 AE [19:15:33]Write to MH i2c: E2 0D 00 12 15 80 0D 02 02 05 00 F9 AB EE 80 AE 00 00 6B [19:15:33]Write i2c OK [19:15:33]MH_I2C_Read... [19:15:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:15:33]Read from MH i2c: E2 [19:15:33]MH_I2C_Read... [19:15:33]Read from MH i2c: E2 03 00 [19:15:33]MH_I2C_Read... [19:15:33]Read from MH i2c: E2 03 00 12 15 00 90 00 9B [19:15:33]RAPDU: 90 00 [19:15:33]wFMCommunicate OK [19:15:33]wFMCommunicate request_size=4 [19:15:33]MH_SAM_APDU [19:15:33]CAPDU: 80 0D 03 02 [19:15:33]Write to MH i2c: E2 08 00 13 15 80 0D 03 02 00 00 00 00 A3 [19:15:33]Write i2c OK [19:15:33]MH_I2C_Read... [19:15:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:15:33]Read from MH i2c: E2 [19:15:33]MH_I2C_Read... [19:15:33]Read from MH i2c: E2 0B 00 [19:15:33]MH_I2C_Read... [19:15:33]Read from MH i2c: E2 0B 00 13 15 00 B6 DA 0A 50 39 E6 3E 64 90 00 4F [19:15:33]RAPDU: B6 DA 0A 50 39 E6 3E 64 90 00 [19:15:33]wFMCommunicate OK [19:15:33]SAM_PROTO_SignData done [19:15:33]FM_MakeSignedData done [19:15:33]CreateOFDProtocolMessage [19:15:33]wFMCommunicate request_size=4 [19:15:33]MH_SAM_APDU [19:15:33]CAPDU: 80 11 00 00 [19:15:33]Write to MH i2c: E2 08 00 14 15 80 11 00 00 00 00 00 00 A3 [19:15:33]Write i2c OK [19:15:33]MH_I2C_Read... [19:15:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:15:33]Read from MH i2c: E2 [19:15:33]MH_I2C_Read... [19:15:33]Read from MH i2c: E2 17 00 [19:15:33]MH_I2C_Read... [19:15:33]Read from MH i2c: E2 17 00 14 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 F9 [19:15:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [19:15:33]wFMCommunicate OK [19:15:33]CreateOFDProtocolMessage done [19:15:33]OFDSenderStorePacket 67884 [19:15:33]StoreOFDPacket docnum=67884 [19:15:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 32 DB 07 01 1E D9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 17 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 4D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 99 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 55 FE 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 2C 09 01 00 35 04 06 00 B2 F9 AB EE 80 AE B6 DA 0A 50 39 E6 3E 64 [19:15:33]CheckFolder [19:15:33]dirname=/storage/ofd_packets [19:15:33]CheckFolder done [19:15:33]ProducePacketName [19:15:33]name=ofd_packets/00067884 [19:15:33]NVStorageSaveData ofd_packets/00067884 [19:15:33]File name is /storage/ofd_packets/00067884 [19:15:33]Write 301 bytes [19:15:33]NVStorageSaveData done [19:15:33]OFDSenderStorePacket done [19:15:33]KKMCreateOFDPacket done [19:15:33]NVStorageSaveData kkm_last_timestamp [19:15:33]File name is /storage/kkm_last_timestamp [19:15:33]Write 4 bytes [19:15:33]NVStorageSaveData done [19:15:33]ExternCall_PrintAddStr [19:15:33]wPrintStart [19:15:33]Write to MH i2c: 01 00 00 15 15 2A [19:15:33]Write i2c OK [19:15:33]MH_I2C_Read... [19:15:33]Read from MH i2c: 01 [19:15:33]MH_I2C_Read... [19:15:33]Read from MH i2c: 01 07 00 [19:15:33]MH_I2C_Read... [19:15:33]Read from MH i2c: 01 07 00 15 15 00 00 00 00 00 FF 0F 3F [19:15:33]RasterBufferAndPrint [19:15:33]line Счет N : (1)508147 [19:15:33]line ИНН: 02508201610067 [19:15:33]line Контрольно-Кассовый Чек [19:15:33]line ПРОДАЖА [19:15:33]line ТРК (МРК, ГНК) : 43 [19:15:33]line Товар: 2710124130 [19:15:33]line Аи-92-К-5 [19:15:33]line 5.990 * 66.80 [19:15:33]line = 400.13 [19:15:33]line НДС 12% НСП 1% [19:15:33]line > о реализуемом товаре [19:15:33]line ОКРУГЛЕНИЕ: -0.13 [19:15:33]line ИТОГО: 400.00 [19:15:33]line Внесено: 400.00 [19:15:33]line СДАЧА: 0.00 [19:15:33]line НСП 1% : 3.54 [19:15:33]line НДС 12% : 42.49 [19:15:33]line Наличными: 400.00 [19:15:33]line Безнал.: 0.00 [19:15:33]line Место: АЗС № 91 "Партнер Нефть" [19:15:33]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [19:15:33]line СНО: Общий режим [19:15:33]line Чек 123 18.05.2024 19:15 [19:15:33]line Смена: 359 ФФД: 1.0 [19:15:33]line ЗНМ: 0300000119 [19:15:33]line РНМ: 0000000000091845 [19:15:33]line Версия ККМ: 001 [19:15:33]line ФМ: 0000000000871829 [19:15:33]line ФД: 67884 [19:15:33]line ФПД: 196785401135278 [19:15:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T191533&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67884&fm=196785401135278&tin=02508201610067®Number=0000000000091845&sum=40000 [19:15:33]OFD Sender: Processing packet 67884 [packets to send 35, broken 34] [19:15:33]ProducePacketName [19:15:33]name=ofd_packets/00067884 [19:15:33]OFD Sender: To server: pG, [19:15:33]CommunicateWithHost lk.salyk.kg:30040 [19:15:33]ConnectInit lk.salyk.kg [19:15:33]written 0, free lines is 4095 [19:15:33]Connected sock=10 [19:15:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 32 DB 07 01 1E D9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 17 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 4D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 99 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 55 FE 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 2C 09 01 00 35 04 06 00 B2 F9 AB EE 80 AE B6 DA 0A 50 39 E6 3E 64 [19:15:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 26 CC 47 00 3C 17 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 2C 09 01 00 F4 03 04 00 2A A6 48 66 B6 04 01 00 00 D7 16 64 49 F1 B2 67 0B [19:15:34]CommunicateWithHost err = 0 [19:15:34]CheckOFDResponse [19:15:34]1017 (14) - 77093643461234 [19:15:34]1041 (16) - 0000000000871829 [19:15:34]1040 (4) - 67884 [19:15:34]1012 (4) - 18.05.2024 12:59 [19:15:34]1206 (1) - 0 [19:15:34]OFD Sender: Remove packet 67884 [19:15:34]ProducePacketName [19:15:34]name=ofd_packets/00067884 [19:15:34]NVStorageDeleteData [19:15:34]Write to MH i2c: 01 00 00 3F 15 54 [19:15:34]Write i2c OK [19:15:34]MH_I2C_Read... [19:15:34]Read from MH i2c: 01 [19:15:34]MH_I2C_Read... [19:15:34]Read from MH i2c: 01 07 00 [19:15:34]MH_I2C_Read... [19:15:34]Read from MH i2c: 01 07 00 3F 15 00 00 00 00 00 D9 0C 40 [19:15:34]RasterBufferAndPrint [19:15:34]line [19:15:34]line [19:15:34]line [19:15:34]line [19:15:34]line [19:15:34]written 0, free lines is 3299 [19:15:34]MH_Cut [19:15:34]Write to MH i2c: D1 01 00 46 15 01 2D [19:15:34]Write i2c OK [19:15:34]MH_I2C_Read... [19:15:34]Read from MH i2c: D1 [19:15:34]MH_I2C_Read... [19:15:34]Read from MH i2c: D1 01 00 [19:15:34]MH_I2C_Read... [19:15:34]Read from MH i2c: D1 01 00 46 15 00 2C [19:15:34]Write to MH i2c: 01 00 00 47 15 5C [19:15:34]Write i2c OK [19:15:34]MH_I2C_Read... [19:15:34]OFD Sender: No OFD packet to send [19:15:35]*** Cut start [19:15:35]*** Purtial cut [19:15:35]*** Stage 1: CUTSNS_PIN = 1 [19:15:35]Read from MH i2c: 01 [19:15:35]MH_I2C_Read... [19:15:35]*** Stop cut motor [19:15:35]*** Cut end [19:15:35]Read from MH i2c: 01 07 00 [19:15:35]MH_I2C_Read... [19:15:35]Read from MH i2c: 01 07 00 47 15 00 00 00 00 00 FF 0F 71 [19:15:35]process_action close_receipt done [19:15:35]requested_data is exist [19:15:35]produce_requested_data [19:15:35]requested_item fm.sn is exist - process it [19:15:35]wFMCommunicate request_size=4 [19:15:35]MH_SAM_APDU [19:15:35]CAPDU: 80 11 00 00 [19:15:35]Write to MH i2c: E2 08 00 48 15 80 11 00 00 00 00 00 00 D7 [19:15:35]Write i2c OK [19:15:35]MH_I2C_Read... [19:15:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:15:35]Read from MH i2c: E2 [19:15:35]MH_I2C_Read... [19:15:35]Read from MH i2c: E2 17 00 [19:15:35]MH_I2C_Read... [19:15:35]Read from MH i2c: E2 17 00 48 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 2D [19:15:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [19:15:35]wFMCommunicate OK [19:15:35]requested_item fd.num is exist - process it [19:15:35]SAM_PROTO_GetFieldsCounters [19:15:35]wFMCommunicate request_size=4 [19:15:35]MH_SAM_APDU [19:15:35]CAPDU: 80 13 00 00 [19:15:35]Write to MH i2c: E2 08 00 49 15 80 13 00 00 00 00 00 00 DA [19:15:35]Write i2c OK [19:15:35]MH_I2C_Read... [19:15:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:15:35]Read from MH i2c: E2 [19:15:35]MH_I2C_Read... [19:15:35]Read from MH i2c: E2 62 00 [19:15:35]MH_I2C_Read... [19:15:35]Read from MH i2c: E2 62 00 49 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 2C 09 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 7B 00 00 00 5E 04 04 00 7B 00 00 00 57 04 04 00 7C 00 00 00 19 04 04 00 00 00 00 00 90 00 0F [19:15:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 2C 09 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 7B 00 00 00 5E 04 04 00 7B 00 00 00 57 04 04 00 7C 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:15:35]wFMCommunicate OK [19:15:35]SAM_PROTO_GetFieldsCounters done [19:15:35]requested_item shift.num is exist - process it [19:15:35]requested_item shift.opened is exist - process it [19:15:35]req_shift_opened [19:15:35]FM_GetShiftState [19:15:35]SAM_PROTO_GetShiftState [19:15:35]wFMCommunicate request_size=4 [19:15:35]MH_SAM_APDU [19:15:35]CAPDU: 80 13 01 00 [19:15:35]Write to MH i2c: E2 08 00 4A 15 80 13 01 00 00 00 00 00 DC [19:15:35]Write i2c OK [19:15:35]MH_I2C_Read... [19:15:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:15:35]Read from MH i2c: E2 [19:15:35]MH_I2C_Read... [19:15:35]Read from MH i2c: E2 0E 00 [19:15:35]MH_I2C_Read... [19:15:35]Read from MH i2c: E2 0E 00 4A 15 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 43 [19:15:35]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [19:15:35]wFMCommunicate OK [19:15:35]SAM_PROTO_GetShiftState done [19:15:35]FM_GetShiftState done [19:15:35]req_shift_opened done [19:15:35]requested_item shift.open_date is exist - process it [19:15:35]req_shift_open_date [19:15:35]req_shift_open_date done [19:15:35]produce_requested_data done [19:15:35]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67884,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [19:15:35]process_action_free close_receipt [19:15:35]json_value_free [19:15:35]json_value_free done [19:15:35]process_json_proto returns [19:15:35]Send response to host [19:15:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67884,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [19:15:35]free response buf [19:15:35]execute_script done [19:15:35]execute_script returns [19:15:35]free content buf [19:15:35]Sock 7.Close socket [19:15:35]Sock 7.Thread stoped [19:15:39]OFD Sender: No OFD packet to send [19:15:44]OFD Sender: No OFD packet to send [19:15:49]OFD Sender: No OFD packet to send [19:15:54]OFD Sender: No OFD packet to send [19:15:59]OFD Sender: No OFD packet to send [19:16:04]OFD Sender: No OFD packet to send [19:16:09]OFD Sender: No OFD packet to send [19:16:14]OFD Sender: No OFD packet to send [19:16:19]OFD Sender: No OFD packet to send [19:16:24]OFD Sender: No OFD packet to send [19:16:29]OFD Sender: No OFD packet to send [19:16:34]OFD Sender: No OFD packet to send [19:16:39]OFD Sender: No OFD packet to send [19:16:44]OFD Sender: No OFD packet to send [19:16:47]accept exits with 9 [19:16:47]New connection [19:16:47]New thread 3067202916 created [19:16:47]Thread 3067059556 joined [19:16:47]Waiting for new connection... [19:16:47] Sock 9.Parse request [19:16:47]Sock 9.Check first char [19:16:47]Sock 9.First char is OK [19:16:47]request: POST /json_proto HTTP/1.0 [19:16:47]Method: POST [19:16:47]URL: /json_proto [19:16:47]Method is POST - this is cgi request [19:16:47]url: /json_proto [19:16:47]query_string will be loaded in cgi processing [19:16:47]execute_cgi json_proto POST (null) [19:16:47]execute_cgi path=json_proto method=POST [19:16:47]POST find Content-Length [19:16:47]Host: 172.17.41.195:8080 [19:16:47]Content-Length: 682 [19:16:47]Content-Type: application/json [19:16:47] [19:16:47]POST finish read [19:16:47]Found Content-Length = 682 [19:16:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)508148", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.80, "quantity" : 14.980, "sum" : 1000.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:16:47]execute_script... [19:16:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)508148", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.80, "quantity" : 14.980, "sum" : 1000.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:16:47]POST & json_proto [19:16:47]process_json_proto [19:16:47]json parsed OK: [19:16:47]protocol is kg_v1.0 [19:16:47]action value=close_receipt [19:16:47]process_action close_receipt [19:16:47]cmd_close_receipt [19:16:47]MH_GetDate [19:16:47]Write to MH i2c: F0 00 00 4B 15 4F [19:16:47]Write i2c OK [19:16:47]MH_I2C_Read... [19:16:47]Read from MH i2c: F0 [19:16:47]MH_I2C_Read... [19:16:47]Read from MH i2c: F0 09 00 [19:16:47]MH_I2C_Read... [19:16:47]Read from MH i2c: F0 09 00 4B 15 00 A0 FE 48 66 FC 21 6F 64 94 [19:16:47]GetLastDocTimeStamp 1716059733 [19:16:47]current date 1716059808 [19:16:47]FM_GetShiftState [19:16:47]SAM_PROTO_GetShiftState [19:16:47]wFMCommunicate request_size=4 [19:16:47]MH_SAM_APDU [19:16:47]CAPDU: 80 13 01 00 [19:16:47]Write to MH i2c: E2 08 00 4C 15 80 13 01 00 00 00 00 00 DE [19:16:47]Write i2c OK [19:16:47]MH_I2C_Read... [19:16:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:16:47]Read from MH i2c: E2 [19:16:47]MH_I2C_Read... [19:16:47]Read from MH i2c: E2 0E 00 [19:16:47]MH_I2C_Read... [19:16:47]Read from MH i2c: E2 0E 00 4C 15 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 45 [19:16:47]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [19:16:47]wFMCommunicate OK [19:16:47]SAM_PROTO_GetShiftState done [19:16:47]FM_GetShiftState done [19:16:47]opened in 1715991483 [19:16:47]opened+sec_in_day 1716077883 [19:16:47]quantity*price = 100066 [19:16:47]sum+1 = 100067 [19:16:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 124 18.05.2024 19:16 Смена: 359 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67885 ФПД: 247529773391601 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T191648&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67885&fm=247529773391601&tin=02508201610067®Number=0000000000091845&sum=100000 [19:16:48]StoreToDocumentArchive [19:16:48]shift 359 fd 67885 [19:16:48]save to /storage/0359/doc_00067885 [19:16:48]save last doc name /storage/0359/doc_00067885 to /storage/kkm_last_doc_name [19:16:48]save OK [19:16:48]Clear old archive folders... [19:16:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:16:48]tlvbuf is 00A032E0 [19:16:48]SAM_PROTO_ClearQueue [19:16:48]wFMCommunicate request_size=4 [19:16:48]MH_SAM_APDU [19:16:48]CAPDU: 80 09 00 00 [19:16:48]Write to MH i2c: E2 08 00 59 15 80 09 00 00 00 00 00 00 E0 [19:16:48]Write i2c OK [19:16:48]MH_I2C_Read... [19:16:48]Read from MH i2c: E2 [19:16:48]MH_I2C_Read... [19:16:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:16:48]Read from MH i2c: E2 03 00 [19:16:48]MH_I2C_Read... [19:16:48]Read from MH i2c: E2 03 00 59 15 00 90 00 E2 [19:16:48]RAPDU: 90 00 [19:16:48]wFMCommunicate OK [19:16:48]SAM_PROTO_ClearQueue done [19:16:48]KKMCreateOFDPacket [19:16:48]OFDProtocolAddRootSTLVToBuf [19:16:48]FM_MakeSignedData [19:16:48]FM_MakeSignedData [19:16:48]SAM_PROTO_SignData [19:16:48]wFMCommunicate request_size=4 [19:16:48]MH_SAM_APDU [19:16:48]CAPDU: 80 0D 01 02 [19:16:48]Write to MH i2c: E2 08 00 5A 15 80 0D 01 02 00 00 00 00 E8 [19:16:48]Write i2c OK [19:16:48]MH_I2C_Read... [19:16:48]Read from MH i2c: E2 [19:16:48]MH_I2C_Read... [19:16:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:16:48]Read from MH i2c: E2 03 00 [19:16:48]MH_I2C_Read... [19:16:48]Read from MH i2c: E2 03 00 5A 15 00 90 00 E3 [19:16:48]RAPDU: 90 00 [19:16:48]wFMCommunicate OK [19:16:48]wFMCommunicate request_size=255 [19:16:48]MH_SAM_APDU [19:16:48]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 84 3A 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 A0 FE 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 2D 09 01 00 35 04 06 00 E1 [19:16:48]Write to MH i2c: E2 02 01 5B 15 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 84 3A 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 A0 FE 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 2D 09 01 00 35 04 06 00 E1 00 00 09 [19:16:48]Write i2c OK [19:16:48]MH_I2C_Read... [19:16:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:16:48]Read from MH i2c: E2 [19:16:48]MH_I2C_Read... [19:16:48]Read from MH i2c: E2 03 00 [19:16:48]MH_I2C_Read... [19:16:48]Read from MH i2c: E2 03 00 5B 15 00 90 00 E4 [19:16:48]RAPDU: 90 00 [19:16:48]wFMCommunicate OK [19:16:48]wFMCommunicate request_size=10 [19:16:48]MH_SAM_APDU [19:16:48]CAPDU: 80 0D 02 02 05 20 84 36 DE F1 [19:16:48]Write to MH i2c: E2 0D 00 5C 15 80 0D 02 02 05 00 20 84 36 DE F1 00 00 9E [19:16:48]Write i2c OK [19:16:48]MH_I2C_Read... [19:16:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:16:48]Read from MH i2c: E2 [19:16:48]MH_I2C_Read... [19:16:48]Read from MH i2c: E2 03 00 [19:16:48]MH_I2C_Read... [19:16:48]Read from MH i2c: E2 03 00 5C 15 00 90 00 E5 [19:16:48]RAPDU: 90 00 [19:16:48]wFMCommunicate OK [19:16:48]wFMCommunicate request_size=4 [19:16:48]MH_SAM_APDU [19:16:48]CAPDU: 80 0D 03 02 [19:16:48]Write to MH i2c: E2 08 00 5D 15 80 0D 03 02 00 00 00 00 ED [19:16:48]Write i2c OK [19:16:48]MH_I2C_Read... [19:16:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:16:48]Read from MH i2c: E2 [19:16:48]MH_I2C_Read... [19:16:48]Read from MH i2c: E2 0B 00 [19:16:48]MH_I2C_Read... [19:16:48]Read from MH i2c: E2 0B 00 5D 15 00 6E F4 56 1E 11 43 98 49 90 00 F9 [19:16:48]RAPDU: 6E F4 56 1E 11 43 98 49 90 00 [19:16:48]wFMCommunicate OK [19:16:48]SAM_PROTO_SignData done [19:16:48]FM_MakeSignedData done [19:16:48]CreateOFDProtocolMessage [19:16:48]wFMCommunicate request_size=4 [19:16:48]MH_SAM_APDU [19:16:48]CAPDU: 80 11 00 00 [19:16:48]Write to MH i2c: E2 08 00 5E 15 80 11 00 00 00 00 00 00 ED [19:16:48]Write i2c OK [19:16:48]MH_I2C_Read... [19:16:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:16:48]Read from MH i2c: E2 [19:16:48]MH_I2C_Read... [19:16:48]Read from MH i2c: E2 17 00 [19:16:48]MH_I2C_Read... [19:16:48]Read from MH i2c: E2 17 00 5E 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 43 [19:16:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [19:16:48]wFMCommunicate OK [19:16:48]CreateOFDProtocolMessage done [19:16:48]OFDSenderStorePacket 67885 [19:16:48]StoreOFDPacket docnum=67885 [19:16:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 4D 4C 07 01 33 EF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 84 3A 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 A0 FE 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 2D 09 01 00 35 04 06 00 E1 20 84 36 DE F1 6E F4 56 1E 11 43 98 49 [19:16:48]CheckFolder [19:16:48]dirname=/storage/ofd_packets [19:16:48]CheckFolder done [19:16:48]ProducePacketName [19:16:48]name=ofd_packets/00067885 [19:16:48]NVStorageSaveData ofd_packets/00067885 [19:16:48]File name is /storage/ofd_packets/00067885 [19:16:48]Write 301 bytes [19:16:48]NVStorageSaveData done [19:16:48]OFDSenderStorePacket done [19:16:48]KKMCreateOFDPacket done [19:16:48]NVStorageSaveData kkm_last_timestamp [19:16:48]File name is /storage/kkm_last_timestamp [19:16:48]Write 4 bytes [19:16:48]NVStorageSaveData done [19:16:48]ExternCall_PrintAddStr [19:16:48]wPrintStart [19:16:48]Write to MH i2c: 01 00 00 5F 15 74 [19:16:48]Write i2c OK [19:16:48]MH_I2C_Read... [19:16:48]Read from MH i2c: 01 [19:16:48]MH_I2C_Read... [19:16:48]Read from MH i2c: 01 07 00 [19:16:48]MH_I2C_Read... [19:16:48]Read from MH i2c: 01 07 00 5F 15 00 00 00 00 00 FF 0F 89 [19:16:48]RasterBufferAndPrint [19:16:48]line Счет N : (1)508148 [19:16:48]line ИНН: 02508201610067 [19:16:48]line Контрольно-Кассовый Чек [19:16:48]line ПРОДАЖА [19:16:48]line ТРК (МРК, ГНК) : 23 [19:16:48]line Товар: 2710124130 [19:16:48]line Аи-92-К-5 [19:16:48]line 14.980 * 66.80 [19:16:48]line = 1000.66 [19:16:48]line НДС 12% НСП 1% [19:16:48]line > о реализуемом товаре [19:16:48]line ОКРУГЛЕНИЕ: -0.66 [19:16:48]line ИТОГО: 1000.00 [19:16:48]line Внесено: 1000.00 [19:16:48]line СДАЧА: 0.00 [19:16:48]line НСП 1% : 8.85 [19:16:48]line НДС 12% : 106.26 [19:16:48]line Наличными: 1000.00 [19:16:48]line Безнал.: 0.00 [19:16:48]line Место: АЗС № 91 "Партнер Нефть" [19:16:48]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [19:16:48]line СНО: Общий режим [19:16:48]line Чек 124 18.05.2024 19:16 [19:16:48]line Смена: 359 ФФД: 1.0 [19:16:48]line ЗНМ: 0300000119 [19:16:48]line РНМ: 0000000000091845 [19:16:48]line Версия ККМ: 001 [19:16:48]line ФМ: 0000000000871829 [19:16:48]line ФД: 67885 [19:16:48]line ФПД: 247529773391601 [19:16:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T191648&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67885&fm=247529773391601&tin=02508201610067®Number=0000000000091845&sum=100000 [19:16:49]written 0, free lines is 4095 [19:16:49]OFD Sender: Processing packet 67885 [packets to send 35, broken 34] [19:16:49]ProducePacketName [19:16:49]name=ofd_packets/00067885 [19:16:49]OFD Sender: To server: pG, [19:16:49]CommunicateWithHost lk.salyk.kg:30040 [19:16:49]ConnectInit lk.salyk.kg [19:16:49]Connected sock=10 [19:16:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 4D 4C 07 01 33 EF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 84 3A 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 A0 FE 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 2D 09 01 00 35 04 06 00 E1 20 84 36 DE F1 6E F4 56 1E 11 43 98 49 [19:16:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 9E AA 47 00 46 50 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 2D 09 01 00 F4 03 04 00 75 A6 48 66 B6 04 01 00 00 F2 BD C2 0A C2 39 9E D1 [19:16:49]CommunicateWithHost err = 0 [19:16:49]CheckOFDResponse [19:16:49]1017 (14) - 77093643461234 [19:16:49]1041 (16) - 0000000000871829 [19:16:49]1040 (4) - 67885 [19:16:49]1012 (4) - 18.05.2024 13:00 [19:16:49]1206 (1) - 0 [19:16:49]OFD Sender: Remove packet 67885 [19:16:49]ProducePacketName [19:16:49]name=ofd_packets/00067885 [19:16:49]NVStorageDeleteData [19:16:49]Write to MH i2c: 01 00 00 89 15 9E [19:16:49]Write i2c OK [19:16:49]MH_I2C_Read... [19:16:49]Read from MH i2c: 01 [19:16:49]MH_I2C_Read... [19:16:49]Read from MH i2c: 01 07 00 [19:16:49]MH_I2C_Read... [19:16:49]Read from MH i2c: 01 07 00 89 15 00 00 00 00 00 C0 0C 71 [19:16:49]RasterBufferAndPrint [19:16:49]line [19:16:49]line [19:16:49]line [19:16:49]line [19:16:49]line [19:16:49]written 0, free lines is 3268 [19:16:49]MH_Cut [19:16:49]Write to MH i2c: D1 01 00 90 15 01 77 [19:16:49]Write i2c OK [19:16:49]MH_I2C_Read... [19:16:49]Read from MH i2c: D1 [19:16:49]MH_I2C_Read... [19:16:49]Read from MH i2c: D1 01 00 [19:16:49]MH_I2C_Read... [19:16:49]Read from MH i2c: D1 01 00 90 15 00 76 [19:16:49]Write to MH i2c: 01 00 00 91 15 A6 [19:16:49]Write i2c OK [19:16:49]MH_I2C_Read... [19:16:49]OFD Sender: No OFD packet to send [19:16:50]*** Cut start [19:16:50]*** Purtial cut [19:16:50]*** Stage 1: CUTSNS_PIN = 1 [19:16:50]Read from MH i2c: 01 [19:16:50]MH_I2C_Read... [19:16:50]*** Stop cut motor [19:16:50]*** Cut end [19:16:50]Read from MH i2c: 01 07 00 [19:16:50]MH_I2C_Read... [19:16:50]Read from MH i2c: 01 07 00 91 15 00 00 00 00 00 FF 0F BB [19:16:50]process_action close_receipt done [19:16:50]requested_data is exist [19:16:50]produce_requested_data [19:16:50]requested_item fm.sn is exist - process it [19:16:50]wFMCommunicate request_size=4 [19:16:50]MH_SAM_APDU [19:16:50]CAPDU: 80 11 00 00 [19:16:50]Write to MH i2c: E2 08 00 92 15 80 11 00 00 00 00 00 00 21 [19:16:50]Write i2c OK [19:16:50]MH_I2C_Read... [19:16:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:16:50]Read from MH i2c: E2 [19:16:50]MH_I2C_Read... [19:16:50]Read from MH i2c: E2 17 00 [19:16:50]MH_I2C_Read... [19:16:50]Read from MH i2c: E2 17 00 92 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 77 [19:16:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [19:16:50]wFMCommunicate OK [19:16:50]requested_item fd.num is exist - process it [19:16:50]SAM_PROTO_GetFieldsCounters [19:16:50]wFMCommunicate request_size=4 [19:16:50]MH_SAM_APDU [19:16:50]CAPDU: 80 13 00 00 [19:16:50]Write to MH i2c: E2 08 00 93 15 80 13 00 00 00 00 00 00 24 [19:16:50]Write i2c OK [19:16:50]MH_I2C_Read... [19:16:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:16:50]Read from MH i2c: E2 [19:16:50]MH_I2C_Read... [19:16:50]Read from MH i2c: E2 62 00 [19:16:50]MH_I2C_Read... [19:16:50]Read from MH i2c: E2 62 00 93 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 2D 09 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 7C 00 00 00 5E 04 04 00 7C 00 00 00 57 04 04 00 7D 00 00 00 19 04 04 00 00 00 00 00 90 00 5D [19:16:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 2D 09 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 7C 00 00 00 5E 04 04 00 7C 00 00 00 57 04 04 00 7D 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:16:50]wFMCommunicate OK [19:16:50]SAM_PROTO_GetFieldsCounters done [19:16:50]requested_item shift.num is exist - process it [19:16:50]requested_item shift.opened is exist - process it [19:16:50]req_shift_opened [19:16:50]FM_GetShiftState [19:16:50]SAM_PROTO_GetShiftState [19:16:50]wFMCommunicate request_size=4 [19:16:50]MH_SAM_APDU [19:16:50]CAPDU: 80 13 01 00 [19:16:50]Write to MH i2c: E2 08 00 94 15 80 13 01 00 00 00 00 00 26 [19:16:50]Write i2c OK [19:16:50]MH_I2C_Read... [19:16:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:16:50]Read from MH i2c: E2 [19:16:50]MH_I2C_Read... [19:16:50]Read from MH i2c: E2 0E 00 [19:16:50]MH_I2C_Read... [19:16:50]Read from MH i2c: E2 0E 00 94 15 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 8D [19:16:50]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [19:16:50]wFMCommunicate OK [19:16:50]SAM_PROTO_GetShiftState done [19:16:50]FM_GetShiftState done [19:16:50]req_shift_opened done [19:16:50]requested_item shift.open_date is exist - process it [19:16:50]req_shift_open_date [19:16:50]req_shift_open_date done [19:16:50]produce_requested_data done [19:16:50]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67885,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [19:16:50]process_action_free close_receipt [19:16:50]json_value_free [19:16:50]json_value_free done [19:16:50]process_json_proto returns [19:16:50]Send response to host [19:16:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67885,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [19:16:50]free response buf [19:16:50]execute_script done [19:16:50]execute_script returns [19:16:50]free content buf [19:16:50]Sock 9.Close socket [19:16:50]Sock 9.Thread stoped [19:16:54]OFD Sender: No OFD packet to send [19:16:59]OFD Sender: No OFD packet to send [19:17:04]OFD Sender: No OFD packet to send [19:17:06]accept exits with 7 [19:17:06]New connection [19:17:06]New thread 3067059556 created [19:17:06]Thread 3067202916 joined [19:17:06]Waiting for new connection... [19:17:06] Sock 7.Parse request [19:17:06]Sock 7.Check first char [19:17:06]Sock 7.First char is OK [19:17:06]request: POST /json_proto HTTP/1.0 [19:17:06]Method: POST [19:17:06]URL: /json_proto [19:17:06]Method is POST - this is cgi request [19:17:06]url: /json_proto [19:17:06]query_string will be loaded in cgi processing [19:17:06]execute_cgi json_proto POST (null) [19:17:06]execute_cgi path=json_proto method=POST [19:17:06]POST find Content-Length [19:17:06]Host: 172.17.41.195:8080 [19:17:06]Content-Length: 677 [19:17:06]Content-Type: application/json [19:17:06] [19:17:06]POST finish read [19:17:06]Found Content-Length = 677 [19:17:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)508149", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.80, "quantity" : 7.490, "sum" : 500.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:17:06]execute_script... [19:17:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)508149", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.80, "quantity" : 7.490, "sum" : 500.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:17:06]POST & json_proto [19:17:06]process_json_proto [19:17:06]json parsed OK: [19:17:06]protocol is kg_v1.0 [19:17:06]action value=close_receipt [19:17:06]process_action close_receipt [19:17:06]cmd_close_receipt [19:17:06]MH_GetDate [19:17:06]Write to MH i2c: F0 00 00 95 15 99 [19:17:06]Write i2c OK [19:17:06]MH_I2C_Read... [19:17:06]Read from MH i2c: F0 [19:17:06]MH_I2C_Read... [19:17:06]Read from MH i2c: F0 09 00 [19:17:06]MH_I2C_Read... [19:17:06]Read from MH i2c: F0 09 00 95 15 00 B4 FE 48 66 FC 21 6F 64 F2 [19:17:06]GetLastDocTimeStamp 1716059808 [19:17:06]current date 1716059828 [19:17:06]FM_GetShiftState [19:17:06]SAM_PROTO_GetShiftState [19:17:06]wFMCommunicate request_size=4 [19:17:06]MH_SAM_APDU [19:17:06]CAPDU: 80 13 01 00 [19:17:06]Write to MH i2c: E2 08 00 96 15 80 13 01 00 00 00 00 00 28 [19:17:06]Write i2c OK [19:17:06]MH_I2C_Read... [19:17:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:17:06]Read from MH i2c: E2 [19:17:06]MH_I2C_Read... [19:17:06]Read from MH i2c: E2 0E 00 [19:17:06]MH_I2C_Read... [19:17:06]Read from MH i2c: E2 0E 00 96 15 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 8F [19:17:06]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [19:17:06]wFMCommunicate OK [19:17:06]SAM_PROTO_GetShiftState done [19:17:06]FM_GetShiftState done [19:17:06]opened in 1715991483 [19:17:06]opened+sec_in_day 1716077883 [19:17:06]quantity*price = 50033 [19:17:06]sum+1 = 50034 [19:17:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.33 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.13 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 125 18.05.2024 19:17 Смена: 359 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67886 ФПД: 156219973236465 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T191708&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67886&fm=156219973236465&tin=02508201610067®Number=0000000000091845&sum=50000 [19:17:07]StoreToDocumentArchive [19:17:07]shift 359 fd 67886 [19:17:07]save to /storage/0359/doc_00067886 [19:17:07]save last doc name /storage/0359/doc_00067886 to /storage/kkm_last_doc_name [19:17:07]save OK [19:17:07]Clear old archive folders... [19:17:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:17:07]tlvbuf is 00A03380 [19:17:07]SAM_PROTO_ClearQueue [19:17:07]wFMCommunicate request_size=4 [19:17:07]MH_SAM_APDU [19:17:07]CAPDU: 80 09 00 00 [19:17:07]Write to MH i2c: E2 08 00 A3 15 80 09 00 00 00 00 00 00 2A [19:17:07]Write i2c OK [19:17:07]MH_I2C_Read... [19:17:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:17:07]Read from MH i2c: E2 [19:17:07]MH_I2C_Read... [19:17:07]Read from MH i2c: E2 03 00 [19:17:07]MH_I2C_Read... [19:17:07]Read from MH i2c: E2 03 00 A3 15 00 90 00 2C [19:17:07]RAPDU: 90 00 [19:17:07]wFMCommunicate OK [19:17:07]SAM_PROTO_ClearQueue done [19:17:07]KKMCreateOFDPacket [19:17:07]OFDProtocolAddRootSTLVToBuf [19:17:07]FM_MakeSignedData [19:17:07]FM_MakeSignedData [19:17:07]SAM_PROTO_SignData [19:17:07]wFMCommunicate request_size=4 [19:17:07]MH_SAM_APDU [19:17:07]CAPDU: 80 0D 01 02 [19:17:07]Write to MH i2c: E2 08 00 A4 15 80 0D 01 02 00 00 00 00 32 [19:17:07]Write i2c OK [19:17:07]MH_I2C_Read... [19:17:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:17:07]Read from MH i2c: E2 [19:17:07]MH_I2C_Read... [19:17:07]Read from MH i2c: E2 03 00 [19:17:07]MH_I2C_Read... [19:17:07]Read from MH i2c: E2 03 00 A4 15 00 90 00 2D [19:17:07]RAPDU: 90 00 [19:17:07]wFMCommunicate OK [19:17:07]wFMCommunicate request_size=255 [19:17:07]MH_SAM_APDU [19:17:07]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 42 1D 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 B4 FE 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 2E 09 01 00 35 04 06 00 8E [19:17:07]Write to MH i2c: E2 02 01 A5 15 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 42 1D 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 B4 FE 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 2E 09 01 00 35 04 06 00 8E 00 00 C8 [19:17:07]Write i2c OK [19:17:07]MH_I2C_Read... [19:17:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:17:07]Read from MH i2c: E2 [19:17:07]MH_I2C_Read... [19:17:07]Read from MH i2c: E2 03 00 [19:17:07]MH_I2C_Read... [19:17:07]Read from MH i2c: E2 03 00 A5 15 00 90 00 2E [19:17:07]RAPDU: 90 00 [19:17:07]wFMCommunicate OK [19:17:07]wFMCommunicate request_size=10 [19:17:07]MH_SAM_APDU [19:17:07]CAPDU: 80 0D 02 02 05 14 CC 02 F6 F1 [19:17:07]Write to MH i2c: E2 0D 00 A6 15 80 0D 02 02 05 00 14 CC 02 F6 F1 00 00 08 [19:17:07]Write i2c OK [19:17:07]MH_I2C_Read... [19:17:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:17:07]Read from MH i2c: E2 [19:17:07]MH_I2C_Read... [19:17:07]Read from MH i2c: E2 03 00 [19:17:07]MH_I2C_Read... [19:17:07]Read from MH i2c: E2 03 00 A6 15 00 90 00 2F [19:17:07]RAPDU: 90 00 [19:17:07]wFMCommunicate OK [19:17:07]wFMCommunicate request_size=4 [19:17:07]MH_SAM_APDU [19:17:07]CAPDU: 80 0D 03 02 [19:17:07]Write to MH i2c: E2 08 00 A7 15 80 0D 03 02 00 00 00 00 37 [19:17:07]Write i2c OK [19:17:07]MH_I2C_Read... [19:17:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:17:07]Read from MH i2c: E2 [19:17:07]MH_I2C_Read... [19:17:07]Read from MH i2c: E2 0B 00 [19:17:07]MH_I2C_Read... [19:17:07]Read from MH i2c: E2 0B 00 A7 15 00 BA 4A 19 D9 21 21 E9 37 90 00 90 [19:17:07]RAPDU: BA 4A 19 D9 21 21 E9 37 90 00 [19:17:07]wFMCommunicate OK [19:17:07]SAM_PROTO_SignData done [19:17:07]FM_MakeSignedData done [19:17:07]CreateOFDProtocolMessage [19:17:07]wFMCommunicate request_size=4 [19:17:07]MH_SAM_APDU [19:17:07]CAPDU: 80 11 00 00 [19:17:07]Write to MH i2c: E2 08 00 A8 15 80 11 00 00 00 00 00 00 37 [19:17:07]Write i2c OK [19:17:07]MH_I2C_Read... [19:17:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:17:08]Read from MH i2c: E2 [19:17:08]MH_I2C_Read... [19:17:08]Read from MH i2c: E2 17 00 [19:17:08]MH_I2C_Read... [19:17:08]Read from MH i2c: E2 17 00 A8 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 8D [19:17:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [19:17:08]wFMCommunicate OK [19:17:08]CreateOFDProtocolMessage done [19:17:08]OFDSenderStorePacket 67886 [19:17:08]StoreOFDPacket docnum=67886 [19:17:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 F0 32 07 01 E5 74 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 42 1D 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 B4 FE 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 2E 09 01 00 35 04 06 00 8E 14 CC 02 F6 F1 BA 4A 19 D9 21 21 E9 37 [19:17:08]CheckFolder [19:17:08]dirname=/storage/ofd_packets [19:17:08]CheckFolder done [19:17:08]ProducePacketName [19:17:08]name=ofd_packets/00067886 [19:17:08]NVStorageSaveData ofd_packets/00067886 [19:17:08]File name is /storage/ofd_packets/00067886 [19:17:08]Write 301 bytes [19:17:08]NVStorageSaveData done [19:17:08]OFDSenderStorePacket done [19:17:08]KKMCreateOFDPacket done [19:17:08]NVStorageSaveData kkm_last_timestamp [19:17:08]File name is /storage/kkm_last_timestamp [19:17:08]Write 4 bytes [19:17:08]NVStorageSaveData done [19:17:08]ExternCall_PrintAddStr [19:17:08]wPrintStart [19:17:08]Write to MH i2c: 01 00 00 A9 15 BE [19:17:08]Write i2c OK [19:17:08]MH_I2C_Read... [19:17:08]Read from MH i2c: 01 [19:17:08]MH_I2C_Read... [19:17:08]Read from MH i2c: 01 07 00 [19:17:08]MH_I2C_Read... [19:17:08]Read from MH i2c: 01 07 00 A9 15 00 00 00 00 00 FF 0F D3 [19:17:08]RasterBufferAndPrint [19:17:08]line Счет N : (1)508149 [19:17:08]line ИНН: 02508201610067 [19:17:08]line Контрольно-Кассовый Чек [19:17:08]line ПРОДАЖА [19:17:08]line ТРК (МРК, ГНК) : 33 [19:17:08]line Товар: 2710124130 [19:17:08]line Аи-92-К-5 [19:17:08]line 7.490 * 66.80 [19:17:08]line = 500.33 [19:17:08]line НДС 12% НСП 1% [19:17:08]line > о реализуемом товаре [19:17:08]line ОКРУГЛЕНИЕ: -0.33 [19:17:08]line ИТОГО: 500.00 [19:17:08]line Внесено: 500.00 [19:17:08]line СДАЧА: 0.00 [19:17:08]line НСП 1% : 4.43 [19:17:08]line НДС 12% : 53.13 [19:17:08]line Наличными: 500.00 [19:17:08]line Безнал.: 0.00 [19:17:08]line Место: АЗС № 91 "Партнер Нефть" [19:17:08]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [19:17:08]line СНО: Общий режим [19:17:08]line Чек 125 18.05.2024 19:17 [19:17:08]line Смена: 359 ФФД: 1.0 [19:17:08]line ЗНМ: 0300000119 [19:17:08]line РНМ: 0000000000091845 [19:17:08]line Версия ККМ: 001 [19:17:08]line ФМ: 0000000000871829 [19:17:08]line ФД: 67886 [19:17:08]line ФПД: 156219973236465 [19:17:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T191708&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67886&fm=156219973236465&tin=02508201610067®Number=0000000000091845&sum=50000 [19:17:08]OFD Sender: Processing packet 67886 [packets to send 35, broken 34] [19:17:08]ProducePacketName [19:17:08]name=ofd_packets/00067886 [19:17:08]OFD Sender: To server: pG, [19:17:08]CommunicateWithHost lk.salyk.kg:30040 [19:17:08]ConnectInit lk.salyk.kg [19:17:08]written 0, free lines is 4095 [19:17:08]Connected sock=10 [19:17:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 F0 32 07 01 E5 74 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 42 1D 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 B4 FE 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 2E 09 01 00 35 04 06 00 8E 14 CC 02 F6 F1 BA 4A 19 D9 21 21 E9 37 [19:17:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 F8 18 47 00 7B F7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 2E 09 01 00 F4 03 04 00 88 A6 48 66 B6 04 01 00 00 F1 74 E9 E1 0A 1C A3 05 [19:17:08]CommunicateWithHost err = 0 [19:17:08]CheckOFDResponse [19:17:08]1017 (14) - 77093643461234 [19:17:08]1041 (16) - 0000000000871829 [19:17:08]1040 (4) - 67886 [19:17:08]1012 (4) - 18.05.2024 13:00 [19:17:08]1206 (1) - 0 [19:17:08]OFD Sender: Remove packet 67886 [19:17:08]ProducePacketName [19:17:08]name=ofd_packets/00067886 [19:17:08]NVStorageDeleteData [19:17:08]Write to MH i2c: 01 00 00 D3 15 E8 [19:17:08]Write i2c OK [19:17:08]MH_I2C_Read... [19:17:08]Read from MH i2c: 01 [19:17:08]MH_I2C_Read... [19:17:08]Read from MH i2c: 01 07 00 [19:17:08]MH_I2C_Read... [19:17:08]Read from MH i2c: 01 07 00 D3 15 00 00 00 00 00 CB 0C C6 [19:17:08]RasterBufferAndPrint [19:17:08]line [19:17:08]line [19:17:08]line [19:17:08]line [19:17:08]line [19:17:08]written 0, free lines is 3281 [19:17:08]MH_Cut [19:17:08]Write to MH i2c: D1 01 00 DA 15 01 C1 [19:17:08]Write i2c OK [19:17:08]MH_I2C_Read... [19:17:08]Read from MH i2c: D1 [19:17:08]MH_I2C_Read... [19:17:08]Read from MH i2c: D1 01 00 [19:17:08]MH_I2C_Read... [19:17:08]Read from MH i2c: D1 01 00 DA 15 00 C0 [19:17:08]Write to MH i2c: 01 00 00 DB 15 F0 [19:17:08]Write i2c OK [19:17:08]MH_I2C_Read... [19:17:09]OFD Sender: No OFD packet to send [19:17:09]*** Cut start [19:17:09]*** Purtial cut [19:17:09]*** Stage 1: CUTSNS_PIN = 1 [19:17:09]Read from MH i2c: 01 [19:17:09]MH_I2C_Read... [19:17:09]*** Stop cut motor [19:17:09]*** Cut end [19:17:09]Read from MH i2c: 01 07 00 [19:17:09]MH_I2C_Read... [19:17:09]Read from MH i2c: 01 07 00 DB 15 00 00 00 00 00 FF 0F 05 [19:17:09]process_action close_receipt done [19:17:09]requested_data is exist [19:17:09]produce_requested_data [19:17:09]requested_item fm.sn is exist - process it [19:17:09]wFMCommunicate request_size=4 [19:17:09]MH_SAM_APDU [19:17:09]CAPDU: 80 11 00 00 [19:17:09]Write to MH i2c: E2 08 00 DC 15 80 11 00 00 00 00 00 00 6B [19:17:09]Write i2c OK [19:17:09]MH_I2C_Read... [19:17:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:17:09]Read from MH i2c: E2 [19:17:09]MH_I2C_Read... [19:17:09]Read from MH i2c: E2 17 00 [19:17:09]MH_I2C_Read... [19:17:09]Read from MH i2c: E2 17 00 DC 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 C1 [19:17:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [19:17:09]wFMCommunicate OK [19:17:09]requested_item fd.num is exist - process it [19:17:09]SAM_PROTO_GetFieldsCounters [19:17:09]wFMCommunicate request_size=4 [19:17:09]MH_SAM_APDU [19:17:09]CAPDU: 80 13 00 00 [19:17:09]Write to MH i2c: E2 08 00 DD 15 80 13 00 00 00 00 00 00 6E [19:17:09]Write i2c OK [19:17:09]MH_I2C_Read... [19:17:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:17:10]Read from MH i2c: E2 [19:17:10]MH_I2C_Read... [19:17:10]Read from MH i2c: E2 62 00 [19:17:10]MH_I2C_Read... [19:17:10]Read from MH i2c: E2 62 00 DD 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 2E 09 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 7D 00 00 00 5E 04 04 00 7D 00 00 00 57 04 04 00 7E 00 00 00 19 04 04 00 00 00 00 00 90 00 AB [19:17:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 2E 09 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 7D 00 00 00 5E 04 04 00 7D 00 00 00 57 04 04 00 7E 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:17:10]wFMCommunicate OK [19:17:10]SAM_PROTO_GetFieldsCounters done [19:17:10]requested_item shift.num is exist - process it [19:17:10]requested_item shift.opened is exist - process it [19:17:10]req_shift_opened [19:17:10]FM_GetShiftState [19:17:10]SAM_PROTO_GetShiftState [19:17:10]wFMCommunicate request_size=4 [19:17:10]MH_SAM_APDU [19:17:10]CAPDU: 80 13 01 00 [19:17:10]Write to MH i2c: E2 08 00 DE 15 80 13 01 00 00 00 00 00 70 [19:17:10]Write i2c OK [19:17:10]MH_I2C_Read... [19:17:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:17:10]Read from MH i2c: E2 [19:17:10]MH_I2C_Read... [19:17:10]Read from MH i2c: E2 0E 00 [19:17:10]MH_I2C_Read... [19:17:10]Read from MH i2c: E2 0E 00 DE 15 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 D7 [19:17:10]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [19:17:10]wFMCommunicate OK [19:17:10]SAM_PROTO_GetShiftState done [19:17:10]FM_GetShiftState done [19:17:10]req_shift_opened done [19:17:10]requested_item shift.open_date is exist - process it [19:17:10]req_shift_open_date [19:17:10]req_shift_open_date done [19:17:10]produce_requested_data done [19:17:10]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67886,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [19:17:10]process_action_free close_receipt [19:17:10]json_value_free [19:17:10]json_value_free done [19:17:10]process_json_proto returns [19:17:10]Send response to host [19:17:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67886,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [19:17:10]free response buf [19:17:10]execute_script done [19:17:10]execute_script returns [19:17:10]free content buf [19:17:10]Sock 7.Close socket [19:17:10]Sock 7.Thread stoped [19:17:14]OFD Sender: No OFD packet to send [19:17:16]accept exits with 9 [19:17:16]New connection [19:17:16]New thread 3067202916 created [19:17:16]Thread 3067059556 joined [19:17:16]Waiting for new connection... [19:17:16] Sock 9.Parse request [19:17:16]Sock 9.Check first char [19:17:16]Sock 9.First char is OK [19:17:16]request: POST /json_proto HTTP/1.0 [19:17:16]Method: POST [19:17:16]URL: /json_proto [19:17:16]Method is POST - this is cgi request [19:17:16]url: /json_proto [19:17:16]query_string will be loaded in cgi processing [19:17:16]execute_cgi json_proto POST (null) [19:17:16]execute_cgi path=json_proto method=POST [19:17:16]POST find Content-Length [19:17:16]Host: 172.17.41.195:8080 [19:17:16]Content-Length: 215 [19:17:16]Content-Type: application/json [19:17:16] [19:17:16]POST finish read [19:17:16]Found Content-Length = 215 [19:17:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:17:16]execute_script... [19:17:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:17:16]POST & json_proto [19:17:16]process_json_proto [19:17:16]json parsed OK: [19:17:16]protocol is kg_v1.0 [19:17:16]action value=get_value [19:17:16]process_action get_value [19:17:16]cmd_get_value [19:17:16]process_action get_value done [19:17:16]requested_data is exist [19:17:16]produce_requested_data [19:17:16]requested_item kkm.sn is exist - process it [19:17:16]requested_item kkm.ver is exist - process it [19:17:16]requested_item fm.sn is exist - process it [19:17:16]wFMCommunicate request_size=4 [19:17:16]MH_SAM_APDU [19:17:16]CAPDU: 80 11 00 00 [19:17:16]Write to MH i2c: E2 08 00 DF 15 80 11 00 00 00 00 00 00 6E [19:17:16]Write i2c OK [19:17:16]MH_I2C_Read... [19:17:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:17:16]Read from MH i2c: E2 [19:17:16]MH_I2C_Read... [19:17:16]Read from MH i2c: E2 17 00 [19:17:16]MH_I2C_Read... [19:17:16]Read from MH i2c: E2 17 00 DF 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 C4 [19:17:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [19:17:16]wFMCommunicate OK [19:17:16]requested_item fd.num is exist - process it [19:17:16]SAM_PROTO_GetFieldsCounters [19:17:16]wFMCommunicate request_size=4 [19:17:16]MH_SAM_APDU [19:17:16]CAPDU: 80 13 00 00 [19:17:16]Write to MH i2c: E2 08 00 E0 15 80 13 00 00 00 00 00 00 71 [19:17:16]Write i2c OK [19:17:16]MH_I2C_Read... [19:17:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:17:16]Read from MH i2c: E2 [19:17:16]MH_I2C_Read... [19:17:16]Read from MH i2c: E2 62 00 [19:17:16]MH_I2C_Read... [19:17:16]Read from MH i2c: E2 62 00 E0 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 2E 09 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 7D 00 00 00 5E 04 04 00 7D 00 00 00 57 04 04 00 7E 00 00 00 19 04 04 00 00 00 00 00 90 00 AE [19:17:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 2E 09 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 7D 00 00 00 5E 04 04 00 7D 00 00 00 57 04 04 00 7E 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:17:17]wFMCommunicate OK [19:17:17]SAM_PROTO_GetFieldsCounters done [19:17:17]requested_item shift.num is exist - process it [19:17:17]requested_item shift.opened is exist - process it [19:17:17]req_shift_opened [19:17:17]FM_GetShiftState [19:17:17]SAM_PROTO_GetShiftState [19:17:17]wFMCommunicate request_size=4 [19:17:17]MH_SAM_APDU [19:17:17]CAPDU: 80 13 01 00 [19:17:17]Write to MH i2c: E2 08 00 E1 15 80 13 01 00 00 00 00 00 73 [19:17:17]Write i2c OK [19:17:17]MH_I2C_Read... [19:17:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:17:17]Read from MH i2c: E2 [19:17:17]MH_I2C_Read... [19:17:17]Read from MH i2c: E2 0E 00 [19:17:17]MH_I2C_Read... [19:17:17]Read from MH i2c: E2 0E 00 E1 15 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 DA [19:17:17]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [19:17:17]wFMCommunicate OK [19:17:17]SAM_PROTO_GetShiftState done [19:17:17]FM_GetShiftState done [19:17:17]req_shift_opened done [19:17:17]requested_item shift.open_date is exist - process it [19:17:17]req_shift_open_date [19:17:17]req_shift_open_date done [19:17:17]produce_requested_data done [19:17:17]produce_requested_data return {"kkm.sn":"0300000119","kkm.ver":"001","fm.sn":"0000000000871829","fd.num":67886,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [19:17:17]process_action_free get_value [19:17:17]json_value_free [19:17:17]json_value_free done [19:17:17]process_json_proto returns [19:17:17]Send response to host [19:17:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000119","kkm.ver":"001","fm.sn":"0000000000871829","fd.num":67886,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [19:17:17]free response buf [19:17:17]execute_script done [19:17:17]execute_script returns [19:17:17]free content buf [19:17:17]Sock 9.Close socket [19:17:17]Sock 9.Thread stoped [19:17:17]accept exits with 7 [19:17:17]New connection [19:17:17]New thread 3067059556 created [19:17:17]Thread 3067202916 joined [19:17:17]Waiting for new connection... [19:17:17] Sock 7.Parse request [19:17:17]Sock 7.Check first char [19:17:17]Sock 7.First char is OK [19:17:17]request: POST /json_proto HTTP/1.0 [19:17:17]Method: POST [19:17:17]URL: /json_proto [19:17:17]Method is POST - this is cgi request [19:17:17]url: /json_proto [19:17:17]query_string will be loaded in cgi processing [19:17:17]execute_cgi json_proto POST (null) [19:17:17]execute_cgi path=json_proto method=POST [19:17:17]POST find Content-Length [19:17:17]Host: 172.17.41.195:8080 [19:17:17]Content-Length: 331 [19:17:17]Content-Type: application/json [19:17:17] [19:17:17]POST finish read [19:17:17]Found Content-Length = 331 [19:17:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [19:17:17]execute_script... [19:17:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [19:17:17]POST & json_proto [19:17:17]process_json_proto [19:17:17]json parsed OK: [19:17:17]protocol is kg_v1.0 [19:17:17]action value=get_value [19:17:17]process_action get_value [19:17:17]cmd_get_value [19:17:17]process_action get_value done [19:17:17]requested_data is exist [19:17:17]produce_requested_data [19:17:17]requested_item fm.sale.total is exist - process it [19:17:17]SAM_PROTO_GetFMData [19:17:17]wFMCommunicate request_size=4 [19:17:17]MH_SAM_APDU [19:17:17]CAPDU: 80 13 03 00 [19:17:17]Write to MH i2c: E2 08 00 E2 15 80 13 03 00 00 00 00 00 76 [19:17:17]Write i2c OK [19:17:17]MH_I2C_Read... [19:17:17]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [19:17:17]Read from MH i2c: E2 [19:17:17]MH_I2C_Read... [19:17:17]Read from MH i2c: E2 FD 00 [19:17:17]MH_I2C_Read... [19:17:17]Read from MH i2c: E2 FD 00 E2 15 00 C6 04 85 04 C2 04 6E 04 04 00 60 06 01 00 69 04 A3 00 6F 04 04 00 B6 05 01 00 B1 04 05 00 93 B6 81 1E 03 70 04 05 00 D8 09 E7 C0 02 72 04 04 00 BB AC 9A 5D 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 10 0D CF 54 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 77 2C 11 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9D 00 6F 04 04 00 AA 00 00 00 B1 04 04 00 00 23 C3 DC 70 04 04 00 00 23 C3 DC 72 04 00 00 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 DD 9D 71 17 EF 03 09 90 00 BF [19:17:17]RAPDU: C6 04 85 04 C2 04 6E 04 04 00 60 06 01 00 69 04 A3 00 6F 04 04 00 B6 05 01 00 B1 04 05 00 93 B6 81 1E 03 70 04 05 00 D8 09 E7 C0 02 72 04 04 00 BB AC 9A 5D 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 10 0D CF 54 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 77 2C 11 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9D 00 6F 04 04 00 AA 00 00 00 B1 04 04 00 00 23 C3 DC 70 04 04 00 00 23 C3 DC 72 04 00 00 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 DD 9D 71 17 EF 03 09 90 00 [19:17:17]wFMCommunicate OK [19:17:17]wFMCommunicate request_size=4 [19:17:17]MH_SAM_APDU [19:17:17]CAPDU: 80 17 00 00 [19:17:17]Write to MH i2c: E2 08 00 E3 15 80 17 00 00 00 00 00 00 78 [19:17:17]Write i2c OK [19:17:17]MH_I2C_Read... [19:17:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:17:18]Read from MH i2c: E2 [19:17:18]MH_I2C_Read... [19:17:18]Read from MH i2c: E2 FD 00 [19:17:18]MH_I2C_Read... [19:17:18]Read from MH i2c: E2 FD 00 E3 15 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 70 22 F4 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 90 00 B3 [19:17:18]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 70 22 F4 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 90 00 [19:17:18]wFMCommunicate OK [19:17:18]wFMCommunicate request_size=4 [19:17:18]MH_SAM_APDU [19:17:18]CAPDU: 80 17 00 00 [19:17:18]Write to MH i2c: E2 08 00 E4 15 80 17 00 00 00 00 00 00 79 [19:17:18]Write i2c OK [19:17:18]MH_I2C_Read... [19:17:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:17:18]Read from MH i2c: E2 [19:17:18]MH_I2C_Read... [19:17:18]Read from MH i2c: E2 FD 00 [19:17:18]MH_I2C_Read... [19:17:18]Read from MH i2c: E2 FD 00 E4 15 00 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 90 00 A0 [19:17:18]RAPDU: 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 90 00 [19:17:18]wFMCommunicate OK [19:17:18]wFMCommunicate request_size=4 [19:17:18]MH_SAM_APDU [19:17:18]CAPDU: 80 17 00 00 [19:17:18]Write to MH i2c: E2 08 00 E5 15 80 17 00 00 00 00 00 00 7A [19:17:18]Write i2c OK [19:17:18]MH_I2C_Read... [19:17:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:17:18]Read from MH i2c: E2 [19:17:18]MH_I2C_Read... [19:17:18]Read from MH i2c: E2 FD 00 [19:17:18]MH_I2C_Read... [19:17:18]Read from MH i2c: E2 FD 00 E5 15 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 F5 [19:17:18]RAPDU: EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 [19:17:18]wFMCommunicate OK [19:17:18]wFMCommunicate request_size=4 [19:17:18]MH_SAM_APDU [19:17:18]CAPDU: 80 17 00 00 [19:17:18]Write to MH i2c: E2 08 00 E6 15 80 17 00 00 00 00 00 00 7B [19:17:18]Write i2c OK [19:17:18]MH_I2C_Read... [19:17:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 224! [19:17:18]Read from MH i2c: E2 [19:17:18]MH_I2C_Read... [19:17:18]Read from MH i2c: E2 E3 00 [19:17:18]MH_I2C_Read... [19:17:18]Read from MH i2c: E2 E3 00 E6 15 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 5A [19:17:18]RAPDU: 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [19:17:18]wFMCommunicate OK [19:17:18]SAM_PROTO_GetFMData done [19:17:18]requested_item fm.sale_refund.total is exist - process it [19:17:18]requested_item fm.buy.total is exist - process it [19:17:18]requested_item shift.sale.total is exist - process it [19:17:18]SAM_PROTO_GetShiftData [19:17:18]wFMCommunicate request_size=4 [19:17:18]MH_SAM_APDU [19:17:18]CAPDU: 80 13 02 00 [19:17:18]Write to MH i2c: E2 08 00 E7 15 80 13 02 00 00 00 00 00 7A [19:17:18]Write i2c OK [19:17:18]MH_I2C_Read... [19:17:19]OFD Sender: No OFD packet to send [19:17:19]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [19:17:19]Read from MH i2c: E2 [19:17:19]MH_I2C_Read... [19:17:19]Read from MH i2c: E2 FD 00 [19:17:19]MH_I2C_Read... [19:17:19]Read from MH i2c: E2 FD 00 E7 15 00 AF 04 AA 04 AB 04 6E 04 04 00 7D 00 00 00 69 04 9C 00 6F 04 04 00 7D 00 00 00 B1 04 03 00 07 C6 F2 70 04 03 00 1C 15 24 72 04 03 00 EB B0 CE 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 6C C8 19 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 FD 25 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 32 [19:17:19]RAPDU: AF 04 AA 04 AB 04 6E 04 04 00 7D 00 00 00 69 04 9C 00 6F 04 04 00 7D 00 00 00 B1 04 03 00 07 C6 F2 70 04 03 00 1C 15 24 72 04 03 00 EB B0 CE 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 6C C8 19 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 FD 25 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 [19:17:19]wFMCommunicate OK [19:17:19]wFMCommunicate request_size=4 [19:17:19]MH_SAM_APDU [19:17:19]CAPDU: 80 17 00 00 [19:17:19]Write to MH i2c: E2 08 00 E8 15 80 17 00 00 00 00 00 00 7D [19:17:19]Write i2c OK [19:17:19]MH_I2C_Read... [19:17:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:17:19]Read from MH i2c: E2 [19:17:19]MH_I2C_Read... [19:17:19]Read from MH i2c: E2 FD 00 [19:17:19]MH_I2C_Read... [19:17:19]Read from MH i2c: E2 FD 00 E8 15 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 90 00 96 [19:17:19]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 90 00 [19:17:19]wFMCommunicate OK [19:17:19]wFMCommunicate request_size=4 [19:17:19]MH_SAM_APDU [19:17:19]CAPDU: 80 17 00 00 [19:17:19]Write to MH i2c: E2 08 00 E9 15 80 17 00 00 00 00 00 00 7E [19:17:19]Write i2c OK [19:17:19]MH_I2C_Read... [19:17:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:17:20]Read from MH i2c: E2 [19:17:20]MH_I2C_Read... [19:17:20]Read from MH i2c: E2 FD 00 [19:17:20]MH_I2C_Read... [19:17:20]Read from MH i2c: E2 FD 00 E9 15 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 90 00 32 [19:17:20]RAPDU: 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 90 00 [19:17:20]wFMCommunicate OK [19:17:20]wFMCommunicate request_size=4 [19:17:20]MH_SAM_APDU [19:17:20]CAPDU: 80 17 00 00 [19:17:20]Write to MH i2c: E2 08 00 EA 15 80 17 00 00 00 00 00 00 7F [19:17:20]Write i2c OK [19:17:20]MH_I2C_Read... [19:17:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:17:20]Read from MH i2c: E2 [19:17:20]MH_I2C_Read... [19:17:20]Read from MH i2c: E2 FD 00 [19:17:20]MH_I2C_Read... [19:17:20]Read from MH i2c: E2 FD 00 EA 15 00 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 90 00 FD [19:17:20]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 90 00 [19:17:20]wFMCommunicate OK [19:17:20]wFMCommunicate request_size=4 [19:17:20]MH_SAM_APDU [19:17:20]CAPDU: 80 17 00 00 [19:17:20]Write to MH i2c: E2 08 00 EB 15 80 17 00 00 00 00 00 00 80 [19:17:20]Write i2c OK [19:17:20]MH_I2C_Read... [19:17:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 201! [19:17:20]Read from MH i2c: E2 [19:17:20]MH_I2C_Read... [19:17:20]Read from MH i2c: E2 CC 00 [19:17:20]MH_I2C_Read... [19:17:20]Read from MH i2c: E2 CC 00 EB 15 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 61 [19:17:20]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [19:17:20]wFMCommunicate OK [19:17:20]SAM_PROTO_GetShiftData done [19:17:20]requested_item shift.sale.total_cash is exist - process it [19:17:20]requested_item shift.sale_refund.total is exist - process it [19:17:20]requested_item shift.sale_refund.total_cash is exist - process it [19:17:20]requested_item shift.buy.total is exist - process it [19:17:20]requested_item shift.buy.total_cash is exist - process it [19:17:20]produce_requested_data done [19:17:20]produce_requested_data return {"fm.sale.total":133967192.51,"fm.sale_refund.total":37037760.00,"fm.buy.total":0.00,"shift.sale.total":159104.07,"shift.sale.total_cash":23647.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [19:17:20]process_action_free get_value [19:17:20]json_value_free [19:17:20]json_value_free done [19:17:20]process_json_proto returns [19:17:20]Send response to host [19:17:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":133967192.51,"fm.sale_refund.total":37037760.00,"fm.buy.total":0.00,"shift.sale.total":159104.07,"shift.sale.total_cash":23647.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [19:17:20]free response buf [19:17:20]execute_script done [19:17:20]execute_script returns [19:17:20]free content buf [19:17:20]Sock 7.Close socket [19:17:20]Sock 7.Thread stoped [19:17:24]OFD Sender: No OFD packet to send [19:17:29]OFD Sender: No OFD packet to send [19:17:34]OFD Sender: No OFD packet to send [19:17:39]OFD Sender: No OFD packet to send [19:17:44]OFD Sender: No OFD packet to send [19:17:49]OFD Sender: No OFD packet to send [19:17:54]OFD Sender: No OFD packet to send [19:17:59]OFD Sender: No OFD packet to send [19:18:04]OFD Sender: No OFD packet to send [19:18:09]OFD Sender: No OFD packet to send [19:18:14]OFD Sender: No OFD packet to send [19:18:19]OFD Sender: No OFD packet to send [19:18:24]OFD Sender: No OFD packet to send [19:18:29]OFD Sender: No OFD packet to send [19:18:34]OFD Sender: No OFD packet to send [19:18:39]OFD Sender: No OFD packet to send [19:18:44]OFD Sender: No OFD packet to send [19:18:49]OFD Sender: No OFD packet to send [19:18:54]OFD Sender: No OFD packet to send [19:18:56]accept exits with 9 [19:18:56]New connection [19:18:56]New thread 3067202916 created [19:18:56]Thread 3067059556 joined [19:18:56]Waiting for new connection... [19:18:56] Sock 9.Parse request [19:18:56]Sock 9.Check first char [19:18:56]Sock 9.First char is OK [19:18:56]request: POST /json_proto HTTP/1.0 [19:18:56]Method: POST [19:18:56]URL: /json_proto [19:18:56]Method is POST - this is cgi request [19:18:56]url: /json_proto [19:18:56]query_string will be loaded in cgi processing [19:18:56]execute_cgi json_proto POST (null) [19:18:56]execute_cgi path=json_proto method=POST [19:18:56]POST find Content-Length [19:18:56]Host: 172.17.41.195:8080 [19:18:56]Content-Length: 675 [19:18:56]Content-Type: application/json [19:18:56] [19:18:56]POST finish read [19:18:56]Found Content-Length = 675 [19:18:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)508151", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:18:56]execute_script... [19:18:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)508151", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:18:56]POST & json_proto [19:18:56]process_json_proto [19:18:56]json parsed OK: [19:18:56]protocol is kg_v1.0 [19:18:56]action value=close_receipt [19:18:56]process_action close_receipt [19:18:56]cmd_close_receipt [19:18:56]MH_GetDate [19:18:56]Write to MH i2c: F0 00 00 EC 15 F0 [19:18:56]Write i2c OK [19:18:56]MH_I2C_Read... [19:18:56]Read from MH i2c: F0 [19:18:56]MH_I2C_Read... [19:18:56]Read from MH i2c: F0 09 00 [19:18:56]MH_I2C_Read... [19:18:56]Read from MH i2c: F0 09 00 EC 15 00 21 FF 48 66 FC 21 6F 64 B7 [19:18:56]GetLastDocTimeStamp 1716059828 [19:18:56]current date 1716059937 [19:18:56]FM_GetShiftState [19:18:56]SAM_PROTO_GetShiftState [19:18:56]wFMCommunicate request_size=4 [19:18:56]MH_SAM_APDU [19:18:56]CAPDU: 80 13 01 00 [19:18:56]Write to MH i2c: E2 08 00 ED 15 80 13 01 00 00 00 00 00 7F [19:18:56]Write i2c OK [19:18:56]MH_I2C_Read... [19:18:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:18:56]Read from MH i2c: E2 [19:18:56]MH_I2C_Read... [19:18:56]Read from MH i2c: E2 0E 00 [19:18:56]MH_I2C_Read... [19:18:56]Read from MH i2c: E2 0E 00 ED 15 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 E6 [19:18:56]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [19:18:56]wFMCommunicate OK [19:18:56]SAM_PROTO_GetShiftState done [19:18:56]FM_GetShiftState done [19:18:56]opened in 1715991483 [19:18:56]opened+sec_in_day 1716077883 [19:18:56]quantity*price = 100005 [19:18:56]sum+1 = 100006 [19:18:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 126 18.05.2024 19:18 Смена: 359 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67887 ФПД: 138830959912193 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T191857&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67887&fm=138830959912193&tin=02508201610067®Number=0000000000091845&sum=100000 [19:18:57]StoreToDocumentArchive [19:18:57]shift 359 fd 67887 [19:18:57]save to /storage/0359/doc_00067887 [19:18:57]save last doc name /storage/0359/doc_00067887 to /storage/kkm_last_doc_name [19:18:57]save OK [19:18:57]Clear old archive folders... [19:18:57]ProcessDocumentItem done err = 0, tmpTLVsize=252 [19:18:57]tlvbuf is 00A03360 [19:18:57]SAM_PROTO_ClearQueue [19:18:57]wFMCommunicate request_size=4 [19:18:57]MH_SAM_APDU [19:18:57]CAPDU: 80 09 00 00 [19:18:57]Write to MH i2c: E2 08 00 FA 15 80 09 00 00 00 00 00 00 81 [19:18:57]Write i2c OK [19:18:57]MH_I2C_Read... [19:18:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:18:57]Read from MH i2c: E2 [19:18:57]MH_I2C_Read... [19:18:57]Read from MH i2c: E2 03 00 [19:18:57]MH_I2C_Read... [19:18:57]Read from MH i2c: E2 03 00 FA 15 00 90 00 83 [19:18:57]RAPDU: 90 00 [19:18:57]wFMCommunicate OK [19:18:57]SAM_PROTO_ClearQueue done [19:18:57]KKMCreateOFDPacket [19:18:57]OFDProtocolAddRootSTLVToBuf [19:18:57]FM_MakeSignedData [19:18:57]FM_MakeSignedData [19:18:57]SAM_PROTO_SignData [19:18:57]wFMCommunicate request_size=4 [19:18:57]MH_SAM_APDU [19:18:57]CAPDU: 80 0D 01 02 [19:18:57]Write to MH i2c: E2 08 00 FB 15 80 0D 01 02 00 00 00 00 89 [19:18:57]Write i2c OK [19:18:57]MH_I2C_Read... [19:18:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:18:57]Read from MH i2c: E2 [19:18:57]MH_I2C_Read... [19:18:57]Read from MH i2c: E2 03 00 [19:18:57]MH_I2C_Read... [19:18:57]Read from MH i2c: E2 03 00 FB 15 00 90 00 84 [19:18:57]RAPDU: 90 00 [19:18:57]wFMCommunicate OK [19:18:57]wFMCommunicate request_size=255 [19:18:57]MH_SAM_APDU [19:18:57]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 21 FF 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 2F 09 01 00 35 04 06 00 [19:18:57]Write to MH i2c: E2 02 01 FC 15 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 21 FF 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 2F 09 01 00 35 04 06 00 00 00 B3 [19:18:57]Write i2c OK [19:18:57]MH_I2C_Read... [19:18:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:18:57]Read from MH i2c: E2 [19:18:57]MH_I2C_Read... [19:18:57]Read from MH i2c: E2 03 00 [19:18:57]MH_I2C_Read... [19:18:57]Read from MH i2c: E2 03 00 FC 15 00 90 00 85 [19:18:57]RAPDU: 90 00 [19:18:57]wFMCommunicate OK [19:18:57]wFMCommunicate request_size=11 [19:18:57]MH_SAM_APDU [19:18:57]CAPDU: 80 0D 02 02 06 7E 44 1A 0C A5 01 [19:18:57]Write to MH i2c: E2 0E 00 FD 15 80 0D 02 02 06 00 7E 44 1A 0C A5 01 00 00 26 [19:18:57]Write i2c OK [19:18:57]MH_I2C_Read... [19:18:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:18:57]Read from MH i2c: E2 [19:18:57]MH_I2C_Read... [19:18:57]Read from MH i2c: E2 03 00 [19:18:57]MH_I2C_Read... [19:18:57]Read from MH i2c: E2 03 00 FD 15 00 90 00 86 [19:18:57]RAPDU: 90 00 [19:18:57]wFMCommunicate OK [19:18:57]wFMCommunicate request_size=4 [19:18:57]MH_SAM_APDU [19:18:57]CAPDU: 80 0D 03 02 [19:18:57]Write to MH i2c: E2 08 00 FE 15 80 0D 03 02 00 00 00 00 8E [19:18:57]Write i2c OK [19:18:57]MH_I2C_Read... [19:18:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:18:57]Read from MH i2c: E2 [19:18:57]MH_I2C_Read... [19:18:57]Read from MH i2c: E2 0B 00 [19:18:57]MH_I2C_Read... [19:18:57]Read from MH i2c: E2 0B 00 FE 15 00 D4 C0 04 28 49 D0 AA F1 90 00 03 [19:18:57]RAPDU: D4 C0 04 28 49 D0 AA F1 90 00 [19:18:57]wFMCommunicate OK [19:18:57]SAM_PROTO_SignData done [19:18:57]FM_MakeSignedData done [19:18:57]CreateOFDProtocolMessage [19:18:57]wFMCommunicate request_size=4 [19:18:57]MH_SAM_APDU [19:18:57]CAPDU: 80 11 00 00 [19:18:57]Write to MH i2c: E2 08 00 FF 15 80 11 00 00 00 00 00 00 8E [19:18:57]Write i2c OK [19:18:57]MH_I2C_Read... [19:18:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:18:57]Read from MH i2c: E2 [19:18:57]MH_I2C_Read... [19:18:57]Read from MH i2c: E2 17 00 [19:18:57]MH_I2C_Read... [19:18:57]Read from MH i2c: E2 17 00 FF 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 E4 [19:18:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [19:18:57]wFMCommunicate OK [19:18:57]CreateOFDProtocolMessage done [19:18:57]OFDSenderStorePacket 67887 [19:18:57]StoreOFDPacket docnum=67887 [19:18:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 01 00 00 69 2D 08 01 E6 A1 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 21 FF 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 2F 09 01 00 35 04 06 00 7E 44 1A 0C A5 01 D4 C0 04 28 49 D0 AA F1 [19:18:57]CheckFolder [19:18:57]dirname=/storage/ofd_packets [19:18:57]CheckFolder done [19:18:57]ProducePacketName [19:18:57]name=ofd_packets/00067887 [19:18:57]NVStorageSaveData ofd_packets/00067887 [19:18:57]File name is /storage/ofd_packets/00067887 [19:18:57]Write 302 bytes [19:18:57]NVStorageSaveData done [19:18:57]OFDSenderStorePacket done [19:18:57]KKMCreateOFDPacket done [19:18:57]NVStorageSaveData kkm_last_timestamp [19:18:57]File name is /storage/kkm_last_timestamp [19:18:57]Write 4 bytes [19:18:57]NVStorageSaveData done [19:18:57]ExternCall_PrintAddStr [19:18:57]wPrintStart [19:18:57]Write to MH i2c: 01 00 00 00 16 16 [19:18:57]Write i2c OK [19:18:57]MH_I2C_Read... [19:18:57]Read from MH i2c: 01 [19:18:57]MH_I2C_Read... [19:18:57]Read from MH i2c: 01 07 00 [19:18:57]MH_I2C_Read... [19:18:57]Read from MH i2c: 01 07 00 00 16 00 00 00 00 00 FF 0F 2B [19:18:57]RasterBufferAndPrint [19:18:57]line Счет N : (1)508151 [19:18:57]line ИНН: 02508201610067 [19:18:57]line Контрольно-Кассовый Чек [19:18:57]line ПРОДАЖА [19:18:57]line ТРК (МРК, ГНК) : 22 [19:18:57]line Товар: 2710124130 [19:18:57]line Super-92-К-5 [19:18:57]line 14.750 * 67.80 [19:18:57]line = 1000.05 [19:18:57]line НДС 12% НСП 1% [19:18:57]line > о реализуемом товаре [19:18:57]line ОКРУГЛЕНИЕ: -0.05 [19:18:57]line ИТОГО: 1000.00 [19:18:57]line Внесено: 1000.00 [19:18:57]line СДАЧА: 0.00 [19:18:57]line НСП 1% : 8.85 [19:18:57]line НДС 12% : 106.20 [19:18:57]line Наличными: 1000.00 [19:18:57]line Безнал.: 0.00 [19:18:57]line Место: АЗС № 91 "Партнер Нефть" [19:18:57]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [19:18:57]line СНО: Общий режим [19:18:57]line Чек 126 18.05.2024 19:18 [19:18:57]line Смена: 359 ФФД: 1.0 [19:18:57]line ЗНМ: 0300000119 [19:18:57]line РНМ: 0000000000091845 [19:18:57]line Версия ККМ: 001 [19:18:57]line ФМ: 0000000000871829 [19:18:57]line ФД: 67887 [19:18:57]line ФПД: 138830959912193 [19:18:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T191857&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67887&fm=138830959912193&tin=02508201610067®Number=0000000000091845&sum=100000 [19:18:58]OFD Sender: Processing packet 67887 [packets to send 35, broken 34] [19:18:58]ProducePacketName [19:18:58]name=ofd_packets/00067887 [19:18:58]OFD Sender: To server: pG, [19:18:58]CommunicateWithHost lk.salyk.kg:30040 [19:18:58]ConnectInit lk.salyk.kg [19:18:58]written 0, free lines is 4095 [19:18:58]Connected sock=10 [19:18:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 01 00 00 69 2D 08 01 E6 A1 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 21 FF 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 2F 09 01 00 35 04 06 00 7E 44 1A 0C A5 01 D4 C0 04 28 49 D0 AA F1 [19:18:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 B0 17 47 00 9E 89 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 2F 09 01 00 F4 03 04 00 F6 A6 48 66 B6 04 01 00 00 FA AA AC CC 53 C0 B5 FA [19:18:58]CommunicateWithHost err = 0 [19:18:58]CheckOFDResponse [19:18:58]1017 (14) - 77093643461234 [19:18:58]1041 (16) - 0000000000871829 [19:18:58]1040 (4) - 67887 [19:18:58]1012 (4) - 18.05.2024 13:02 [19:18:58]1206 (1) - 0 [19:18:58]OFD Sender: Remove packet 67887 [19:18:58]ProducePacketName [19:18:58]name=ofd_packets/00067887 [19:18:58]NVStorageDeleteData [19:18:58]Write to MH i2c: 01 00 00 2A 16 40 [19:18:58]Write i2c OK [19:18:58]MH_I2C_Read... [19:18:58]Read from MH i2c: 01 [19:18:58]MH_I2C_Read... [19:18:58]Read from MH i2c: 01 07 00 [19:18:58]MH_I2C_Read... [19:18:58]Read from MH i2c: 01 07 00 2A 16 00 00 00 00 00 D1 0C 24 [19:18:58]RasterBufferAndPrint [19:18:58]line [19:18:58]line [19:18:58]line [19:18:58]line [19:18:58]line [19:18:58]written 0, free lines is 3288 [19:18:58]MH_Cut [19:18:58]Write to MH i2c: D1 01 00 31 16 01 19 [19:18:58]Write i2c OK [19:18:58]MH_I2C_Read... [19:18:58]Read from MH i2c: D1 [19:18:58]MH_I2C_Read... [19:18:58]Read from MH i2c: D1 01 00 [19:18:58]MH_I2C_Read... [19:18:58]Read from MH i2c: D1 01 00 31 16 00 18 [19:18:58]Write to MH i2c: 01 00 00 32 16 48 [19:18:58]Write i2c OK [19:18:58]MH_I2C_Read... [19:18:59]OFD Sender: No OFD packet to send [19:18:59]*** Cut start [19:18:59]*** Purtial cut [19:18:59]*** Stage 1: CUTSNS_PIN = 1 [19:18:59]Read from MH i2c: 01 [19:18:59]MH_I2C_Read... [19:18:59]*** Stop cut motor [19:18:59]*** Cut end [19:18:59]Read from MH i2c: 01 07 00 [19:18:59]MH_I2C_Read... [19:18:59]Read from MH i2c: 01 07 00 32 16 00 00 00 00 00 FF 0F 5D [19:18:59]process_action close_receipt done [19:18:59]requested_data is exist [19:18:59]produce_requested_data [19:18:59]requested_item fm.sn is exist - process it [19:18:59]wFMCommunicate request_size=4 [19:18:59]MH_SAM_APDU [19:18:59]CAPDU: 80 11 00 00 [19:18:59]Write to MH i2c: E2 08 00 33 16 80 11 00 00 00 00 00 00 C3 [19:18:59]Write i2c OK [19:18:59]MH_I2C_Read... [19:18:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:18:59]Read from MH i2c: E2 [19:18:59]MH_I2C_Read... [19:18:59]Read from MH i2c: E2 17 00 [19:18:59]MH_I2C_Read... [19:18:59]Read from MH i2c: E2 17 00 33 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 19 [19:18:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [19:18:59]wFMCommunicate OK [19:18:59]requested_item fd.num is exist - process it [19:18:59]SAM_PROTO_GetFieldsCounters [19:18:59]wFMCommunicate request_size=4 [19:18:59]MH_SAM_APDU [19:18:59]CAPDU: 80 13 00 00 [19:18:59]Write to MH i2c: E2 08 00 34 16 80 13 00 00 00 00 00 00 C6 [19:18:59]Write i2c OK [19:18:59]MH_I2C_Read... [19:18:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:18:59]Read from MH i2c: E2 [19:18:59]MH_I2C_Read... [19:18:59]Read from MH i2c: E2 62 00 [19:18:59]MH_I2C_Read... [19:18:59]Read from MH i2c: E2 62 00 34 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 2F 09 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 7E 00 00 00 5E 04 04 00 7E 00 00 00 57 04 04 00 7F 00 00 00 19 04 04 00 00 00 00 00 90 00 07 [19:18:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 2F 09 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 7E 00 00 00 5E 04 04 00 7E 00 00 00 57 04 04 00 7F 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:18:59]wFMCommunicate OK [19:18:59]SAM_PROTO_GetFieldsCounters done [19:18:59]requested_item shift.num is exist - process it [19:18:59]requested_item shift.opened is exist - process it [19:18:59]req_shift_opened [19:18:59]FM_GetShiftState [19:18:59]SAM_PROTO_GetShiftState [19:18:59]wFMCommunicate request_size=4 [19:18:59]MH_SAM_APDU [19:18:59]CAPDU: 80 13 01 00 [19:18:59]Write to MH i2c: E2 08 00 35 16 80 13 01 00 00 00 00 00 C8 [19:18:59]Write i2c OK [19:18:59]MH_I2C_Read... [19:19:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:19:00]Read from MH i2c: E2 [19:19:00]MH_I2C_Read... [19:19:00]Read from MH i2c: E2 0E 00 [19:19:00]MH_I2C_Read... [19:19:00]Read from MH i2c: E2 0E 00 35 16 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 2F [19:19:00]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [19:19:00]wFMCommunicate OK [19:19:00]SAM_PROTO_GetShiftState done [19:19:00]FM_GetShiftState done [19:19:00]req_shift_opened done [19:19:00]requested_item shift.open_date is exist - process it [19:19:00]req_shift_open_date [19:19:00]req_shift_open_date done [19:19:00]produce_requested_data done [19:19:00]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67887,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [19:19:00]process_action_free close_receipt [19:19:00]json_value_free [19:19:00]json_value_free done [19:19:00]process_json_proto returns [19:19:00]Send response to host [19:19:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67887,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [19:19:00]free response buf [19:19:00]execute_script done [19:19:00]execute_script returns [19:19:00]free content buf [19:19:00]Sock 9.Close socket [19:19:00]Sock 9.Thread stoped [19:19:04]OFD Sender: No OFD packet to send [19:19:09]OFD Sender: No OFD packet to send [19:19:14]OFD Sender: No OFD packet to send [19:19:19]OFD Sender: No OFD packet to send [19:19:24]OFD Sender: No OFD packet to send [19:19:29]OFD Sender: No OFD packet to send [19:19:34]OFD Sender: No OFD packet to send [19:19:39]OFD Sender: No OFD packet to send [19:19:44]OFD Sender: No OFD packet to send [19:19:49]OFD Sender: No OFD packet to send [19:19:54]OFD Sender: No OFD packet to send [19:19:59]OFD Sender: No OFD packet to send [19:20:04]OFD Sender: No OFD packet to send [19:20:09]OFD Sender: No OFD packet to send [19:20:14]OFD Sender: No OFD packet to send [19:20:19]OFD Sender: No OFD packet to send [19:20:24]OFD Sender: No OFD packet to send [19:20:29]OFD Sender: No OFD packet to send [19:20:34]OFD Sender: No OFD packet to send [19:20:39]OFD Sender: No OFD packet to send [19:20:44]OFD Sender: No OFD packet to send [19:20:49]OFD Sender: No OFD packet to send [19:20:51]accept exits with 7 [19:20:51]New connection [19:20:51]New thread 3067059556 created [19:20:51]Thread 3067202916 joined [19:20:51]Waiting for new connection... [19:20:51] Sock 7.Parse request [19:20:51]Sock 7.Check first char [19:20:51]Sock 7.First char is OK [19:20:51]request: POST /json_proto HTTP/1.0 [19:20:51]Method: POST [19:20:51]URL: /json_proto [19:20:51]Method is POST - this is cgi request [19:20:51]url: /json_proto [19:20:51]query_string will be loaded in cgi processing [19:20:51]execute_cgi json_proto POST (null) [19:20:51]execute_cgi path=json_proto method=POST [19:20:51]POST find Content-Length [19:20:51]Host: 172.17.41.195:8080 [19:20:51]Content-Length: 800 [19:20:51]Content-Type: application/json [19:20:51] [19:20:51]POST finish read [19:20:51]Found Content-Length = 800 [19:20:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)508150", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 53.550, "sum" : 4000.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 4000.19 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:20:51]execute_script... [19:20:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)508150", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 53.550, "sum" : 4000.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 4000.19 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:20:51]POST & json_proto [19:20:51]process_json_proto [19:20:51]json parsed OK: [19:20:51]protocol is kg_v1.0 [19:20:51]action value=close_receipt [19:20:51]process_action close_receipt [19:20:51]cmd_close_receipt [19:20:51]MH_GetDate [19:20:51]Write to MH i2c: F0 00 00 36 16 3B [19:20:51]Write i2c OK [19:20:51]MH_I2C_Read... [19:20:51]Read from MH i2c: F0 [19:20:51]MH_I2C_Read... [19:20:51]Read from MH i2c: F0 09 00 [19:20:51]MH_I2C_Read... [19:20:51]Read from MH i2c: F0 09 00 36 16 00 94 FF 48 66 FC 21 6F 64 75 [19:20:51]GetLastDocTimeStamp 1716059937 [19:20:51]current date 1716060052 [19:20:51]FM_GetShiftState [19:20:51]SAM_PROTO_GetShiftState [19:20:51]wFMCommunicate request_size=4 [19:20:51]MH_SAM_APDU [19:20:51]CAPDU: 80 13 01 00 [19:20:51]Write to MH i2c: E2 08 00 37 16 80 13 01 00 00 00 00 00 CA [19:20:51]Write i2c OK [19:20:51]MH_I2C_Read... [19:20:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:20:51]Read from MH i2c: E2 [19:20:51]MH_I2C_Read... [19:20:51]Read from MH i2c: E2 0E 00 [19:20:51]MH_I2C_Read... [19:20:51]Read from MH i2c: E2 0E 00 37 16 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 31 [19:20:51]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [19:20:51]wFMCommunicate OK [19:20:51]SAM_PROTO_GetShiftState done [19:20:51]FM_GetShiftState done [19:20:51]opened in 1715991483 [19:20:51]opened+sec_in_day 1716077883 [19:20:51]quantity*price = 400018 [19:20:51]sum+1 = 400020 [19:20:51]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 4000.19 НСП 1% : 35.40 НДС 12% : 424.80 Наличными: 0.00 Безнал.: 4000.19 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 127 18.05.2024 19:20 Смена: 359 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67888 ФПД: 215280905474908 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T192052&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67888&fm=215280905474908&tin=02508201610067®Number=0000000000091845&sum=400019 [19:20:52]StoreToDocumentArchive [19:20:52]shift 359 fd 67888 [19:20:52]save to /storage/0359/doc_00067888 [19:20:52]save last doc name /storage/0359/doc_00067888 to /storage/kkm_last_doc_name [19:20:52]save OK [19:20:52]Clear old archive folders... [19:20:52]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:20:52]tlvbuf is 00A031A0 [19:20:52]SAM_PROTO_ClearQueue [19:20:52]wFMCommunicate request_size=4 [19:20:52]MH_SAM_APDU [19:20:52]CAPDU: 80 09 00 00 [19:20:52]Write to MH i2c: E2 08 00 44 16 80 09 00 00 00 00 00 00 CC [19:20:52]Write i2c OK [19:20:52]MH_I2C_Read... [19:20:52]Read from MH i2c: E2 [19:20:52]MH_I2C_Read... [19:20:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:20:52]Read from MH i2c: E2 03 00 [19:20:52]MH_I2C_Read... [19:20:52]Read from MH i2c: E2 03 00 44 16 00 90 00 CE [19:20:52]RAPDU: 90 00 [19:20:52]wFMCommunicate OK [19:20:52]SAM_PROTO_ClearQueue done [19:20:52]KKMCreateOFDPacket [19:20:52]OFDProtocolAddRootSTLVToBuf [19:20:52]FM_MakeSignedData [19:20:52]FM_MakeSignedData [19:20:52]SAM_PROTO_SignData [19:20:52]wFMCommunicate request_size=4 [19:20:52]MH_SAM_APDU [19:20:52]CAPDU: 80 0D 01 02 [19:20:52]Write to MH i2c: E2 08 00 45 16 80 0D 01 02 00 00 00 00 D4 [19:20:52]Write i2c OK [19:20:52]MH_I2C_Read... [19:20:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:20:52]Read from MH i2c: E2 [19:20:52]MH_I2C_Read... [19:20:52]Read from MH i2c: E2 03 00 [19:20:52]MH_I2C_Read... [19:20:52]Read from MH i2c: E2 03 00 45 16 00 90 00 CF [19:20:52]RAPDU: 90 00 [19:20:52]wFMCommunicate OK [19:20:52]wFMCommunicate request_size=255 [19:20:52]MH_SAM_APDU [19:20:52]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2E D1 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 93 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 93 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F0 A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 93 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 94 FF 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 30 09 01 00 35 04 06 00 C3 CB FD E5 [19:20:52]Write to MH i2c: E2 02 01 46 16 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2E D1 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 93 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 93 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F0 A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 93 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 94 FF 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 30 09 01 00 35 04 06 00 C3 CB FD E5 00 00 E1 [19:20:52]Write i2c OK [19:20:52]MH_I2C_Read... [19:20:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:20:52]Read from MH i2c: E2 [19:20:52]MH_I2C_Read... [19:20:52]Read from MH i2c: E2 03 00 [19:20:52]MH_I2C_Read... [19:20:52]Read from MH i2c: E2 03 00 46 16 00 90 00 D0 [19:20:52]RAPDU: 90 00 [19:20:52]wFMCommunicate OK [19:20:52]wFMCommunicate request_size=7 [19:20:52]MH_SAM_APDU [19:20:52]CAPDU: 80 0D 02 02 02 D3 5C [19:20:52]Write to MH i2c: E2 0A 00 47 16 80 0D 02 02 02 00 D3 5C 00 00 0A [19:20:52]Write i2c OK [19:20:52]MH_I2C_Read... [19:20:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:20:52]Read from MH i2c: E2 [19:20:52]MH_I2C_Read... [19:20:52]Read from MH i2c: E2 03 00 [19:20:52]MH_I2C_Read... [19:20:52]Read from MH i2c: E2 03 00 47 16 00 90 00 D1 [19:20:52]RAPDU: 90 00 [19:20:52]wFMCommunicate OK [19:20:52]wFMCommunicate request_size=4 [19:20:52]MH_SAM_APDU [19:20:52]CAPDU: 80 0D 03 02 [19:20:52]Write to MH i2c: E2 08 00 48 16 80 0D 03 02 00 00 00 00 D9 [19:20:52]Write i2c OK [19:20:52]MH_I2C_Read... [19:20:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:20:52]Read from MH i2c: E2 [19:20:52]MH_I2C_Read... [19:20:52]Read from MH i2c: E2 0B 00 [19:20:52]MH_I2C_Read... [19:20:52]Read from MH i2c: E2 0B 00 48 16 00 75 EF 75 7A 09 36 6C 6E 90 00 46 [19:20:52]RAPDU: 75 EF 75 7A 09 36 6C 6E 90 00 [19:20:52]wFMCommunicate OK [19:20:52]SAM_PROTO_SignData done [19:20:52]FM_MakeSignedData done [19:20:52]CreateOFDProtocolMessage [19:20:52]wFMCommunicate request_size=4 [19:20:52]MH_SAM_APDU [19:20:52]CAPDU: 80 11 00 00 [19:20:52]Write to MH i2c: E2 08 00 49 16 80 11 00 00 00 00 00 00 D9 [19:20:52]Write i2c OK [19:20:52]MH_I2C_Read... [19:20:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:20:52]Read from MH i2c: E2 [19:20:52]MH_I2C_Read... [19:20:52]Read from MH i2c: E2 17 00 [19:20:52]MH_I2C_Read... [19:20:52]Read from MH i2c: E2 17 00 49 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 2F [19:20:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [19:20:52]wFMCommunicate OK [19:20:52]CreateOFDProtocolMessage done [19:20:52]OFDSenderStorePacket 67888 [19:20:52]StoreOFDPacket docnum=67888 [19:20:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 30 3B 04 01 D2 CA 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2E D1 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 93 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 93 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F0 A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 93 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 94 FF 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 30 09 01 00 35 04 06 00 C3 CB FD E5 D3 5C 75 EF 75 7A 09 36 6C 6E [19:20:52]CheckFolder [19:20:52]dirname=/storage/ofd_packets [19:20:52]CheckFolder done [19:20:52]ProducePacketName [19:20:52]name=ofd_packets/00067888 [19:20:52]NVStorageSaveData ofd_packets/00067888 [19:20:52]File name is /storage/ofd_packets/00067888 [19:20:52]Write 298 bytes [19:20:52]NVStorageSaveData done [19:20:52]OFDSenderStorePacket done [19:20:52]KKMCreateOFDPacket done [19:20:52]NVStorageSaveData kkm_last_timestamp [19:20:52]File name is /storage/kkm_last_timestamp [19:20:52]Write 4 bytes [19:20:52]NVStorageSaveData done [19:20:52]ExternCall_PrintAddStr [19:20:52]wPrintStart [19:20:52]Write to MH i2c: 01 00 00 4A 16 60 [19:20:52]Write i2c OK [19:20:52]MH_I2C_Read... [19:20:52]Read from MH i2c: 01 [19:20:52]MH_I2C_Read... [19:20:52]Read from MH i2c: 01 07 00 [19:20:52]MH_I2C_Read... [19:20:52]Read from MH i2c: 01 07 00 4A 16 00 00 00 00 00 FF 0F 75 [19:20:52]RasterBufferAndPrint [19:20:52]line Счет N : (1)508150 [19:20:52]line ИНН: 02508201610067 [19:20:52]line Контрольно-Кассовый Чек [19:20:52]line ПРОДАЖА [19:20:52]line ТРК (МРК, ГНК) : 41 [19:20:52]line Товар: 2710194210 [19:20:52]line ДТ-К-5 [19:20:52]line 53.550 * 74.70 [19:20:52]line = 4000.19 [19:20:52]line НДС 12% НСП 1% [19:20:52]line > о реализуемом товаре [19:20:52]line ИТОГО: 4000.19 [19:20:52]line НСП 1% : 35.40 [19:20:52]line НДС 12% : 424.80 [19:20:52]line Наличными: 0.00 [19:20:52]line Безнал.: 4000.19 [19:20:52]line Место: АЗС № 91 "Партнер Нефть" [19:20:52]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [19:20:52]line СНО: Общий режим [19:20:52]line Чек 127 18.05.2024 19:20 [19:20:52]line Смена: 359 ФФД: 1.0 [19:20:52]line ЗНМ: 0300000119 [19:20:52]line РНМ: 0000000000091845 [19:20:52]line Версия ККМ: 001 [19:20:52]line Платежная система: O! деньги [19:20:52]line ФМ: 0000000000871829 [19:20:52]line ФД: 67888 [19:20:52]line ФПД: 215280905474908 [19:20:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T192052&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67888&fm=215280905474908&tin=02508201610067®Number=0000000000091845&sum=400019 [19:20:53]OFD Sender: Processing packet 67888 [packets to send 35, broken 34] [19:20:53]ProducePacketName [19:20:53]name=ofd_packets/00067888 [19:20:53]OFD Sender: To server: pG, [19:20:53]CommunicateWithHost lk.salyk.kg:30040 [19:20:53]ConnectInit lk.salyk.kg [19:20:53]written 0, free lines is 4095 [19:20:53]Connected sock=9 [19:20:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 30 3B 04 01 D2 CA 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2E D1 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 93 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 93 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F0 A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 93 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 94 FF 48 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 30 09 01 00 35 04 06 00 C3 CB FD E5 D3 5C 75 EF 75 7A 09 36 6C 6E [19:20:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 7A 77 47 00 81 58 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 30 09 01 00 F4 03 04 00 69 A7 48 66 B6 04 01 00 00 8A 7B CE 76 52 16 B4 A2 [19:20:53]CommunicateWithHost err = 0 [19:20:53]CheckOFDResponse [19:20:53]1017 (14) - 77093643461234 [19:20:53]1041 (16) - 0000000000871829 [19:20:53]1040 (4) - 67888 [19:20:53]1012 (4) - 18.05.2024 13:04 [19:20:53]1206 (1) - 0 [19:20:53]OFD Sender: Remove packet 67888 [19:20:53]ProducePacketName [19:20:53]name=ofd_packets/00067888 [19:20:53]NVStorageDeleteData [19:20:53]Write to MH i2c: 01 00 00 73 16 89 [19:20:53]Write i2c OK [19:20:53]MH_I2C_Read... [19:20:53]Read from MH i2c: 01 [19:20:53]MH_I2C_Read... [19:20:53]Read from MH i2c: 01 07 00 [19:20:53]MH_I2C_Read... [19:20:53]Read from MH i2c: 01 07 00 73 16 00 00 00 00 00 EA 0C 86 [19:20:53]RasterBufferAndPrint [19:20:53]line [19:20:53]line [19:20:53]line [19:20:53]line [19:20:53]line [19:20:53]written 0, free lines is 3315 [19:20:53]MH_Cut [19:20:53]Write to MH i2c: D1 01 00 7A 16 01 62 [19:20:53]Write i2c OK [19:20:53]MH_I2C_Read... [19:20:53]Read from MH i2c: D1 [19:20:53]MH_I2C_Read... [19:20:53]Read from MH i2c: D1 01 00 [19:20:53]MH_I2C_Read... [19:20:53]Read from MH i2c: D1 01 00 7A 16 00 61 [19:20:53]Write to MH i2c: 01 00 00 7B 16 91 [19:20:53]Write i2c OK [19:20:53]MH_I2C_Read... [19:20:54]OFD Sender: No OFD packet to send [19:20:54]*** Cut start [19:20:54]*** Purtial cut [19:20:54]*** Stage 1: CUTSNS_PIN = 1 [19:20:54]Read from MH i2c: 01 [19:20:54]MH_I2C_Read... [19:20:54]*** Stop cut motor [19:20:54]*** Cut end [19:20:54]Read from MH i2c: 01 07 00 [19:20:54]MH_I2C_Read... [19:20:54]Read from MH i2c: 01 07 00 7B 16 00 00 00 00 00 FF 0F A6 [19:20:54]process_action close_receipt done [19:20:54]requested_data is exist [19:20:54]produce_requested_data [19:20:54]requested_item fm.sn is exist - process it [19:20:54]wFMCommunicate request_size=4 [19:20:54]MH_SAM_APDU [19:20:54]CAPDU: 80 11 00 00 [19:20:54]Write to MH i2c: E2 08 00 7C 16 80 11 00 00 00 00 00 00 0C [19:20:54]Write i2c OK [19:20:54]MH_I2C_Read... [19:20:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:20:54]Read from MH i2c: E2 [19:20:54]MH_I2C_Read... [19:20:54]Read from MH i2c: E2 17 00 [19:20:54]MH_I2C_Read... [19:20:54]Read from MH i2c: E2 17 00 7C 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 62 [19:20:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [19:20:54]wFMCommunicate OK [19:20:54]requested_item fd.num is exist - process it [19:20:54]SAM_PROTO_GetFieldsCounters [19:20:54]wFMCommunicate request_size=4 [19:20:54]MH_SAM_APDU [19:20:54]CAPDU: 80 13 00 00 [19:20:54]Write to MH i2c: E2 08 00 7D 16 80 13 00 00 00 00 00 00 0F [19:20:54]Write i2c OK [19:20:54]MH_I2C_Read... [19:20:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:20:54]Read from MH i2c: E2 [19:20:54]MH_I2C_Read... [19:20:54]Read from MH i2c: E2 62 00 [19:20:55]MH_I2C_Read... [19:20:55]Read from MH i2c: E2 62 00 7D 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 30 09 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 7F 00 00 00 5E 04 04 00 7F 00 00 00 57 04 04 00 80 00 00 00 19 04 04 00 00 00 00 00 90 00 54 [19:20:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 30 09 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 7F 00 00 00 5E 04 04 00 7F 00 00 00 57 04 04 00 80 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:20:55]wFMCommunicate OK [19:20:55]SAM_PROTO_GetFieldsCounters done [19:20:55]requested_item shift.num is exist - process it [19:20:55]requested_item shift.opened is exist - process it [19:20:55]req_shift_opened [19:20:55]FM_GetShiftState [19:20:55]SAM_PROTO_GetShiftState [19:20:55]wFMCommunicate request_size=4 [19:20:55]MH_SAM_APDU [19:20:55]CAPDU: 80 13 01 00 [19:20:55]Write to MH i2c: E2 08 00 7E 16 80 13 01 00 00 00 00 00 11 [19:20:55]Write i2c OK [19:20:55]MH_I2C_Read... [19:20:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:20:55]Read from MH i2c: E2 [19:20:55]MH_I2C_Read... [19:20:55]Read from MH i2c: E2 0E 00 [19:20:55]MH_I2C_Read... [19:20:55]Read from MH i2c: E2 0E 00 7E 16 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 78 [19:20:55]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [19:20:55]wFMCommunicate OK [19:20:55]SAM_PROTO_GetShiftState done [19:20:55]FM_GetShiftState done [19:20:55]req_shift_opened done [19:20:55]requested_item shift.open_date is exist - process it [19:20:55]req_shift_open_date [19:20:55]req_shift_open_date done [19:20:55]produce_requested_data done [19:20:55]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67888,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [19:20:55]process_action_free close_receipt [19:20:55]json_value_free [19:20:55]json_value_free done [19:20:55]process_json_proto returns [19:20:55]Send response to host [19:20:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67888,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [19:20:55]free response buf [19:20:55]execute_script done [19:20:55]execute_script returns [19:20:55]free content buf [19:20:55]Sock 7.Close socket [19:20:55]Sock 7.Thread stoped [19:20:59]OFD Sender: No OFD packet to send [19:21:04]OFD Sender: No OFD packet to send [19:21:09]OFD Sender: No OFD packet to send [19:21:14]OFD Sender: No OFD packet to send [19:21:19]OFD Sender: No OFD packet to send [19:21:24]OFD Sender: No OFD packet to send [19:21:29]OFD Sender: No OFD packet to send [19:21:34]OFD Sender: No OFD packet to send [19:21:39]OFD Sender: No OFD packet to send [19:21:44]OFD Sender: No OFD packet to send [19:21:49]OFD Sender: No OFD packet to send [19:21:54]OFD Sender: No OFD packet to send [19:21:59]OFD Sender: No OFD packet to send [19:22:04]OFD Sender: No OFD packet to send [19:22:09]OFD Sender: No OFD packet to send [19:22:14]OFD Sender: No OFD packet to send [19:22:19]OFD Sender: No OFD packet to send [19:22:24]OFD Sender: No OFD packet to send [19:22:29]OFD Sender: No OFD packet to send [19:22:34]OFD Sender: No OFD packet to send [19:22:39]OFD Sender: No OFD packet to send [19:22:44]OFD Sender: No OFD packet to send [19:22:49]OFD Sender: No OFD packet to send [19:22:54]OFD Sender: No OFD packet to send [19:22:59]OFD Sender: No OFD packet to send [19:23:04]OFD Sender: No OFD packet to send [19:23:09]OFD Sender: No OFD packet to send [19:23:14]OFD Sender: No OFD packet to send [19:23:19]OFD Sender: No OFD packet to send [19:23:24]OFD Sender: No OFD packet to send [19:23:29]OFD Sender: No OFD packet to send [19:23:34]OFD Sender: No OFD packet to send [19:23:39]OFD Sender: No OFD packet to send [19:23:44]OFD Sender: No OFD packet to send [19:23:49]OFD Sender: No OFD packet to send [19:23:54]OFD Sender: No OFD packet to send [19:23:59]OFD Sender: No OFD packet to send [19:24:04]OFD Sender: No OFD packet to send [19:24:09]OFD Sender: No OFD packet to send [19:24:14]OFD Sender: No OFD packet to send [19:24:19]OFD Sender: No OFD packet to send [19:24:21]accept exits with 10 [19:24:21]New connection [19:24:21]New thread 3067202916 created [19:24:21]Thread 3067059556 joined [19:24:21]Waiting for new connection... [19:24:21] Sock 10.Parse request [19:24:21]Sock 10.Check first char [19:24:21]Sock 10.First char is OK [19:24:21]request: POST /json_proto HTTP/1.0 [19:24:21]Method: POST [19:24:21]URL: /json_proto [19:24:21]Method is POST - this is cgi request [19:24:21]url: /json_proto [19:24:21]query_string will be loaded in cgi processing [19:24:21]execute_cgi json_proto POST (null) [19:24:21]execute_cgi path=json_proto method=POST [19:24:21]POST find Content-Length [19:24:21]Host: 172.17.41.195:8080 [19:24:21]Content-Length: 678 [19:24:21]Content-Type: application/json [19:24:21] [19:24:21]POST finish read [19:24:21]Found Content-Length = 678 [19:24:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)508152", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.80, "quantity" : 10.480, "sum" : 700.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:24:21]execute_script... [19:24:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)508152", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.80, "quantity" : 10.480, "sum" : 700.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:24:21]POST & json_proto [19:24:21]process_json_proto [19:24:21]json parsed OK: [19:24:21]protocol is kg_v1.0 [19:24:21]action value=close_receipt [19:24:21]process_action close_receipt [19:24:21]cmd_close_receipt [19:24:21]MH_GetDate [19:24:21]Write to MH i2c: F0 00 00 7F 16 84 [19:24:21]Write i2c OK [19:24:21]MH_I2C_Read... [19:24:21]Read from MH i2c: F0 [19:24:21]MH_I2C_Read... [19:24:21]Read from MH i2c: F0 09 00 [19:24:21]MH_I2C_Read... [19:24:21]Read from MH i2c: F0 09 00 7F 16 00 67 00 49 66 FC 21 6F 64 93 [19:24:21]GetLastDocTimeStamp 1716060052 [19:24:21]current date 1716060263 [19:24:21]FM_GetShiftState [19:24:21]SAM_PROTO_GetShiftState [19:24:21]wFMCommunicate request_size=4 [19:24:21]MH_SAM_APDU [19:24:21]CAPDU: 80 13 01 00 [19:24:21]Write to MH i2c: E2 08 00 80 16 80 13 01 00 00 00 00 00 13 [19:24:21]Write i2c OK [19:24:21]MH_I2C_Read... [19:24:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:24:21]Read from MH i2c: E2 [19:24:21]MH_I2C_Read... [19:24:21]Read from MH i2c: E2 0E 00 [19:24:21]MH_I2C_Read... [19:24:21]Read from MH i2c: E2 0E 00 80 16 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 7A [19:24:21]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [19:24:21]wFMCommunicate OK [19:24:21]SAM_PROTO_GetShiftState done [19:24:21]FM_GetShiftState done [19:24:21]opened in 1715991483 [19:24:21]opened+sec_in_day 1716077883 [19:24:21]quantity*price = 70006 [19:24:21]sum+1 = 70007 [19:24:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.19 НДС 12% : 74.34 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 128 18.05.2024 19:24 Смена: 359 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67889 ФПД: 36587655904645 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T192423&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67889&fm=36587655904645&tin=02508201610067®Number=0000000000091845&sum=70000 [19:24:22]StoreToDocumentArchive [19:24:22]shift 359 fd 67889 [19:24:22]save to /storage/0359/doc_00067889 [19:24:22]save last doc name /storage/0359/doc_00067889 to /storage/kkm_last_doc_name [19:24:22]save OK [19:24:22]Clear old archive folders... [19:24:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:24:22]tlvbuf is B6EFE8E0 [19:24:22]SAM_PROTO_ClearQueue [19:24:22]wFMCommunicate request_size=4 [19:24:22]MH_SAM_APDU [19:24:22]CAPDU: 80 09 00 00 [19:24:22]Write to MH i2c: E2 08 00 8D 16 80 09 00 00 00 00 00 00 15 [19:24:22]Write i2c OK [19:24:22]MH_I2C_Read... [19:24:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:24:22]Read from MH i2c: E2 [19:24:22]MH_I2C_Read... [19:24:22]Read from MH i2c: E2 03 00 [19:24:22]MH_I2C_Read... [19:24:22]Read from MH i2c: E2 03 00 8D 16 00 90 00 17 [19:24:22]RAPDU: 90 00 [19:24:22]wFMCommunicate OK [19:24:22]SAM_PROTO_ClearQueue done [19:24:22]KKMCreateOFDPacket [19:24:22]OFDProtocolAddRootSTLVToBuf [19:24:22]FM_MakeSignedData [19:24:22]FM_MakeSignedData [19:24:22]SAM_PROTO_SignData [19:24:22]wFMCommunicate request_size=4 [19:24:22]MH_SAM_APDU [19:24:22]CAPDU: 80 0D 01 02 [19:24:22]Write to MH i2c: E2 08 00 8E 16 80 0D 01 02 00 00 00 00 1D [19:24:22]Write i2c OK [19:24:22]MH_I2C_Read... [19:24:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:24:22]Read from MH i2c: E2 [19:24:22]MH_I2C_Read... [19:24:22]Read from MH i2c: E2 03 00 [19:24:22]MH_I2C_Read... [19:24:22]Read from MH i2c: E2 03 00 8E 16 00 90 00 18 [19:24:22]RAPDU: 90 00 [19:24:22]wFMCommunicate OK [19:24:22]wFMCommunicate request_size=255 [19:24:22]MH_SAM_APDU [19:24:22]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 28 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 76 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 67 00 49 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 31 09 01 00 35 04 06 00 21 [19:24:22]Write to MH i2c: E2 02 01 8F 16 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 28 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 76 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 67 00 49 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 31 09 01 00 35 04 06 00 21 00 00 F0 [19:24:22]Write i2c OK [19:24:22]MH_I2C_Read... [19:24:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:24:22]Read from MH i2c: E2 [19:24:22]MH_I2C_Read... [19:24:22]Read from MH i2c: E2 03 00 [19:24:22]MH_I2C_Read... [19:24:22]Read from MH i2c: E2 03 00 8F 16 00 90 00 19 [19:24:22]RAPDU: 90 00 [19:24:22]wFMCommunicate OK [19:24:22]wFMCommunicate request_size=10 [19:24:22]MH_SAM_APDU [19:24:22]CAPDU: 80 0D 02 02 05 46 BA 3B BD 85 [19:24:22]Write to MH i2c: E2 0D 00 90 16 80 0D 02 02 05 00 46 BA 3B BD 85 00 00 A7 [19:24:22]Write i2c OK [19:24:22]MH_I2C_Read... [19:24:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:24:23]Read from MH i2c: E2 [19:24:23]MH_I2C_Read... [19:24:23]Read from MH i2c: E2 03 00 [19:24:23]MH_I2C_Read... [19:24:23]Read from MH i2c: E2 03 00 90 16 00 90 00 1A [19:24:23]RAPDU: 90 00 [19:24:23]wFMCommunicate OK [19:24:23]wFMCommunicate request_size=4 [19:24:23]MH_SAM_APDU [19:24:23]CAPDU: 80 0D 03 02 [19:24:23]Write to MH i2c: E2 08 00 91 16 80 0D 03 02 00 00 00 00 22 [19:24:23]Write i2c OK [19:24:23]MH_I2C_Read... [19:24:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:24:23]Read from MH i2c: E2 [19:24:23]MH_I2C_Read... [19:24:23]Read from MH i2c: E2 0B 00 [19:24:23]MH_I2C_Read... [19:24:23]Read from MH i2c: E2 0B 00 91 16 00 5D F2 ED 93 04 C1 A3 51 90 00 AB [19:24:23]RAPDU: 5D F2 ED 93 04 C1 A3 51 90 00 [19:24:23]wFMCommunicate OK [19:24:23]SAM_PROTO_SignData done [19:24:23]FM_MakeSignedData done [19:24:23]CreateOFDProtocolMessage [19:24:23]wFMCommunicate request_size=4 [19:24:23]MH_SAM_APDU [19:24:23]CAPDU: 80 11 00 00 [19:24:23]Write to MH i2c: E2 08 00 92 16 80 11 00 00 00 00 00 00 22 [19:24:23]Write i2c OK [19:24:23]MH_I2C_Read... [19:24:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:24:23]Read from MH i2c: E2 [19:24:23]MH_I2C_Read... [19:24:23]Read from MH i2c: E2 17 00 [19:24:23]MH_I2C_Read... [19:24:23]Read from MH i2c: E2 17 00 92 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 78 [19:24:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [19:24:23]wFMCommunicate OK [19:24:23]CreateOFDProtocolMessage done [19:24:23]OFDSenderStorePacket 67889 [19:24:23]StoreOFDPacket docnum=67889 [19:24:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 AD 17 07 01 40 1E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 28 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 76 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 67 00 49 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 31 09 01 00 35 04 06 00 21 46 BA 3B BD 85 5D F2 ED 93 04 C1 A3 51 [19:24:23]CheckFolder [19:24:23]dirname=/storage/ofd_packets [19:24:23]CheckFolder done [19:24:23]ProducePacketName [19:24:23]name=ofd_packets/00067889 [19:24:23]NVStorageSaveData ofd_packets/00067889 [19:24:23]File name is /storage/ofd_packets/00067889 [19:24:23]Write 301 bytes [19:24:23]NVStorageSaveData done [19:24:23]OFDSenderStorePacket done [19:24:23]KKMCreateOFDPacket done [19:24:23]NVStorageSaveData kkm_last_timestamp [19:24:23]File name is /storage/kkm_last_timestamp [19:24:23]Write 4 bytes [19:24:23]NVStorageSaveData done [19:24:23]ExternCall_PrintAddStr [19:24:23]wPrintStart [19:24:23]Write to MH i2c: 01 00 00 93 16 A9 [19:24:23]Write i2c OK [19:24:23]MH_I2C_Read... [19:24:23]Read from MH i2c: 01 [19:24:23]MH_I2C_Read... [19:24:23]Read from MH i2c: 01 07 00 [19:24:23]MH_I2C_Read... [19:24:23]Read from MH i2c: 01 07 00 93 16 00 00 00 00 00 FF 0F BE [19:24:23]RasterBufferAndPrint [19:24:23]line Счет N : (1)508152 [19:24:23]line ИНН: 02508201610067 [19:24:23]line Контрольно-Кассовый Чек [19:24:23]line ПРОДАЖА [19:24:23]line ТРК (МРК, ГНК) : 33 [19:24:23]line Товар: 2710124130 [19:24:23]line Аи-92-К-5 [19:24:23]line 10.480 * 66.80 [19:24:23]line = 700.06 [19:24:23]line НДС 12% НСП 1% [19:24:23]line > о реализуемом товаре [19:24:23]line ОКРУГЛЕНИЕ: -0.06 [19:24:23]line ИТОГО: 700.00 [19:24:23]line Внесено: 700.00 [19:24:23]line СДАЧА: 0.00 [19:24:23]line НСП 1% : 6.19 [19:24:23]line НДС 12% : 74.34 [19:24:23]line Наличными: 700.00 [19:24:23]line Безнал.: 0.00 [19:24:23]line Место: АЗС № 91 "Партнер Нефть" [19:24:23]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [19:24:23]line СНО: Общий режим [19:24:23]line Чек 128 18.05.2024 19:24 [19:24:23]line Смена: 359 ФФД: 1.0 [19:24:23]line ЗНМ: 0300000119 [19:24:23]line РНМ: 0000000000091845 [19:24:23]line Версия ККМ: 001 [19:24:23]line ФМ: 0000000000871829 [19:24:23]line ФД: 67889 [19:24:23]line ФПД: 36587655904645 [19:24:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T192423&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67889&fm=36587655904645&tin=02508201610067®Number=0000000000091845&sum=70000 [19:24:23]OFD Sender: Processing packet 67889 [packets to send 35, broken 34] [19:24:23]ProducePacketName [19:24:23]name=ofd_packets/00067889 [19:24:23]OFD Sender: To server: pG, [19:24:23]CommunicateWithHost lk.salyk.kg:30040 [19:24:23]ConnectInit lk.salyk.kg [19:24:23]written 0, free lines is 4095 [19:24:23]Connected sock=9 [19:24:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 AD 17 07 01 40 1E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 28 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 76 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 67 00 49 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 31 09 01 00 35 04 06 00 21 46 BA 3B BD 85 5D F2 ED 93 04 C1 A3 51 [19:24:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 30 61 47 00 A3 33 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 31 09 01 00 F4 03 04 00 3B A8 48 66 B6 04 01 00 00 DD 09 EE 10 A7 68 42 A6 [19:24:23]CommunicateWithHost err = 0 [19:24:23]CheckOFDResponse [19:24:23]1017 (14) - 77093643461234 [19:24:23]1041 (16) - 0000000000871829 [19:24:23]1040 (4) - 67889 [19:24:23]1012 (4) - 18.05.2024 13:08 [19:24:23]1206 (1) - 0 [19:24:23]OFD Sender: Remove packet 67889 [19:24:23]ProducePacketName [19:24:23]name=ofd_packets/00067889 [19:24:23]NVStorageDeleteData [19:24:23]Write to MH i2c: 01 00 00 BD 16 D3 [19:24:23]Write i2c OK [19:24:23]MH_I2C_Read... [19:24:23]Read from MH i2c: 01 [19:24:23]MH_I2C_Read... [19:24:23]Read from MH i2c: 01 07 00 [19:24:23]MH_I2C_Read... [19:24:23]Read from MH i2c: 01 07 00 BD 16 00 00 00 00 00 D7 0C BD [19:24:23]RasterBufferAndPrint [19:24:23]line [19:24:23]line [19:24:23]line [19:24:23]line [19:24:23]line [19:24:23]written 0, free lines is 3293 [19:24:23]MH_Cut [19:24:23]Write to MH i2c: D1 01 00 C4 16 01 AC [19:24:23]Write i2c OK [19:24:23]MH_I2C_Read... [19:24:23]Read from MH i2c: D1 [19:24:23]MH_I2C_Read... [19:24:23]Read from MH i2c: D1 01 00 [19:24:23]MH_I2C_Read... [19:24:23]Read from MH i2c: D1 01 00 C4 16 00 AB [19:24:23]Write to MH i2c: 01 00 00 C5 16 DB [19:24:23]Write i2c OK [19:24:23]MH_I2C_Read... [19:24:24]OFD Sender: No OFD packet to send [19:24:24]*** Cut start [19:24:24]*** Purtial cut [19:24:24]*** Stage 1: CUTSNS_PIN = 1 [19:24:24]Read from MH i2c: 01 [19:24:24]MH_I2C_Read... [19:24:24]*** Stop cut motor [19:24:24]*** Cut end [19:24:24]Read from MH i2c: 01 07 00 [19:24:24]MH_I2C_Read... [19:24:24]Read from MH i2c: 01 07 00 C5 16 00 00 00 00 00 FF 0F F0 [19:24:25]process_action close_receipt done [19:24:25]requested_data is exist [19:24:25]produce_requested_data [19:24:25]requested_item fm.sn is exist - process it [19:24:25]wFMCommunicate request_size=4 [19:24:25]MH_SAM_APDU [19:24:25]CAPDU: 80 11 00 00 [19:24:25]Write to MH i2c: E2 08 00 C6 16 80 11 00 00 00 00 00 00 56 [19:24:25]Write i2c OK [19:24:25]MH_I2C_Read... [19:24:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:24:25]Read from MH i2c: E2 [19:24:25]MH_I2C_Read... [19:24:25]Read from MH i2c: E2 17 00 [19:24:25]MH_I2C_Read... [19:24:25]Read from MH i2c: E2 17 00 C6 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 AC [19:24:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [19:24:25]wFMCommunicate OK [19:24:25]requested_item fd.num is exist - process it [19:24:25]SAM_PROTO_GetFieldsCounters [19:24:25]wFMCommunicate request_size=4 [19:24:25]MH_SAM_APDU [19:24:25]CAPDU: 80 13 00 00 [19:24:25]Write to MH i2c: E2 08 00 C7 16 80 13 00 00 00 00 00 00 59 [19:24:25]Write i2c OK [19:24:25]MH_I2C_Read... [19:24:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:24:25]Read from MH i2c: E2 [19:24:25]MH_I2C_Read... [19:24:25]Read from MH i2c: E2 62 00 [19:24:25]MH_I2C_Read... [19:24:25]Read from MH i2c: E2 62 00 C7 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 31 09 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 80 00 00 00 5E 04 04 00 80 00 00 00 57 04 04 00 81 00 00 00 19 04 04 00 00 00 00 00 90 00 A2 [19:24:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 31 09 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 80 00 00 00 5E 04 04 00 80 00 00 00 57 04 04 00 81 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:24:25]wFMCommunicate OK [19:24:25]SAM_PROTO_GetFieldsCounters done [19:24:25]requested_item shift.num is exist - process it [19:24:25]requested_item shift.opened is exist - process it [19:24:25]req_shift_opened [19:24:25]FM_GetShiftState [19:24:25]SAM_PROTO_GetShiftState [19:24:25]wFMCommunicate request_size=4 [19:24:25]MH_SAM_APDU [19:24:25]CAPDU: 80 13 01 00 [19:24:25]Write to MH i2c: E2 08 00 C8 16 80 13 01 00 00 00 00 00 5B [19:24:25]Write i2c OK [19:24:25]MH_I2C_Read... [19:24:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:24:25]Read from MH i2c: E2 [19:24:25]MH_I2C_Read... [19:24:25]Read from MH i2c: E2 0E 00 [19:24:25]MH_I2C_Read... [19:24:25]Read from MH i2c: E2 0E 00 C8 16 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 C2 [19:24:25]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [19:24:25]wFMCommunicate OK [19:24:25]SAM_PROTO_GetShiftState done [19:24:25]FM_GetShiftState done [19:24:25]req_shift_opened done [19:24:25]requested_item shift.open_date is exist - process it [19:24:25]req_shift_open_date [19:24:25]req_shift_open_date done [19:24:25]produce_requested_data done [19:24:25]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67889,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [19:24:25]process_action_free close_receipt [19:24:25]json_value_free [19:24:25]json_value_free done [19:24:25]process_json_proto returns [19:24:25]Send response to host [19:24:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67889,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [19:24:25]free response buf [19:24:25]execute_script done [19:24:25]execute_script returns [19:24:25]free content buf [19:24:25]Sock 10.Close socket [19:24:25]Sock 10.Thread stoped [19:24:29]OFD Sender: No OFD packet to send [19:24:34]OFD Sender: No OFD packet to send [19:24:39]OFD Sender: No OFD packet to send [19:24:44]OFD Sender: No OFD packet to send [19:24:49]OFD Sender: No OFD packet to send [19:24:54]OFD Sender: No OFD packet to send [19:24:59]OFD Sender: No OFD packet to send [19:25:04]OFD Sender: No OFD packet to send [19:25:09]OFD Sender: No OFD packet to send [19:25:14]OFD Sender: No OFD packet to send [19:25:19]OFD Sender: No OFD packet to send [19:25:24]OFD Sender: No OFD packet to send [19:25:26]accept exits with 7 [19:25:26]New connection [19:25:26]New thread 3067059556 created [19:25:26]Thread 3067202916 joined [19:25:26]Waiting for new connection... [19:25:26] Sock 7.Parse request [19:25:26]Sock 7.Check first char [19:25:26]Sock 7.First char is OK [19:25:26]request: POST /json_proto HTTP/1.0 [19:25:26]Method: POST [19:25:26]URL: /json_proto [19:25:26]Method is POST - this is cgi request [19:25:26]url: /json_proto [19:25:26]query_string will be loaded in cgi processing [19:25:26]execute_cgi json_proto POST (null) [19:25:26]execute_cgi path=json_proto method=POST [19:25:26]POST find Content-Length [19:25:26]Host: 172.17.41.195:8080 [19:25:26]Content-Length: 215 [19:25:26]Content-Type: application/json [19:25:26] [19:25:26]POST finish read [19:25:26]Found Content-Length = 215 [19:25:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:25:26]execute_script... [19:25:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:25:26]POST & json_proto [19:25:26]process_json_proto [19:25:26]json parsed OK: [19:25:26]protocol is kg_v1.0 [19:25:26]action value=get_value [19:25:26]process_action get_value [19:25:26]cmd_get_value [19:25:26]process_action get_value done [19:25:26]requested_data is exist [19:25:26]produce_requested_data [19:25:26]requested_item kkm.sn is exist - process it [19:25:26]requested_item kkm.ver is exist - process it [19:25:26]requested_item fm.sn is exist - process it [19:25:26]wFMCommunicate request_size=4 [19:25:26]MH_SAM_APDU [19:25:26]CAPDU: 80 11 00 00 [19:25:26]Write to MH i2c: E2 08 00 C9 16 80 11 00 00 00 00 00 00 59 [19:25:26]Write i2c OK [19:25:26]MH_I2C_Read... [19:25:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:25:26]Read from MH i2c: E2 [19:25:26]MH_I2C_Read... [19:25:26]Read from MH i2c: E2 17 00 [19:25:26]MH_I2C_Read... [19:25:26]Read from MH i2c: E2 17 00 C9 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 AF [19:25:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [19:25:26]wFMCommunicate OK [19:25:26]requested_item fd.num is exist - process it [19:25:26]SAM_PROTO_GetFieldsCounters [19:25:26]wFMCommunicate request_size=4 [19:25:26]MH_SAM_APDU [19:25:26]CAPDU: 80 13 00 00 [19:25:26]Write to MH i2c: E2 08 00 CA 16 80 13 00 00 00 00 00 00 5C [19:25:26]Write i2c OK [19:25:26]MH_I2C_Read... [19:25:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:25:26]Read from MH i2c: E2 [19:25:26]MH_I2C_Read... [19:25:26]Read from MH i2c: E2 62 00 [19:25:26]MH_I2C_Read... [19:25:26]Read from MH i2c: E2 62 00 CA 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 31 09 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 80 00 00 00 5E 04 04 00 80 00 00 00 57 04 04 00 81 00 00 00 19 04 04 00 00 00 00 00 90 00 A5 [19:25:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 31 09 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 80 00 00 00 5E 04 04 00 80 00 00 00 57 04 04 00 81 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:25:26]wFMCommunicate OK [19:25:26]SAM_PROTO_GetFieldsCounters done [19:25:26]requested_item shift.num is exist - process it [19:25:26]requested_item shift.opened is exist - process it [19:25:26]req_shift_opened [19:25:26]FM_GetShiftState [19:25:26]SAM_PROTO_GetShiftState [19:25:26]wFMCommunicate request_size=4 [19:25:26]MH_SAM_APDU [19:25:26]CAPDU: 80 13 01 00 [19:25:26]Write to MH i2c: E2 08 00 CB 16 80 13 01 00 00 00 00 00 5E [19:25:26]Write i2c OK [19:25:26]MH_I2C_Read... [19:25:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:25:26]Read from MH i2c: E2 [19:25:26]MH_I2C_Read... [19:25:26]Read from MH i2c: E2 0E 00 [19:25:26]MH_I2C_Read... [19:25:26]Read from MH i2c: E2 0E 00 CB 16 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 C5 [19:25:26]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [19:25:26]wFMCommunicate OK [19:25:26]SAM_PROTO_GetShiftState done [19:25:26]FM_GetShiftState done [19:25:26]req_shift_opened done [19:25:26]requested_item shift.open_date is exist - process it [19:25:26]req_shift_open_date [19:25:26]req_shift_open_date done [19:25:26]produce_requested_data done [19:25:26]produce_requested_data return {"kkm.sn":"0300000119","kkm.ver":"001","fm.sn":"0000000000871829","fd.num":67889,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [19:25:26]process_action_free get_value [19:25:26]json_value_free [19:25:26]json_value_free done [19:25:26]process_json_proto returns [19:25:26]Send response to host [19:25:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000119","kkm.ver":"001","fm.sn":"0000000000871829","fd.num":67889,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [19:25:26]free response buf [19:25:26]execute_script done [19:25:26]execute_script returns [19:25:26]free content buf [19:25:26]Sock 7.Close socket [19:25:26]Sock 7.Thread stoped [19:25:26]accept exits with 9 [19:25:26]New connection [19:25:26]New thread 3067202916 created [19:25:26]Thread 3067059556 joined [19:25:26]Waiting for new connection... [19:25:26] Sock 9.Parse request [19:25:26]Sock 9.Check first char [19:25:26]Sock 9.First char is OK [19:25:26]request: POST /json_proto HTTP/1.0 [19:25:26]Method: POST [19:25:26]URL: /json_proto [19:25:26]Method is POST - this is cgi request [19:25:26]url: /json_proto [19:25:26]query_string will be loaded in cgi processing [19:25:26]execute_cgi json_proto POST (null) [19:25:26]execute_cgi path=json_proto method=POST [19:25:26]POST find Content-Length [19:25:26]Host: 172.17.41.195:8080 [19:25:26]Content-Length: 331 [19:25:26]Content-Type: application/json [19:25:26] [19:25:26]POST finish read [19:25:26]Found Content-Length = 331 [19:25:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [19:25:26]execute_script... [19:25:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [19:25:27]POST & json_proto [19:25:27]process_json_proto [19:25:27]json parsed OK: [19:25:27]protocol is kg_v1.0 [19:25:27]action value=get_value [19:25:27]process_action get_value [19:25:27]cmd_get_value [19:25:27]process_action get_value done [19:25:27]requested_data is exist [19:25:27]produce_requested_data [19:25:27]requested_item fm.sale.total is exist - process it [19:25:27]SAM_PROTO_GetFMData [19:25:27]wFMCommunicate request_size=4 [19:25:27]MH_SAM_APDU [19:25:27]CAPDU: 80 13 03 00 [19:25:27]Write to MH i2c: E2 08 00 CC 16 80 13 03 00 00 00 00 00 61 [19:25:27]Write i2c OK [19:25:27]MH_I2C_Read... [19:25:27]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [19:25:27]Read from MH i2c: E2 [19:25:27]MH_I2C_Read... [19:25:27]Read from MH i2c: E2 FD 00 [19:25:27]MH_I2C_Read... [19:25:27]Read from MH i2c: E2 FD 00 CC 16 00 C6 04 85 04 C2 04 6E 04 04 00 63 06 01 00 69 04 A3 00 6F 04 04 00 B9 05 01 00 B1 04 05 00 36 69 8A 1E 03 70 04 05 00 E8 A1 E9 C0 02 72 04 04 00 4E C7 A0 5D 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 86 F9 CF 54 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 2B 40 11 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9D 00 6F 04 04 00 AA 00 00 00 B1 04 04 00 00 23 C3 DC 70 04 04 00 00 23 C3 DC 72 04 00 00 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 DD 9D 71 17 EF 03 09 90 00 97 [19:25:27]RAPDU: C6 04 85 04 C2 04 6E 04 04 00 63 06 01 00 69 04 A3 00 6F 04 04 00 B9 05 01 00 B1 04 05 00 36 69 8A 1E 03 70 04 05 00 E8 A1 E9 C0 02 72 04 04 00 4E C7 A0 5D 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 86 F9 CF 54 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 2B 40 11 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9D 00 6F 04 04 00 AA 00 00 00 B1 04 04 00 00 23 C3 DC 70 04 04 00 00 23 C3 DC 72 04 00 00 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 DD 9D 71 17 EF 03 09 90 00 [19:25:27]wFMCommunicate OK [19:25:27]wFMCommunicate request_size=4 [19:25:27]MH_SAM_APDU [19:25:27]CAPDU: 80 17 00 00 [19:25:27]Write to MH i2c: E2 08 00 CD 16 80 17 00 00 00 00 00 00 63 [19:25:27]Write i2c OK [19:25:27]MH_I2C_Read... [19:25:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:25:27]Read from MH i2c: E2 [19:25:27]MH_I2C_Read... [19:25:27]Read from MH i2c: E2 FD 00 [19:25:27]MH_I2C_Read... [19:25:27]Read from MH i2c: E2 FD 00 CD 16 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 70 22 F4 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 90 00 9E [19:25:27]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 70 22 F4 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 90 00 [19:25:27]wFMCommunicate OK [19:25:27]wFMCommunicate request_size=4 [19:25:27]MH_SAM_APDU [19:25:27]CAPDU: 80 17 00 00 [19:25:27]Write to MH i2c: E2 08 00 CE 16 80 17 00 00 00 00 00 00 64 [19:25:27]Write i2c OK [19:25:27]MH_I2C_Read... [19:25:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:25:28]Read from MH i2c: E2 [19:25:28]MH_I2C_Read... [19:25:28]Read from MH i2c: E2 FD 00 [19:25:28]MH_I2C_Read... [19:25:28]Read from MH i2c: E2 FD 00 CE 16 00 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 90 00 8B [19:25:28]RAPDU: 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 90 00 [19:25:28]wFMCommunicate OK [19:25:28]wFMCommunicate request_size=4 [19:25:28]MH_SAM_APDU [19:25:28]CAPDU: 80 17 00 00 [19:25:28]Write to MH i2c: E2 08 00 CF 16 80 17 00 00 00 00 00 00 65 [19:25:28]Write i2c OK [19:25:28]MH_I2C_Read... [19:25:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:25:28]Read from MH i2c: E2 [19:25:28]MH_I2C_Read... [19:25:28]Read from MH i2c: E2 FD 00 [19:25:28]MH_I2C_Read... [19:25:28]Read from MH i2c: E2 FD 00 CF 16 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 E0 [19:25:28]RAPDU: EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 [19:25:28]wFMCommunicate OK [19:25:28]wFMCommunicate request_size=4 [19:25:28]MH_SAM_APDU [19:25:28]CAPDU: 80 17 00 00 [19:25:28]Write to MH i2c: E2 08 00 D0 16 80 17 00 00 00 00 00 00 66 [19:25:28]Write i2c OK [19:25:28]MH_I2C_Read... [19:25:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 224! [19:25:28]Read from MH i2c: E2 [19:25:28]MH_I2C_Read... [19:25:28]Read from MH i2c: E2 E3 00 [19:25:28]MH_I2C_Read... [19:25:28]Read from MH i2c: E2 E3 00 D0 16 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 45 [19:25:28]RAPDU: 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [19:25:28]wFMCommunicate OK [19:25:28]SAM_PROTO_GetFMData done [19:25:28]requested_item fm.sale_refund.total is exist - process it [19:25:28]requested_item fm.buy.total is exist - process it [19:25:28]requested_item shift.sale.total is exist - process it [19:25:28]SAM_PROTO_GetShiftData [19:25:28]wFMCommunicate request_size=4 [19:25:28]MH_SAM_APDU [19:25:28]CAPDU: 80 13 02 00 [19:25:28]Write to MH i2c: E2 08 00 D1 16 80 13 02 00 00 00 00 00 65 [19:25:28]Write i2c OK [19:25:28]MH_I2C_Read... [19:25:29]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [19:25:29]Read from MH i2c: E2 [19:25:29]MH_I2C_Read... [19:25:29]Read from MH i2c: E2 FD 00 [19:25:29]MH_I2C_Read... [19:25:29]Read from MH i2c: E2 FD 00 D1 16 00 AF 04 AA 04 AB 04 6E 04 04 00 80 00 00 00 69 04 9C 00 6F 04 04 00 80 00 00 00 B1 04 03 00 AA 78 FB 70 04 03 00 2C AD 26 72 04 03 00 7E CB D4 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 E2 B4 1A EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 B1 39 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 0A [19:25:29]RAPDU: AF 04 AA 04 AB 04 6E 04 04 00 80 00 00 00 69 04 9C 00 6F 04 04 00 80 00 00 00 B1 04 03 00 AA 78 FB 70 04 03 00 2C AD 26 72 04 03 00 7E CB D4 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 E2 B4 1A EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 B1 39 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 [19:25:29]wFMCommunicate OK [19:25:29]wFMCommunicate request_size=4 [19:25:29]MH_SAM_APDU [19:25:29]CAPDU: 80 17 00 00 [19:25:29]Write to MH i2c: E2 08 00 D2 16 80 17 00 00 00 00 00 00 68 [19:25:29]Write i2c OK [19:25:29]MH_I2C_Read... [19:25:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:25:29]Read from MH i2c: E2 [19:25:29]MH_I2C_Read... [19:25:29]Read from MH i2c: E2 FD 00 [19:25:29]MH_I2C_Read... [19:25:29]Read from MH i2c: E2 FD 00 D2 16 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 90 00 81 [19:25:29]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 90 00 [19:25:29]wFMCommunicate OK [19:25:29]wFMCommunicate request_size=4 [19:25:29]MH_SAM_APDU [19:25:29]CAPDU: 80 17 00 00 [19:25:29]Write to MH i2c: E2 08 00 D3 16 80 17 00 00 00 00 00 00 69 [19:25:29]OFD Sender: No OFD packet to send [19:25:29]Write i2c OK [19:25:29]MH_I2C_Read... [19:25:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:25:29]Read from MH i2c: E2 [19:25:29]MH_I2C_Read... [19:25:29]Read from MH i2c: E2 FD 00 [19:25:29]MH_I2C_Read... [19:25:29]Read from MH i2c: E2 FD 00 D3 16 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 90 00 1D [19:25:29]RAPDU: 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 90 00 [19:25:29]wFMCommunicate OK [19:25:29]wFMCommunicate request_size=4 [19:25:29]MH_SAM_APDU [19:25:29]CAPDU: 80 17 00 00 [19:25:29]Write to MH i2c: E2 08 00 D4 16 80 17 00 00 00 00 00 00 6A [19:25:29]Write i2c OK [19:25:29]MH_I2C_Read... [19:25:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:25:30]Read from MH i2c: E2 [19:25:30]MH_I2C_Read... [19:25:30]Read from MH i2c: E2 FD 00 [19:25:30]MH_I2C_Read... [19:25:30]Read from MH i2c: E2 FD 00 D4 16 00 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 90 00 E8 [19:25:30]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 90 00 [19:25:30]wFMCommunicate OK [19:25:30]wFMCommunicate request_size=4 [19:25:30]MH_SAM_APDU [19:25:30]CAPDU: 80 17 00 00 [19:25:30]Write to MH i2c: E2 08 00 D5 16 80 17 00 00 00 00 00 00 6B [19:25:30]Write i2c OK [19:25:30]MH_I2C_Read... [19:25:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 201! [19:25:30]Read from MH i2c: E2 [19:25:30]MH_I2C_Read... [19:25:30]Read from MH i2c: E2 CC 00 [19:25:30]MH_I2C_Read... [19:25:30]Read from MH i2c: E2 CC 00 D5 16 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 4C [19:25:30]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [19:25:30]wFMCommunicate OK [19:25:30]SAM_PROTO_GetShiftData done [19:25:30]requested_item shift.sale.total_cash is exist - process it [19:25:30]requested_item shift.sale_refund.total is exist - process it [19:25:30]requested_item shift.sale_refund.total_cash is exist - process it [19:25:30]requested_item shift.buy.total is exist - process it [19:25:30]requested_item shift.buy.total_cash is exist - process it [19:25:30]produce_requested_data done [19:25:30]produce_requested_data return {"fm.sale.total":133972892.70,"fm.sale_refund.total":37037760.00,"fm.buy.total":0.00,"shift.sale.total":164804.26,"shift.sale.total_cash":25347.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [19:25:30]process_action_free get_value [19:25:30]json_value_free [19:25:30]json_value_free done [19:25:30]process_json_proto returns [19:25:30]Send response to host [19:25:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":133972892.70,"fm.sale_refund.total":37037760.00,"fm.buy.total":0.00,"shift.sale.total":164804.26,"shift.sale.total_cash":25347.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [19:25:30]free response buf [19:25:30]execute_script done [19:25:30]execute_script returns [19:25:30]free content buf [19:25:30]Sock 9.Close socket [19:25:30]Sock 9.Thread stoped [19:25:34]OFD Sender: No OFD packet to send [19:25:39]OFD Sender: No OFD packet to send [19:25:44]OFD Sender: No OFD packet to send [19:25:49]OFD Sender: No OFD packet to send [19:25:54]OFD Sender: No OFD packet to send [19:25:59]OFD Sender: No OFD packet to send [19:26:04]OFD Sender: No OFD packet to send [19:26:09]accept exits with 7 [19:26:09]New connection [19:26:09]New thread 3067059556 created [19:26:09]Thread 3067202916 joined [19:26:09]Waiting for new connection... [19:26:09] Sock 7.Parse request [19:26:09]Sock 7.Check first char [19:26:09]Sock 7.First char is OK [19:26:09]request: POST /json_proto HTTP/1.0 [19:26:09]Method: POST [19:26:09]URL: /json_proto [19:26:09]Method is POST - this is cgi request [19:26:09]url: /json_proto [19:26:09]query_string will be loaded in cgi processing [19:26:09]execute_cgi json_proto POST (null) [19:26:09]execute_cgi path=json_proto method=POST [19:26:09]POST find Content-Length [19:26:09]Host: 172.17.41.195:8080 [19:26:09]Content-Length: 215 [19:26:09]Content-Type: application/json [19:26:09] [19:26:09]POST finish read [19:26:09]Found Content-Length = 215 [19:26:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:26:09]execute_script... [19:26:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:26:09]POST & json_proto [19:26:09]process_json_proto [19:26:09]json parsed OK: [19:26:09]protocol is kg_v1.0 [19:26:09]action value=get_value [19:26:09]process_action get_value [19:26:09]cmd_get_value [19:26:09]process_action get_value done [19:26:09]requested_data is exist [19:26:09]produce_requested_data [19:26:09]requested_item kkm.sn is exist - process it [19:26:09]requested_item kkm.ver is exist - process it [19:26:09]requested_item fm.sn is exist - process it [19:26:09]wFMCommunicate request_size=4 [19:26:09]MH_SAM_APDU [19:26:09]CAPDU: 80 11 00 00 [19:26:09]Write to MH i2c: E2 08 00 D6 16 80 11 00 00 00 00 00 00 66 [19:26:09]Write i2c OK [19:26:09]MH_I2C_Read... [19:26:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:26:09]Read from MH i2c: E2 [19:26:09]MH_I2C_Read... [19:26:09]Read from MH i2c: E2 17 00 [19:26:09]MH_I2C_Read... [19:26:09]Read from MH i2c: E2 17 00 D6 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 BC [19:26:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [19:26:09]wFMCommunicate OK [19:26:09]requested_item fd.num is exist - process it [19:26:09]SAM_PROTO_GetFieldsCounters [19:26:09]wFMCommunicate request_size=4 [19:26:09]MH_SAM_APDU [19:26:09]CAPDU: 80 13 00 00 [19:26:09]Write to MH i2c: E2 08 00 D7 16 80 13 00 00 00 00 00 00 69 [19:26:09]Write i2c OK [19:26:09]MH_I2C_Read... [19:26:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:26:09]Read from MH i2c: E2 [19:26:09]MH_I2C_Read... [19:26:09]Read from MH i2c: E2 62 00 [19:26:09]MH_I2C_Read... [19:26:09]Read from MH i2c: E2 62 00 D7 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 31 09 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 80 00 00 00 5E 04 04 00 80 00 00 00 57 04 04 00 81 00 00 00 19 04 04 00 00 00 00 00 90 00 B2 [19:26:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 31 09 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 80 00 00 00 5E 04 04 00 80 00 00 00 57 04 04 00 81 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:26:09]wFMCommunicate OK [19:26:09]SAM_PROTO_GetFieldsCounters done [19:26:09]requested_item shift.num is exist - process it [19:26:09]requested_item shift.opened is exist - process it [19:26:09]req_shift_opened [19:26:09]FM_GetShiftState [19:26:09]SAM_PROTO_GetShiftState [19:26:09]wFMCommunicate request_size=4 [19:26:09]MH_SAM_APDU [19:26:09]CAPDU: 80 13 01 00 [19:26:09]Write to MH i2c: E2 08 00 D8 16 80 13 01 00 00 00 00 00 6B [19:26:09]Write i2c OK [19:26:09]MH_I2C_Read... [19:26:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:26:09]Read from MH i2c: E2 [19:26:09]MH_I2C_Read... [19:26:09]Read from MH i2c: E2 0E 00 [19:26:09]MH_I2C_Read... [19:26:09]Read from MH i2c: E2 0E 00 D8 16 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 D2 [19:26:09]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [19:26:09]wFMCommunicate OK [19:26:09]SAM_PROTO_GetShiftState done [19:26:09]FM_GetShiftState done [19:26:09]req_shift_opened done [19:26:09]requested_item shift.open_date is exist - process it [19:26:09]req_shift_open_date [19:26:09]req_shift_open_date done [19:26:09]produce_requested_data done [19:26:09]produce_requested_data return {"kkm.sn":"0300000119","kkm.ver":"001","fm.sn":"0000000000871829","fd.num":67889,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [19:26:09]process_action_free get_value [19:26:09]json_value_free [19:26:09]json_value_free done [19:26:09]process_json_proto returns [19:26:09]Send response to host [19:26:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000119","kkm.ver":"001","fm.sn":"0000000000871829","fd.num":67889,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [19:26:09]free response buf [19:26:09]execute_script done [19:26:09]execute_script returns [19:26:09]free content buf [19:26:09]Sock 7.Close socket [19:26:09]Sock 7.Thread stoped [19:26:09]accept exits with 9 [19:26:09]New connection [19:26:09]New thread 3067202916 created [19:26:09]Thread 3067059556 joined [19:26:09]Waiting for new connection... [19:26:09] Sock 9.Parse request [19:26:09]Sock 9.Check first char [19:26:09]Sock 9.First char is OK [19:26:09]request: POST /json_proto HTTP/1.0 [19:26:09]Method: POST [19:26:09]URL: /json_proto [19:26:09]Method is POST - this is cgi request [19:26:09]url: /json_proto [19:26:09]query_string will be loaded in cgi processing [19:26:09]execute_cgi json_proto POST (null) [19:26:09]execute_cgi path=json_proto method=POST [19:26:09]POST find Content-Length [19:26:09]Host: 172.17.41.195:8080 [19:26:09]Content-Length: 331 [19:26:09]Content-Type: application/json [19:26:09] [19:26:09]POST finish read [19:26:09]Found Content-Length = 331 [19:26:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [19:26:09]execute_script... [19:26:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [19:26:09]POST & json_proto [19:26:09]process_json_proto [19:26:09]json parsed OK: [19:26:09]protocol is kg_v1.0 [19:26:09]action value=get_value [19:26:09]process_action get_value [19:26:09]cmd_get_value [19:26:09]process_action get_value done [19:26:09]requested_data is exist [19:26:09]produce_requested_data [19:26:09]requested_item fm.sale.total is exist - process it [19:26:09]SAM_PROTO_GetFMData [19:26:09]wFMCommunicate request_size=4 [19:26:09]MH_SAM_APDU [19:26:09]CAPDU: 80 13 03 00 [19:26:09]Write to MH i2c: E2 08 00 D9 16 80 13 03 00 00 00 00 00 6E [19:26:09]OFD Sender: No OFD packet to send [19:26:09]Write i2c OK [19:26:09]MH_I2C_Read... [19:26:09]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [19:26:09]Read from MH i2c: E2 [19:26:09]MH_I2C_Read... [19:26:09]Read from MH i2c: E2 FD 00 [19:26:09]MH_I2C_Read... [19:26:09]Read from MH i2c: E2 FD 00 D9 16 00 C6 04 85 04 C2 04 6E 04 04 00 63 06 01 00 69 04 A3 00 6F 04 04 00 B9 05 01 00 B1 04 05 00 36 69 8A 1E 03 70 04 05 00 E8 A1 E9 C0 02 72 04 04 00 4E C7 A0 5D 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 86 F9 CF 54 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 2B 40 11 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9D 00 6F 04 04 00 AA 00 00 00 B1 04 04 00 00 23 C3 DC 70 04 04 00 00 23 C3 DC 72 04 00 00 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 DD 9D 71 17 EF 03 09 90 00 A4 [19:26:09]RAPDU: C6 04 85 04 C2 04 6E 04 04 00 63 06 01 00 69 04 A3 00 6F 04 04 00 B9 05 01 00 B1 04 05 00 36 69 8A 1E 03 70 04 05 00 E8 A1 E9 C0 02 72 04 04 00 4E C7 A0 5D 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 86 F9 CF 54 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 2B 40 11 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9D 00 6F 04 04 00 AA 00 00 00 B1 04 04 00 00 23 C3 DC 70 04 04 00 00 23 C3 DC 72 04 00 00 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 DD 9D 71 17 EF 03 09 90 00 [19:26:10]wFMCommunicate OK [19:26:10]wFMCommunicate request_size=4 [19:26:10]MH_SAM_APDU [19:26:10]CAPDU: 80 17 00 00 [19:26:10]Write to MH i2c: E2 08 00 DA 16 80 17 00 00 00 00 00 00 70 [19:26:10]Write i2c OK [19:26:10]MH_I2C_Read... [19:26:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:26:10]Read from MH i2c: E2 [19:26:10]MH_I2C_Read... [19:26:10]Read from MH i2c: E2 FD 00 [19:26:10]MH_I2C_Read... [19:26:10]Read from MH i2c: E2 FD 00 DA 16 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 70 22 F4 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 90 00 AB [19:26:10]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 70 22 F4 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 90 00 [19:26:10]wFMCommunicate OK [19:26:10]wFMCommunicate request_size=4 [19:26:10]MH_SAM_APDU [19:26:10]CAPDU: 80 17 00 00 [19:26:10]Write to MH i2c: E2 08 00 DB 16 80 17 00 00 00 00 00 00 71 [19:26:10]Write i2c OK [19:26:10]MH_I2C_Read... [19:26:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:26:10]Read from MH i2c: E2 [19:26:10]MH_I2C_Read... [19:26:10]Read from MH i2c: E2 FD 00 [19:26:10]MH_I2C_Read... [19:26:10]Read from MH i2c: E2 FD 00 DB 16 00 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 90 00 98 [19:26:10]RAPDU: 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 90 00 [19:26:10]wFMCommunicate OK [19:26:10]wFMCommunicate request_size=4 [19:26:10]MH_SAM_APDU [19:26:10]CAPDU: 80 17 00 00 [19:26:10]Write to MH i2c: E2 08 00 DC 16 80 17 00 00 00 00 00 00 72 [19:26:10]Write i2c OK [19:26:10]MH_I2C_Read... [19:26:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:26:10]Read from MH i2c: E2 [19:26:10]MH_I2C_Read... [19:26:10]Read from MH i2c: E2 FD 00 [19:26:10]MH_I2C_Read... [19:26:10]Read from MH i2c: E2 FD 00 DC 16 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 ED [19:26:10]RAPDU: EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 [19:26:10]wFMCommunicate OK [19:26:10]wFMCommunicate request_size=4 [19:26:10]MH_SAM_APDU [19:26:10]CAPDU: 80 17 00 00 [19:26:10]Write to MH i2c: E2 08 00 DD 16 80 17 00 00 00 00 00 00 73 [19:26:10]Write i2c OK [19:26:10]MH_I2C_Read... [19:26:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 224! [19:26:11]Read from MH i2c: E2 [19:26:11]MH_I2C_Read... [19:26:11]Read from MH i2c: E2 E3 00 [19:26:11]MH_I2C_Read... [19:26:11]Read from MH i2c: E2 E3 00 DD 16 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 52 [19:26:11]RAPDU: 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [19:26:11]wFMCommunicate OK [19:26:11]SAM_PROTO_GetFMData done [19:26:11]requested_item fm.sale_refund.total is exist - process it [19:26:11]requested_item fm.buy.total is exist - process it [19:26:11]requested_item shift.sale.total is exist - process it [19:26:11]SAM_PROTO_GetShiftData [19:26:11]wFMCommunicate request_size=4 [19:26:11]MH_SAM_APDU [19:26:11]CAPDU: 80 13 02 00 [19:26:11]Write to MH i2c: E2 08 00 DE 16 80 13 02 00 00 00 00 00 72 [19:26:11]Write i2c OK [19:26:11]MH_I2C_Read... [19:26:11]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [19:26:11]Read from MH i2c: E2 [19:26:11]MH_I2C_Read... [19:26:11]Read from MH i2c: E2 FD 00 [19:26:11]MH_I2C_Read... [19:26:11]Read from MH i2c: E2 FD 00 DE 16 00 AF 04 AA 04 AB 04 6E 04 04 00 80 00 00 00 69 04 9C 00 6F 04 04 00 80 00 00 00 B1 04 03 00 AA 78 FB 70 04 03 00 2C AD 26 72 04 03 00 7E CB D4 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 E2 B4 1A EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 B1 39 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 17 [19:26:11]RAPDU: AF 04 AA 04 AB 04 6E 04 04 00 80 00 00 00 69 04 9C 00 6F 04 04 00 80 00 00 00 B1 04 03 00 AA 78 FB 70 04 03 00 2C AD 26 72 04 03 00 7E CB D4 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 E2 B4 1A EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 B1 39 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 [19:26:11]wFMCommunicate OK [19:26:11]wFMCommunicate request_size=4 [19:26:11]MH_SAM_APDU [19:26:11]CAPDU: 80 17 00 00 [19:26:11]Write to MH i2c: E2 08 00 DF 16 80 17 00 00 00 00 00 00 75 [19:26:11]Write i2c OK [19:26:11]MH_I2C_Read... [19:26:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:26:11]Read from MH i2c: E2 [19:26:11]MH_I2C_Read... [19:26:11]Read from MH i2c: E2 FD 00 [19:26:11]MH_I2C_Read... [19:26:11]Read from MH i2c: E2 FD 00 DF 16 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 90 00 8E [19:26:11]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 90 00 [19:26:11]wFMCommunicate OK [19:26:11]wFMCommunicate request_size=4 [19:26:11]MH_SAM_APDU [19:26:11]CAPDU: 80 17 00 00 [19:26:11]Write to MH i2c: E2 08 00 E0 16 80 17 00 00 00 00 00 00 76 [19:26:11]Write i2c OK [19:26:11]MH_I2C_Read... [19:26:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:26:12]Read from MH i2c: E2 [19:26:12]MH_I2C_Read... [19:26:12]Read from MH i2c: E2 FD 00 [19:26:12]MH_I2C_Read... [19:26:12]Read from MH i2c: E2 FD 00 E0 16 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 90 00 2A [19:26:12]RAPDU: 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 90 00 [19:26:12]wFMCommunicate OK [19:26:12]wFMCommunicate request_size=4 [19:26:12]MH_SAM_APDU [19:26:12]CAPDU: 80 17 00 00 [19:26:12]Write to MH i2c: E2 08 00 E1 16 80 17 00 00 00 00 00 00 77 [19:26:12]Write i2c OK [19:26:12]MH_I2C_Read... [19:26:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:26:12]Read from MH i2c: E2 [19:26:12]MH_I2C_Read... [19:26:12]Read from MH i2c: E2 FD 00 [19:26:12]MH_I2C_Read... [19:26:12]Read from MH i2c: E2 FD 00 E1 16 00 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 90 00 F5 [19:26:12]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 90 00 [19:26:12]wFMCommunicate OK [19:26:12]wFMCommunicate request_size=4 [19:26:12]MH_SAM_APDU [19:26:12]CAPDU: 80 17 00 00 [19:26:12]Write to MH i2c: E2 08 00 E2 16 80 17 00 00 00 00 00 00 78 [19:26:12]Write i2c OK [19:26:12]MH_I2C_Read... [19:26:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 201! [19:26:12]Read from MH i2c: E2 [19:26:12]MH_I2C_Read... [19:26:12]Read from MH i2c: E2 CC 00 [19:26:12]MH_I2C_Read... [19:26:12]Read from MH i2c: E2 CC 00 E2 16 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 59 [19:26:12]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [19:26:12]wFMCommunicate OK [19:26:12]SAM_PROTO_GetShiftData done [19:26:12]requested_item shift.sale.total_cash is exist - process it [19:26:12]requested_item shift.sale_refund.total is exist - process it [19:26:12]requested_item shift.sale_refund.total_cash is exist - process it [19:26:12]requested_item shift.buy.total is exist - process it [19:26:12]requested_item shift.buy.total_cash is exist - process it [19:26:12]produce_requested_data done [19:26:12]produce_requested_data return {"fm.sale.total":133972892.70,"fm.sale_refund.total":37037760.00,"fm.buy.total":0.00,"shift.sale.total":164804.26,"shift.sale.total_cash":25347.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [19:26:12]process_action_free get_value [19:26:12]json_value_free [19:26:12]json_value_free done [19:26:12]process_json_proto returns [19:26:12]Send response to host [19:26:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":133972892.70,"fm.sale_refund.total":37037760.00,"fm.buy.total":0.00,"shift.sale.total":164804.26,"shift.sale.total_cash":25347.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [19:26:12]free response buf [19:26:12]execute_script done [19:26:12]execute_script returns [19:26:12]free content buf [19:26:12]Sock 9.Close socket [19:26:12]Sock 9.Thread stoped [19:26:12]accept exits with 7 [19:26:12]New connection [19:26:12]New thread 3067059556 created [19:26:12]Thread 3067202916 joined [19:26:12]Waiting for new connection... [19:26:12] Sock 7.Parse request [19:26:12]Sock 7.Check first char [19:26:12]Sock 7.First char is OK [19:26:12]request: POST /json_proto HTTP/1.0 [19:26:12]Method: POST [19:26:12]URL: /json_proto [19:26:12]Method is POST - this is cgi request [19:26:12]url: /json_proto [19:26:12]query_string will be loaded in cgi processing [19:26:12]execute_cgi json_proto POST (null) [19:26:12]execute_cgi path=json_proto method=POST [19:26:12]POST find Content-Length [19:26:12]Host: 172.17.41.195:8080 [19:26:12]Content-Length: 331 [19:26:12]Content-Type: application/json [19:26:12] [19:26:12]POST finish read [19:26:12]Found Content-Length = 331 [19:26:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [19:26:12]execute_script... [19:26:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [19:26:12]POST & json_proto [19:26:12]process_json_proto [19:26:12]json parsed OK: [19:26:12]protocol is kg_v1.0 [19:26:12]action value=get_value [19:26:12]process_action get_value [19:26:12]cmd_get_value [19:26:12]process_action get_value done [19:26:12]requested_data is exist [19:26:12]produce_requested_data [19:26:12]requested_item fm.sale.total is exist - process it [19:26:12]SAM_PROTO_GetFMData [19:26:12]wFMCommunicate request_size=4 [19:26:12]MH_SAM_APDU [19:26:12]CAPDU: 80 13 03 00 [19:26:12]Write to MH i2c: E2 08 00 E3 16 80 13 03 00 00 00 00 00 78 [19:26:12]Write i2c OK [19:26:12]MH_I2C_Read... [19:26:13]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [19:26:13]Read from MH i2c: E2 [19:26:13]MH_I2C_Read... [19:26:13]Read from MH i2c: E2 FD 00 [19:26:13]MH_I2C_Read... [19:26:13]Read from MH i2c: E2 FD 00 E3 16 00 C6 04 85 04 C2 04 6E 04 04 00 63 06 01 00 69 04 A3 00 6F 04 04 00 B9 05 01 00 B1 04 05 00 36 69 8A 1E 03 70 04 05 00 E8 A1 E9 C0 02 72 04 04 00 4E C7 A0 5D 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 86 F9 CF 54 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 2B 40 11 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9D 00 6F 04 04 00 AA 00 00 00 B1 04 04 00 00 23 C3 DC 70 04 04 00 00 23 C3 DC 72 04 00 00 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 DD 9D 71 17 EF 03 09 90 00 AE [19:26:13]RAPDU: C6 04 85 04 C2 04 6E 04 04 00 63 06 01 00 69 04 A3 00 6F 04 04 00 B9 05 01 00 B1 04 05 00 36 69 8A 1E 03 70 04 05 00 E8 A1 E9 C0 02 72 04 04 00 4E C7 A0 5D 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 86 F9 CF 54 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 2B 40 11 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9D 00 6F 04 04 00 AA 00 00 00 B1 04 04 00 00 23 C3 DC 70 04 04 00 00 23 C3 DC 72 04 00 00 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 DD 9D 71 17 EF 03 09 90 00 [19:26:13]wFMCommunicate OK [19:26:13]wFMCommunicate request_size=4 [19:26:13]MH_SAM_APDU [19:26:13]CAPDU: 80 17 00 00 [19:26:13]Write to MH i2c: E2 08 00 E4 16 80 17 00 00 00 00 00 00 7A [19:26:13]Write i2c OK [19:26:13]MH_I2C_Read... [19:26:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:26:13]Read from MH i2c: E2 [19:26:13]MH_I2C_Read... [19:26:13]Read from MH i2c: E2 FD 00 [19:26:13]MH_I2C_Read... [19:26:13]Read from MH i2c: E2 FD 00 E4 16 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 70 22 F4 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 90 00 B5 [19:26:13]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 70 22 F4 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 90 00 [19:26:13]wFMCommunicate OK [19:26:13]wFMCommunicate request_size=4 [19:26:13]MH_SAM_APDU [19:26:13]CAPDU: 80 17 00 00 [19:26:13]Write to MH i2c: E2 08 00 E5 16 80 17 00 00 00 00 00 00 7B [19:26:13]Write i2c OK [19:26:13]MH_I2C_Read... [19:26:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:26:13]Read from MH i2c: E2 [19:26:13]MH_I2C_Read... [19:26:13]Read from MH i2c: E2 FD 00 [19:26:13]MH_I2C_Read... [19:26:13]Read from MH i2c: E2 FD 00 E5 16 00 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 90 00 A2 [19:26:13]RAPDU: 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 90 00 [19:26:13]wFMCommunicate OK [19:26:13]wFMCommunicate request_size=4 [19:26:13]MH_SAM_APDU [19:26:13]CAPDU: 80 17 00 00 [19:26:13]Write to MH i2c: E2 08 00 E6 16 80 17 00 00 00 00 00 00 7C [19:26:13]Write i2c OK [19:26:13]MH_I2C_Read... [19:26:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:26:14]Read from MH i2c: E2 [19:26:14]MH_I2C_Read... [19:26:14]Read from MH i2c: E2 FD 00 [19:26:14]MH_I2C_Read... [19:26:14]Read from MH i2c: E2 FD 00 E6 16 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 F7 [19:26:14]RAPDU: EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 [19:26:14]wFMCommunicate OK [19:26:14]wFMCommunicate request_size=4 [19:26:14]MH_SAM_APDU [19:26:14]CAPDU: 80 17 00 00 [19:26:14]Write to MH i2c: E2 08 00 E7 16 80 17 00 00 00 00 00 00 7D [19:26:14]Write i2c OK [19:26:14]MH_I2C_Read... [19:26:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 224! [19:26:14]Read from MH i2c: E2 [19:26:14]MH_I2C_Read... [19:26:14]Read from MH i2c: E2 E3 00 [19:26:14]MH_I2C_Read... [19:26:14]Read from MH i2c: E2 E3 00 E7 16 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 5C [19:26:14]RAPDU: 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [19:26:14]wFMCommunicate OK [19:26:14]SAM_PROTO_GetFMData done [19:26:14]requested_item fm.sale_refund.total is exist - process it [19:26:14]requested_item fm.buy.total is exist - process it [19:26:14]requested_item shift.sale.total is exist - process it [19:26:14]SAM_PROTO_GetShiftData [19:26:14]wFMCommunicate request_size=4 [19:26:14]MH_SAM_APDU [19:26:14]CAPDU: 80 13 02 00 [19:26:14]Write to MH i2c: E2 08 00 E8 16 80 13 02 00 00 00 00 00 7C [19:26:14]OFD Sender: No OFD packet to send [19:26:14]Write i2c OK [19:26:14]MH_I2C_Read... [19:26:15]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [19:26:15]Read from MH i2c: E2 [19:26:15]MH_I2C_Read... [19:26:15]Read from MH i2c: E2 FD 00 [19:26:15]MH_I2C_Read... [19:26:15]Read from MH i2c: E2 FD 00 E8 16 00 AF 04 AA 04 AB 04 6E 04 04 00 80 00 00 00 69 04 9C 00 6F 04 04 00 80 00 00 00 B1 04 03 00 AA 78 FB 70 04 03 00 2C AD 26 72 04 03 00 7E CB D4 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 E2 B4 1A EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 B1 39 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 21 [19:26:15]RAPDU: AF 04 AA 04 AB 04 6E 04 04 00 80 00 00 00 69 04 9C 00 6F 04 04 00 80 00 00 00 B1 04 03 00 AA 78 FB 70 04 03 00 2C AD 26 72 04 03 00 7E CB D4 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 E2 B4 1A EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 B1 39 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 [19:26:15]wFMCommunicate OK [19:26:15]wFMCommunicate request_size=4 [19:26:15]MH_SAM_APDU [19:26:15]CAPDU: 80 17 00 00 [19:26:15]Write to MH i2c: E2 08 00 E9 16 80 17 00 00 00 00 00 00 7F [19:26:15]Write i2c OK [19:26:15]MH_I2C_Read... [19:26:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:26:15]Read from MH i2c: E2 [19:26:15]MH_I2C_Read... [19:26:15]Read from MH i2c: E2 FD 00 [19:26:15]MH_I2C_Read... [19:26:15]Read from MH i2c: E2 FD 00 E9 16 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 90 00 98 [19:26:15]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 90 00 [19:26:15]wFMCommunicate OK [19:26:15]wFMCommunicate request_size=4 [19:26:15]MH_SAM_APDU [19:26:15]CAPDU: 80 17 00 00 [19:26:15]Write to MH i2c: E2 08 00 EA 16 80 17 00 00 00 00 00 00 80 [19:26:15]Write i2c OK [19:26:15]MH_I2C_Read... [19:26:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:26:16]Read from MH i2c: E2 [19:26:16]MH_I2C_Read... [19:26:16]Read from MH i2c: E2 FD 00 [19:26:16]MH_I2C_Read... [19:26:16]Read from MH i2c: E2 FD 00 EA 16 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 90 00 34 [19:26:16]RAPDU: 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 90 00 [19:26:16]wFMCommunicate OK [19:26:16]wFMCommunicate request_size=4 [19:26:16]MH_SAM_APDU [19:26:16]CAPDU: 80 17 00 00 [19:26:16]Write to MH i2c: E2 08 00 EB 16 80 17 00 00 00 00 00 00 81 [19:26:16]Write i2c OK [19:26:16]MH_I2C_Read... [19:26:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:26:16]Read from MH i2c: E2 [19:26:16]MH_I2C_Read... [19:26:16]Read from MH i2c: E2 FD 00 [19:26:16]MH_I2C_Read... [19:26:16]Read from MH i2c: E2 FD 00 EB 16 00 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 90 00 FF [19:26:16]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 90 00 [19:26:16]wFMCommunicate OK [19:26:16]wFMCommunicate request_size=4 [19:26:16]MH_SAM_APDU [19:26:16]CAPDU: 80 17 00 00 [19:26:16]Write to MH i2c: E2 08 00 EC 16 80 17 00 00 00 00 00 00 82 [19:26:16]Write i2c OK [19:26:16]MH_I2C_Read... [19:26:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 201! [19:26:16]Read from MH i2c: E2 [19:26:16]MH_I2C_Read... [19:26:16]Read from MH i2c: E2 CC 00 [19:26:16]MH_I2C_Read... [19:26:16]Read from MH i2c: E2 CC 00 EC 16 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 63 [19:26:16]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [19:26:17]wFMCommunicate OK [19:26:17]SAM_PROTO_GetShiftData done [19:26:17]requested_item shift.sale.total_cash is exist - process it [19:26:17]requested_item shift.sale_refund.total is exist - process it [19:26:17]requested_item shift.sale_refund.total_cash is exist - process it [19:26:17]requested_item shift.buy.total is exist - process it [19:26:17]requested_item shift.buy.total_cash is exist - process it [19:26:17]produce_requested_data done [19:26:17]produce_requested_data return {"fm.sale.total":133972892.70,"fm.sale_refund.total":37037760.00,"fm.buy.total":0.00,"shift.sale.total":164804.26,"shift.sale.total_cash":25347.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [19:26:17]process_action_free get_value [19:26:17]json_value_free [19:26:17]json_value_free done [19:26:17]process_json_proto returns [19:26:17]Send response to host [19:26:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":133972892.70,"fm.sale_refund.total":37037760.00,"fm.buy.total":0.00,"shift.sale.total":164804.26,"shift.sale.total_cash":25347.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [19:26:17]free response buf [19:26:17]execute_script done [19:26:17]execute_script returns [19:26:17]free content buf [19:26:17]Sock 7.Close socket [19:26:17]Sock 7.Thread stoped [19:26:17]accept exits with 10 [19:26:17]New connection [19:26:17]New thread 3067202916 created [19:26:17]Thread 3067059556 joined [19:26:17]Waiting for new connection... [19:26:17] Sock 10.Parse request [19:26:17]Sock 10.Check first char [19:26:17]Sock 10.First char is OK [19:26:17]request: POST /json_proto HTTP/1.0 [19:26:17]Method: POST [19:26:17]URL: /json_proto [19:26:17]Method is POST - this is cgi request [19:26:17]url: /json_proto [19:26:17]query_string will be loaded in cgi processing [19:26:17]execute_cgi json_proto POST (null) [19:26:17]execute_cgi path=json_proto method=POST [19:26:17]POST find Content-Length [19:26:17]Host: 172.17.41.195:8080 [19:26:17]Content-Length: 274 [19:26:17]Content-Type: application/json [19:26:17] [19:26:17]POST finish read [19:26:17]Found Content-Length = 274 [19:26:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0410\u0440\u0441\u0442\u0430\u043D\u0431\u0435\u043A\u043E\u0432 \u041D." } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:26:17]execute_script... [19:26:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0410\u0440\u0441\u0442\u0430\u043D\u0431\u0435\u043A\u043E\u0432 \u041D." } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:26:17]POST & json_proto [19:26:17]process_json_proto [19:26:17]json parsed OK: [19:26:17]protocol is kg_v1.0 [19:26:17]action value=x_report [19:26:17]process_action x_report [19:26:17]cmd_x_report [19:26:17]MH_GetDate [19:26:17]Write to MH i2c: F0 00 00 ED 16 F2 [19:26:17]Write i2c OK [19:26:17]MH_I2C_Read... [19:26:17]Read from MH i2c: F0 [19:26:17]MH_I2C_Read... [19:26:17]Read from MH i2c: F0 09 00 [19:26:17]MH_I2C_Read... [19:26:17]Read from MH i2c: F0 09 00 ED 16 00 DA 00 49 66 FC 21 6F 64 74 [19:26:17]GetLastDocTimeStamp 1716060263 [19:26:17]current date 1716060378 [19:26:17]FM_GetShiftState [19:26:17]SAM_PROTO_GetShiftState [19:26:17]wFMCommunicate request_size=4 [19:26:17]MH_SAM_APDU [19:26:17]CAPDU: 80 13 01 00 [19:26:17]Write to MH i2c: E2 08 00 EE 16 80 13 01 00 00 00 00 00 81 [19:26:17]Write i2c OK [19:26:17]MH_I2C_Read... [19:26:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:26:17]Read from MH i2c: E2 [19:26:17]MH_I2C_Read... [19:26:17]Read from MH i2c: E2 0E 00 [19:26:17]MH_I2C_Read... [19:26:17]Read from MH i2c: E2 0E 00 EE 16 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 E8 [19:26:17]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [19:26:17]wFMCommunicate OK [19:26:17]SAM_PROTO_GetShiftState done [19:26:17]FM_GetShiftState done [19:26:17]KKMCreateXReportDocument [19:26:17]Load OK [19:26:17]Malloc new data [19:26:17]MH_GetDate [19:26:17]Write to MH i2c: F0 00 00 EF 16 F4 [19:26:17]Write i2c OK [19:26:17]MH_I2C_Read... [19:26:17]Read from MH i2c: F0 [19:26:17]MH_I2C_Read... [19:26:17]Read from MH i2c: F0 09 00 [19:26:17]MH_I2C_Read... [19:26:17]Read from MH i2c: F0 09 00 EF 16 00 DA 00 49 66 FC 21 6F 64 76 [19:26:17]Malloc new data [19:26:17]Malloc new data [19:26:17]wFMCommunicate request_size=4 [19:26:17]MH_SAM_APDU [19:26:17]CAPDU: 80 11 00 00 [19:26:17]Write to MH i2c: E2 08 00 F0 16 80 11 00 00 00 00 00 00 80 [19:26:17]Write i2c OK [19:26:17]MH_I2C_Read... [19:26:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:26:17]Read from MH i2c: E2 [19:26:17]MH_I2C_Read... [19:26:17]Read from MH i2c: E2 17 00 [19:26:17]MH_I2C_Read... [19:26:17]Read from MH i2c: E2 17 00 F0 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 D6 [19:26:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [19:26:17]wFMCommunicate OK [19:26:17]SAM_PROTO_GetFieldsCounters [19:26:17]wFMCommunicate request_size=4 [19:26:17]MH_SAM_APDU [19:26:17]CAPDU: 80 13 00 00 [19:26:17]Write to MH i2c: E2 08 00 F1 16 80 13 00 00 00 00 00 00 83 [19:26:17]Write i2c OK [19:26:17]MH_I2C_Read... [19:26:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:26:17]Read from MH i2c: E2 [19:26:17]MH_I2C_Read... [19:26:17]Read from MH i2c: E2 62 00 [19:26:17]MH_I2C_Read... [19:26:17]Read from MH i2c: E2 62 00 F1 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 31 09 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 80 00 00 00 5E 04 04 00 80 00 00 00 57 04 04 00 81 00 00 00 19 04 04 00 00 00 00 00 90 00 CC [19:26:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 31 09 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 80 00 00 00 5E 04 04 00 80 00 00 00 57 04 04 00 81 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:26:17]wFMCommunicate OK [19:26:17]SAM_PROTO_GetFieldsCounters done [19:26:17]Malloc new data [19:26:17]Malloc new data [19:26:17]Malloc new data [19:26:17]KKMCreateXReportDocument OK [19:26:17]KKMSetXReportData OK [19:26:17]KKMPrepareXReportFMData [19:26:17]SAM_PROTO_GetShiftData [19:26:17]wFMCommunicate request_size=4 [19:26:17]MH_SAM_APDU [19:26:17]CAPDU: 80 13 02 00 [19:26:17]Write to MH i2c: E2 08 00 F2 16 80 13 02 00 00 00 00 00 86 [19:26:17]Write i2c OK [19:26:17]MH_I2C_Read... [19:26:17]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [19:26:17]Read from MH i2c: E2 [19:26:17]MH_I2C_Read... [19:26:17]Read from MH i2c: E2 FD 00 [19:26:17]MH_I2C_Read... [19:26:17]Read from MH i2c: E2 FD 00 F2 16 00 AF 04 AA 04 AB 04 6E 04 04 00 80 00 00 00 69 04 9C 00 6F 04 04 00 80 00 00 00 B1 04 03 00 AA 78 FB 70 04 03 00 2C AD 26 72 04 03 00 7E CB D4 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 E2 B4 1A EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 B1 39 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 2B [19:26:18]RAPDU: AF 04 AA 04 AB 04 6E 04 04 00 80 00 00 00 69 04 9C 00 6F 04 04 00 80 00 00 00 B1 04 03 00 AA 78 FB 70 04 03 00 2C AD 26 72 04 03 00 7E CB D4 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 E2 B4 1A EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 B1 39 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 [19:26:18]wFMCommunicate OK [19:26:18]wFMCommunicate request_size=4 [19:26:18]MH_SAM_APDU [19:26:18]CAPDU: 80 17 00 00 [19:26:18]Write to MH i2c: E2 08 00 F3 16 80 17 00 00 00 00 00 00 89 [19:26:18]Write i2c OK [19:26:18]MH_I2C_Read... [19:26:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:26:18]Read from MH i2c: E2 [19:26:18]MH_I2C_Read... [19:26:18]Read from MH i2c: E2 FD 00 [19:26:18]MH_I2C_Read... [19:26:18]Read from MH i2c: E2 FD 00 F3 16 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 90 00 A2 [19:26:18]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 90 00 [19:26:18]wFMCommunicate OK [19:26:18]wFMCommunicate request_size=4 [19:26:18]MH_SAM_APDU [19:26:18]CAPDU: 80 17 00 00 [19:26:18]Write to MH i2c: E2 08 00 F4 16 80 17 00 00 00 00 00 00 8A [19:26:18]Write i2c OK [19:26:18]MH_I2C_Read... [19:26:18]Read from MH i2c: E2 [19:26:18]MH_I2C_Read... [19:26:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:26:18]Read from MH i2c: E2 FD 00 [19:26:18]MH_I2C_Read... [19:26:18]Read from MH i2c: E2 FD 00 F4 16 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 90 00 3E [19:26:18]RAPDU: 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 90 00 [19:26:19]wFMCommunicate OK [19:26:19]wFMCommunicate request_size=4 [19:26:19]MH_SAM_APDU [19:26:19]CAPDU: 80 17 00 00 [19:26:19]Write to MH i2c: E2 08 00 F5 16 80 17 00 00 00 00 00 00 8B [19:26:19]Write i2c OK [19:26:19]MH_I2C_Read... [19:26:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:26:19]Read from MH i2c: E2 [19:26:19]MH_I2C_Read... [19:26:19]Read from MH i2c: E2 FD 00 [19:26:19]MH_I2C_Read... [19:26:19]Read from MH i2c: E2 FD 00 F5 16 00 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 90 00 09 [19:26:19]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 90 00 [19:26:19]wFMCommunicate OK [19:26:19]wFMCommunicate request_size=4 [19:26:19]MH_SAM_APDU [19:26:19]CAPDU: 80 17 00 00 [19:26:19]Write to MH i2c: E2 08 00 F6 16 80 17 00 00 00 00 00 00 8C [19:26:19]Write i2c OK [19:26:19]MH_I2C_Read... [19:26:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 201! [19:26:19]Read from MH i2c: E2 [19:26:19]MH_I2C_Read... [19:26:19]Read from MH i2c: E2 CC 00 [19:26:19]MH_I2C_Read... [19:26:19]Read from MH i2c: E2 CC 00 F6 16 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 6D [19:26:19]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [19:26:19]wFMCommunicate OK [19:26:19]SAM_PROTO_GetShiftData done [19:26:19]1194 (1195) - счетчики итогов смены [19:26:19] 1134 (4) - 128 - количество чеков со всеми признаками расчетов [19:26:19] 1129 (156) - счетчики операций «приход» [19:26:19] 1135 (4) - 128 - количество чеков по признаку расчетов [19:26:19] 1201 (3) - 164804.26 - общая итоговая сумма в чеках [19:26:19] 1136 (3) - 25347.00 - итоговая сумма в чеках наличными [19:26:19] 1138 (3) - 139457.26 - итоговая сумма в чеках безналичными [19:26:19] 1024 (123) - суммы налогов [19:26:19] OFD Sender: No OFD packet to send [19:26:19]1006 (9) - суммы НДС [19:26:19] 1010 (1) - 0% - код ставки НДС [19:26:19] 1011 (0) - 0.00 - сумма НДС по ставке [19:26:19] 1006 (12) - суммы НДС [19:26:19] 1010 (1) - 12% - код ставки НДС [19:26:19] 1011 (3) - 17502.42 - сумма НДС по ставке [19:26:19] 1007 (9) - суммы НСП [19:26:19] 1014 (1) - 0% - код ставки НСП [19:26:19] 1015 (0) - 0.00 - сумма НСП по ставке [19:26:19] 1007 (12) - суммы НСП [19:26:19] 1014 (1) - 1% - код ставки НСП [19:26:19] 1015 (3) - 1458.41 - сумма НСП по ставке [19:26:19] 1007 (9) - суммы НСП [19:26:19] 1014 (1) - 2% - код ставки НСП [19:26:20] 1015 (0) - 0.00 - сумма НСП по ставке [19:26:20] 1007 (9) - суммы НСП [19:26:20] 1014 (1) - 3% - код ставки НСП [19:26:20] 1015 (0) - 0.00 - сумма НСП по ставке [19:26:20] 1007 (9) - суммы НСП [19:26:20] 1014 (1) - 5% - код ставки НСП [19:26:20] 1015 (0) - 0.00 - сумма НСП по ставке [19:26:20] 1007 (9) - суммы НСП [19:26:20] 1014 (1) - 0,50% - код ставки НСП [19:26:20] 1015 (0) - 0.00 - сумма НСП по ставке [19:26:20] 1007 (9) - суммы НСП [19:26:20] 1014 (1) - 1,50% - код ставки НСП [19:26:20] 1015 (0) - 0.00 - сумма НСП по ставке [19:26:20] 1130 (141) - счетчики операций «возврат прихода» [19:26:20] 1135 (4) - 0 - количество чеков по признаку расчетов [19:26:20] 1201 (0) - 0.00 - общая итоговая сумма в чеках [19:26:20] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [19:26:20] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [19:26:20] 1024 (117) - суммы налогов [19:26:20] 1006 (9) - суммы НДС [19:26:20] 1010 (1) - 0% - код ставки НДС [19:26:20] 1011 (0) - 0.00 - сумма НДС по ставке [19:26:20] 1006 (9) - суммы НДС [19:26:20] 1010 (1) - 12% - код ставки НДС [19:26:20] 1011 (0) - 0.00 - сумма НДС по ставке [19:26:20] 1007 (9) - суммы НСП [19:26:20] 1014 (1) - 0% - код ставки НСП [19:26:20] 1015 (0) - 0.00 - сумма НСП по ставке [19:26:20] 1007 (9) - суммы НСП [19:26:20] 1014 (1) - 1% - код ставки НСП [19:26:20] 1015 (0) - 0.00 - сумма НСП по ставке [19:26:20] 1007 (9) - суммы НСП [19:26:20] 1014 (1) - 2% - код ставки НСП [19:26:20] 1015 (0) - 0.00 - сумма НСП по ставке [19:26:20] 1007 (9) - суммы НСП [19:26:20] 1014 (1) - 3% - код ставки НСП [19:26:20] 1015 (0) - 0.00 - сумма НСП по ставке [19:26:20] 1007 (9) - суммы НСП [19:26:20] 1014 (1) - 5% - код ставки НСП [19:26:20] 1015 (0) - 0.00 - сумма НСП по ставке [19:26:20] 1007 (9) - суммы НСП [19:26:20] 1014 (1) - 0,50% - код ставки НСП [19:26:20] 1015 (0) - 0.00 - сумма НСП по ставке [19:26:20] 1007 (9) - суммы НСП [19:26:20] 1014 (1) - 1,50% - код ставки НСП [19:26:20] 1015 (0) - 0.00 - сумма НСП по ставке [19:26:20] 1131 (141) - счетчики операций «расход» [19:26:20] 1135 (4) - 0 - количество чеков по признаку расчетов [19:26:20] 1201 (0) - 0.00 - общая итоговая сумма в чеках [19:26:20] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [19:26:20] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [19:26:20] 1024 (117) - суммы налогов [19:26:20] 1006 (9) - суммы НДС [19:26:20] 1010 (1) - 0% - код ставки НДС [19:26:20] 1011 (0) - 0.00 - сумма НДС по ставке [19:26:20] 1006 (9) - суммы НДС [19:26:20] 1010 (1) - 12% - код ставки НДС [19:26:20] 1011 (0) - 0.00 - сумма НДС по ставке [19:26:20] 1007 (9) - суммы НСП [19:26:20] 1014 (1) - 0% - код ставки НСП [19:26:20] 1015 (0) - 0.00 - сумма НСП по ставке [19:26:20] 1007 (9) - суммы НСП [19:26:20] 1014 (1) - 1% - код ставки НСП [19:26:20] 1015 (0) - 0.00 - сумма НСП по ставке [19:26:20] 1007 (9) - суммы НСП [19:26:20] 1014 (1) - 2% - код ставки НСП [19:26:20] 1015 (0) - 0.00 - сумма НСП по ставке [19:26:20] 1007 (9) - суммы НСП [19:26:20] 1014 (1) - 3% - код ставки НСП [19:26:20] 1015 (0) - 0.00 - сумма НСП по ставке [19:26:20] 1007 (9) - суммы НСП [19:26:20] 1014 (1) - 5% - код ставки НСП [19:26:20] 1015 (0) - 0.00 - сумма НСП по ставке [19:26:20] 1007 (9) - суммы НСП [19:26:20] 1014 (1) - 0,50% - код ставки НСП [19:26:20] 1015 (0) - 0.00 - сумма НСП по ставке [19:26:20] 1007 (9) - суммы НСП [19:26:20] 1014 (1) - 1,50% - код ставки НСП [19:26:20] 1015 (0) - 0.00 - сумма НСП по ставке [19:26:20] 1132 (141) - счетчики операций «возврат расхода» [19:26:20] 1135 (4) - 0 - количество чеков по признаку расчетов [19:26:20] 1201 (0) - 0.00 - общая итоговая сумма в чеках [19:26:20] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [19:26:20] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [19:26:20] 1024 (117) - суммы налогов [19:26:20] 1006 (9) - суммы НДС [19:26:20] 1010 (1) - 0% - код ставки НДС [19:26:20] 1011 (0) - 0.00 - сумма НДС по ставке [19:26:20] 1006 (9) - суммы НДС [19:26:20] 1010 (1) - 12% - код ставки НДС [19:26:20] 1011 (0) - 0.00 - сумма НДС по ставке [19:26:20] 1007 (9) - суммы НСП [19:26:20] 1014 (1) - 0% - код ставки НСП [19:26:20] 1015 (0) - 0.00 - сумма НСП по ставке [19:26:20] 1007 (9) - суммы НСП [19:26:20] 1014 (1) - 1% - код ставки НСП [19:26:20] 1015 (0) - 0.00 - сумма НСП по ставке [19:26:20] 1007 (9) - суммы НСП [19:26:20] 1014 (1) - 2% - код ставки НСП [19:26:20] 1015 (0) - 0.00 - сумма НСП по ставке [19:26:20] 1007 (9) - суммы НСП [19:26:20] 1014 (1) - 3% - код ставки НСП [19:26:20] 1015 (0) - 0.00 - сумма НСП по ставке [19:26:20] 1007 (9) - суммы НСП [19:26:20] 1014 (1) - 5% - код ставки НСП [19:26:20] 1015 (0) - 0.00 - сумма НСП по ставке [19:26:20] 1007 (9) - суммы НСП [19:26:20] 1014 (1) - 0,50% - код ставки НСП [19:26:20] 1015 (0) - 0.00 - сумма НСП по ставке [19:26:20] 1007 (9) - суммы НСП [19:26:20] 1014 (1) - 1,50% - код ставки НСП [19:26:20] 1015 (0) - 0.00 - сумма НСП по ставке [19:26:20] 1133 (588) - - счетчики коррекции - не используются [19:26:20]SetTLVBufToDocument [19:26:20]Processing tag 1194 (04AA) [19:26:20]Load OK [19:26:20]SetTLVBufToDocument [19:26:20]Processing tag 1134 (046E) [19:26:20]Malloc new data [19:26:20]Processing tag 1129 (0469) [19:26:20]Load OK [19:26:20]SetTLVBufToDocument [19:26:20]Processing tag 1135 (046F) [19:26:20]Malloc new data [19:26:20]Processing tag 1201 (04B1) [19:26:20]Malloc new data [19:26:20]Processing tag 1136 (0470) [19:26:20]Malloc new data [19:26:20]Processing tag 1138 (0472) [19:26:20]Malloc new data [19:26:20]Processing tag 1024 (0400) [19:26:20]Load OK [19:26:20]SetTLVBufToDocument [19:26:20]Processing tag 1006 (03EE) [19:26:20]Load OK [19:26:20]SetTLVBufToDocument [19:26:20]Processing tag 1010 (03F2) [19:26:20]Malloc new data [19:26:20]Processing tag 1011 (03F3) [19:26:20]Malloc new data [19:26:20]SetTLVBufToDocument err=0 [19:26:20]Processing tag 1006 (03EE) [19:26:20]Load OK [19:26:20]SetTLVBufToDocument [19:26:20]Processing tag 1010 (03F2) [19:26:20]Malloc new data [19:26:20]Processing tag 1011 (03F3) [19:26:20]Malloc new data [19:26:20]SetTLVBufToDocument err=0 [19:26:20]Processing tag 1007 (03EF) [19:26:20]Load OK [19:26:20]SetTLVBufToDocument [19:26:20]Processing tag 1014 (03F6) [19:26:20]Malloc new data [19:26:20]Processing tag 1015 (03F7) [19:26:20]Malloc new data [19:26:20]SetTLVBufToDocument err=0 [19:26:20]Processing tag 1007 (03EF) [19:26:20]Load OK [19:26:20]SetTLVBufToDocument [19:26:20]Processing tag 1014 (03F6) [19:26:20]Malloc new data [19:26:20]Processing tag 1015 (03F7) [19:26:20]Malloc new data [19:26:20]SetTLVBufToDocument err=0 [19:26:20]Processing tag 1007 (03EF) [19:26:20]Load OK [19:26:20]SetTLVBufToDocument [19:26:20]Processing tag 1014 (03F6) [19:26:20]Malloc new data [19:26:20]Processing tag 1015 (03F7) [19:26:20]Malloc new data [19:26:20]SetTLVBufToDocument err=0 [19:26:20]Processing tag 1007 (03EF) [19:26:20]Load OK [19:26:20]SetTLVBufToDocument [19:26:20]Processing tag 1014 (03F6) [19:26:20]Malloc new data [19:26:20]Processing tag 1015 (03F7) [19:26:20]Malloc new data [19:26:20]SetTLVBufToDocument err=0 [19:26:20]Processing tag 1007 (03EF) [19:26:20]Load OK [19:26:20]SetTLVBufToDocument [19:26:20]Processing tag 1014 (03F6) [19:26:20]Malloc new data [19:26:20]Processing tag 1015 (03F7) [19:26:20]Malloc new data [19:26:20]SetTLVBufToDocument err=0 [19:26:20]Processing tag 1007 (03EF) [19:26:20]Load OK [19:26:20]SetTLVBufToDocument [19:26:20]Processing tag 1014 (03F6) [19:26:20]Malloc new data [19:26:20]Processing tag 1015 (03F7) [19:26:20]Malloc new data [19:26:20]SetTLVBufToDocument err=0 [19:26:20]Processing tag 1007 (03EF) [19:26:20]Load OK [19:26:20]SetTLVBufToDocument [19:26:20]Processing tag 1014 (03F6) [19:26:20]Malloc new data [19:26:20]Processing tag 1015 (03F7) [19:26:20]Malloc new data [19:26:20]SetTLVBufToDocument err=0 [19:26:20]SetTLVBufToDocument err=0 [19:26:20]SetTLVBufToDocument err=0 [19:26:20]Processing tag 1130 (046A) [19:26:20]Load OK [19:26:20]SetTLVBufToDocument [19:26:20]Processing tag 1135 (046F) [19:26:20]Malloc new data [19:26:20]Processing tag 1201 (04B1) [19:26:20]Malloc new data [19:26:20]Processing tag 1136 (0470) [19:26:20]Malloc new data [19:26:20]Processing tag 1138 (0472) [19:26:20]Malloc new data [19:26:20]Processing tag 1024 (0400) [19:26:20]Load OK [19:26:20]SetTLVBufToDocument [19:26:20]Processing tag 1006 (03EE) [19:26:20]Load OK [19:26:20]SetTLVBufToDocument [19:26:20]Processing tag 1010 (03F2) [19:26:20]Malloc new data [19:26:20]Processing tag 1011 (03F3) [19:26:20]Malloc new data [19:26:20]SetTLVBufToDocument err=0 [19:26:20]Processing tag 1006 (03EE) [19:26:20]Load OK [19:26:20]SetTLVBufToDocument [19:26:20]Processing tag 1010 (03F2) [19:26:20]Malloc new data [19:26:20]Processing tag 1011 (03F3) [19:26:20]Malloc new data [19:26:20]SetTLVBufToDocument err=0 [19:26:20]Processing tag 1007 (03EF) [19:26:20]Load OK [19:26:20]SetTLVBufToDocument [19:26:20]Processing tag 1014 (03F6) [19:26:20]Malloc new data [19:26:20]Processing tag 1015 (03F7) [19:26:20]Malloc new data [19:26:20]SetTLVBufToDocument err=0 [19:26:20]Processing tag 1007 (03EF) [19:26:20]Load OK [19:26:20]SetTLVBufToDocument [19:26:20]Processing tag 1014 (03F6) [19:26:20]Malloc new data [19:26:20]Processing tag 1015 (03F7) [19:26:20]Malloc new data [19:26:20]SetTLVBufToDocument err=0 [19:26:20]Processing tag 1007 (03EF) [19:26:20]Load OK [19:26:20]SetTLVBufToDocument [19:26:20]Processing tag 1014 (03F6) [19:26:20]Malloc new data [19:26:20]Processing tag 1015 (03F7) [19:26:20]Malloc new data [19:26:20]SetTLVBufToDocument err=0 [19:26:20]Processing tag 1007 (03EF) [19:26:20]Load OK [19:26:20]SetTLVBufToDocument [19:26:20]Processing tag 1014 (03F6) [19:26:20]Malloc new data [19:26:20]Processing tag 1015 (03F7) [19:26:20]Malloc new data [19:26:20]SetTLVBufToDocument err=0 [19:26:20]Processing tag 1007 (03EF) [19:26:20]Load OK [19:26:20]SetTLVBufToDocument [19:26:20]Processing tag 1014 (03F6) [19:26:20]Malloc new data [19:26:20]Processing tag 1015 (03F7) [19:26:20]Malloc new data [19:26:20]SetTLVBufToDocument err=0 [19:26:20]Processing tag 1007 (03EF) [19:26:20]Load OK [19:26:20]SetTLVBufToDocument [19:26:20]Processing tag 1014 (03F6) [19:26:20]Malloc new data [19:26:20]Processing tag 1015 (03F7) [19:26:20]Malloc new data [19:26:20]SetTLVBufToDocument err=0 [19:26:20]Processing tag 1007 (03EF) [19:26:20]Load OK [19:26:20]SetTLVBufToDocument [19:26:20]Processing tag 1014 (03F6) [19:26:20]Malloc new data [19:26:20]Processing tag 1015 (03F7) [19:26:20]Malloc new data [19:26:20]SetTLVBufToDocument err=0 [19:26:20]SetTLVBufToDocument err=0 [19:26:20]SetTLVBufToDocument err=0 [19:26:20]Processing tag 1131 (046B) [19:26:20]Load OK [19:26:20]SetTLVBufToDocument [19:26:20]Processing tag 1135 (046F) [19:26:20]Malloc new data [19:26:20]Processing tag 1201 (04B1) [19:26:20]Malloc new data [19:26:20]Processing tag 1136 (0470) [19:26:20]Malloc new data [19:26:20]Processing tag 1138 (0472) [19:26:20]Malloc new data [19:26:20]Processing tag 1024 (0400) [19:26:20]Load OK [19:26:20]SetTLVBufToDocument [19:26:20]Processing tag 1006 (03EE) [19:26:20]Load OK [19:26:20]SetTLVBufToDocument [19:26:20]Processing tag 1010 (03F2) [19:26:20]Malloc new data [19:26:20]Processing tag 1011 (03F3) [19:26:20]Malloc new data [19:26:20]SetTLVBufToDocument err=0 [19:26:20]Processing tag 1006 (03EE) [19:26:20]Load OK [19:26:20]SetTLVBufToDocument [19:26:20]Processing tag 1010 (03F2) [19:26:20]Malloc new data [19:26:20]Processing tag 1011 (03F3) [19:26:20]Malloc new data [19:26:20]SetTLVBufToDocument err=0 [19:26:20]Processing tag 1007 (03EF) [19:26:20]Load OK [19:26:20]SetTLVBufToDocument [19:26:20]Processing tag 1014 (03F6) [19:26:20]Malloc new data [19:26:20]Processing tag 1015 (03F7) [19:26:20]Malloc new data [19:26:20]SetTLVBufToDocument err=0 [19:26:20]Processing tag 1007 (03EF) [19:26:20]Load OK [19:26:20]SetTLVBufToDocument [19:26:20]Processing tag 1014 (03F6) [19:26:20]Malloc new data [19:26:20]Processing tag 1015 (03F7) [19:26:20]Malloc new data [19:26:20]SetTLVBufToDocument err=0 [19:26:20]Processing tag 1007 (03EF) [19:26:20]Load OK [19:26:20]SetTLVBufToDocument [19:26:20]Processing tag 1014 (03F6) [19:26:20]Malloc new data [19:26:20]Processing tag 1015 (03F7) [19:26:20]Malloc new data [19:26:20]SetTLVBufToDocument err=0 [19:26:20]Processing tag 1007 (03EF) [19:26:20]Load OK [19:26:20]SetTLVBufToDocument [19:26:20]Processing tag 1014 (03F6) [19:26:20]Malloc new data [19:26:20]Processing tag 1015 (03F7) [19:26:20]Malloc new data [19:26:20]SetTLVBufToDocument err=0 [19:26:20]Processing tag 1007 (03EF) [19:26:20]Load OK [19:26:20]SetTLVBufToDocument [19:26:20]Processing tag 1014 (03F6) [19:26:20]Malloc new data [19:26:20]Processing tag 1015 (03F7) [19:26:20]Malloc new data [19:26:20]SetTLVBufToDocument err=0 [19:26:20]Processing tag 1007 (03EF) [19:26:20]Load OK [19:26:20]SetTLVBufToDocument [19:26:20]Processing tag 1014 (03F6) [19:26:21]Malloc new data [19:26:21]Processing tag 1015 (03F7) [19:26:21]Malloc new data [19:26:21]SetTLVBufToDocument err=0 [19:26:21]Processing tag 1007 (03EF) [19:26:21]Load OK [19:26:21]SetTLVBufToDocument [19:26:21]Processing tag 1014 (03F6) [19:26:21]Malloc new data [19:26:21]Processing tag 1015 (03F7) [19:26:21]Malloc new data [19:26:21]SetTLVBufToDocument err=0 [19:26:21]SetTLVBufToDocument err=0 [19:26:21]SetTLVBufToDocument err=0 [19:26:21]Processing tag 1132 (046C) [19:26:21]Load OK [19:26:21]SetTLVBufToDocument [19:26:21]Processing tag 1135 (046F) [19:26:21]Malloc new data [19:26:21]Processing tag 1201 (04B1) [19:26:21]Malloc new data [19:26:21]Processing tag 1136 (0470) [19:26:21]Malloc new data [19:26:21]Processing tag 1138 (0472) [19:26:21]Malloc new data [19:26:21]Processing tag 1024 (0400) [19:26:21]Load OK [19:26:21]SetTLVBufToDocument [19:26:21]Processing tag 1006 (03EE) [19:26:21]Load OK [19:26:21]SetTLVBufToDocument [19:26:21]Processing tag 1010 (03F2) [19:26:21]Malloc new data [19:26:21]Processing tag 1011 (03F3) [19:26:21]Malloc new data [19:26:21]SetTLVBufToDocument err=0 [19:26:21]Processing tag 1006 (03EE) [19:26:21]Load OK [19:26:21]SetTLVBufToDocument [19:26:21]Processing tag 1010 (03F2) [19:26:21]Malloc new data [19:26:21]Processing tag 1011 (03F3) [19:26:21]Malloc new data [19:26:21]SetTLVBufToDocument err=0 [19:26:21]Processing tag 1007 (03EF) [19:26:21]Load OK [19:26:21]SetTLVBufToDocument [19:26:21]Processing tag 1014 (03F6) [19:26:21]Malloc new data [19:26:21]Processing tag 1015 (03F7) [19:26:21]Malloc new data [19:26:21]SetTLVBufToDocument err=0 [19:26:21]Processing tag 1007 (03EF) [19:26:21]Load OK [19:26:21]SetTLVBufToDocument [19:26:21]Processing tag 1014 (03F6) [19:26:21]Malloc new data [19:26:21]Processing tag 1015 (03F7) [19:26:21]Malloc new data [19:26:21]SetTLVBufToDocument err=0 [19:26:21]Processing tag 1007 (03EF) [19:26:21]Load OK [19:26:21]SetTLVBufToDocument [19:26:21]Processing tag 1014 (03F6) [19:26:21]Malloc new data [19:26:21]Processing tag 1015 (03F7) [19:26:21]Malloc new data [19:26:21]SetTLVBufToDocument err=0 [19:26:21]Processing tag 1007 (03EF) [19:26:21]Load OK [19:26:21]SetTLVBufToDocument [19:26:21]Processing tag 1014 (03F6) [19:26:21]Malloc new data [19:26:21]Processing tag 1015 (03F7) [19:26:21]Malloc new data [19:26:21]SetTLVBufToDocument err=0 [19:26:21]Processing tag 1007 (03EF) [19:26:21]Load OK [19:26:21]SetTLVBufToDocument [19:26:21]Processing tag 1014 (03F6) [19:26:21]Malloc new data [19:26:21]Processing tag 1015 (03F7) [19:26:21]Malloc new data [19:26:21]SetTLVBufToDocument err=0 [19:26:21]Processing tag 1007 (03EF) [19:26:21]Load OK [19:26:21]SetTLVBufToDocument [19:26:21]Processing tag 1014 (03F6) [19:26:21]Malloc new data [19:26:21]Processing tag 1015 (03F7) [19:26:21]Malloc new data [19:26:21]SetTLVBufToDocument err=0 [19:26:21]Processing tag 1007 (03EF) [19:26:21]Load OK [19:26:21]SetTLVBufToDocument [19:26:21]Processing tag 1014 (03F6) [19:26:21]Malloc new data [19:26:21]Processing tag 1015 (03F7) [19:26:21]Malloc new data [19:26:21]SetTLVBufToDocument err=0 [19:26:21]SetTLVBufToDocument err=0 [19:26:21]SetTLVBufToDocument err=0 [19:26:21]Processing tag 1133 (046D) [19:26:21]Malloc new data [19:26:21]SetTLVBufToDocument err=0 [19:26:21]SetTLVBufToDocument err=0 [19:26:21]Malloc new data [19:26:21]SAM_PROTO_GetFMData [19:26:21]wFMCommunicate request_size=4 [19:26:21]MH_SAM_APDU [19:26:21]CAPDU: 80 13 03 00 [19:26:21]Write to MH i2c: E2 08 00 F7 16 80 13 03 00 00 00 00 00 8C [19:26:21]Write i2c OK [19:26:21]MH_I2C_Read... [19:26:21]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [19:26:21]Read from MH i2c: E2 [19:26:21]MH_I2C_Read... [19:26:21]Read from MH i2c: E2 FD 00 [19:26:21]MH_I2C_Read... [19:26:21]Read from MH i2c: E2 FD 00 F7 16 00 C6 04 85 04 C2 04 6E 04 04 00 63 06 01 00 69 04 A3 00 6F 04 04 00 B9 05 01 00 B1 04 05 00 36 69 8A 1E 03 70 04 05 00 E8 A1 E9 C0 02 72 04 04 00 4E C7 A0 5D 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 86 F9 CF 54 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 2B 40 11 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9D 00 6F 04 04 00 AA 00 00 00 B1 04 04 00 00 23 C3 DC 70 04 04 00 00 23 C3 DC 72 04 00 00 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 DD 9D 71 17 EF 03 09 90 00 C2 [19:26:21]RAPDU: C6 04 85 04 C2 04 6E 04 04 00 63 06 01 00 69 04 A3 00 6F 04 04 00 B9 05 01 00 B1 04 05 00 36 69 8A 1E 03 70 04 05 00 E8 A1 E9 C0 02 72 04 04 00 4E C7 A0 5D 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 86 F9 CF 54 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 2B 40 11 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9D 00 6F 04 04 00 AA 00 00 00 B1 04 04 00 00 23 C3 DC 70 04 04 00 00 23 C3 DC 72 04 00 00 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 DD 9D 71 17 EF 03 09 90 00 [19:26:21]wFMCommunicate OK [19:26:21]wFMCommunicate request_size=4 [19:26:21]MH_SAM_APDU [19:26:21]CAPDU: 80 17 00 00 [19:26:21]Write to MH i2c: E2 08 00 F8 16 80 17 00 00 00 00 00 00 8E [19:26:21]Write i2c OK [19:26:21]MH_I2C_Read... [19:26:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:26:22]Read from MH i2c: E2 [19:26:22]MH_I2C_Read... [19:26:22]Read from MH i2c: E2 FD 00 [19:26:22]MH_I2C_Read... [19:26:22]Read from MH i2c: E2 FD 00 F8 16 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 70 22 F4 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 90 00 C9 [19:26:22]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 70 22 F4 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 90 00 [19:26:22]wFMCommunicate OK [19:26:22]wFMCommunicate request_size=4 [19:26:22]MH_SAM_APDU [19:26:22]CAPDU: 80 17 00 00 [19:26:22]Write to MH i2c: E2 08 00 F9 16 80 17 00 00 00 00 00 00 8F [19:26:22]Write i2c OK [19:26:22]MH_I2C_Read... [19:26:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:26:22]Read from MH i2c: E2 [19:26:22]MH_I2C_Read... [19:26:22]Read from MH i2c: E2 FD 00 [19:26:22]MH_I2C_Read... [19:26:22]Read from MH i2c: E2 FD 00 F9 16 00 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 90 00 B6 [19:26:22]RAPDU: 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 90 00 [19:26:22]wFMCommunicate OK [19:26:22]wFMCommunicate request_size=4 [19:26:22]MH_SAM_APDU [19:26:22]CAPDU: 80 17 00 00 [19:26:22]Write to MH i2c: E2 08 00 FA 16 80 17 00 00 00 00 00 00 90 [19:26:22]Write i2c OK [19:26:22]MH_I2C_Read... [19:26:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:26:23]Read from MH i2c: E2 [19:26:23]MH_I2C_Read... [19:26:23]Read from MH i2c: E2 FD 00 [19:26:23]MH_I2C_Read... [19:26:23]Read from MH i2c: E2 FD 00 FA 16 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 0B [19:26:23]RAPDU: EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 [19:26:23]wFMCommunicate OK [19:26:23]wFMCommunicate request_size=4 [19:26:23]MH_SAM_APDU [19:26:23]CAPDU: 80 17 00 00 [19:26:23]Write to MH i2c: E2 08 00 FB 16 80 17 00 00 00 00 00 00 91 [19:26:23]Write i2c OK [19:26:23]MH_I2C_Read... [19:26:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 224! [19:26:23]Read from MH i2c: E2 [19:26:23]MH_I2C_Read... [19:26:23]Read from MH i2c: E2 E3 00 [19:26:23]MH_I2C_Read... [19:26:23]Read from MH i2c: E2 E3 00 FB 16 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 70 [19:26:23]RAPDU: 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [19:26:23]wFMCommunicate OK [19:26:23]SAM_PROTO_GetFMData done [19:26:23]FM_GetFMData:85 04 C2 04 6E 04 04 00 63 06 01 00 69 04 A3 00 6F 04 04 00 B9 05 01 00 B1 04 05 00 36 69 8A 1E 03 70 04 05 00 E8 A1 E9 C0 02 72 04 04 00 4E C7 A0 5D 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 86 F9 CF 54 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 2B 40 11 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9D 00 6F 04 04 00 AA 00 00 00 B1 04 04 00 00 23 C3 DC 70 04 04 00 00 23 C3 DC 72 04 00 00 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 DD 9D 71 17 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 70 22 F4 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [19:26:24]oper:6F 04 04 00 B9 05 01 00 B1 04 05 00 36 69 8A 1E 03 70 04 05 00 E8 A1 E9 C0 02 72 04 04 00 4E C7 A0 5D 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 86 F9 CF 54 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 2B 40 11 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [19:26:24]total:36 69 8A 1E 03 [19:26:24]Malloc new data [19:26:24]oper:6F 04 04 00 AA 00 00 00 B1 04 04 00 00 23 C3 DC 70 04 04 00 00 23 C3 DC 72 04 00 00 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 DD 9D 71 17 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 70 22 F4 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [19:26:24]total:00 23 C3 DC [19:26:24]Malloc new data [19:26:24]oper:6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [19:26:24]total: [19:26:24]Malloc new data [19:26:24]oper:6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [19:26:24]total: [19:26:24]Malloc new data [19:26:24]KKMPrepareXReportFMData err=0 [19:26:24]Х отчет ИНН: 02508201610067 Кассир: Арстанбеков Н. 18.05.2024 19:26 Смена: 266 РНМ: 0000000000091845 ЗНМ: 0300000119 СНО: Общий режим Всего чеков: 128 ИТОГИ ПРИХОД Чеков: 128 Общий итог: 164804.26 Итого наличными: 25347.00 Итого безнал.: 139457.26 НДС 0% : 0.00 НДС 12% : 17502.42 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 1458.41 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 ИТОГИ РАСХОД Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 ИТОГИ ВОЗВРАТ РАСХОДА Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 Сумма внесений: 0.00 Сумма выплат: 0.00 Нал. в кассе: 25347.00 НС Приход: 133972892.70 НС Возвр.Прихода: 37037760.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФМ: 0000000000871829 [19:26:24]StoreToDocumentArchive [19:26:24]MH_GetDate [19:26:24]Write to MH i2c: F0 00 00 FC 16 01 [19:26:24]Write i2c OK [19:26:24]MH_I2C_Read... [19:26:24]Read from MH i2c: F0 [19:26:24]MH_I2C_Read... [19:26:24]Read from MH i2c: F0 09 00 [19:26:24]MH_I2C_Read... [19:26:24]Read from MH i2c: F0 09 00 FC 16 00 E2 00 49 66 FC 21 6F 64 8B [19:26:24]shift 266 fd 1716060386 [19:26:24]Create dir for shift 0266 [19:26:24]save to /storage/0266/doc_1716060386 [19:26:24]save last doc name /storage/0266/doc_1716060386 to /storage/kkm_last_doc_name [19:26:24]save OK [19:26:24]Clear old archive folders... [19:26:24]NVStorageSaveData kkm_last_timestamp [19:26:24]File name is /storage/kkm_last_timestamp [19:26:24]Write 4 bytes [19:26:24]NVStorageSaveData done [19:26:24]ExternCall_PrintAddStr [19:26:24]wPrintStart [19:26:24]Write to MH i2c: 01 00 00 FD 16 13 [19:26:24]Write i2c OK [19:26:24]MH_I2C_Read... [19:26:24]Read from MH i2c: 01 [19:26:24]MH_I2C_Read... [19:26:24]Read from MH i2c: 01 07 00 [19:26:24]MH_I2C_Read... [19:26:24]Read from MH i2c: 01 07 00 FD 16 00 00 00 00 00 FF 0F 28 [19:26:24]RasterBufferAndPrint [19:26:24]line Х отчет [19:26:24]line ИНН: 02508201610067 [19:26:24]line Кассир: Арстанбеков Н. [19:26:24]line 18.05.2024 19:26 [19:26:24]line Смена: 266 [19:26:24]line РНМ: 0000000000091845 [19:26:24]line ЗНМ: 0300000119 [19:26:24]line СНО: Общий режим [19:26:24]line Всего чеков: 128 [19:26:24]line ИТОГИ ПРИХОД [19:26:24]line Чеков: 128 [19:26:24]line Общий итог: 164804.26 [19:26:24]line Итого наличными: 25347.00 [19:26:24]line Итого безнал.: 139457.26 [19:26:24]line НДС 0% : 0.00 [19:26:24]line НДС 12% : 17502.42 [19:26:24]line НСП 0% : 0.00 [19:26:24]line НСП 1,50% : 0.00 [19:26:24]line НСП 0,50% : 0.00 [19:26:24]line НСП 5% : 0.00 [19:26:24]line НСП 3% : 0.00 [19:26:24]line НСП 2% : 0.00 [19:26:24]line НСП 1% : 1458.41 [19:26:24]line ИТОГИ ВОЗВРАТ ПРИХОДА [19:26:24]line Чеков: 0 [19:26:24]line Общий итог: 0.00 [19:26:24]line Итого наличными: 0.00 [19:26:24]line Итого безнал.: 0.00 [19:26:24]line НДС 0% : 0.00 [19:26:24]line НДС 12% : 0.00 [19:26:24]line НСП 0% : 0.00 [19:26:24]line НСП 1,50% : 0.00 [19:26:24]line НСП 0,50% : 0.00 [19:26:24]line НСП 5% : 0.00 [19:26:24]line НСП 3% : 0.00 [19:26:24]line НСП 2% : 0.00 [19:26:24]line НСП 1% : 0.00 [19:26:24]line ИТОГИ РАСХОД [19:26:24]line Чеков: 0 [19:26:24]line Общий итог: 0.00 [19:26:24]line Итого наличными: 0.00 [19:26:24]line Итого безнал.: 0.00 [19:26:24]line НДС 0% : 0.00 [19:26:24]line НДС 12% : 0.00 [19:26:24]line НСП 0% : 0.00 [19:26:24]line НСП 1,50% : 0.00 [19:26:24]line НСП 0,50% : 0.00 [19:26:24]line НСП 5% : 0.00 [19:26:24]line НСП 3% : 0.00 [19:26:24]line НСП 2% : 0.00 [19:26:24]line НСП 1% : 0.00 [19:26:24]line ИТОГИ ВОЗВРАТ РАСХОДА [19:26:24]line Чеков: 0 [19:26:24]line Общий итог: 0.00 [19:26:24]line Итого наличными: 0.00 [19:26:24]line Итого безнал.: 0.00 [19:26:24]line НДС 0% : 0.00 [19:26:24]line НДС 12% : 0.00 [19:26:24]line НСП 0% : 0.00 [19:26:24]line НСП 1,50% : 0.00 [19:26:24]line НСП 0,50% : 0.00 [19:26:24]line НСП 5% : 0.00 [19:26:24]line НСП 3% : 0.00 [19:26:24]line НСП 2% : 0.00 [19:26:24]line НСП 1% : 0.00 [19:26:24]line Сумма внесений: 0.00 [19:26:24]line Сумма выплат: 0.00 [19:26:24]line Нал. в кассе: 25347.00 [19:26:24]line НС Приход: 133972892.70 [19:26:24]line НС Возвр.Прихода: 37037760.00 [19:26:24]line НС Расход: 0.00 [19:26:24]line НС Возвр.Расхода: 0.00 [19:26:24]line ФМ: 0000000000871829 [19:26:24]written 0, free lines is 4095 [19:26:24]OFD Sender: No OFD packet to send [19:26:25]Write to MH i2c: 01 00 00 49 17 60 [19:26:25]Write i2c OK [19:26:25]MH_I2C_Read... [19:26:25]Read from MH i2c: 01 [19:26:25]MH_I2C_Read... [19:26:25]Read from MH i2c: 01 07 00 [19:26:25]MH_I2C_Read... [19:26:25]Read from MH i2c: 01 07 00 49 17 00 00 00 00 00 7E 0A EF [19:26:25]RasterBufferAndPrint [19:26:25]line [19:26:25]line [19:26:25]line [19:26:25]line [19:26:25]line [19:26:25]written 0, free lines is 2716 [19:26:25]MH_Cut [19:26:25]Write to MH i2c: D1 01 00 50 17 01 39 [19:26:25]Write i2c OK [19:26:25]MH_I2C_Read... [19:26:25]Read from MH i2c: D1 [19:26:25]MH_I2C_Read... [19:26:25]Read from MH i2c: D1 01 00 [19:26:25]MH_I2C_Read... [19:26:25]Read from MH i2c: D1 01 00 50 17 00 38 [19:26:25]Write to MH i2c: 01 00 00 51 17 68 [19:26:25]Write i2c OK [19:26:25]MH_I2C_Read... [19:26:26]*** Cut start [19:26:26]*** Purtial cut [19:26:26]*** Stage 1: CUTSNS_PIN = 1 [19:26:27]Read from MH i2c: 01 [19:26:27]MH_I2C_Read... [19:26:27]*** Stop cut motor [19:26:27]*** Cut end [19:26:27]Read from MH i2c: 01 07 00 [19:26:27]MH_I2C_Read... [19:26:27]Read from MH i2c: 01 07 00 51 17 00 00 00 00 00 FF 0F 7D [19:26:27]process_action x_report done [19:26:27]requested_data is exist [19:26:27]produce_requested_data [19:26:27]requested_item fd.num is exist - process it [19:26:27]SAM_PROTO_GetFieldsCounters [19:26:27]wFMCommunicate request_size=4 [19:26:27]MH_SAM_APDU [19:26:27]CAPDU: 80 13 00 00 [19:26:27]Write to MH i2c: E2 08 00 52 17 80 13 00 00 00 00 00 00 E5 [19:26:27]Write i2c OK [19:26:27]MH_I2C_Read... [19:26:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:26:27]Read from MH i2c: E2 [19:26:27]MH_I2C_Read... [19:26:27]Read from MH i2c: E2 62 00 [19:26:27]MH_I2C_Read... [19:26:27]Read from MH i2c: E2 62 00 52 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 31 09 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 80 00 00 00 5E 04 04 00 80 00 00 00 57 04 04 00 81 00 00 00 19 04 04 00 00 00 00 00 90 00 2E [19:26:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 31 09 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 80 00 00 00 5E 04 04 00 80 00 00 00 57 04 04 00 81 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:26:27]wFMCommunicate OK [19:26:27]SAM_PROTO_GetFieldsCounters done [19:26:27]requested_item shift.num is exist - process it [19:26:27]requested_item shift.opened is exist - process it [19:26:27]req_shift_opened [19:26:27]FM_GetShiftState [19:26:27]SAM_PROTO_GetShiftState [19:26:27]wFMCommunicate request_size=4 [19:26:27]MH_SAM_APDU [19:26:27]CAPDU: 80 13 01 00 [19:26:27]Write to MH i2c: E2 08 00 53 17 80 13 01 00 00 00 00 00 E7 [19:26:27]Write i2c OK [19:26:27]MH_I2C_Read... [19:26:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:26:27]Read from MH i2c: E2 [19:26:27]MH_I2C_Read... [19:26:27]Read from MH i2c: E2 0E 00 [19:26:27]MH_I2C_Read... [19:26:27]Read from MH i2c: E2 0E 00 53 17 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 4E [19:26:27]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [19:26:27]wFMCommunicate OK [19:26:27]SAM_PROTO_GetShiftState done [19:26:27]FM_GetShiftState done [19:26:27]req_shift_opened done [19:26:27]requested_item shift.open_date is exist - process it [19:26:27]req_shift_open_date [19:26:27]req_shift_open_date done [19:26:27]produce_requested_data done [19:26:27]produce_requested_data return {"fd.num":67889,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [19:26:27]process_action_free x_report [19:26:27]json_value_free [19:26:27]json_value_free done [19:26:27]process_json_proto returns [19:26:27]Send response to host [19:26:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":67889,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [19:26:27]free response buf [19:26:27]execute_script done [19:26:27]execute_script returns [19:26:27]free content buf [19:26:27]Sock 10.Close socket [19:26:27]Sock 10.Thread stoped [19:26:30]OFD Sender: No OFD packet to send [19:26:31]accept exits with 7 [19:26:31]New connection [19:26:31]New thread 3067059556 created [19:26:31]Thread 3067202916 joined [19:26:31]Waiting for new connection... [19:26:31] Sock 7.Parse request [19:26:31]Sock 7.Check first char [19:26:31]Sock 7.First char is OK [19:26:31]request: POST /json_proto HTTP/1.0 [19:26:31]Method: POST [19:26:31]URL: /json_proto [19:26:31]Method is POST - this is cgi request [19:26:31]url: /json_proto [19:26:31]query_string will be loaded in cgi processing [19:26:31]execute_cgi json_proto POST (null) [19:26:31]execute_cgi path=json_proto method=POST [19:26:31]POST find Content-Length [19:26:31]Host: 172.17.41.195:8080 [19:26:31]Content-Length: 215 [19:26:31]Content-Type: application/json [19:26:31] [19:26:31]POST finish read [19:26:31]Found Content-Length = 215 [19:26:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:26:31]execute_script... [19:26:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:26:31]POST & json_proto [19:26:31]process_json_proto [19:26:31]json parsed OK: [19:26:31]protocol is kg_v1.0 [19:26:31]action value=get_value [19:26:31]process_action get_value [19:26:31]cmd_get_value [19:26:31]process_action get_value done [19:26:31]requested_data is exist [19:26:31]produce_requested_data [19:26:31]requested_item kkm.sn is exist - process it [19:26:31]requested_item kkm.ver is exist - process it [19:26:31]requested_item fm.sn is exist - process it [19:26:31]wFMCommunicate request_size=4 [19:26:31]MH_SAM_APDU [19:26:31]CAPDU: 80 11 00 00 [19:26:31]Write to MH i2c: E2 08 00 54 17 80 11 00 00 00 00 00 00 E5 [19:26:31]Write i2c OK [19:26:31]MH_I2C_Read... [19:26:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:26:32]Read from MH i2c: E2 [19:26:32]MH_I2C_Read... [19:26:32]Read from MH i2c: E2 17 00 [19:26:32]MH_I2C_Read... [19:26:32]Read from MH i2c: E2 17 00 54 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 3B [19:26:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [19:26:32]wFMCommunicate OK [19:26:32]requested_item fd.num is exist - process it [19:26:32]SAM_PROTO_GetFieldsCounters [19:26:32]wFMCommunicate request_size=4 [19:26:32]MH_SAM_APDU [19:26:32]CAPDU: 80 13 00 00 [19:26:32]Write to MH i2c: E2 08 00 55 17 80 13 00 00 00 00 00 00 E8 [19:26:32]Write i2c OK [19:26:32]MH_I2C_Read... [19:26:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:26:32]Read from MH i2c: E2 [19:26:32]MH_I2C_Read... [19:26:32]Read from MH i2c: E2 62 00 [19:26:32]MH_I2C_Read... [19:26:32]Read from MH i2c: E2 62 00 55 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 31 09 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 80 00 00 00 5E 04 04 00 80 00 00 00 57 04 04 00 81 00 00 00 19 04 04 00 00 00 00 00 90 00 31 [19:26:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 31 09 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 80 00 00 00 5E 04 04 00 80 00 00 00 57 04 04 00 81 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:26:32]wFMCommunicate OK [19:26:32]SAM_PROTO_GetFieldsCounters done [19:26:32]requested_item shift.num is exist - process it [19:26:32]requested_item shift.opened is exist - process it [19:26:32]req_shift_opened [19:26:32]FM_GetShiftState [19:26:32]SAM_PROTO_GetShiftState [19:26:32]wFMCommunicate request_size=4 [19:26:32]MH_SAM_APDU [19:26:32]CAPDU: 80 13 01 00 [19:26:32]Write to MH i2c: E2 08 00 56 17 80 13 01 00 00 00 00 00 EA [19:26:32]Write i2c OK [19:26:32]MH_I2C_Read... [19:26:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:26:32]Read from MH i2c: E2 [19:26:32]MH_I2C_Read... [19:26:32]Read from MH i2c: E2 0E 00 [19:26:32]MH_I2C_Read... [19:26:32]Read from MH i2c: E2 0E 00 56 17 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 51 [19:26:32]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [19:26:32]wFMCommunicate OK [19:26:32]SAM_PROTO_GetShiftState done [19:26:32]FM_GetShiftState done [19:26:32]req_shift_opened done [19:26:32]requested_item shift.open_date is exist - process it [19:26:32]req_shift_open_date [19:26:32]req_shift_open_date done [19:26:32]produce_requested_data done [19:26:32]produce_requested_data return {"kkm.sn":"0300000119","kkm.ver":"001","fm.sn":"0000000000871829","fd.num":67889,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [19:26:32]process_action_free get_value [19:26:32]json_value_free [19:26:32]json_value_free done [19:26:32]process_json_proto returns [19:26:32]Send response to host [19:26:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000119","kkm.ver":"001","fm.sn":"0000000000871829","fd.num":67889,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [19:26:32]free response buf [19:26:32]execute_script done [19:26:32]execute_script returns [19:26:32]free content buf [19:26:32]Sock 7.Close socket [19:26:32]Sock 7.Thread stoped [19:26:32]accept exits with 9 [19:26:32]New connection [19:26:32]New thread 3067202916 created [19:26:32]Thread 3067059556 joined [19:26:32]Waiting for new connection... [19:26:32] Sock 9.Parse request [19:26:32]Sock 9.Check first char [19:26:32]Sock 9.First char is OK [19:26:32]request: POST /json_proto HTTP/1.0 [19:26:32]Method: POST [19:26:32]URL: /json_proto [19:26:32]Method is POST - this is cgi request [19:26:32]url: /json_proto [19:26:32]query_string will be loaded in cgi processing [19:26:32]execute_cgi json_proto POST (null) [19:26:32]execute_cgi path=json_proto method=POST [19:26:32]POST find Content-Length [19:26:32]Host: 172.17.41.195:8080 [19:26:32]Content-Length: 331 [19:26:32]Content-Type: application/json [19:26:32] [19:26:32]POST finish read [19:26:32]Found Content-Length = 331 [19:26:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [19:26:32]execute_script... [19:26:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [19:26:32]POST & json_proto [19:26:32]process_json_proto [19:26:32]json parsed OK: [19:26:32]protocol is kg_v1.0 [19:26:32]action value=get_value [19:26:32]process_action get_value [19:26:32]cmd_get_value [19:26:32]process_action get_value done [19:26:32]requested_data is exist [19:26:32]produce_requested_data [19:26:32]requested_item fm.sale.total is exist - process it [19:26:32]SAM_PROTO_GetFMData [19:26:32]wFMCommunicate request_size=4 [19:26:32]MH_SAM_APDU [19:26:32]CAPDU: 80 13 03 00 [19:26:32]Write to MH i2c: E2 08 00 57 17 80 13 03 00 00 00 00 00 ED [19:26:32]Write i2c OK [19:26:32]MH_I2C_Read... [19:26:32]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [19:26:32]Read from MH i2c: E2 [19:26:32]MH_I2C_Read... [19:26:32]Read from MH i2c: E2 FD 00 [19:26:32]MH_I2C_Read... [19:26:32]Read from MH i2c: E2 FD 00 57 17 00 C6 04 85 04 C2 04 6E 04 04 00 63 06 01 00 69 04 A3 00 6F 04 04 00 B9 05 01 00 B1 04 05 00 36 69 8A 1E 03 70 04 05 00 E8 A1 E9 C0 02 72 04 04 00 4E C7 A0 5D 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 86 F9 CF 54 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 2B 40 11 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9D 00 6F 04 04 00 AA 00 00 00 B1 04 04 00 00 23 C3 DC 70 04 04 00 00 23 C3 DC 72 04 00 00 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 DD 9D 71 17 EF 03 09 90 00 23 [19:26:33]RAPDU: C6 04 85 04 C2 04 6E 04 04 00 63 06 01 00 69 04 A3 00 6F 04 04 00 B9 05 01 00 B1 04 05 00 36 69 8A 1E 03 70 04 05 00 E8 A1 E9 C0 02 72 04 04 00 4E C7 A0 5D 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 86 F9 CF 54 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 2B 40 11 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9D 00 6F 04 04 00 AA 00 00 00 B1 04 04 00 00 23 C3 DC 70 04 04 00 00 23 C3 DC 72 04 00 00 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 DD 9D 71 17 EF 03 09 90 00 [19:26:33]wFMCommunicate OK [19:26:33]wFMCommunicate request_size=4 [19:26:33]MH_SAM_APDU [19:26:33]CAPDU: 80 17 00 00 [19:26:33]Write to MH i2c: E2 08 00 58 17 80 17 00 00 00 00 00 00 EF [19:26:33]Write i2c OK [19:26:33]MH_I2C_Read... [19:26:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:26:33]Read from MH i2c: E2 [19:26:33]MH_I2C_Read... [19:26:33]Read from MH i2c: E2 FD 00 [19:26:33]MH_I2C_Read... [19:26:33]Read from MH i2c: E2 FD 00 58 17 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 70 22 F4 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 90 00 2A [19:26:33]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 70 22 F4 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 90 00 [19:26:33]wFMCommunicate OK [19:26:33]wFMCommunicate request_size=4 [19:26:33]MH_SAM_APDU [19:26:33]CAPDU: 80 17 00 00 [19:26:33]Write to MH i2c: E2 08 00 59 17 80 17 00 00 00 00 00 00 F0 [19:26:33]Write i2c OK [19:26:33]MH_I2C_Read... [19:26:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:26:34]Read from MH i2c: E2 [19:26:34]MH_I2C_Read... [19:26:34]Read from MH i2c: E2 FD 00 [19:26:34]MH_I2C_Read... [19:26:34]Read from MH i2c: E2 FD 00 59 17 00 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 90 00 17 [19:26:34]RAPDU: 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 90 00 [19:26:34]wFMCommunicate OK [19:26:34]wFMCommunicate request_size=4 [19:26:34]MH_SAM_APDU [19:26:34]CAPDU: 80 17 00 00 [19:26:34]Write to MH i2c: E2 08 00 5A 17 80 17 00 00 00 00 00 00 F1 [19:26:34]Write i2c OK [19:26:34]MH_I2C_Read... [19:26:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:26:34]Read from MH i2c: E2 [19:26:34]MH_I2C_Read... [19:26:34]Read from MH i2c: E2 FD 00 [19:26:34]MH_I2C_Read... [19:26:34]Read from MH i2c: E2 FD 00 5A 17 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 6C [19:26:34]RAPDU: EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 [19:26:35]wFMCommunicate OK [19:26:35]wFMCommunicate request_size=4 [19:26:35]MH_SAM_APDU [19:26:35]CAPDU: 80 17 00 00 [19:26:35]Write to MH i2c: E2 08 00 5B 17 80 17 00 00 00 00 00 00 F2 [19:26:35]Write i2c OK [19:26:35]MH_I2C_Read... [19:26:35]OFD Sender: No OFD packet to send [19:26:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 224! [19:26:35]Read from MH i2c: E2 [19:26:35]MH_I2C_Read... [19:26:35]Read from MH i2c: E2 E3 00 [19:26:35]MH_I2C_Read... [19:26:35]Read from MH i2c: E2 E3 00 5B 17 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 D1 [19:26:35]RAPDU: 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [19:26:35]wFMCommunicate OK [19:26:35]SAM_PROTO_GetFMData done [19:26:35]requested_item fm.sale_refund.total is exist - process it [19:26:35]requested_item fm.buy.total is exist - process it [19:26:35]requested_item shift.sale.total is exist - process it [19:26:35]SAM_PROTO_GetShiftData [19:26:35]wFMCommunicate request_size=4 [19:26:35]MH_SAM_APDU [19:26:35]CAPDU: 80 13 02 00 [19:26:35]Write to MH i2c: E2 08 00 5C 17 80 13 02 00 00 00 00 00 F1 [19:26:35]Write i2c OK [19:26:35]MH_I2C_Read... [19:26:35]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [19:26:35]Read from MH i2c: E2 [19:26:35]MH_I2C_Read... [19:26:35]Read from MH i2c: E2 FD 00 [19:26:35]MH_I2C_Read... [19:26:35]Read from MH i2c: E2 FD 00 5C 17 00 AF 04 AA 04 AB 04 6E 04 04 00 80 00 00 00 69 04 9C 00 6F 04 04 00 80 00 00 00 B1 04 03 00 AA 78 FB 70 04 03 00 2C AD 26 72 04 03 00 7E CB D4 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 E2 B4 1A EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 B1 39 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 96 [19:26:36]RAPDU: AF 04 AA 04 AB 04 6E 04 04 00 80 00 00 00 69 04 9C 00 6F 04 04 00 80 00 00 00 B1 04 03 00 AA 78 FB 70 04 03 00 2C AD 26 72 04 03 00 7E CB D4 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 E2 B4 1A EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 B1 39 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 [19:26:36]wFMCommunicate OK [19:26:36]wFMCommunicate request_size=4 [19:26:36]MH_SAM_APDU [19:26:36]CAPDU: 80 17 00 00 [19:26:36]Write to MH i2c: E2 08 00 5D 17 80 17 00 00 00 00 00 00 F4 [19:26:36]Write i2c OK [19:26:36]MH_I2C_Read... [19:26:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:26:36]Read from MH i2c: E2 [19:26:36]MH_I2C_Read... [19:26:36]Read from MH i2c: E2 FD 00 [19:26:36]MH_I2C_Read... [19:26:36]Read from MH i2c: E2 FD 00 5D 17 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 90 00 0D [19:26:36]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 90 00 [19:26:36]wFMCommunicate OK [19:26:36]wFMCommunicate request_size=4 [19:26:36]MH_SAM_APDU [19:26:36]CAPDU: 80 17 00 00 [19:26:36]Write to MH i2c: E2 08 00 5E 17 80 17 00 00 00 00 00 00 F5 [19:26:36]Write i2c OK [19:26:36]MH_I2C_Read... [19:26:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:26:37]Read from MH i2c: E2 [19:26:37]MH_I2C_Read... [19:26:37]Read from MH i2c: E2 FD 00 [19:26:37]MH_I2C_Read... [19:26:37]Read from MH i2c: E2 FD 00 5E 17 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 90 00 A9 [19:26:37]RAPDU: 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 90 00 [19:26:37]wFMCommunicate OK [19:26:37]wFMCommunicate request_size=4 [19:26:37]MH_SAM_APDU [19:26:37]CAPDU: 80 17 00 00 [19:26:37]Write to MH i2c: E2 08 00 5F 17 80 17 00 00 00 00 00 00 F6 [19:26:37]Write i2c OK [19:26:37]MH_I2C_Read... [19:26:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:26:37]Read from MH i2c: E2 [19:26:37]MH_I2C_Read... [19:26:37]Read from MH i2c: E2 FD 00 [19:26:37]MH_I2C_Read... [19:26:37]Read from MH i2c: E2 FD 00 5F 17 00 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 90 00 74 [19:26:37]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 90 00 [19:26:38]wFMCommunicate OK [19:26:38]wFMCommunicate request_size=4 [19:26:38]MH_SAM_APDU [19:26:38]CAPDU: 80 17 00 00 [19:26:38]Write to MH i2c: E2 08 00 60 17 80 17 00 00 00 00 00 00 F7 [19:26:38]Write i2c OK [19:26:38]MH_I2C_Read... [19:26:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 201! [19:26:38]Read from MH i2c: E2 [19:26:38]MH_I2C_Read... [19:26:38]Read from MH i2c: E2 CC 00 [19:26:38]MH_I2C_Read... [19:26:38]Read from MH i2c: E2 CC 00 60 17 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 D8 [19:26:38]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [19:26:38]wFMCommunicate OK [19:26:38]SAM_PROTO_GetShiftData done [19:26:38]requested_item shift.sale.total_cash is exist - process it [19:26:38]requested_item shift.sale_refund.total is exist - process it [19:26:38]requested_item shift.sale_refund.total_cash is exist - process it [19:26:38]requested_item shift.buy.total is exist - process it [19:26:38]requested_item shift.buy.total_cash is exist - process it [19:26:38]produce_requested_data done [19:26:38]produce_requested_data return {"fm.sale.total":133972892.70,"fm.sale_refund.total":37037760.00,"fm.buy.total":0.00,"shift.sale.total":164804.26,"shift.sale.total_cash":25347.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [19:26:38]process_action_free get_value [19:26:38]json_value_free [19:26:38]json_value_free done [19:26:38]process_json_proto returns [19:26:38]Send response to host [19:26:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":133972892.70,"fm.sale_refund.total":37037760.00,"fm.buy.total":0.00,"shift.sale.total":164804.26,"shift.sale.total_cash":25347.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [19:26:38]free response buf [19:26:38]execute_script done [19:26:38]execute_script returns [19:26:38]free content buf [19:26:38]Sock 9.Close socket [19:26:38]Sock 9.Thread stoped [19:26:38]accept exits with 7 [19:26:38]New connection [19:26:38]New thread 3067059556 created [19:26:38]Thread 3067202916 joined [19:26:38]Waiting for new connection... [19:26:38] Sock 7.Parse request [19:26:38]Sock 7.Check first char [19:26:38]Sock 7.First char is OK [19:26:38]request: POST /json_proto HTTP/1.0 [19:26:38]Method: POST [19:26:38]URL: /json_proto [19:26:38]Method is POST - this is cgi request [19:26:38]url: /json_proto [19:26:38]query_string will be loaded in cgi processing [19:26:38]execute_cgi json_proto POST (null) [19:26:38]execute_cgi path=json_proto method=POST [19:26:38]POST find Content-Length [19:26:38]Host: 172.17.41.195:8080 [19:26:38]Content-Length: 331 [19:26:38]Content-Type: application/json [19:26:38] [19:26:38]POST finish read [19:26:38]Found Content-Length = 331 [19:26:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [19:26:38]execute_script... [19:26:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [19:26:38]POST & json_proto [19:26:38]process_json_proto [19:26:38]json parsed OK: [19:26:38]protocol is kg_v1.0 [19:26:38]action value=get_value [19:26:38]process_action get_value [19:26:38]cmd_get_value [19:26:38]process_action get_value done [19:26:38]requested_data is exist [19:26:38]produce_requested_data [19:26:38]requested_item fm.sale.total is exist - process it [19:26:38]SAM_PROTO_GetFMData [19:26:38]wFMCommunicate request_size=4 [19:26:38]MH_SAM_APDU [19:26:38]CAPDU: 80 13 03 00 [19:26:38]Write to MH i2c: E2 08 00 61 17 80 13 03 00 00 00 00 00 F7 [19:26:38]Write i2c OK [19:26:38]MH_I2C_Read... [19:26:39]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [19:26:39]Read from MH i2c: E2 [19:26:39]MH_I2C_Read... [19:26:39]Read from MH i2c: E2 FD 00 [19:26:39]MH_I2C_Read... [19:26:39]Read from MH i2c: E2 FD 00 61 17 00 C6 04 85 04 C2 04 6E 04 04 00 63 06 01 00 69 04 A3 00 6F 04 04 00 B9 05 01 00 B1 04 05 00 36 69 8A 1E 03 70 04 05 00 E8 A1 E9 C0 02 72 04 04 00 4E C7 A0 5D 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 86 F9 CF 54 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 2B 40 11 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9D 00 6F 04 04 00 AA 00 00 00 B1 04 04 00 00 23 C3 DC 70 04 04 00 00 23 C3 DC 72 04 00 00 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 DD 9D 71 17 EF 03 09 90 00 2D [19:26:39]RAPDU: C6 04 85 04 C2 04 6E 04 04 00 63 06 01 00 69 04 A3 00 6F 04 04 00 B9 05 01 00 B1 04 05 00 36 69 8A 1E 03 70 04 05 00 E8 A1 E9 C0 02 72 04 04 00 4E C7 A0 5D 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 86 F9 CF 54 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 2B 40 11 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9D 00 6F 04 04 00 AA 00 00 00 B1 04 04 00 00 23 C3 DC 70 04 04 00 00 23 C3 DC 72 04 00 00 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 DD 9D 71 17 EF 03 09 90 00 [19:26:39]wFMCommunicate OK [19:26:39]wFMCommunicate request_size=4 [19:26:39]MH_SAM_APDU [19:26:39]CAPDU: 80 17 00 00 [19:26:39]Write to MH i2c: E2 08 00 62 17 80 17 00 00 00 00 00 00 F9 [19:26:39]Write i2c OK [19:26:39]MH_I2C_Read... [19:26:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:26:39]Read from MH i2c: E2 [19:26:39]MH_I2C_Read... [19:26:39]Read from MH i2c: E2 FD 00 [19:26:39]MH_I2C_Read... [19:26:39]Read from MH i2c: E2 FD 00 62 17 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 70 22 F4 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 90 00 34 [19:26:40]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 70 22 F4 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 OFD Sender: No OFD packet to send [19:26:40]01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 90 00 [19:26:40]wFMCommunicate OK [19:26:40]wFMCommunicate request_size=4 [19:26:40]MH_SAM_APDU [19:26:40]CAPDU: 80 17 00 00 [19:26:40]Write to MH i2c: E2 08 00 63 17 80 17 00 00 00 00 00 00 FA [19:26:40]Write i2c OK [19:26:40]MH_I2C_Read... [19:26:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:26:40]Read from MH i2c: E2 [19:26:40]MH_I2C_Read... [19:26:40]Read from MH i2c: E2 FD 00 [19:26:40]MH_I2C_Read... [19:26:40]Read from MH i2c: E2 FD 00 63 17 00 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 90 00 21 [19:26:40]RAPDU: 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09